Skip to main content

i-Digital: WhatsApp as an inbound 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 inbound channel:

  1. Creating a channel in JAICP
  2. Setting up the i-Digital service
  3. Testing a bot

Creating a channel in JAICP

Go to JAICP and click Channels → Inbound → Connect 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.
  • Account name — enter the name of your WhatsApp business account if you are going to use the bot for outbound text communications.
  • Branch — specify the project branch you want to deploy into the channel (master by default). You can also select a Git tag or enter a specific commit hash.
  • Agent — select an agent channel or leave blank.
  • Deployment — select Automatic (whenever any change made to the project is saved) or Manual (using the Deploy button in the channel description line).
You have to deploy a script before starting the bot. At this stage, the system builds the bot, checks the 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.

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 dialog with your bot should start.

Sending attached data details

When a client sends a message with files (images, videos, documents, or audio files), 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.