# Leadsquared

{% hint style="info" %}
Before integrating Leadsquared CRM, make sure you are on **Pro Plan** or above. If not, [click here](https://www.leadsquared.com/sales-crm-plans/).&#x20;
{% endhint %}

To connect your Leadsquared account with Gallabox follow the below steps:&#x20;

### Generate User Id and Password

1. From the left navigation go to **Integration** and Click on **LeadSquared** from the available apps.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FPtuuU3uBU5ZNmgZknPjc%2FLeadsquared_Integration.png?alt=media&#x26;token=f6df3fbb-c4e1-48ee-8211-192f4eb2f81f" alt=""><figcaption></figcaption></figure>

2. Click on **Connect** and provide a name for the integration and click on **Submit**.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F6eylHQNxOsQVpEDDVRAH%2FLS%20-%20Connection%20Name.gif?alt=media&#x26;token=2e95361f-cf11-4c3f-b401-a094e4a0df0e" alt=""><figcaption></figcaption></figure>

3. Select **Channel Name** that you would like to connect with your Leadsquared account and click on **Update Configure**. You can also Enable the toggle for LeadSquared Converse.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FpOPygwSZObNM2XKmRYez%2FUpdate%20Configuration%20-%20LS.gif?alt=media&#x26;token=20ba2b64-30ef-4187-bab4-ca26e5e2e05b" alt=""><figcaption></figcaption></figure>

You will get the Namespace ID, User Name and Password which has to be used in the further steps along with the Webhook URL.&#x20;

### Install and Configure WhatsApp Extension on your Leadsquared Account

1. Install the WhatsApp Messaging Connector on your Leadsquared account – From the main menu, navigate to [Apps>Apps Marketplace](https://in21.leadsquared.com/Apps/Marketplace). Search for **WhatsApp Business**, and click **Install**.\
   Alternatively, you’ll find the connector listed under the Messaging tab. Once installed, hover your cursor over ![Settings icon](https://help.leadsquared.com/wp-content/uploads/2018/03/settings-1.png) and click **Configure**. On the **Configure WhatsApp Business** pop-up, click **Add Number**.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FyV5jU0xMisjHFH60mKZp%2FLeadsquared%2BGallabox.gif?alt=media&#x26;token=9284db4d-cb71-44b7-9528-96c19f6f53b3" alt=""><figcaption></figcaption></figure>

2. Once the connector is installed, add and configure your WhatsApp phone numbers to the connector.&#x20;

<table data-header-hidden><thead><tr><th width="212.5"></th><th></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Description</strong></td></tr><tr><td>WhatsApp Business Number</td><td>Select the country code, and provide your WhatsApp business number associated with Gallabox. This field is mandatory.</td></tr><tr><td>Account Name</td><td>Provide a relevant name for your connector. This field is mandatory.</td></tr><tr><td>Allow Lead Generation on incoming message</td><td>Click <img src="https://help.leadsquared.com/wp-content/uploads/2019/08/Slider.png" alt="Slider"> to allow automatic lead creation when you receive messages from unknown mobile numbers.</td></tr><tr><td>Lead Source</td><td>From the dropdown, select a lead source for your leads. If any lead is received with the Source, this option will be selected. </td></tr></tbody></table>

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F0iWdIdWuTOXyNcfm5Eu2%2FBasic-Details_LS.gif?alt=media&#x26;token=8b08174a-d1d2-4136-ae6c-d7f033fd66cc" alt=""><figcaption></figcaption></figure>

Once you’re done, click **Next**.

3. From the available options, choose WhatsApp Client and click on the button - "**Next**" to configure the Gallabox.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FVeayZ4YI4LUygT83dfVH%2FLS-%20Service%20Provider.gif?alt=media&#x26;token=abfbba70-a3b1-4555-b352-a214e79f7862" alt=""><figcaption></figcaption></figure>

4. For Authentication, paste the right details.&#x20;

<table data-header-hidden><thead><tr><th width="196.5"></th><th></th></tr></thead><tbody><tr><td><strong>Field</strong></td><td><strong>Description</strong></td></tr><tr><td>Client Base URL</td><td>Paste the <strong>Webhook URL</strong> generated in your Gallabox Account. </td></tr><tr><td>WhatsApp Number</td><td><strong>WhatsApp number</strong> connected to Gallabox.</td></tr><tr><td>Username</td><td>The <strong>User Id</strong> generated in your Gallabox Account. </td></tr><tr><td>Password</td><td>The <strong>password</strong> generated in your Gallabox Account.</td></tr></tbody></table>

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FfkuYI1PexNmvoixw1NUC%2FLS%20-%20Authentication.gif?alt=media&#x26;token=f95fa7c4-bd71-41f3-a3f9-ac2e880b546a" alt=""><figcaption></figcaption></figure>

Once you’re done pasting all the details, click **Next**.

5. Move ahead to filling up the details for [**Converse Settings**](#leadsquared-converse). You can turn the toggle on for Converse Settings if you would like to use Leadsquared Converse instant messaging feature to have real-time conversations with your leads via WhatsApp.

Under **User Access**, grant permissions to users who can communicate with leads through the LeadSquared Converse.

* **Based on Role** – From the **Search and Select Users** dropdown, select the LeadSquared user roles that can send messages through LeadSquared Converse.
* **Advanced (User Level)** – Based on the value entered in the selected user Boolean field (e.g., for the user Sam, the “Is Employee” user field contains the value “Yes”), the user will be able to send messages through LeadSquared Converse. From the **Select User Field** dropdown, select a relevant Boolean field.

**Functionality** – The following additional settings must be configured –

* **Approved Templates** – Enable this functionality to allow your users to send approved WhatsApp templates to your leads.
* **Unapproved Templates** – Enable this functionality to allow your users to send unapproved WhatsApp templates to your leads. These can only be sent if the 24-hours service window is active.
* **Notify Lead Owner\*** – When enabled, only lead owners will get notifications of the WhatsApp messages a lead sends. When disabled, all logged-in users will receive notifications of these WhatsApp messages.
* **Sending Rich Media** – Enable this functionality to allow your users to send media files in the WhatsApp messages.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FQQ64eGxkOk4yONl3jEqn%2FConverse%20Settings%20in%20LS.gif?alt=media&#x26;token=10ea2417-8762-44ee-b045-42de8c587bb3" alt=""><figcaption></figcaption></figure>

6. In **Advanced Settings**, you must map –

* **Activity Mapping** – A LeadSquared activity field to your WhatsApp messages. This is the activity that will be posted every time a WhatsApp message is sent or received.
* **Default WhatsApp Number Fields** – The number you set as the default phone number will be automatically selected when you’re sending a WhatsApp message to a lead. You can also select other numbers that are available from the **Add Another Number** dropdown.
* **Default Country Code** – The default country code will be used to send messages to a phone number that’s stored in a custom field, if no country code is listed.
* **Enable Rich Media Template Support** – If you want to include media files in your WhatsApp message, you must enable the ![Slider](https://help.leadsquared.com/wp-content/uploads/2019/08/Slider.png) slider.
* **Compliance Type** – Here, you can select the compliance type for the WhatsApp template, by choosing either WhatsApp Opt-out or Opt-in.
* **WhatsApp Opt-out** – From the dropdown, select a lead field for the WhatsApp opt-in/opt-out functionality. Your leads can opt-in or out of receiving WhatsApp messages on the basis of this field.

{% hint style="info" %}
Make sure to turn the **Toggle Off** for Enable HSM before saving.&#x20;
{% endhint %}

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FxVcXnaUzyYENfLs4dlnh%2FLS%20-%20Advance%20Settings.gif?alt=media&#x26;token=41a8ede6-960c-4c98-9611-632d8166fe51" alt=""><figcaption></figcaption></figure>

Hurrah! Your Leadsquared account is connected to Gallabox.&#x20;

### Supported WhatsApp Templates

Apart from the Text Templates and Button Templates, you can also send the below WhatsApp Templates via LeadSquared to your customers:&#x20;

* Flow Template
* Carousal Template
* Location Template
* Catalogue Template
* Payment Template

### LeadSquared WhatsApp Template

1. From the top navigation bar, click on **Apps** and from the drop-down select **WhatsApp Templates** and click on **Add Template**.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FtRT7o6e6sw3ukX6691SP%2Fls3.gif?alt=media&#x26;token=75b582ac-ef5a-48f0-8a9a-221e98ef1284" alt=""><figcaption></figcaption></figure>

2. If you have connected more than 1 WhatsApp API Accounts, choose the right WhatsApp Account from the drop-down as shown in the GIF below.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FeL59z21JCGuCSoRq7HUE%2FChoose%20the%20right%20WhatsApp%20Account.gif?alt=media&#x26;token=0f6fede9-21e0-402b-8be4-d24d2fe2d3f9" alt=""><figcaption></figcaption></figure>

3. Provide the **Name** for the template (the same name as in your Gallabox account), **Namespace ID** and add the **Content** (the message body in Gallabox). Click on **Save**. Follow the below **GIF**.

{% hint style="info" %}
Pro Tip: Open the Gallabox Templates window & LeadSquared Integration (in Gallabox) in adjacent tabs for easy pasting.&#x20;
{% endhint %}

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FLSQ8Ner5w5JCXXDHtyqO%2FPaste%20WhatsApp%20Template%20in%20LS.gif?alt=media&#x26;token=93e3b064-21ed-4104-b4d9-b11fb3d2dbd8" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
If your message template is a media template, make sure to select & upload the same media file as you did in Gallabox.
{% endhint %}

In the content for the message, you can add the variables where ever necessary.&#x20;

Here’s what a message may look like –

> *“Welcome {{1}}. We look forward to serving you on WhatsApp.”*
>
> And here’s a sample order confirmation message (order\_confirmation can be the message name) –
>
> *“Your order {{2}} for a total of {{3}} is confirmed. The expected delivery is {{3}}.”*

In the above example, Variables (e.g., {{2}}, {{3}}) can later be replaced using Leadsquared mail merge fields like Order Id and Order Amount respectively.&#x20;

### Leadsquared Converse

LeadSquared Converse is an all-in-one platform for communicating with potential customers across different channels, immediately. When you combine it with Gallabox, you get to enjoy more advanced ways to talk to people, such as:

* Send and receive WhatsApp Messages.&#x20;
* View WhatsApp conversations in the context of a lead.
* Eliminate the need to switch between Gallabox and other applications  to converse with your leads.
* Get real-time notifications for messages sent by leads.
* Send content-rich WhatsApp Templates, with multi-language and emoji support.

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FPCZxnixrjGFMr29ITxSz%2FLeadsquared%20Converse.gif?alt=media&#x26;token=0c8a3bdd-656f-46d9-ab7c-a1d0e14cce78" alt=""><figcaption></figcaption></figure>
