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 that can be used to enable JAICP chatbots in WhatsApp.
Do the following to use i-Digital WhatsApp as an incoming channel:
Creating a channel in JAICP
Go to the JAICP platform and click Channels > Create channel in the dashboard. Select i-Digital WhatsApp in the Messengers and social networks section.
Fill out the fields:
- Name — specify a name for the channel or keep the default one.
- Access token — leave the field blank.
- Branch — specify the project branch you want to deploy to the channel (
masterby default). - Agent — select an agent channel or leave blank.
- Deploy — select Automatic (each time any change made to the project is saved) or Manual (using the Publish button in the channel description line).
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.
Click Create. Wait for a pop-up window with the deploy result to appear.
Setting up the i-Digital service
Click Get webhook 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 i-Digital manager.
The script
When a client sends a message with attached data (graphics, video, document or audio file), event: fileEvent is sent in the script. Content from i-Digital WhatsApp in the JSON format, containing the content type and the link to the file being sent, is submitted in eventData.
Learn more about sending messages with attached data
Testing a bot
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.