Enroll webhook signups into SMS reminder campaign for event
When someone signs up for your event through a form, they're saved as a lead in LeadConnector and enrolled in your SMS reminder campaign, so they get reminders without anyone adding them by hand.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/enroll-webhook-signups-into-sms-reminder-campaign-for-event/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Marketing · SMS marketing
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/enroll-webhook-signups-into-sms-reminder-campaign-for-event
Set it up with the CLI
- Add it. Copies the folder into
zaps/enroll-webhook-signups-into-sms-reminder-campaign-for-event/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/enroll-webhook-signups-into-sms-reminder-campaign-for-event - 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 enroll-webhook-signups-into-sms-reminder-campaign-for-event - Check it. Its recent runs, with status and errors.
npx zap-pack logs enroll-webhook-signups-into-sms-reminder-campaign-for-event
zaps/enroll-webhook-signups-into-sms-reminder-campaign-for-event/
- 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 1 to fill in
- connections/leadconnector.tsThe
leadconnectoraccount it uses - triggers/hook.tsWhat starts it:
webhookhook_v2 - 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 signup arrives at a Webhooks by Zapier catch hook (
webhook,hook_v2), posted by a registration form or script. The payload'sfirst_name,last_name,emailandphoneare read; a missing field is treated as blank. - Plain code normalizes the phone number to E.164 (
+then digits), adding the default country code to 10-digit numbers. If there is neither an email nor a phone number, the run stops and writes nothing. - LeadConnector adds or updates the contact, marked as a lead, with the source
webhook. LeadConnector matches an existing contact by email, then by phone, and creates one when neither matches. - LeadConnector adds that contact to the SMS reminder campaign.
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 |
|---|---|
CAMPAIGN_ID |
The LeadConnector campaign (workflow) that sends the SMS reminders for the event |
Also review the defaults with them: DEFAULT_COUNTRY_CODE ("1", for US and Canada numbers without a + prefix) and SIGNUP_SOURCE ("webhook", written to each contact so enrollments can be traced).
Before building, confirm:
- What field names does the signup form send? The code expects
first_name,last_name,emailandphone. Rename them inInputSchemaif the form uses other names. - Should only signups that have opted in to SMS be enrolled? That is not built; see Notes.
- Are phone numbers outside the US and Canada? If so, have the form send them with a
+country code, or changeDEFAULT_COUNTRY_CODE.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/enroll-webhook-signups-into-sms-reminder-campaign-for-event, replace each REPLACE_… value as this file says, then run npx zap-pack deploy enroll-webhook-signups-into-sms-reminder-campaign-for-event, 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
leadconnectorto the user's LeadConnector connection for the account that holds the contacts and the SMS campaign. Webhooks by Zapier needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.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 this sample as a draft test (run_workflow_draft in Zapier MCP) before publishing. Use a test contact whose phone number is the connected SMS by Zapier number, so no real person is texted:
{
"first_name": "Test",
"last_name": "Signup",
"email": "install-test@example.com",
"phone": "5555550100"
}
Check that the contact exists in LeadConnector with source webhook and the lead flag set, and that it is enrolled in the campaign. If run-status tools aren't available, check LeadConnector directly. Then ask the user to delete the test contact; the agent does not delete it.
Notes
- LeadConnector matches contacts by email first and phone second. The code relies on that upsert and does not look contacts up itself.
- A payload with neither email nor phone is skipped and writes nothing. The spec did not say what to do then; this is a decision made for the build.
- After publishing, give the user the trigger's webhook URL to point their signup form at. Anyone with that URL can add contacts and enroll them in the campaign, so keep it private.
- To enroll only opted-in signups, add a check for an SMS opt-in field in the payload. To tag the source, add UTM or source tags to the contact for reporting.