{"id":18037,"date":"2018-01-31T12:20:51","date_gmt":"2018-01-31T12:20:51","guid":{"rendered":"http:\/\/developer.kore.ai\/v9-0\/?post_type=docs&#038;p=13178"},"modified":"2021-05-05T06:59:50","modified_gmt":"2021-05-05T05:59:50","slug":"adding-the-jabber-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-0\/docs\/bots\/channel-enablement\/adding-the-jabber-channel\/","title":{"rendered":"Adding the Jabber Channel"},"content":{"rendered":"<p>To add Cisco Jabber as a channel to your Kore.ai bot, you must enable Webhook integration on your Jabber application. Adding the Jabber channel to your Kore.ai bot allows end-users of your bot to interact with your bot using their <em>Jabber<\/em> accounts. To add the Jabber channel to your bot, you must:<\/p>\n<ol>\n<li><b>Enable Webhook Integration <\/b>&#8211; To enable Jabber as a channel for your bot, you must set up a webhook integration on your Jabber application. Copy the <strong>Webhook URL<\/strong> from the <strong>Configurations<\/strong> tab on the Jabber channel page and enter the required field in the Jabber app for integration.<\/li>\n<li><b>Enable Channel <\/b>&#8211; After enabling webhook integration and entering configuration data in Bot Builder, enable the channel.<\/li>\n<\/ol>\n<p>You must have or register for a developer account in the <em>Jabber<\/em> portal. To add the Cisco Jabber channel, follow the below steps:<\/p>\n<ol>\n<li>In the <b>Bots<\/b> section of the Bot Builder, click the bot you want to add the Jabber channel to.<\/li>\n<li>On the <b>Channels<\/b> tab, click the<b> Jabber<\/b> icon. The <b>Jabber Channel<\/b> <b>page<\/b> is displayed.<\/li>\n<li>To enable a webhook integration on your Jabber application, log in to your Jabber app. Copy the <strong>Webhook URL<\/strong> from the <strong>Configurations<\/strong> tab on the Jabber channel page and enter the <strong>Webhook URL<\/strong> field in the Jabber app for integration.<\/li>\n<li>Go to the <strong>Configurations<\/strong> tab on the Jabber channel page to complete the channel setup.<\/li>\n<li>Capture the <b>POST URL<\/b> details from your Jabber app and enter them in the <b>POST URL<\/b> field.<\/li>\n<li>You can also optionally generate and capture the <b>Access Token <\/b>details from your Jabber integration and enter in the<b> Access Token field<\/b> to enable secure communication between Jabber and bot.<\/li>\n<li>Select <b>Yes<\/b> and click <b>Save<\/b> to enable Jabber Channel.<\/li>\n<\/ol>\n<p>Following are code snippets of the payload formats for verifying the integration.<\/p>\n<h5>Payload for Post URL<\/h5>\n<p>Below is the response message from the bot that must be accepted by the POST URL that is registered in the <strong>Configurations<\/strong> tab.<\/p>\n<pre>   {\r\n                \"message\": {\r\n                \"text\" : \"Hi\"\r\n                }\r\n                \"to\" : \"&lt;recipient-id\/group-id&gt;\",\r\n                \"from\" : \"&lt;sender-id&gt;\"\r\n             }<\/pre>\n<h5>Webhook Payload<\/h5>\n<p>Below is the Webhook payload format to post messages to Kore.ai Bots Platform from Jabber.<\/p>\n<pre>  {\r\n                \"message\": {\r\n                    \"text\" : \"&lt;Message&gt;\",\r\n                    \"attachments\" : [&lt;array of attachment links (optional)&gt;]\r\n                },\r\n                \"from\" : {\r\n                    \"id\": \"&lt;unique-id-of-sender(mandatory)&gt;\",\r\n                    \"userInfo\" : {\r\n                      \"firstName\" : \"&lt;first-name(optional)&gt;\",\r\n                      \"lastName\" : \"&lt;second-name(optional)&gt;\",\r\n                      \"email\" : \"&lt;email(optional)&gt;\"\r\n                    }\r\n                },\r\n                \"to\" : {\r\n                    \"id\": &lt;unique-id-of-recipient(mandatory)&gt;,\r\n                    \"groupInfo\" : { \/\/If message comes from a group\/team\/room conversations.\r\n                        \"id\" : \"&lt;unique-id-of-group&gt;\",\r\n                        \"name\": \"&lt;group-name(optional)&gt;\"\r\n                    }\r\n                }\r\n            }\r\n<\/pre>\n<h1><span class=\"ez-toc-section\" id=\"Edit_Jabber_Channel\">Edit Jabber Channel<\/span><\/h1>\n<p>To edit the Jabber channel, follow the below steps:<\/p>\n<ol>\n<li>Hover over the channel and click to modify. You can make necessary updates to your channel configurations and save them.<\/li>\n<li>You can also disable or delete the channel information by clicking the <b>Settings<\/b> icon.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/jabber-edit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13179\" src=\"\/wp-content\/uploads\/sites\/21\/jabber-edit.png\" alt=\"\" width=\"450\" height=\"162\" \/><\/a><br \/>\nSelect one of the following commands to modify the channel:<\/li>\n<\/ol>\n<ul>\n<li><b>Disable\/Enable<\/b> &#8211; Click <b>Disable<\/b> to temporarily disable the use of the Jabber channel for your bot. To enable the use of the Jabber channel, Click <b>Enable.<\/b><\/li>\n<li><b>Delete<\/b> &#8211; Click <strong>Delete<\/strong>. On the Delete Confirmation dialog box, click <strong>OK <\/strong>to permanently delete the bot channel configuration.<\/li>\n<li style=\"list-style-type: none\"><\/li>\n<\/ul>\n<div class=\"alert alert-warning\">Warning: This operation is permanent and cannot be undone.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To add Cisco Jabber as a channel to your Kore.ai bot, you must enable Webhook integration on your Jabber application. Adding the Jabber channel to your Kore.ai bot allows end-users of your bot to interact with your bot using their Jabber accounts. To add the Jabber channel to your bot, you must: Enable Webhook Integration&#8230;<\/p>\n","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-18037","post","type-post","status-publish","format-standard","hentry","category-channel-enablement"],"_links":{"self":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18037","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/comments?post=18037"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18037\/revisions"}],"predecessor-version":[{"id":27337,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18037\/revisions\/27337"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/media?parent=18037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/categories?post=18037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/tags?post=18037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}