Add social leads as applicant records in ATS
Each new Facebook lead form submission becomes an applicant record in your ATS, with a cleaned phone number and split name, ready for a recruiter to review.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/add-social-leads-as-applicant-records-in-ats/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Human Resources (HR) · Recruiting
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/add-social-leads-as-applicant-records-in-ats
Set it up with the CLI
- Add it. Copies the folder into
zaps/add-social-leads-as-applicant-records-in-ats/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/add-social-leads-as-applicant-records-in-ats - Fill in the values in
config.ts, and in any other file the list marks. Replace each one as its comment and SKILL.md say. - Deploy it. Asks for any value still left, signs you in to Zapier if you aren't, then publishes it to your account.
npx zap-pack deploy add-social-leads-as-applicant-records-in-ats - Check it. Its recent runs, with status and errors.
npx zap-pack logs add-social-leads-as-applicant-records-in-ats
zaps/add-social-leads-as-applicant-records-in-ats/
- README.mdWhat it does, for people
- SKILL.mdHow an agent sets it up: what to ask you, and how to test it
- config.tsIts settings 2 to fill in
- connections/facebook-lead-ads.tsThe
facebook-lead-adsaccount it uses - triggers/lead.tsWhat starts it:
facebook-lead-adslead - workflow.tsThe code; each
ctx.stepis a step in the Zap
Agents: add --yes to any command so it never prompts. When it needs an answer only the user can give, it stops and names the flag that supplies it.
SKILL.md
View MarkdownWhat it does
- Trigger: a new lead from a Facebook Lead Ads form (
facebook-lead-ads,lead). - Normalize: the phone number is reduced to digits (keeping a leading
+), and a combined full name is split into first and last name. Plain JavaScript, no step. - Send to ATS: one JSON POST via Webhooks by Zapier (
webhook,post) to your applicant tracking system's webhook. It carries the applicant's name, email, phone, language, the source tagFacebook Lead Ads, the intake stage, andmatch_by: "email". The ATS decides whether to match an existing record by email or create a new one.
The Zap only posts to your ATS. It doesn't contact the applicant.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own connections; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
ATS_WEBHOOK_URL |
The applicant tracking system's webhook URL that accepts applicant records as JSON. Ask the user for it. |
INTAKE_STAGE |
The stage sourced applicants are assigned to when created, as named in their applicant tracking system. Ask the user. |
Also ask:
- Which Facebook Page and lead form should feed this? The trigger's Page and Form choices come from the connected Facebook account.
- Does the ATS match applicants by email on its own? If not, a lookup step is needed before the POST.
- Does the lead form use
full_name,email,phone_numberandlanguageas its field names? These were assumed, because the lead payload couldn't be sampled.
Defaults worth reviewing: SOURCE_TAG (Facebook Lead Ads), written to every applicant record.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/add-social-leads-as-applicant-records-in-ats, replace each REPLACE_… value as this file says, then run npx zap-pack deploy add-social-leads-as-applicant-records-in-ats, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. No Zapier MCP tools? Read https://docs.zapier.com/mcp/get-started/quickstart.md and follow the page for the app you are running in to get the user connected, then continue with this build.
- Accounts: bind
facebook-lead-ads(the Facebook account that owns the lead form's Page, used by the trigger) to the user's Facebook connection. Webhooks by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/lead.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyis the trigger'sevent, and use<app_key>@<app_version>from it. - Build guide: load Zapier's build guide with
get_zapier_skill("zapier:build-workflows")and follow it to create, test and publish the workflow. - Fields: inspect each action's fields with the user's connections and sample the trigger before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test, with a lead from a form the user controls and an ATS endpoint that is a test or sandbox environment. Use a sample like this:
{
"full_name": "[install-test] Jane Example",
"email": "jane.example@example.com",
"phone_number": "+1 (555) 010-0100",
"language": "English"
}
Check that the ATS receives one record with first_name "[install-test] Jane", last_name "Example", phone "+15550100100", source "Facebook Lead Ads", and the intake stage. If run-status tools aren't available, check the result in the applicant tracking system directly. Ask the user to delete the test record; the agent doesn't delete test data. Then publish, and confirm the trigger is active.
Notes
- Facebook lead field names vary by form. If the form's fields differ from
full_name,email,phone_numberandlanguage, update the input schema inworkflow.tsbefore publishing. - Phone formatting only strips non-digits and adds no country code, so numbers entered without one stay as typed.
- To dedupe by phone instead of email, change the lookup key in the ATS payload. To enrich the record first (resume parsing or a score), add a step between normalize and the POST.
- Never commit a real ATS webhook URL. Anyone with it can create applicant records.