Twilio: Deploy an SMS and WhatsApp Endpoint

This page describes the necessary steps for creating and connecting Twilio to a Twilio SMS Endpoint within Cognigy which also includes the ability to handle WhatsApp messages.

This How-to covers the necessary steps for creating and connecting Twilio to a Twilio SMS Endpoint within Cognigy which also includes the ability to handle WhatsApp messages. If you want to get information about assigning a Flow to the Endpoint and setting up the Data Management see Endpoints.

Two Step Process

1 Create and Configure a Twilio SMS Endpoint within Cognigy.AI
2 Connect Your Twilio Number to the Endpoint

1 Create and Configure Twilio SMS Endpoint

Location: Cognigy.AI

Requirements
✔ Access to the Twilio Console

1.1 Create a Twilio Endpoint

First you have to create an Endpoint of type Twilio SMS (see Figure 1.1).

TWILIOSMS.PNGFigure 1.1: Creating a Twilio SMS Endpoint

1.2 Get the Endpoint URL

Move to the top of the Endpoint configuration page and copy the Endpoint URL which is displayed above the General Settings (see Figure 1.2).

TWILIOSMS2.PNGFigure 1.2: Twilio SMS Endpoint and the Endpoint URL

2 Connect Your Twilio Number to the Endpoint

Location: Twilio Console

Requirements
✔ Endpoint URL

Login to the Twilio Console and select the number you obtained previously. Click on Manage Numbers and select the preferred number, which is capable of using SMS communication. Scroll down until you reach Messaging settings. Focus on the A message comes in section (see Figure 2.1: Configuration).

8f49c63-Screenshot_from_2018-10-08_11-42-52.png
Figure 2.1: Configuring the incoming message webhook

Simply paste the Endpoint URL you have copied from Cognigy.AI as a message comes in Webhook.

That's it!

Take your phone and write an SMS message to the number!

3 Connect Your Twilio Number to the WhatsApp Endpoint

Location: Twilio Console

Requirements
✔ Endpoint URL

Login to the Twilio Console and select the number you obtained previously. Click on Manage Numbers and select the preferred number, which is capable of using WhatsApp communication. Scroll down until you reach Messaging -> Senders -> WhatsApp senders settings. Focus on the Webhook URL for incoming messages section (see Figure 3.1: Configuration).

twilioSMSWhatsappConfiguration.png

Figure 3.1: Configuring the incoming message webhook for WhatsApp

Simply paste the Endpoint URL you have copied from Cognigy.AI.

That's it!

Take your phone and write a WhatsApp message to the number!


Comments

1 comment

  • #1, Messaging is not standard pinned in the sidebar menu of Twilio console.
    To do so, klick Explore Products, search for Messaging, and klick the pin symbol to pin it to your sidebar menu.


    #2, To connect the Twilio number to whatsApp, your account needs to be approved by WhatsApp first. 

    0

Please sign in to leave a comment.

Was this article helpful?
0 out of 0 found this helpful