Engati - User Guide
...
Building Your Bot
Configuring Integrations

WebEngage

8min

Introduction

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.

  1. Connect API Trigger URL in WebEngage

URL to be set -

Sample -

This has to be set in the following place in WebEngage -

Document image

Document image

Document image


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.
Document image

JS




  • Test out the end to end flow from WebEngage
Document image

Document image

Document image

  • 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”

Document image


Share the following Event Webhook URL

Document image


Also, along with URL we will also need AUTH_KEY_PROVIDED_BY_WEBENGAGE. If we don’t have it then send a mail to “support@webengage.com” and request for the same. This Auth key is needed to send the status packet back to webengage and complete the WhatsApp flow.

Document image

Document image