{"id":18153,"date":"2019-03-14T09:32:07","date_gmt":"2019-03-14T09:32:07","guid":{"rendered":"https:\/\/developer.kore.ai\/v9-1\/?post_type=docs&#038;p=17366"},"modified":"2021-12-31T12:43:42","modified_gmt":"2021-12-31T12:43:42","slug":"adding-the-google-chat-channel","status":"publish","type":"post","link":"https:\/\/developer.kore.ai\/v9-1\/docs\/bots\/channel-enablement\/adding-the-google-chat-channel\/","title":{"rendered":"Adding the Google Chat 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 launch your bot on Google chat, you must:<\/p>\n<ul>\n<li>Enable Google Chat API<\/li>\n<li>Create a Service Account<\/li>\n<li>Set Up the Integration.<\/li>\n<li>Set Up the Bot Configurations<\/li>\n<\/ul>\n<h2><span class=\"ez-toc-section\" id=\"Enable_Google_Chat_API\">Enable Google 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> Google 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>Google Chat API<\/strong>.<br \/><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"696\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115432\/Google-Chat-API-1.png\" alt=\"\" class=\"alignnone size-medium wp-image-32059\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115432\/Google-Chat-API-1.png 1536w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115432\/Google-Chat-API-1-300x136.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115432\/Google-Chat-API-1-1024x464.png 1024w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/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>.<br \/><img loading=\"lazy\" decoding=\"async\" width=\"1518\" height=\"752\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115918\/Google-Chat-API-2.png\" alt=\"\" class=\"alignnone size-medium wp-image-32060\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115918\/Google-Chat-API-2.png 1518w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115918\/Google-Chat-API-2-300x149.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231115918\/Google-Chat-API-2-1024x507.png 1024w\" sizes=\"auto, (max-width: 1518px) 100vw, 1518px\" \/><\/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<\/strong>.<br \/><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"754\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122026\/Google-Chat-API-3.png\" alt=\"\" class=\"alignnone size-medium wp-image-32062\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122026\/Google-Chat-API-3.png 1536w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122026\/Google-Chat-API-3-300x147.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122026\/Google-Chat-API-3-1024x503.png 1024w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/li>\n<li>From the <strong>Service account<\/strong> drop-down list, select the <strong>New service account<\/strong> option.<\/li>\n<li><span style=\"font-weight: 400;\">Provide a name for your service account, service account description, and click <\/span><b>Create and Continue<\/b><span style=\"font-weight: 400;\">.<img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"754\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122242\/Google-Chat-API-4.png\" alt=\"\" class=\"alignnone size-medium wp-image-32063\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122242\/Google-Chat-API-4.png 1536w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122242\/Google-Chat-API-4-300x147.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122242\/Google-Chat-API-4-1024x503.png 1024w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/span><\/li>\n<li>Once the service account is created there are 2 optional steps:\n<ul>\n<li><i><span style=\"font-weight: 400;\">Grant this service account access to project<\/span><\/i><\/li>\n<li><i>Grant users access to this service account<\/i><\/li>\n<\/ul>\n<\/li>\n<li style=\"font-weight: 400;\" aria-level=\"1\">Click on the <strong>Done<\/strong> button.<img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"696\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122538\/Google-Chat-API-5.png\" alt=\"\" class=\"alignnone size-medium wp-image-32064\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122538\/Google-Chat-API-5.png 1536w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122538\/Google-Chat-API-5-300x136.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122538\/Google-Chat-API-5-1024x464.png 1024w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/li>\n<li><span style=\"font-weight: 400;\">Once a service account is created navigate to the <\/span><b>Credentials <\/b><span style=\"font-weight: 400;\">page and click on <\/span><b>Manage service accounts<\/b>.<img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"754\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122731\/Google-Chat-API-6.png\" alt=\"\" class=\"alignnone size-medium wp-image-32065\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122731\/Google-Chat-API-6.png 1536w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122731\/Google-Chat-API-6-300x147.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122731\/Google-Chat-API-6-1024x503.png 1024w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/li>\n<li><span style=\"font-weight: 400;\">Navigate to the <\/span><b>Manage service accounts <\/b><span style=\"font-weight: 400;\">page<\/span>.<\/li>\n<li><span style=\"font-weight: 400;\">From the Manage service accounts page click on <strong>Manage keys<\/strong><\/span>.<br \/><img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"754\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122837\/Google-Chat-API-7png.png\" alt=\"\" class=\"alignnone size-medium wp-image-32066\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122837\/Google-Chat-API-7png.png 1536w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122837\/Google-Chat-API-7png-300x147.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122837\/Google-Chat-API-7png-1024x503.png 1024w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/li>\n<li><span style=\"font-weight: 400;\">From the <\/span><b>Manage Keys <\/b><span style=\"font-weight: 400;\">page click on <\/span><b>Add Key <\/b><span style=\"font-weight: 400;\">button, select <\/span><b>Create new key <\/b><span style=\"font-weight: 400;\">from the drop down, select JSON option, and click on <\/span><b>Create <\/b><span style=\"font-weight: 400;\">button.<img loading=\"lazy\" decoding=\"async\" width=\"1536\" height=\"754\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122952\/Google-Chat-API-8.png\" alt=\"\" class=\"alignnone size-medium wp-image-32067\" srcset=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122952\/Google-Chat-API-8.png 1536w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122952\/Google-Chat-API-8-300x147.png 300w, https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231122952\/Google-Chat-API-8-1024x503.png 1024w\" sizes=\"auto, (max-width: 1536px) 100vw, 1536px\" \/><\/span><\/li>\n<\/ol>\n<p><span style=\"font-weight: 400;\">A JSON file will be generated and you need to copy the <\/span><i><span style=\"font-weight: 400;\">client_email, and private_key <\/span><\/i><span style=\"font-weight: 400;\">that needs to be inputted into the respective section of the configurations tab of the channel setup page.<\/span><\/p>\n<h3><span class=\"ez-toc-section\" id=\"Set_Up_the_Bot_Configurations\">Set Up the Bot Configurations<\/span><\/h3>\n<ol>\n<li><span style=\"font-weight: 400;\">In the Bot Platform, navigate to the <strong>Configuration<\/strong> page for the Google Chat channel. <\/span><\/li>\n<li>Enter the following configuration details:\n<ul>\n<li><b>WEBHOOK URL <\/b>&#8211; Copy this URL and provide it in the Configurations of Google Chat API page.<\/li>\n<li><b>Client Email <\/b>&#8211; <span style=\"font-weight: 400;\">Copy the value of the <em>client_email<\/em> field present in the credentials JSON file of your Service Account and enter it here.<\/span><\/li>\n<li><b>Private Key <\/b>&#8211; <span style=\"font-weight: 400;\">Copy the value of the <em>private_key<\/em> field present in the credentials JSON file of your Service Account and enter it here<\/span><\/li>\n<\/ul>\n<\/li>\n<li><span style=\"font-weight: 400;\">Select the <strong>Yes<\/strong> and click <strong>Save<\/strong> to enable Google Chat channel.<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/kore-wordpress.s3.us-east-2.amazonaws.com\/developer.kore.ai\/v9-1\/wp-content\/uploads\/sites\/22\/20211231123059\/Google-Chat-API-9.png\" alt=\"\" width=\"500\" height=\"200\" class=\"alignnone size-medium wp-image-32068\" \/><\/span><\/li>\n<\/ol>\n\r\n\t\t<\/div>\r\n\t<\/div>\r\n<\/div><\/div><\/div><\/div><\/div><\/section>\n","protected":false},"excerpt":{"rendered":"To launch your bot on Google chat, you must: Enable Google Chat API Create a Service Account Set Up the Integration. Set Up the Bot Configurations Enable Google Chat API Log in to Google Developer Console. Click Enable APIs and Services. Search and select Google Chat API. Click Enable. On enabling the API, you are...","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-1\/wp-json\/wp\/v2\/posts\/18153","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/comments?post=18153"}],"version-history":[{"count":7,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/18153\/revisions"}],"predecessor-version":[{"id":32070,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/posts\/18153\/revisions\/32070"}],"wp:attachment":[{"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/media?parent=18153"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/categories?post=18153"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/developer.kore.ai\/v9-1\/wp-json\/wp\/v2\/tags?post=18153"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}