{"id":17987,"date":"2017-03-28T16:54:39","date_gmt":"2017-03-28T16:54:39","guid":{"rendered":"https:\/\/developer.kore.com\/?post_type=docs&#038;p=10652"},"modified":"2021-03-25T10:07:07","modified_gmt":"2021-03-25T10:07:07","slug":"adding-the-facebook-workplace-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v7-0\/docs\/bots\/channel-enablement\/adding-the-facebook-workplace-channel\/","title":{"rendered":"Adding the Workplace by Facebook 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 add the Workplace by Facebook channel to your bot, you will need a developer portal <em>Facebook<\/em>\u00a0account to configure the connection between <em>Facebook Workplace<\/em> and Kore.ai. Adding the Workplace by\u00a0Facebook channel to your Kore.ai bot is a 3-step process to allow end-users for your bot to interact with your bot using their <em>Facebook<\/em>\u00a0<em>Workplace<\/em> accounts. To add the Workplace by\u00a0Facebook channel to your bot, you will need to:<\/p>\n<ol>\n<li><strong>Create a\u00a0Custom Integration<\/strong>\u00a0&#8211; In your <em>Facebook Workplace<\/em>\u00a0admin account, you will need to create an app to provide authorization for communication between <em>Facebook Workplace<\/em> and your Kore.ai bot.\u00a0To create a <em>Facebook<\/em> app, you must have\u00a0an admin account.<\/li>\n<li><strong>Define Permissions<\/strong>\u00a0&#8211; Select which permissions the bot can use to interact with your bot in the Workplace by Facebook channel.<\/li>\n<li><strong>Get App Secret and Token<\/strong> &#8211;\u00a0To use <em>Facebook Workplace<\/em>, you must generate an access token, and copy the app secret from Facebook Workplace into bot Builder to provide authentication for communications.<\/li>\n<\/ol>\n<p><strong>To add the Workplace by\u00a0Facebook channel<\/strong><br \/>\nTo complete the following procedure, you must have, or register for a new admin\u00a0account in the <em>Facebook Workplace Developers Portal<\/em>\u00a0at\u00a0<span style=\"color: #0000ff\">https:\/\/&lt; <strong><em>Your Domain<\/em><\/strong> &gt;.facebook.com\/work\/admin<\/span>.<\/p>\n<ol>\n<li>In Bot Builder, in the <strong>Bots<\/strong>\u00a0section, click\u00a0the bot that\u00a0you want to add the Workplace by\u00a0Facebook channel to.<\/li>\n<li>On the <strong>Channels<\/strong>\u00a0tab, click the <strong>Expand<\/strong>\u00a0<img loading=\"lazy\" decoding=\"async\" class=\"icon alignnone wp-image-8615 size-full\" src=\"\/wp-content\/uploads\/sites\/11\/RightArrowIcon.png\" width=\"9\" height=\"13\" \/> icon for the <strong>Workplace by Facebook<\/strong>\u00a0section. The <strong>Workplace by Facebook Channel<\/strong>\u00a0page is displayed.<\/li>\n<li>Log in to your <em>Facebook Workplace<\/em> admin account, and then click <strong>Integrations<\/strong> on the left-hand navigation menu. The\u00a0<strong>Integrations<\/strong>\u00a0page is displayed.<\/li>\n<li>In the <strong>Available to install<\/strong>\u00a0section, click <span style=\"color: #0000ff\">Create your own custom integration<\/span>. The <strong>Create Custom Integration<\/strong>\u00a0dialog is displayed.<\/li>\n<li>In the <strong>Name<\/strong> field, enter the name of the integration\u00a0displayed to your end-users, for example,\u00a0<span style=\"color: #0000ff\">My Kore AI Custom Integration<\/span>.<\/li>\n<li>In the <strong>Description<\/strong> field, enter a description for your application, and then click <strong>Create<\/strong>. The new integration is displayed in the <strong>Installed<\/strong> section.<\/li>\n<li>Click the <strong>Settings<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"icon alignnone wp-image-11277 size-full\" src=\"\/wp-content\/uploads\/sites\/11\/DIYWorkplaceByFacebookChannelGearIcon.png\" alt=\"\" width=\"37\" height=\"32\" \/>\u00a0icon for your integration. The <strong>Edit Custom Integration<\/strong> dialog is displayed.<\/li>\n<li>To add an icon to your integration, click <strong>Update<\/strong>, select an image, and then click <strong>Crop and Save<\/strong>. You should use the same icon as your bot icon.<\/li>\n<li>In the <strong>Permissions<\/strong> section, select the following permissions:\n<ul>\n<li><strong>Read content<\/strong><\/li>\n<li><strong>Post to groups<\/strong><\/li>\n<li><strong>Message any member<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>In the <strong>App Secret<\/strong> field, click <strong>Show<\/strong>, copy the <strong>App Secret<\/strong> and then paste into the <strong>App Secret<\/strong> field on the <strong>Configuration<\/strong> tab in Bot Builder.<\/li>\n<li>In\u00a0<em>Facebook Workplace<\/em>, on the <strong>Edit Custom Integration<\/strong> dialog, in the <strong>Access Token<\/strong> section, click <strong>Create Access Token<\/strong>. The <strong>New Token Create<\/strong> dialog is displayed.<\/li>\n<li>Click <strong>Copy<\/strong> and then paste into the <strong>Access Token<\/strong>\u00a0field on the <strong>Configuration<\/strong> tab in Bot Builder.\n<p class=\"note\"><strong>Note:<\/strong> You should also save this token in a secure location for future reference as it can never be displayed again in\u00a0<em>Facebook Workplace<\/em>.<\/p>\n<\/li>\n<li>In <em>Facebook Workplace<\/em>, on the <b>New Token Created<\/b>\u00a0dialog, click <strong>I understand<\/strong>, and then click <strong>Done<\/strong>. The <strong>Edit Custom Integration<\/strong> dialog is displayed.<\/li>\n<li>Click <strong>Save<\/strong>. The custom integration is saved and the <strong>Integrations<\/strong> page\u00a0is displayed.<\/li>\n<li>In Bot Builder, on the <strong>Configuration<\/strong> tab, in the <strong>Communication Mode<\/strong> section, select one or both of the following:\n<ul>\n<li><strong>Allow communication with a Bot in a Workplace Group<\/strong><\/li>\n<li><strong>Allow communication with a Bot through a\u00a0Work Chat<\/strong><\/li>\n<\/ul>\n<\/li>\n<li>Click <strong>Yes<\/strong> in the <strong>Enable Channel<\/strong> section, and then click <strong>Save<\/strong>.<\/li>\n<\/ol>\n<p>The bot may require your\u00a0Bots Admin approval and assignment before it is available to any users.<\/p>\n<h1><span class=\"ez-toc-section\" id=\"Editing_the_Workplace_by_Facebook_Channel\">Editing the Workplace by\u00a0Facebook Channel<\/span><\/h1>\n<p>To edit the Workplace by\u00a0Facebook channel, hover your mouse over the channel to modify, and then click the <strong>Settings<\/strong> <img loading=\"lazy\" decoding=\"async\" class=\"icon alignnone wp-image-2113 size-full\" src=\"\/wp-content\/uploads\/sites\/11\/DIYSettingsIcon-1.png\" width=\"18\" height=\"18\" \/>\u00a0icon displayed to show the command menu displayed in the following illustration.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/11\/DIYChannelsTabWorkplaceByFacebookEdit.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-11278\" src=\"\/wp-content\/uploads\/sites\/11\/DIYChannelsTabWorkplaceByFacebookEdit.png\" alt=\"Channels Tab - Workplace By Facebook\" width=\"1049\" height=\"253\" \/><\/a><br \/>\nSelect one of the following commands to modify the channel:<\/p>\n<ul>\n<li><strong>Edit<\/strong> &#8211; Click to open the Workplace by\u00a0Facebook channel setup page.<\/li>\n<li><strong>Disable\/Enable<\/strong> &#8211; Click <strong>Disable<\/strong> to temporarily disable use of the Workplace by\u00a0Facebook channel for your bot. When the channel is disabled, click <strong>Enable<\/strong> to enable use of the Workplace by\u00a0Facebook channel.<\/li>\n<li><strong>Delete<\/strong> &#8211; Click <strong>Delete<\/strong>, and then click <strong>OK<\/strong> in the <strong>Delete Confirmation<\/strong> dialog to permanently delete the bot channel configuration.\n<p class=\"warning\"><strong>Warning:<\/strong> This operation is permanent, and cannot be undone.<\/p>\n<\/li>\n<\/ul>\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 add the Workplace by Facebook channel to your bot, you will need a developer portal Facebook\u00a0account to configure the connection between Facebook Workplace and Kore.ai. Adding the Workplace by\u00a0Facebook channel to your Kore.ai bot is a 3-step process to allow end-users for your bot to interact with your bot using their Facebook\u00a0Workplace accounts. To...","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-17987","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\/17987","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=17987"}],"version-history":[{"count":2,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/17987\/revisions"}],"predecessor-version":[{"id":22458,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/posts\/17987\/revisions\/22458"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/media?parent=17987"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/categories?post=17987"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v7-0\/wp-json\/wp\/v2\/tags?post=17987"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}