{"id":18037,"date":"2018-01-31T12:20:51","date_gmt":"2018-01-31T12:20:51","guid":{"rendered":"http:\/\/developer.kore.ai\/developer-2\/?post_type=docs&#038;p=13178"},"modified":"2021-03-25T10:12:35","modified_gmt":"2021-03-25T10:12:35","slug":"adding-the-jabber-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-0\/docs\/bots\/channel-enablement\/adding-the-jabber-channel\/","title":{"rendered":"Adding the Jabber Channel"},"content":{"rendered":"<p>To add Jabber as a channel to your Kore.ai bot, you will need to enable Webhook integration on your Jabber application. Adding the Jabber channel to your Kore.ai Bot allows end users for your bot to interact with your bot using their <em>Jabber<\/em> accounts. To add the Jabber channel to your Bot, you will need to:<\/p>\n<ol>\n<li><b>Enable Webhook Integration- <\/b>To enable Jabber as a channel for your bot, you will need to set up a webhook integration on your Jabber Application. Copy the Webhook URL from the configurations tab on the Jabber channel page and enter in the required field in Jabber App for integration.<\/li>\n<li><b>Enable Channel<\/b>&#8211; After enabling webhook integration and entering configuration data in Bot Builder, you need to enable the channel.<\/li>\n<\/ol>\n<h5><strong>To add the Jabber channel<\/strong><\/h5>\n<p>To complete the following procedure, you must have, or register for a developer account in the <em>Jabber<\/em> portal.<\/p>\n<ol>\n<li>In the <b>Bots<\/b> section of the Bot Builder, click the Bot that 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> gets displayed.<\/li>\n<li>To enable a webhook integration on your Jabber Application, login to your Jabber App. Copy the <strong>Webhook URL<\/strong> from the configurations tab on the Jabber channel page and enter in the Webhook URL field in Jabber App for integration<\/li>\n<li>Navigate to Configurations 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 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 provide in the<b> Access Token field<\/b> to enable secure communication between Jabber and Bot.<\/li>\n<li>Select <b>Yes<\/b> and click on <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><strong>Payload for Post URL<\/strong><\/h5>\n<p>Below is the response message from bot that should be accepted by the POST URL that is registered in the Configurations 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><strong>Webhook Payload<\/strong><\/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=\"Editing_the_Jabber_Channel\">Editing the Jabber Channel<\/span><\/h1>\n<p>To edit the Jabber 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\/jabber-edit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"aligncenter wp-image-13179\" src=\"\/wp-content\/uploads\/sites\/11\/jabber-edit.png\" alt=\"\" width=\"450\" height=\"162\" \/><\/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 Jabber channel for your Bot.To enable use of the Jabber channel, 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<li style=\"list-style-type: none\"><\/li>\n<\/ul>\n<div class=\"alert alert-warning\"><b>Warning:<\/b> This operation is permanent, and cannot be undone.<\/div>\n","protected":false},"excerpt":{"rendered":"<p>To add Jabber as a channel to your Kore.ai bot, you will need to enable Webhook integration on your Jabber application. Adding the Jabber channel to your Kore.ai Bot allows end users for your bot to interact with your bot using their Jabber accounts. To add the Jabber channel to your Bot, you will need&#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\/v7-0\/wp-json\/wp\/v2\/posts\/18037","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=18037"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/18037\/revisions"}],"predecessor-version":[{"id":22450,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/18037\/revisions\/22450"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/media?parent=18037"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/categories?post=18037"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/tags?post=18037"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}