Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Ready to connect to the powerful WhatsApp channel? First, you'll need a Twilio account to get started.

If you don't have an account yet, no problem! Creating one is easy. Just follow the instructions below to set up your account and start testing the channel.

If you already have a paid Twilio account, you can skip these instructions and go to "How to add WhatsApp channel to Creatio using Upgraded Twilio account" section.

📘 Instructions:

Table of Contents

How to Create a Sandbox Twilio account

1. Go to https://www.twilio.com/try-twilio

2. Fill in all required fields

3. Verify your email and phone number

4. Fill in fields as you see in the screenshot:

5. Click Get started with Twilio

After creating your test Twilio account, follow these step-by-step instructions below to proceed

How to add WhatsApp channel to Creatio using Twilio Sandbox

1. Log in to Creatio by the user with the Beesender Chat Master license.

2. Go to the System Designer and open the Beesender Chat Configuration section.

3. On the Channels tab, click + and select WhatsApp.

4. Enter a name for the channel (e.g., WhatsApp) in the Channel name field

5. Copy the Webhook from the Webhook field.

6. Go to your Twilio account and log in.

7. In the left panel of the Twilio page, click on Messaging, then select Try it out and click on Send a WhatsApp message.

8. On the Sandbox settings tab, paste the webhook from Creatio into the When a message comes in field.

9. Click Save.

10. Copy the Status Webhook in the last field.

11. Paste the Status Webhook from Creatio into the Status callback URL field.

12. Click Save.

13. Copy the My Twilio phone number value from the Twilio page and paste it into the Phone Number field in Creatio in the format: "14155238886".

14. Click on My first Twilio account. On the Account Info tab you'll see three fields:

  • Account SID

  • Auth Token

15. Copy the Account SID value from this page and paste it into the Twilio AccountSid field in Creatio.

16. Copy the Auth Token value from the Twilio page and paste it into the Twilio AuthToken field in Creatio.

17. Enter the chat weight.

18. Click Add.

Copy the code generated by Twilio via WhatsApp from your number to your test account number. If the message is delivered successfully, you will receive a notification in Twilio. As a result, your number will be added to the Sandbox Participants.

Tip

That's it! You have successfully added the WhatsApp channel to Creatio using an Sandbox Twilio.

How to add WhatsApp channel to Creatio using Upgraded Twilio account

Setting up an Upgraded Twilio account is similar to setting up a Sandbox, with just a few small differences.

Follow the simple steps and you'll be up and running in no time! Plus, we've highlighted the differences you need to be aware of, so you can easily navigate the setup process.

1. Log in to Creatio by the user with the Beesender Chat Master license.

2. Go to the System Designer and open the Beesender Chat Configuration section.

3. On the Channels tab, click + and select WhatsApp.

4. Enter a name for the channel (e.g., WhatsApp) in the Channel name field

5. Copy the Webhook in the last field.

6. Go to your Twilio account and log in.

7. In the left panel of the Twilio page, click on Messaging, then select Senders and click on WhatsApp Senders.

8. In the WhatsApp Senders section, find the table with your WhatsApp number,copy the phone number value from the Twilio page and paste it into the Phone Number field in Creatio in the format: "3700000000".

9. Click on your WhatsApp number.

10. In the Endpoint configuration window, paste the webhook from Creatio into the Webhook URL for the incoming messages field.

11. Scroll down and click Update WhatsApp Sender.

12. Click on My first Twilio account. On the Account Info tab you’ll see fields:

  • Account SID

  • Auth Token

13. Copy the Account SID value from this page and paste it into the Twilio AccountSid field in Creatio.

14. Copy the Auth Token value from the Twilio page and paste it into the Twilio AuthToken field in Creatio.

15. Enter the chat weight.

16. Click Add.

Tip

That's it! You have successfully added the WhatsApp channel to Creatio using an Upgraded Twilio account.

How to Register HSM Messages for WhatsApp in Twilio

To register HSM (Highly Structured Messages) messages for WhatsApp in Twilio, follow these steps:

  1. Sign in to your Twilio account and navigate to the Senders page.

  2. Go to the WhatsApp templates page.

  3. Click "New message Template".

  4. Fill in the following fields:

    • Template name

    • Template category – select a category from the list

    • Message language – select a language from the list

    • Message body

  5. Click "Save template for WhatsApp approval".

Once you've registered your HSM templates, you can use them in your WhatsApp messages by referring to the template name and providing the necessary parameter values. Twilio will automatically replace the parameters with the correct values when sending the message to your WhatsApp recipient.

Info

After you have registered the template in Twilio, it is necessary to proceed to Creatio and add the templates there.

How to Register HSM Messages for WhatsApp in Сreatio

  1. Go to the workplace Studio and open the section Lookups or go to the section Lookups from the System Designer ⚙️

  2. Сlick Add lookup and select Template Whatsapp. Set lookup name, for example - WhatsApp templates

Info

Note. Skip steps 1-2 if the lookup was added earlier

  1. Open the contents of the added lookup and click Add

  2. Specify a Name of the template, for example, Greeting

  3. In the Description field, provide the exact message text that corresponds to the template registered in Twilio. This text will automatically populate the Text input field when this specific template is chosen from the communication panel.

  4. In the Response template type field, select the template type, for example, Dialog

Tip

Answer template added. After refreshing the page, the template will be available for selection in the Communication Agent Panel after page refresh

Beesender_WATemplate_20230427.mp4

How to add WhatsApp Interactive Message

To create an interactive menu message for WhatsApp in Twilio follow next steps:

Create messaging service

  1. Sign in to your Twilio account and navigate to the Services page.

  2. Go to the Messaging Services page.

  3. Click "Create Messaging Service".

  4. Fill in the following fields:

    • Messaging Service friendly name

    • Select what you want to use Messaging for

image-20240426-113841.png
  1. Click "Create Messaging Service"
    a) Click “Add Senders” and in the "Add Senders" window, fill the "Sender Type" field with the value "WhatsApp Number"
    b) Click "Continue"

    image-20240517-085604.png

    c) Activate the checkbox next to the required number
    d) Click "Add WhatsApp Number"

image-20240517-085907.png
  1. Click “Step 3: Set up integration
    a) Activate the "Send a webhook" checkbox in Integration
    b) Fill in the "Request URL" field with the value from the WhatsApp channel addition card in CRM (from the Webhook field)
    c) Fill in the "Callback URL" field with the value from the WhatsApp channel addition card in CRM (from the Status Webhook field)

    0KDnwKHukV.png

    image-20240517-090214.png

  2. Click “Step 4: Add compliance info

  3. Click “Complete Messaging Service Setup

  4. Add the channel to CRM (read: 'How to add WhatsApp channel to Creatio using Upgraded Twilio account')

Interactive Message

To ensure that the buttons in your chatbot are displayed as an interactive menu, you need to do the following:

  1. In the "Beesender: Ask a question" element of the chatbot business process, fill in the “Message” field as follows: [*MENU*]What would you like to do today?[Main menu].
    The text "What would you like to do today" and "Main menu" can be replaced with any text you choose.

  2. Fill in the Button fields.

image-20240517-110916.pngImage Removed
  1. image-20240517-141418.pngImage Added

As a result, the interactive menu in your channel will look like this:

InterMenu1.jpg
InterMenu2.jpg
Info
  1. This functionality will only work with the Messaging Service connected to the main Twilio account (not the sandbox).

  2. It is not supported in the desktop version of WhatsApp.

  3. If the menu button text is not specified (in square brackets), the default text will be "Select Menu option"

  4. There can be a total of 1 to 10 menu items. The maximum length of the menu item text is 24 characters; if it exceeds this limit, a delivery error will occur.

  5. The maximum length of the menu button text is 20 characters.

Troubleshooting

Agent Messages Not Reaching WhatsApp in Beesender

If agent messages are not reaching WhatsApp, and you are receiving messages from clients after connecting the channel, it is likely that an incorrect phone number was provided when adding the WhatsApp channel.

To resolve this issue, navigate to Beesender Chat Configuration, delete the WhatsApp channel, and then add it again.

Make sure that the phone number is specified in the format {number}.

Also, verify that whatsapp is spelled correctly and that there is a colon, a plus sign, and no spaces in the phone number.

If you added the channel using "Messaging Services" but messages are not arriving in the system, try going to the settings of your service, navigating to the "Sender Pool" tab, and removing and re-adding your WhatsApp phone number.

image-20240517-111859.png