{"id":17935,"date":"2016-11-29T20:34:00","date_gmt":"2016-11-29T20:34:00","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=9011"},"modified":"2021-03-25T09:51:43","modified_gmt":"2021-03-25T09:51:43","slug":"adding-the-twitter-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-0\/docs\/bots\/channel-enablement\/adding-the-twitter-channel\/","title":{"rendered":"Adding the Twitter Channel"},"content":{"rendered":"<section class=\"l-section wpb_row height_auto\"><div class=\"l-section-h i-cf\"><div class=\"g-cols vc_row type_default valign_top\"><div class=\"vc_col-sm-12 wpb_column vc_column_container\"><div class=\"vc_column-inner\"><div class=\"wpb_wrapper\">\r\n\t<div class=\"wpb_text_column \">\r\n\t\t<div class=\"wpb_wrapper\">\r\n\t\t\t<p>To set up Twitter as a channel, you need to associate the bot with a Twitter account, define a Twitter app and enable the integration. To add Twitter as a channel, you need to:<\/p>\n<ol>\n<li><b>Create Twitter App<\/b><b>&#8211;<\/b> Log on to Twitter and in <em>Twitter App Management Console <\/em>create an app to provide authorization for communication between Twitter and your Kore.ai Bot.<\/li>\n<li><b>Setup Keys and Tokens- <\/b>Generate the authentication keys and tokens for the <em>Twitter<\/em> app to communicate with the Kore.ai Bots Platform, and then copy those keys and tokens to Kore.ai Bot Builder.<\/li>\n<li><b>Update Permissions<\/b> -To use <em>Twitter<\/em> as a channel for your Kore.ai Bot, you must define the <em>Twitter<\/em> app permissions used to interact with the Kore.ai Bots Platform.<\/li>\n<li><b>Enable Channel- <\/b> After setting up the <em>Twitter<\/em> app and entering configuration data in Bot Builder, you need to enable the channel.<\/li>\n<\/ol>\n<p><b>To add Twitter channel: <\/b><br \/>\nTo complete this procedure, you must create a <em>Twitter<\/em> account if you do not have one already.<\/p>\n<ol>\n<li>In the <b>Bots<\/b> section of the Bot Builder, click the Bot that you want to add the Twitter channel to.<\/li>\n<li>On the <b>Channels<\/b> tab, click the <b>Twitter <\/b>icon. The <b>Twitter Channel<\/b> page gets displayed.<\/li>\n<li><a href=\"https:\/\/apps.twitter.com\/\">Login<\/a> to Twitter apps portal and select <b>Create New App<\/b>. Provide all the required information, use the <b>Callback URL<\/b> from the <b>Configurations<\/b> tab of Twitter channel page and click on <b>Create your Twitter application<\/b> to create your new app. You would be redirected to the <b>Details<\/b> tab of <b>App Information page.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/callback1-1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14158 alignnone\" src=\"\/wp-content\/uploads\/sites\/11\/callback1-1.png\" alt=\"\" width=\"1097\" height=\"1005\" \/><\/a><br \/>\n<\/b><\/li>\n<li>From the <b>Application Settings<\/b> section, click on <b>Manage keys and access tokens<\/b> link next to the Consumer Key field.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/share-details.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14160 alignnone\" src=\"\/wp-content\/uploads\/sites\/11\/share-details.png\" alt=\"\" width=\"997\" height=\"1090\" \/><\/a><\/li>\n<li>Scroll down to the end and click on <b>Create my access token<\/b>. If you have already generated the access token then you may reuse the same. Make note of the values for <b>Consumer Key<\/b>, <b>Consumer Secret<\/b>, <b>Access Token<\/b>, <b>Access Token Secret,<\/b> and <b>Owne<\/b><strong>r<\/strong> fields and enter them in the <b>Configurations<\/b> tab of Twitter channel page on the builder.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/new-consumer-key.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14162 alignnone\" src=\"\/wp-content\/uploads\/sites\/11\/new-consumer-key.png\" alt=\"\" width=\"1028\" height=\"1174\" \/><\/a><\/li>\n<li>Navigate to <b>Permissions<\/b> tab and select the option <b>Read, Write and Access direct messages<\/b> under <b>Access<\/b> section. Click on <b>Update Settings<\/b> to save the new permissions.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/update-permissions1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14163 alignnone\" src=\"\/wp-content\/uploads\/sites\/11\/update-permissions1.png\" alt=\"\" width=\"1007\" height=\"802\" \/><\/a><\/li>\n<li>Navigate to the Configurations tab to review and complete the channel setup.<\/li>\n<\/ol>\n<h1><span class=\"ez-toc-section\" id=\"Editing_the_Twitter_Channel\">Editing the Twitter Channel<\/span><\/h1>\n<p>To edit the Twitter channel, hover your mouse over the channel and click to modify. You can make necessary updates to your channel configurations and save them. You may also disable or delete the channel information by clicking the <b>Settings <\/b>icon<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/edit-twitter.png\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-14164 alignnone\" src=\"\/wp-content\/uploads\/sites\/11\/edit-twitter.png\" alt=\"\" width=\"688\" height=\"324\" \/><\/a><br \/>\nSelect one of the following commands to modify the channel:<\/p>\n<ul>\n<li><b>Disable\/Enable<\/b> \u2013 Click <b>Disable<\/b> to temporarily disable use of the Twitter channel for your Bot. To enable use of the Twitter, click <b>Enable<\/b>.<\/li>\n<li><b>Delete<\/b> \u2013 Click <b>Delete<\/b>, and then click <b>OK<\/b> in the <b>Delete Confirmation<\/b> dialog to permanently delete the Bot channel configuration.<\/li>\n<\/ul>\n<div class=\"alert alert-warning\"><b>Warning:<\/b> This operation is permanent, and cannot be undone.<\/div>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<div class=\"w-separator size_medium with_line width_default thick_1 style_solid color_border align_center\"><div class=\"w-separator-h\"><\/div><\/div><\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"To set up Twitter as a channel, you need to associate the bot with a Twitter account, define a Twitter app and enable the integration. To add Twitter as a channel, you need to: Create Twitter App- Log on to Twitter and in Twitter App Management Console create an app to provide authorization for communication...","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[25],"tags":[],"class_list":["post-17935","post","type-post","status-publish","format-standard","hentry","category-channel-enablement"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/17935","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/comments?post=17935"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/17935\/revisions"}],"predecessor-version":[{"id":20781,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/17935\/revisions\/20781"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/media?parent=17935"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/categories?post=17935"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/tags?post=17935"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}