Experience Editor
Facebook Lead Ads to Personalized Email
Nexweave recently updated its UI and got a new look! You will notice differences (especially in the colours) between the graphics and screenshots you see in this article and the corresponding sections within the Nexweave platform. Don’t worry though, because the steps and processes this article details remain the same. Moreover, we’re going to updating this article to reflect our platform changes very soon. Stay tuned and keep reading!

Nexweave has integrated with Pabbly to help you make the most of automated workflows and engage your leads/ customers with real-time hyper-personalised experiences.

In this article, we discuss how you can collect audience information using a Facebook lead Ad and share a personalized image in an email that hyperlinks to a video landing page. Here’s an example of what your leads would receive:

The following workflow was created on Pabbly:

  1. Within Pabbly, create a new workflow.

  2. In the first step of the workflow, under Choose App, select Facebook Lead Ads

Please note: You may replace this with any other lead form platform that is available.

  1. Next, set the Trigger Event to New Lead.

  2. Then, click on Connect to connect Facebook Lead Ads with Pabbly. 

  1. Once connected, select the relevant Facebook Page and the associated LeadGen Form from the corresponding dropdowns

  1. In your Facebook Lead Ads manager, click on the relevant form and then click on Test Form. Enter the form details and click on Submit.

  1. Back within your Pabbly workflow, click on Save and Send Test Request to generate a sample API response. 

The test form response from the Facebook Lead Ad will appear against a list of labels.

  1. In our demonstration, we have created a form that requests the visitors first name, email and company website. These responses are captured from the test form and stored, by Pabbly, under the following labels :

  1. Then, click on ‘+’  to add another action to the workflow 

  2. Under Choose App, select Nexweave, and set the Trigger Event to Create an Experience with a Campaign.

  1. Connect Nexweave with Pabbly via API key. This can be achieved with the following steps:

    • Within Nexweave, go to the Integrations section

    • Click on add Key. Enter the name of the key and click on Add again to confirm

    • The key then appears within your integrations list. Click on the Copy icon adjacent to the key.

    • If you already have an existing API key in the list, directly click on the Copy icon adjacent to the key.

    • Navigate back to your Pabbly workflow and paste the copied API key. Click on Save to confirm

    • Then, Click on Connect with Nexweave to complete.

  1. Next, select the Nexweave Campaign that you would like to use.

    Please note: The campaigns listed in the dropdown are from your launched campaigns within Nexweave. You can learn more about Nexweave campaigns and how to create them here.

For our demonstration, we have selected an Image + Video campaign with the name Salesforce Campaign.

  1. Once your campaign is selected, the variables employed in it appear below. Map these Nexweave variables with the labels generated from the form in steps 6-8. 

  1. To do this, click on the input field corresponding with each Nexweave variable and then click on 1.Facebook lead Ads

  2. Then, select the relevant field/ label to match with Nexweave. In our demonstration, we have mapped:

    • USERNAME: Res2 First Name

    • DOMAIN: Res2 Website

  1. Click on Save and Send Test Response to generate a sample API response. In our example, the generated personalized links are stored under the labels: 

    1. Video Link

    2. Thumbnail Link

    3. Image Link

  2. Click on ‘+’ once again, to open the final action for this workflow. You now have to specify how you would like this personalized image to be shared with your lead.

  3. Under Choose App, select Gmail or any other email application that is available in Pabbly and set the Action Event to Send an Email.

  1. Click on Connect to connect your Gmail (or selected email platform) with Pabbly.

  1. Once done, the various email fields appear below. These fields can be populated with the combination of text and labels/ fields generated from the previous actions within the workflow.

  2. Click on Recipient Name. Then select 1.Facebook Lead Ads and set the recipient name to the label - Res2 First Name

  3. Similarly, set the Recipient Email to Res2 Email 

  1. To add the personalized media to the email body, under Email Content enter the code :

<a href=”generatedvideolink”>
<img src=”generatedimagelink” width=”75%>


  1. Replace generatedvideolink in the above code with the videolink label created in the Nexweave action (in step 16). Similarly, replace generatedimagelink with the imagelink label. 

  1. Once completed, click on Save & Send Test Request to verify if the email has been sent, as designed, and containing the data collected from the form.

  2. On the top right corner of the page, ensure that the Workflow Status is kept to ON. 

That’s It! Once set up, this workflow is automated and will run smoothly without intervention

Was this article helpful?
Nexweave Knowledge Base | 2024