This tutorial explains how to connect a virtual agent to WhatsApp using Tyntec.
This article was originally posted on medium.
All articles on WhatsApp
Within our Cognigy.AI platform, one is able to connect Cognigy resources to the WhatsApp channel by using the REST Endpoint integration.
Since every WhatsApp user has their own profile, the included information can be used in a virtual agent in order to provide a more personalized user experience.
Get Profile Data
WhatsApp Profile Data exposes a contact's profile information, such as their name and mobile phone number, in your Flow. You can access this profile information in input.data and input.data.whatsapp in your Flow. The table below shows some common information you will find in this object.
||The internal ID of the sent message.|
||Is "whatsapp" in this case.|
||The WhatsApp user's mobile phone number. (e.g. 4915142326635)|
||The WhatsApp for Business mobile phone number that is used to send messages in Cognigy.AI.|
||When the message arrived at Tyntec (ISO-Date).|
||Is "MoMessage" when the user sent a message back to Cognigy.|
||The WhatsApp user's name they configured in the WhatsApp settings.|
||The ISO-Date of the incoming message.|
Update Contact Profiles
In order to store the profile information permanently, one could use the UpdateProfile node to do so. However, the WhatsApp user needs to be asked for acceptance before one is allowed to store personal information.