WebEngage
There can be multiple use-cases for integrating WebEngage to Engati. The ones where event-based integrations are needed for instance sending a template when a booking event is done, then we can follow the below instructions.
- Connect API Trigger URL in WebEngage
URL to be set -
Sample -
This has to be set in the following place in WebEngage -
2. Create attributes in the Engati portal. The attribute is specific to what data WebEngage sends to Engati.
- Create a custom attribute metadata with the value
{"campaignType":"PROMOTIONAL","timestamp":"2023-10-17T14:38:50+0000","messageId":"e41463ec-e58b-43e7-a757-0f66ae149c1d"}
- Create a custom attribute whatsAppData with the value
{"toNumber":"9718649077","fromNumber":"917795178080","templateData":{"templateName":"inboundcalltemplate","message":"Hi there,\nSandeep here, I appreciate your inquisitiveness towards Jobsurance Income Protection plan.\nFor any queries feel free to say \"Hi\" or call us at - 9256339889/7795178080\n\nYou can read our FAQs that can address most of your queries - weurl.co/BxD3SI and help you make an informed decision.","language":"en","type":"TEXT"}}
- Build the flow in the particular account, bot, and flow where the integration is needed.
- Test out the end to end flow from WebEngage
- Once the above setup is done, We would need a webhook URL for the event, we can find it from
Data platform -> Integrations -> Channel Integration Setup -> WA Setup -> Configure -> Click on “View Webhook URL”
Share the following Event Webhook URL
Also, along with URL we will also need AUTH_KEY_PROVIDED_BY_WEBENGAGE. If we don’t have it then send a mail to “[email protected]” and request for the same. This Auth key is needed to send the status packet back to webengage and complete the WhatsApp flow.