- 06 Apr 2022
- 3 Minutes to read
- Print
- DarkLight
How to Integrate WhatsApp to Tegsoft Web Chat via Twilio?
- Updated on 06 Apr 2022
- 3 Minutes to read
- Print
- DarkLight
Twilio is the one of API providers of WhatsApp. It allows users to benefit from Web Chat features through WhatsApp.
This article describes how to integrate WhatsApp to Tegsoft Web Chat via Twilio.
By reading this article, you will have information about:
- setting up Twilio messaging service,
- integrating and activating Tegsoft web chat feature by using Twilio.
Twilio Integration and Activation Steps
Please, follow the steps below to integrate WhatsApp to Tegsoft Web Chat via Twilio.
1. Twilio Messaging Service Setup
Please, follow the steps below to activate Twilio account.
β€ Go to https://www.twilio.com/ and login to your account after signing up.
β€ Type WhatsApp Senders in the search bar.
β€ Click WhatsApp Senders.
β€ Click New WhatsApp Sender.
β€ Click Buy a Number in the Select a Number list.
β€ Select a Country.
β€ Click Buy.
β€ Type Messaging Services in the search bar.
β€ Click Messaging Services.
β€ Click Create Messaging Services.
β€ Enter a Messaging Service Name.
β€ Select what you want to use Messaging Service for.
(Create a Messaging Service for every Messaging use case you have.)
β€ Click Create Messaging Service.
β€ Click Add Senders to add senders to messaging service.
(Select from multiple Senders like phone numbers, WhatsApp Numbers, and others. Use multiple Senders for one application or use case.)
β€ Select WhatsApp Number from the Sender Type list.
(WhatsApp numbers are capable of 2-way (inbound and outbound) messaging with WhatsApp users from most countries.)
(Businesses can apply to activate Twilio numbers for WhatsApp. Use cases and message templates must be approved by WhatsApp.)
β€ Click Continue.
β€ Select the WhatsApp Numbers.
(You can select multiple WhatsApp numbers.)
β€ Click Add WhatsApp Numbers.
β€ Click Confirm.
β€ Select Sender from Sender Pool.
(A Sender represents a channel, number type, or messaging type that can receive and send messages using the Twilio Messaging API.)
β€ Click Step 3: Set up integration.
β€ Select Send a webhook from Incoming Messages list.
(Invoke an HTTP webhook for all incoming messages.)
β€ Enter your Request URL.
β€ Enter your Fallback URL.
(Fallback URL is only used if the Request URL fails to respond.)
Request and Fallback URLs are:
https://{{YOUR_DOMAIN}}/Tobe/app/ApplicationServletexternalService=textRouter&TRUNKTYPE=TWILIOWHATSAPP&TRUNKID=service1
Note: In these URLs, TRUNKTYPE is βTWILIOWHATSAPPβ, TRUNKID is optional.
ββββββββ ββββββββ ββββββββ ββββββββ β€ Click Step 4: Add compliance info.
β€ Click Complete Messaging Service Setup.
You have successfully set up a new Messaging Service.
β€ Click View my new Messaging Service.
β€ Copy Messaging Service SID.
ββββββββ ββββββββ ββββββββ ββββββββ βββββββββ€ Click API Integration Guide.
- β€ Click Messages.
β€ Click POST.
β€ Copy URL.
- β€ Click your Console.
β€ Copy ACCOUNT SID.
ββββββββ ββββββββ ββββββββ ββββββββ βββββββββ€ Copy AUTH TOKEN.
2. Tegsoft Integration and Activation
After the Twilio messaging service setup, integration parameters shall be set in Tegsoft software.
Follow the steps below in Tegsoft software to set integration parameters.
Step 1 β Click CC Management tab.
Step 2 β Click Contact Center Settings tab.
Step 3 β Click plus icon (+) to add new integration parameters.
Step 4 β Set parameters.
Step 5 β Click the Save button.
The parameters in Step 4 are described in the table below.
Parameter | Description |
---|---|
Account Name | Enter an account name. |
Account Type | Select account type as Twilio from the list. |
URL | Enter your URL obtained in step 18 of the Twilio Messaging Service Setup. |
API key | Enter your Messaging Service SID obtained in step 17 of the Twilio Messaging Service Setup. |
Username | Enter your ACCOUNT SID obtained in step 19 of the Twilio Messaging Service Setup. |
Password | Enter your AUTH TOKEN obtained in step 19 of the Twilio Messaging Service Setup. |
Phone Number | NULL |
Is active | Click checkbox as active. |
Notes | Type your notes. |
After all parameters are configured, web chat skill shall be created using the related number.
β’ For detailed information about creating a web chat skill, please review Web Chat Skills (Queues) article.
β’ For detailed information about Text Routing rules when creating a chat skill, please review Text Routing Definitions article.