# Send Automated Messages on WhatsApp to Facebook Leads

Let's configure and create workflow in 4 steps.&#x20;

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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2F5a9U1iRnD9Bl8xOKnxg0%2Ffb4.gif?alt=media&#x26;token=123f289b-001b-424a-90f7-5feaca0b094b" 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="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FKKrDNeGcWP1bDX2Yi6Fi%2Ffb5.gif?alt=media&#x26;token=34e4d413-8db0-44b2-a5fe-624372c8b3ef" alt=""><figcaption><p>Workflow for Fb leads</p></figcaption></figure>

{% hint style="info" %}

{% endhint %}

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

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

{% 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.&#x20;
{% endhint %}

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FHdVsw82Qpko90eOxte0M%2Ffb6.gif?alt=media&#x26;token=c727ccc6-993f-468a-8e18-74c27da83912" 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.*&#x20;

**->** Use **Append** if you want to add to the contact information.&#x20;

**->** 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**.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FStcW4jbSsYr3r2dpPC4m%2Ffb7.gif?alt=media&#x26;token=24d630a4-d5ab-4445-b7c2-553b6dee7e3d" alt=""><figcaption><p>Creating a workflow</p></figcaption></figure>

5. After you are done creating a workflow, it would look like in the below screenshot. You can create another workflow if you want.&#x20;

<figure><img src="https://3137140735-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZcl3T6ePz95GpzjAeOLW%2Fuploads%2FiNiK17GvYlqbb23GbRZU%2Ffb8.jpg?alt=media&#x26;token=29235d8a-e2e4-4245-b9f5-e79abd19a92a" alt=""><figcaption><p>Workflow created</p></figcaption></figure>

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