# Facebook Lead Ad form V2

### INTRODUCTION

Facebook lead ad form is an adon to Picky Assist services which helps you to get realtime alert and set different actions when someone fills the Facebook lead ad form. See more details [here<br>](https://pickyassist.com/en/get-facebook-leads-in-whatsapp)The new design overcomes the problems of finding which forms are mapped with Picky Assist, Limited space to work with for form mapping, Lack of an option to search for forms by name, the need to troubleshoot to check when the last form was received.

#### PREREQUISITE

1\. Facebook Ad Account with Lead Adform&#x20;

2\. Facebook Lead Adform Adon Enabled in the Picky Assist Platform<br>

#### GETTING STARTED

**Connecting  Facebook Ad Account**

Business can connect a Facebook page which is linked with a Facebook ad account enabled with lead generation as a campaign objective\
\
Login into Picky Assist Web Console then navigate to  **Settings** -> **App** -> **Facebook Lead Ad-form** -> **Settings**\
\
Then please tick all terms and conditions and click on **"Sign Into Facebook"** button as shown below.

<br>

<figure><img src="https://lh7-us.googleusercontent.com/x5Qg4t5QnkGq1MbKZnyy-RS1vc2qHV9YCr_Q2QChSAF8taARHwRmu6h9BNHkpbi7CiPo3FSNkAN7Np5Vimb__2xQ69pmsJWA5cTBdWrzGHrU7T2ulDLtFEg9Tc3-h3pdfvy_GiiFWn0lK8A812j-cH0" alt=""><figcaption></figcaption></figure>

Then please login with your Facebook account and select the page which contains the lead form and connect it with Picky Assist&#x20;

Once the account is connected  you will able to see all the linked pages and can select the page then it will show all the lead forms you have created as shown below;\
\ <br>

<figure><img src="https://lh7-us.googleusercontent.com/qsv_MMltyrMFdjyn90QBhGoeX9Vj3QRWiu2NfABPg6vrhgz-vi4KObC4dwlzsxgxDxKfurMBGMSZGJLinSUXif3-27XbnBqTe-h-rxL9dWLjk6AEAWLqfPmXnmqFFnYkIljpXNvEy7NLi_WVV-xwjM0" alt=""><figcaption></figcaption></figure>

1. Please map the details from the Facebook form to Picky Assist to perform actions, mobile number or Email attribute mandatory
2. Select any channel mandatory&#x20;
3. Add the actions if necessary
4. Click Save button

All the channels of the connected Facebook account are listed in the dropdown. Select the Facebook page from the drop down. It will show all the lead forms in the “Not connected form” list with all not connected leads total count. Connect the lead forms by following the instructions.\ <br>

**Total requests** : Total requests received in the form, once the form disconnected the value will reset.

**Request** : Total request and can reset the value.\
**Last received** : Last request received date time<br>

<br>

#### MAPPING FORM FIELDS WITH SOCIAL CRM ATTRIBUTES

You can map the form fields with Picky Assist CRM Attributes this helps you to get the lead data saved in Picky Assist and able to take different actions&#x20;

Click On "Select Attributes" which is shown against each form fields, then a popup will open as shown below;

From the popup you can select the Attribute from the social CRM to map it with the respective fields in the form.

<figure><img src="https://lh7-us.googleusercontent.com/TYZQmZEPjJN3Lfmn2c9cxV6oUYi6_U3PuqHk1DUqDZKqsP6730M40j2DIZbGoSgvLHOmi_6BEq9gEMen6vwwvk5k_EUoasoLXo6z5NDZOevDzN5rgODzadvq1GRjP9SGDECSrxPOMPQH6jtETx1pu00" alt=""><figcaption></figcaption></figure>

<br>

#### PREFIX AND NUMBER VALIDATION

You can validate the number based on minimum and maximum length and add or remove prefix automatically.

For example:  if the minimum length is set to 10 and the maximum length is set to 12, and the prefix to add is "91", then a number with 10 digits will have "91" added to the beginning, while a number with 12 digits will have no prefix added or removed.

**Minimum Length**\
If the number length is on or below than this then automatically add or remove the prefix.\
**Maximum Length**

If the number length is on or above this then select to add or remove the prefix

<figure><img src="https://lh7-us.googleusercontent.com/VZOY6zIYCv68AGVFBuftHwPpkn2JJfURQKTCb2iLLnictzTstVwBU88VBx4irnFVq4VVrwdqFoT7a8eQZC9ca0GV6ASO_wQdQNnvdJD9X7xEHGtTnlZZi1LC1kzxJiToRTKiuwtlHUAyL0OE_kgkmT0" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
Please note this method works only if all the numbers are from a single country
{% endhint %}

<br>

#### SETTING UP ACTION

This option helps you to take various actions whenever a new lead form is submitted, available types of actions are listed [here ](https://help.pickyassist.com/setting-up-guide/smart-replies/train-module/smart-actions#list-of-available-actions)

To perform advanced actions please route the request to a connector.&#x20;

<br>

#### Disconnect Lead Form

You can disconnect the connected lead form by clicking the Disconnect button showing in the connected lead form.

<br>

<figure><img src="https://lh7-us.googleusercontent.com/wtrThy2bxjgAmhC17gMEdCh8FCDuKIE1pS7zaMb8FPWNEdGFLGRXWw3fOkKnyW1u6_TLoNxIlaliACyB1mWlacJvEkPNdy4T28naiaVUhNGwlJHzxgRkJP2f0l3H4_90LLJ6_u__VaquuOyjJEdgy4s" alt=""><figcaption></figcaption></figure>

#### Testing the Lead Ad form

In order to test the lead ad form please click the URL\
<https://developers.facebook.com/tools/lead-ads-testing/> please make sure you have logged into the Facebook page.

Then select the Page then it will load all the forms, please select the Form from would like to test as shown below.

<figure><img src="https://lh7-us.googleusercontent.com/_Mm6_JPBUEgH6IE3tsHscwTxg7UGh5meb6JkVrD4zXPWCXZ6KVw4sdcF7j2T6MSZQRTbXfLY37UwCnkQSm3rRC8-bAcfYYOEsWDTgctvVpmVI5UHKQJoXYFqpLWTR2szMoH9kvLYnjY9yUNkktQFRSQ" alt=""><figcaption></figcaption></figure>

Then Click on "Preview Form" fill in any sample data to test the form and click on Create Lead button as shown below;

<br>

<figure><img src="https://lh7-us.googleusercontent.com/Fmx3PHPXM4PzakNmsL2WT29UMv0VCroxHB5wnnWJGBwj7aklOb32HtxAUM8r4oFiwwlfQ6JdHZi3Uj2c-NaeK2xDqcr5-JWZvbLKnCjSwkFDCsIdrUOiVdi95BTqs96oTU3QQ0x6HgFU8Osn0NEzink" alt=""><figcaption></figcaption></figure>

**Upload Duplicate Leads with new Form Data**

If this option is enabled then the system will automatically update the contact in the Picky Assist with the data from your new form,&#x20;

for example, if the lead is created earlier and if this option is enabled then lead details will get updated like name, and form fields if any mapped<br>

#### Logs

In the logs, we can see all the details such as when the date on which it was created, the Page name, the Form name, the Status, and the payload.

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

In the payload, you can see all the log details such as response details and the response jscon tree will be displayed where we can get all the execution info.

<figure><img src="/files/0wKCdMG1qCeawAfRuTRI" alt=""><figcaption></figcaption></figure>

<br>

<br>


---

# 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://help.pickyassist.com/setting-up-guide/setting-up-ad-ons/facebook-lead-ad-form-v2.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.
