{
    "componentChunkName": "component---src-templates-doc-page-js",
    "path": "/docs/en/channels/iDigital/whatsapp/",
    "result": {"data":{"site":{"siteMetadata":{"title":"Gatsby-doc-engine"}},"markdownRemark":{"id":"e8e7af06-fcb4-512f-9d2e-748b7b1c9f35","excerpt":"i-Digital: WhatsApp as an incoming channel The i-Digital company is a partner and service provider that helps you to create and get a WhatsApp Business account…","html":"<h1>i-Digital: WhatsApp as an incoming channel</h1>\n<hr>\n<p><a href=\"https://i-dgtl.ru/kontakty/\" target=\"_blank\" rel=\"noopener noreferrer\">The i-Digital company</a> is a partner and service provider that helps you to create and get a WhatsApp Business account that can be used to enable JAICP chatbots in WhatsApp.</p>\n<p>Do the following to use i-Digital WhatsApp as an incoming channel:</p>\n<ol>\n<li><a href=\"#creating-a-channel-in-jaicp\">Creating a channel in JAICP</a></li>\n<li><a href=\"#setting-up-the-i-digital-service\">Setting up the i-Digital service</a></li>\n<li><a href=\"#the-script\">The script</a></li>\n<li><a href=\"#testing-a-bot\">Testing a bot</a></li>\n</ol>\n</br>\n<h4>Creating a channel in JAICP</h4>\n<p>Go to the JAICP platform and click <em>Channels</em> > <em>Create channel</em> in the dashboard. Select <em>i-Digital WhatsApp</em> in the <em>Messengers and social networks</em> section.</p>\n<p>Fill out the fields:</p>\n<ul>\n<li><em>Name</em> — specify a name for the channel or keep the default one.</li>\n<li><em>Access token</em> — leave the field blank.</li>\n<li><em>Branch</em> — specify the project branch you want to deploy to the channel (<code class=\"language-text\">master</code> by default).</li>\n<li><em>Agent</em> — select an agent channel or leave blank.</li>\n<li><em>Deploy</em> — select <em>Automatic</em> (each time any change made to the project is saved) or <em>Manual</em> (using the <em>Publish</em> button in the channel description line).</li>\n</ul>\n<p class='tip'>Please note the <em>Deploy</em> 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>Setting up the i-Digital service</h4>\n<p>Click <em>Get webhook</em> under the name of the newly created channel. The hook URL for i-Digital WhatsApp will be copied to the clipboard. Pass the webhook you copied to the <a href=\"https://i-dgtl.ru/kontakty/\" target=\"_blank\" rel=\"noopener noreferrer\">i-Digital</a> manager.</p>\n</br>\n<h4>The script</h4>\n<p>When a client sends a message with attached data (graphics, video, document or audio file), <code class=\"language-text\">event: fileEvent</code> is sent in the script. Content from <em>i-Digital WhatsApp</em> in the JSON format, containing the content type and the link to the file being sent, is submitted in <code class=\"language-text\">eventData</code>.</p>\n<p class='warn'><a href=https://i-dgtl.ru/api/#whatsapp target=\"_blank\" rel=\"noopener noreferrer\">Learn more about sending messages with attached data</a></p>\n</br>\n<h4>Testing a bot</h4>\n<p>Open the bot dialog window in the connected messenger and send a welcome/activating phrase to it according to your script. Then a dialogue with your bot should start.</p>","frontmatter":{"title":"","description":null},"headings":[{"value":"i-Digital: WhatsApp as an incoming channel"}]}},"pageContext":{"slug":"/docs/en/channels/iDigital/whatsapp/","previous":{"fields":{"slug":"/docs/en/channels/mfms/whatsapp/"},"frontmatter":{"title":"","description":null}},"next":{"fields":{"slug":"/docs/en/channels/google_assistant/jaicf/"},"frontmatter":{"title":"","description":null}}}},
    "staticQueryHashes": ["1209419333"]}