Skip to main content

edna WhatsApp 2.0 as an inbound channel

With edna, you can:

  • automate processes;
  • create an ecosystem for dialog between your company and customers;
  • integrate various channels, like WhatsApp, into your ecosystem.
tip
The edna WhatsApp 2.0 channel allows you to use cascades. A cascade is a fallback delivery scenario that you use in a broadcast. Learn more about how to create cascades in the edna documentation.

To use edna WhatsApp 2.0 as an inbound channel in JAICP:

  1. Create a channel
  2. Set up the edna service
  3. Test the bot
  4. Deploy the bot

Creating a channel

  1. Go to JAICP and select Channels → Inbound → Connect channel in the dashboard. Select edna WhatsApp 2.0 in the Messengers and social networks section.

  2. Fill out the fields:

    • Name — specify a name for the channel or keep the default one.

    • API key — paste the edna API key:

      1. Log in to the edna platform as an administrator.
      2. On the sidebar, go to the Integration section → Testing.
      3. Copy your API key.
    • Cascade — this field will become available when you paste your API key. Select a cascade.

    • 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 a customer engagement platform or leave it 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.

  3. Click Create.

  4. Under the name of the created channel, select Get webhook. It will be copied to the clipboard. You will need it later when you set up the edna service.

Setting up the edna service

  1. Log in to the edna platform as an administrator. On the sidebar, go to the Integration section → Testing.

  2. Paste your webhook in the Incoming messages are sent to field.

  3. Specify the phone numbers that you will use to test the functionality of the chatbot.

Testing the bot

To test the work of the chatbot, go to the Integration section on the sidebar → Testing and follow edna instructions.

Deploying the bot

tip
First, you need to get a Company ID in Facebook Business Manager. If you already have one, follow the instructions below.

To deploy your bot, create a channel on the edna side:

  1. On the sidebar, go to the Settings section → Channels.

  2. Select Add channel +WhatsApp.

  3. Fill in the form to register this channel.