# Send Automated Messages on WhatsApp to Facebook Leads

Let's configure and create workflow in 4 steps.

1. Select the **Channel Name** (the WhatsApp Number you are using with Gallabox). Click on **Update Configuration.**

{% hint style="warning" %}
Once you select the channel, you will not be able to change the channel once it is Integrated.
{% endhint %}

<figure><img src="/files/s6SGw16UHtGpFS8p3sqm" alt=""><figcaption><p>Setting the configuration</p></figcaption></figure>

2. Go to **Workflow** and click on **Create New Workflow.** Select the **Lead Ad Form** and then **Pick a Template** you want to share with your customers.

{% hint style="info" %}
If you have more than one page for your business, you can create workflows for all your Facebook pages. Similarly, if you have more than one lead form, you can create different workflows under the Facebook Leads Integration.
{% endhint %}

<figure><img src="/files/elodMiUAFOxxERm87n8B" alt=""><figcaption><p>Workflow for Fb leads</p></figcaption></figure>

{% hint style="info" %}
You can either pick the Template from the Gallery or from the existing templates.
{% endhint %}

3. After selecting the **Template** put appropriate variables like Recipient's Name and phone number.

{% hint style="info" %}
Only map the variables that are available on the template. In the below Gif you can see the template has Recipient Name and Recipient Phone.
{% endhint %}

<figure><img src="/files/iDMfzP7C9zVaVDtISB6c" alt=""><figcaption></figcaption></figure>

4. Add the **Action type** from the list of actions to update the contact info or the tags and Choose **Operation.**

**Note:** *This Action will be performed along with the automated sharing message once the lead fills the form.*

**->** Use **Append** if you want to add to the contact information.

**->** Use **Replace** if you want to replace the previous information with a new one.

**->** Use **Add if Empty** if there is no details in the contact details.

Click on **Create Workflow**.

<figure><img src="/files/PkTZpoqG3Mmu6ZFI1pWI" alt=""><figcaption><p>Creating a workflow</p></figcaption></figure>

5. After you are done creating a workflow, you would see it in the list. You can create another workflow using the same process.

<figure><img src="/files/NfT2An78YmPHr6iMbpRJ" alt=""><figcaption><p>Workflow created</p></figcaption></figure>

#### *Well done! You created a workflow to send messages to any new lead from FB.*


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.gallabox.com/integration/marketing-and-engagement-platforms/facebook-leads/send-automated-messages-on-whatsapp-to-facebook-leads.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
