---
title: WebEngage
slug: webengage
docTags: 
createdAt: 2024-01-17T09:09:32.910Z
---

# 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.

:::Heading{depth="2" indent="1"}
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:

```javascript
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.

:::Heading{depth="2" indent="1"}
Integrate WebEngage Account
:::

Navigate to: Integrations > Cloud Integrations > WebEngage > **Add Account**.

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/ClEg1f0DtALp8O_B8vB1U-20260518-061249.png)

:::Heading{depth="2" indent="1"}
Enter an account name.
:::

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/j9mfGrMmvg_rH6Xsu67UJ-20260518-080336.png)

:::Heading{depth="2" indent="1"}
Select the Required Path
:::

Confirm the selected bot and choose the required path, the same path in which the WebEngage script was added.

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/pr_fbjp2KBbMP_75GnM7L-20260518-080405.png)

:::Heading{depth="2" indent="1"}
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.

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/CqeL7wb0cLt8raIgpoHb8-20260518-080430.png)

![](https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/elhlpUlpilzbdea8oXka--20260518-080825.png)

### 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**

:::Paragraph{indent="1"}
`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”

![](https://api.archbee.com/api/optimize/bPTlyA8bC5cIeQYhtj9pB-8-2yz1EwtLjTfxubptDfu-20240830-093245.png)

![](https://api.archbee.com/api/optimize/bPTlyA8bC5cIeQYhtj9pB-n967qXtNvXq4T61T-xLGp-20240830-093342.png)

### 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.

![](https://api.archbee.com/api/optimize/bPTlyA8bC5cIeQYhtj9pB-TV2wLm8HWyzfx3qiVVBKO-20240830-093417.jpg)

![](https://api.archbee.com/api/optimize/bPTlyA8bC5cIeQYhtj9pB-ZH0DgqMzym39WlOwOSkn8-20240830-093445.jpg)

# 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             |

