{"id":18153,"date":"2019-03-14T09:32:07","date_gmt":"2019-03-14T09:32:07","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-0\/?post_type=docs&#038;p=17366"},"modified":"2021-05-05T07:06:11","modified_gmt":"2021-05-05T06:06:11","slug":"adding-the-hangouts-chat-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-0\/docs\/bots\/channel-enablement\/adding-the-hangouts-chat-channel\/","title":{"rendered":"Adding the Hangouts Chat Channel"},"content":{"rendered":"<p>To launch your bot on Hangouts chat, you must:<\/p>\n<ul>\n<li>Enable Hangouts Chat API<\/li>\n<li>Create a Service Account<\/li>\n<li>Set Up the Integration.<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Enable_Hangouts_Chat_API\">Enable Hangouts Chat API<\/span><\/h2>\n<ol>\n<li>Log in to <a href=\"https:\/\/console.developers.google.com\/projectselector2\/apis\/dashboard?pli=1\" target=\"_blank\" rel=\"noopener noreferrer\">Google Developer Console.<\/a><\/li>\n<li>Click <strong>Enable APIs and Services<\/strong>.<\/li>\n<li>Search and select<strong> Hangouts Chat API<\/strong>.<\/li>\n<li>Click <strong>Enable<\/strong>.<\/li>\n<li>On enabling the API, you are redirected to the <strong>Overview<\/strong> page of the <strong>Hangouts Chat API<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/hangouts1.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17377\" src=\"\/wp-content\/uploads\/sites\/21\/hangouts1.png\" alt=\"\" width=\"820\" height=\"369\" \/><\/a><\/li>\n<\/ol>\n<h3><span class=\"ez-toc-section\" id=\"Set_Up_API_Configurations\">Set Up API Configurations<\/span><\/h3>\n<ol>\n<li>Go to the <strong>Configurations<\/strong> section from the left pane and provide all the required details like:\n<ul>\n<li>Bot name<\/li>\n<li>Avatar URL<\/li>\n<li>Description<\/li>\n<\/ul>\n<\/li>\n<li>Under <b>Functionality<\/b> choose both <strong>Bot works in direct messages <\/strong>and <strong>Bot works in rooms<\/strong> options.<\/li>\n<li>Under <strong>Connection Settings<\/strong>:\n<ul>\n<li>Select the <strong>Bot URL<\/strong> option.<\/li>\n<li>Enter the <strong>Webhook URL<\/strong> provided by Kore.ai from the <strong>Configurations<\/strong>\u00a0tab of the channel setup page.<\/li>\n<\/ul>\n<\/li>\n<li>Select the appropriate option under <strong>Permissions<\/strong>.<\/li>\n<li>Copy the <em>verification token<\/em> and enter it in the <strong>Verification Token<\/strong> field present in the <strong>Configurations<\/strong> tab of the Hangouts channel setup page of the Bot Builder.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/hangouts2.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17378\" src=\"\/wp-content\/uploads\/sites\/21\/hangouts2.png\" alt=\"\" width=\"820\" height=\"666\" \/><\/a><\/li>\n<\/ol>\n<h2><span class=\"ez-toc-section\" id=\"Create_a_Service_Account\">Create a Service Account<\/span><\/h2>\n<p>You must set up the credentials to facilitate the integration.<\/p>\n<ol>\n<li>From the Credentials page, click <strong>Create credentials<\/strong> and select the <strong>Service account key<\/strong>.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/hangouts3.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17376\" src=\"\/wp-content\/uploads\/sites\/21\/hangouts3.png\" alt=\"\" width=\"820\" height=\"361\" \/><\/a><\/li>\n<li>From the <strong>Service account<\/strong> drop-down list, select the <strong>New service account<\/strong> option.<\/li>\n<li>Enter a name for your service account.<\/li>\n<li>Select <strong>Key type<\/strong> as <strong>JSON<\/strong>, and click <strong>Create<\/strong>.<\/li>\n<li>After the creation, a JSON file containing the credentials is downloaded to your computer.<\/li>\n<li>From the downloaded file, capture <em>client_email<\/em> and <em>private_key<\/em> values and provide them in the <strong>Configurations<\/strong> tab of the Hangouts channel setup page of the Bot Builder.<br \/>\n<a ref=\"magnificPopup\" href=\"\/wp-content\/uploads\/sites\/21\/hangouts4.png\"><img loading=\"lazy\" decoding=\"async\" class=\"alignnone size-full wp-image-17411\" src=\"\/wp-content\/uploads\/sites\/21\/hangouts4.png\" alt=\"\" width=\"820\" height=\"436\" \/><\/a><\/li>\n<\/ol>\n<p>Complete the Hangouts Chat Configuration from the bots platform and publish the bot to access the bot from Hangouts.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>To launch your bot on Hangouts chat, you must: Enable Hangouts Chat API Create a Service Account Set Up the Integration. Enable Hangouts Chat API Log in to Google Developer Console. Click Enable APIs and Services. Search and select Hangouts Chat API. Click Enable. On enabling the API, you are redirected to the Overview page&#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-18153","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\/18153","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=18153"}],"version-history":[{"count":3,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18153\/revisions"}],"predecessor-version":[{"id":27342,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/posts\/18153\/revisions\/27342"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/media?parent=18153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/categories?post=18153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-0\/wp-json\/wp\/v2\/tags?post=18153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}