Create CRM lead and open deal from booking
When someone books a call through Calendly, they are added to your Pipedrive as a contact and an open deal is created for your rep to follow up on.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-crm-lead-and-open-deal-from-booking/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Sales · CRM management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-crm-lead-and-open-deal-from-booking
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-crm-lead-and-open-deal-from-booking/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-crm-lead-and-open-deal-from-booking - 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 create-crm-lead-and-open-deal-from-booking - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-crm-lead-and-open-deal-from-booking
zaps/create-crm-lead-and-open-deal-from-booking/
- 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/calendly.tsThe
calendlyaccount it uses - connections/pipedrive.tsThe
pipedriveaccount it uses - triggers/invitee-created.tsWhat starts it:
calendlyinvitee_created - 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 Calendly invitee is created (someone books or reschedules an event) for the user's Calendly account (
calendly,invitee_created). - Filter: the run continues only when the event name contains the qualifying text (default: "coaching session"). Other bookings stop here and write nothing.
- Pipedrive creates a person from the invitee's name, email and phone.
- Pipedrive creates an open deal titled
<event name>: <invitee name>, linked to that person, in the incoming stage and owned by the configured user.
Ask the user
Each REPLACE_… value is set per person. Resolve names to IDs with the user's own Pipedrive connection; don't ask them to paste an ID you can look up.
| Setting | What goes there |
|---|---|
INCOMING_STAGE_ID |
The numeric ID of the Pipedrive stage new deals open in |
OWNER_ID |
The numeric ID of the Pipedrive user who owns new deals |
Also review the default with them: EVENT_NAME_MATCH ("coaching session") is the text a Calendly event name must contain. Set it to the names they use, or to "" to accept every event.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-crm-lead-and-open-deal-from-booking, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-crm-lead-and-open-deal-from-booking, 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
calendly(the user's Calendly account; the trigger uses it) andpipedrive(the user's Pipedrive connection) to the user's connections. No other apps are used. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/invitee-created.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. Check that the Calendly payload usesinvitee_name,invitee_email,invitee_phoneandevent_name.
Test it
Run this sample as a draft test before publishing, against a Pipedrive test account:
{
"invitee_name": "Jane Example",
"invitee_email": "jane.example@example.com",
"invitee_phone": "+1 555 0100",
"event_name": "Coaching Session"
}
Check that one person named "Jane Example" exists with that email and phone, and that one open deal titled "Coaching Session: Jane Example" is linked to that person, in the incoming stage and owned by the configured user. Then run a sample whose event_name is "Discovery Call": it should stop at the filter and write nothing. If run-status tools aren't available, check the result in Pipedrive directly. Ask the user to delete the test person and deal, not the agent.
Notes
- Pipedrive's Create Person does not take an owner, so the owner is set on the deal only. The deal value is not set, so Pipedrive records it as 0.
- A new person is created on every qualifying booking, so an attendee who books twice gets two people.
- Only the event name qualifies a booking, not Calendly's event type ID.
- To tag contacts by program, add a step after the deal that labels the person from the event name. To alert a team channel on large bookings, add a Slack step after the deal.
- Don't commit real Pipedrive stage or owner IDs, email addresses or webhook URLs.