On this page
Creating an interface with Twilio WhatsApp
Creating a chat group for WhatsApp
Configuring Twilio to integrate with Movidesk
Using the Twilio WhatsApp integration
To integrate Movidesk to WhatsApp you must first obtain a WhatsApp business number through Twilio.
If you have not read the Integrating Movidesk to other systems article, we strongly recommend reading that article first. It covers basic concepts and terminology that are necessary for configuring interfaces in the Movidesk integration center.
Creating an interface with Twilio WhatsApp
See the Integrating Movidesk to other systems article to learn how to grant permission to access the Integration center.
To a create an interface with Jira, go to Configurations > Integration center. Select the ✚ icon to create a new interface, enter a name for this interface, then select Twilio (WhatsApp) as the integration type to begin the setup.
Authentication info
Enter your Twilio Account SID and Auth Token. To find this information on Twilio, go to the Project Info pane of the Console Dashboard page.
Opt-in email template
Before customers can use the Twilio WhatsApp integration, they must opt in, which allows Movidesk to send them WhatsApp messages.
Customize the email template that will be sent to customers so they can opt in and start using WhatsApp to communicate with your support team in Chat.
|
|
Warning If you decide to remove the Click here link from the default email template, ensure you add the {whatsapp.optin.url} placeholder somewhere on the email template. This is the placeholder that generates the activation link, which will take customers to a webpage where they can confirm their WhatsApp number and opt in. |
Creating a chat group for WhatsApp
Create a chat group linked to your WhatsApp business number. This chat group will be able to message customers in WhatsApp through the Movidesk Chat module.
Go to Configurations > Chat groups and select the ✚ icon to create a new chat group.
Under WhatsApp number, enter your WhatsApp business number from Twilio. Note that a WhatsApp number can only be associated with a single chat group.
Customize the mandatory 24h and 48h automated WhatsApp messages, which are sent to the customer in order to maintain the WhatsApp session active.
|
|
Note To activate the Twilio WhatsApp integration you must add the chat group to at least one chat widget. See the Creating chat widgets article for more information. |
For more information on how to configure chat groups see the Creating chat groups article.
Configuring Twilio to integrate with Movidesk
To complete the integration between Movidesk and Twilio, go to Programmable SMS > WhatsApp in your Twilio account. Configure a URL callback (select HTTP Post) in the A MESSAGE COMES IN line using the following URL:
https://api.movidesk.com/public/whatsapp/v1/receiveMessage?token=MOVIDESKTOKEN
Replace “MOVIDESKTOKEN” in the URL with your Movidesk API token, which can be found in Configurations > Parameters under the Environment tab.
Below is an example of what this might look like if testing with the Twilio Sandbox for your Twilio WhatsApp number.
Inviting customers to opt in
There are several ways to invite customers to opt in, which is required before they can receive WhatsApp messages from Movidesk.
Inviting multiple customers
Select People in the sidebar and then select the filter icon. Find Opt-in WhatsApp in the advanced filters list and select Disabled, then also select Customer under View to limit the list to customers. Then select Search to apply the filter.
Select all records in the list and then select Options > Bulk actions. Select the Send custom email notification action.
In the Email layout parameter, select WhatsApp opt-in invitation and finally select Save to send the email to the selected customers.
Inviting individual customers
To invite a single customer, you can select Invite next to their WhatsApp contact when editing their customer record. WhatsApp contact information is located under Other contacts in the Contact info section of the customer record.
Alternatively, you can add the {whatsapp.optin.url} placeholder to a system email or ticket note to provide the access link to the customer. You can reference the default Movidesk macro Invite to chat via Whatsapp as an example of how to use the placeholder in a ticket note.
Using the Twilio WhatsApp integration
When a customer sends a WhatsApp message to your WhatsApp business number, the conversation will appear in the chat console. You can identify WhatsApp conversations by the Created via column, which will display WhatsApp.
The WhatsApp conversation will function much like any other chat session, and will create a ticket when closed by the agent. After the agent closes the chat session, any new messages received from the customer will be added as ticket notes, and can be identified by a green accent and the WhatsApp icon.
|
|
Tip You can select the split arrow icon next to the note number to create a new ticket from that ticket note. |
Any new notes added by the agent will be sent to the customer as WhatsApp messages. This will continue for the first 24 hours after the last WhatsApp message sent by the customer.
Following WhatsApp policy, after the 24 hour period, only notes with the exact text in the 24 hour message parameter of the chat group will be sent to the customer through WhatsApp.
If the WhatsApp message could not be sent, an alert will be displayed on the ticket note to notify the agent.
|
|
Note If an agent does not add a new ticket note within 47 hours, the system will send the message configured in the 48 hour message parameter of the chat group. This will keep the WhatsApp conversation active for later follow-up. |