Latenode

Automatically route Facebook Lead Ads to a webhook

This template starts when someone submits a Facebook Lead Ad form, maps name, email, phone, and custom answers in JavaScript, and POSTs that JSON to the webhook URL you set.

Fetch full lead details from Facebook if the trigger payload is incomplete. Connect Facebook Lead Ads. Put any auth header for your destination on the HTTP request node.

Updated Sep 16, 2026Est. run: 8sEst. cost: $0.0005
How Latenode estimates time and cost

Latenode bills workflow runtime in CPU seconds. The first 10,000 CPU seconds are free each month, then usage follows pay-as-you-go CPU-second pricing. Plug-and-Play (PnP) AI nodes are billed separately—each PnP token is $1 USD, charged pay-as-you-go at vendor cost plus a small processing fee, with no API keys required.

Full pricing — how CPU seconds work →

Workflow preview

What this template does

  • Forwards a new Facebook lead as soon as the form is submitted
  • Uses Facebook Lead Ads as the trigger
  • Maps name, email, and phone in JavaScript
  • POSTs the lead JSON to the webhook URL you set

How it works

1
Trigger

Catch the Facebook lead

The scenario starts when a Facebook Lead Ad form is submitted. Fetch the full lead details from Facebook if you need the complete form payload.

2
Logic

Map name and email

JavaScript reads name, email, phone, and any custom answers you want in the JSON body.

3
Action

POST to your webhook URL

An HTTP request sends that JSON to the destination URL you set. Put a bearer token or signature header on that HTTP request node if your endpoint requires it.

Setup guide

1

Connect Facebook Lead Ads

Add a Facebook Lead Ads connection and watch the Lead Ad form you care about.

2

Map the lead fields

Add JavaScript to read name, email, and phone. Fetch lead details from Facebook Lead Ads when the trigger payload is incomplete.

3

Set the destination URL

Add an HTTP request that POSTs the mapped JSON to your webhook URL. Store any destination auth header on that HTTP request node. Test with one lead.

Requirements

A Facebook Lead Ad form Latenode can subscribe to
A webhook URL that accepts a JSON POST
Any auth header your destination needs, stored on the HTTP request node

FAQ

Common questions about this template

Each run uses credits on your Latenode plan. We charge for processing time (1 credit = 30 seconds). Your actual cost depends on your plan and how long the run takes. See pricing plans for plans and how credits work.

More templates

You might also like

Browse all templates →

Automatically like fresh Instagram posts with AI-powered targeting

This template keeps a light Instagram engagement loop. A schedule asks ChatGPT for hashtags. PhantomBuster fetches recent posts for those tags. JavaScript skips URLs already stored in SharePoint, then PhantomBuster likes one remaining post. SharePoint saves that URL so the next run does not repeat it. Connect SharePoint and PhantomBuster. Put the PhantomBuster API key on the PhantomBuster connection.

58s$0.0037

Automate your sales outreach with Apify, GPT-4o, and WhatsApp

This template starts when you add a prospect URL to Google Sheets. Apify scrapes public contact details. JavaScript cleans name, company, and phone. ChatGPT writes a short outreach script. WhatsApp Business Cloud sends an approved template to that number, then Google Sheets logs the send. Connect Google Sheets, Apify, and WhatsApp Business Cloud. Put the Apify API key on the Apify connection. ChatGPT is a Latenode AI step.

49s$0.0031

Automatically sync TikTok lead data to a Google Sheets spreadsheet

This template receives TikTok Lead Generation form submits on a Latenode webhook, maps name, email, phone, and custom answers in JavaScript, and appends a row in Google Sheets. If the webhook only includes a lead id, the same JavaScript node loads the full lead from the TikTok Marketing API with your token stored in that node. Connect Google Sheets, then point the TikTok form webhook at the Latenode URL. Add a new worksheet when you want each campaign on its own tab.

7s$0.0004