{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/channels/google_assistant/channel_google_assistant/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"a771d193-0780-57fe-8fe7-a3e4a543ada6","excerpt":"Google Assistant as an incoming channel?> Learn more about connecting Google Assistant to JAICF project To create an Action and deploy the bot into it, please…","html":"<h1>Google Assistant as an incoming channel</h1>\n<hr>\n<p class='warn'><a href=/1.10.3/docs/en/channels/google_assistant/jaicf  >Learn more about connecting Google Assistant to JAICF project</a></p>\n<p>To create an <em>Action</em> and deploy the bot into it, please follow these steps:</p>\n<ol>\n<li><a href=\"#Create-a-channel\">Create a Google Assistant channel</a>.</li>\n<li><a href=\"#Action-Package\">Download Action Package</a>.</li>\n<li><a href=\"#Action-registration\">Register your Action in the Actions Console</a>.</li>\n<li><a href=\"#Activation-phrase\">Create an activation phrase</a>.</li>\n<li><a href=\"#Project-ID\">Copy the Project ID</a>.</li>\n<li><a href=\"#gactions\">Download gactions</a>.</li>\n<li><a href=\"#Upload-the-Action-Package-into-your-project\">Upload the Action Package into your project</a>.</li>\n<li><a href=\"#Test-it\">Test your bot in the Actions Console simulator</a>.</li>\n</ol>\n</br>\n<h4>Create a channel</h4>\n<p>Click the <em>Channels</em> tab on the side panel > <em>Create channel</em>. Choose <em>Google Assistant</em>.</p>\n<p>Fill in the fields:</p>\n<ul>\n<li><em>Channel name</em> — choose any name you like. You can change it later.</li>\n<li><em>Web app URL</em> — specify the link to <a href=\"/1.10.3/docs/en/channels/google_assistant/interactive_canvas\">Interactive Canvas</a> web application.</li>\n<li><em>Branch</em> — the project branch that will be deployed into a channel; <code class=\"language-text\">master</code> by default.</li>\n<li><em>Deploy</em> — select <em>Automatic</em> (each time after changes in the project are saved) or <em>Manual</em> (with the Publish button in the channel description bar).</li>\n<li><em>Add trigger</em> — here you can add the phrases that will be associated with your action. If the user says one of these phrases, Google Assistant will suggest activating your action.</li>\n</ul>\n<p class='tip'>Please note the Deploy radio button. You have to deploy a script before starting the chatbot. At this stage, the system builds the chatbot, checks script syntax and performs tests.</p>\n<p>Click <em>Create</em>. Wait for a pop-up window with the deploy result to appear.</p>\n</br>\n<h4>Action Package</h4>\n<p>Download the JSON from your Action Package. To do that, click the link <em>Download action.json</em> under the name of the newly added channel.</p>\n</br>\n<h4>Action registration</h4>\n<p>Proceed to <a href=\"https://console.actions.google.com/\" target=\"_blank\" rel=\"noopener noreferrer\">Action Console</a> and create a new project. To do that, click <em>Add/import Project</em>. Set the name of the project, the language and your country. Choose a category and a subcategory from the suggested options.</p>\n</br>\n<h4>Activation phrase</h4>\n<p>After you choose a category, you will see an admin panel. Click <em>Setup</em> > <em>Invocation</em>. In the <em>Display name</em> field set the activation phrase.</p>\n<p>Here you can also choose the voice that the bot will use to talk to users. Save the changes</p>\n</br>\n<h4>Project ID</h4>\n<p>Click the Gear icon and proceed to the <em>Project settings</em> to copy <em>Project ID</em>.</p>\n</br>\n<h4>gactions</h4>\n<p>Download the <a href=\"https://developers.google.com/actions/tools/gactions-cli\" target=\"_blank\" rel=\"noopener noreferrer\">gactions</a> software for your OS. You don’t need to execute this file, just proceed to the next step.</p>\n</br>\n<h4>Upload the Action Package into your project</h4>\n<p>Open the Command Prompt (for Windows) or terminal (Mac OS, Linux). Proceed to the folder containing your gations and the JSON-file for the Action Package. Run this command:</p>\n<div class=\"gatsby-highlight\" data-language=\"text\"><pre class=\"language-text\"><code class=\"language-text\">gactions update --action_package PACKAGE_NAME --project PROJECT_ID</code></pre></div>\n<p>Use the name of the JSON-file instead of <code class=\"language-text\">PACKAGE_NAME</code> here. Use your <code class=\"language-text\">Project ID</code> that you have copied previously instead of <em>PROJECT_ID</em>. Click <code class=\"language-text\">Enter</code>.</p>\n<p>You will be asked to authorized. Open the suggested url, copy the authorization code and paste it into the command prompt or terminal.</p>\n</br>\n<h4>Test it</h4>\n<p>Now you can test the Action using the device supporting Google Assistant in the same account that you used to create the project. You can also test your bot in the Action Console simulator (you can find it in the Actions console).</p>\n<p>Before testing, check the permissions for activity controls. To do that, proceed to your Google account > <em>Privacy &#x26; personalization</em> > <em>Manage your data &#x26; personalization</em> > <em>Activity controls</em>.</p>\n<p>The following settings should be turned on:</p>\n<ul>\n<li>Web &#x26; App Activity;</li>\n<li>Device Information;</li>\n<li>Voice &#x26; Audio Activity.</li>\n</ul>","frontmatter":{"title":"","description":null},"headings":[{"value":"Google Assistant as an incoming channel"}]}},"pageContext":{"slug":"/docs/en/channels/google_assistant/channel_google_assistant/","previous":{"fields":{"slug":"/docs/en/channels/google_assistant/google_assistant/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/channels/facebook/transfer_parameters/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}