---
title: LeadSquared Connector
slug: leadsquared-connector
docTags: 
createdAt: 2025-02-06T11:36:49.700Z
---

## Introduction

Engati integrates with LeadSquared to enhance customer engagement by enabling the following:

- Sending notifications from LeadSquared to users via Engati.
- Sending marketing template messages from LeadSquared via Engati.

## Marketing and Notifications from LeadSquared

### Part 1: Setting Up LeadSquared with Engati

- A bot must be deployed on WhatsApp. If not, complete the bot deployment before proceeding.
- An API key will be generated by 360Dialog for billing and usage tracking.

1. Navigate to the **Cloud Integration** page in your Engati account.
2. Click on on the **Leadsquared&#x20;**<font color="#000000">**Connector**</font> integration.

::Image[]{src="https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/Z3sjhYsYIrFyRQ3WTNmvZ_screenshot-2025-02-06-at-55947-pm.png" size="100" isUploading="false" width="1326" height="755" showCaption="false" indent="2"}

3. Enter your **Account Name** and click **Next**.
4. **Create a separate path** to be triggered for LSQ and add the following script on the path:

:::CodeblockTabs{indent="2"}
```javascript
var to = {{to}};
var temp_template = {{template}};
process({"data": {"type": "template", "payload": temp_template, "targetWhatsAppNumber": to}});
```
:::

5. Select your **bot** and the **path created above**, then click **Next**.
6. A pop-up appears with the following fields:

::Image[]{src="https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/DCofB6DIgC9OxlSBIoVIH-20260224-130847.png" size="48" width="674" height="1012" position="center" showCaption="false" indent="2"}

:::Paragraph{listStyleType="disc" indent="2"}
**HTTP Endpoint** – Copy this URL; you will need to paste it into LeadSquared.
:::

:::Paragraph{listStyleType="disc" listStart="2" indent="2"}
**Delivery Report Callback URL** – Leave this blank for now; it will be copied from LeadSquared later.
:::

:::Paragraph{listStyleType="disc" listStart="3" indent="2"}
**Authorization Header:**&#x20;
:::

:::Paragraph{listStyleType="disc" indent="3"}
**Key** (Prefilled)
:::

:::Paragraph{listStyleType="disc" listStart="2" indent="3"}
**Value** (Prefilled) – Copy this value; it will be pasted into LeadSquared.
:::

7. **Do not click "Save" yet.** Open a new tab and proceed to Part 2.

### Part 2: Setting Up Engati with LeadSquared

1. Log in to your **LeadSquared** account.
2. Navigates to Apps -> **Apps Marketplace&#x20;**&#x61;nd selects **WhatsApp Business -> Settings-> Configure.**

::Image[]{src="https://lh7-rt.googleusercontent.com/docsz/AD_4nXdtrssbN9T-lYt9lO2La4NzCsPNnS2tye3iKW7NPSEZ0McPM3R2XepZne8zvs8yQOzh03xfddzNStBv10F2kQK3S1b87JRyitMBMjRs0_DhFVetWTfpemZMjnDf-hgyRkPJiODv?key=fznMPowRUxCTnMCMaP61HQsb" size="48" width="331" height="170" position="center" showCaption="false" indent="2"}

3. If you have already added your **WhatsApp Business number**, select it. If not, follow these steps to add one:

::Image[]{src="https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/3Wtv9jj6fOGQZ3AToNdb7_image.png" size="88" width="605" height="347" position="center" showCaption="false" indent="3"}

:::Paragraph{listStyleType="decimal" indent="3"}
Click on **+ Add WhatsApp Number&#x20;**&#x69;n the top right-hand corner of the pop-up.
:::

:::Paragraph{listStyleType="decimal" listStart="2" indent="3"}
Enter your **WhatsApp Business number&#x20;**&#x61;nd **Account Name**
:::

::Image[]{src="https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/R0-SkfNrn-cPWOc2Dxh5l_screenshot-2025-02-06-at-55224-pm.png" size="100" isUploading="false" width="597" height="363" showCaption="false" indent="4"}

:::Paragraph{listStyleType="decimal" listStart="3" indent="3"}
Click **Next**.
:::

:::Paragraph{listStyleType="decimal" listStart="4" indent="3"}
You will be asked to select a service provider. Choose **Engati** as your service provider.
:::

4. Proceed to **Authentication**.
5. A pop-up appears requiring:


::Image[]{src="https://api.archbee.com/api/optimize/FEqjvWZnyymr_PEhXLLlG/eylLhMDqSoIxWPbN8dibu_screenshot-2025-02-06-at-60314-pm.png" size="100" isUploading="false" width="799" height="472" showCaption="false" indent="2"}

:::Paragraph{listStyleType="disc" indent="2"}
**Send Message URL** – Paste the **HTTP Endpoint** copied from the Engati portal.
:::

:::Paragraph{listStyleType="disc" listStart="2" indent="2"}
**Permanent Access Token** – Delete the prefilled token and paste the **Value** copied from the Engati portal.
:::

:::Paragraph{listStyleType="disc" listStart="3" indent="2"}
**Authentication Header Templates** – Copy these from the Engati integration setup.
:::

6. Click **Save**.

### Adding Delivery Report Callback URL

- Once saved, go to the configured **WhatsApp Number** on LSQ under **WhatsApp Business**.
- Click on **Authentication** -> Copy the **Notification Webhook URL**.
- Paste this into the **Engati portal** under **Delivery Report Callback URL**.

### Pointers to Note Before Creating an Automation

1. **Template Creation:**
   - The template has to be created on **Engati** and the same template has to be created on **LSQ**.
2. **Language Selection:**
   - If the template is created in **English** on Engati, on LSQ, select the language as **English (US)**.
3. **Button Templates with Quick Reply:**
   - Under **Payload** in LSQ, mention flow\_\<provide postback to trigger a path> where provide postback to trigger a path is the **path key**.

To verify the integration in your Engati account, go to **My Integrations**, located next to the **All Integrations** page.

For further assistance, please contact [support@engati.ai](https://support@engati.ai).
