WebEngage
11 min
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 add the required script in the engati path before configuring the webengage integration, you must first add the required script in the engati path that will be selected during setup add the following script inside the required path var whatsappdata = {{whatsappdata}}; var metadata = {{metadata}}; var version = {{version}}; process({ data { type "template", integration "webengage", payload { version version, whatsappdata whatsappdata, metadata metadata } } }); this script processes the data received from webengage and passes the required payload to the selected path integrate webengage account navigate to integrations > cloud integrations > webengage > add account enter an account name select the required path confirm the selected bot and choose the required path, the same path in which the webengage script was added complete the webengage configuration screen in the webengage configuration screen, you will see the values that must be exchanged between engati and webengage values copied from engati to webengage use the following values from engati in the webengage portal http endpoint https //api engati ai/api trigger/v3 0/customer/59014/bot/abcd34567/flow/1234567890?integrationsource=webengage https //api engati ai/api trigger/v3 0/customer/59014/bot/abcd34567/flow/1234567890?integrationsource=webengage authorization header key authorization authorization header value basic 45680 fsqq http endpoint copy the http endpoint from engati and paste it into the webengage portal authorization header use the authorization header shown in engati inside the webengage portal key authorization value the generated header value shown in engati both the key and value must be copied to webengage values copied from webengage to engati after setting up the endpoint and authorization in webengage, copy these values back into engati delivery report callback url https //wt in webengage com/tracking/events status callback auth token delivery report callback url paste the webengage webhook url into the delivery report callback url field in engati data platform > integrations > channel integration setup > wa setup > configure > click on “view webhook url” status callback auth token paste the status callback auth token into engati this token is provided by the webengage onboarding manager 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 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 mailto\ 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 field mapping summary field source destination system http endpoint engati webengage portal authorization header key engati webengage portal authorization header value engati webengage portal delivery report callback url webengage engati status callback auth token webengage onboarding manager engati
