AGENT?GET /zapier/awesome-zaps/create-crm-lead-and-open-deal-from-booking/SKILL.mdand deploy the files next to it
All zaps

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

For your agent
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.

Apps it uses
CalendlyPipedrive
Author
Zapier
Source
zapier/awesome-zaps, folder zaps/create-crm-lead-and-open-deal-from-booking

Set it up with the CLI

  1. 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
  2. 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.
  3. 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
  4. 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/

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.

What it does

  1. Trigger: a Calendly invitee is created (someone books or reschedules an event) for the user's Calendly account (calendly, invitee_created).
  2. Filter: the run continues only when the event name contains the qualifying text (default: "coaching session"). Other bookings stop here and write nothing.
  3. Pipedrive creates a person from the invitee's name, email and phone.
  4. 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.

  1. Accounts: bind calendly (the user's Calendly account; the trigger uses it) and pipedrive (the user's Pipedrive connection) to the user's connections. No other apps are used.
  2. Source: publish workflow.ts and config.ts, with each REPLACE_… replaced by the user's answer. triggers/invitee-created.ts and connections/ 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's selected_api, call search_triggers with that slug, find the row whose key is the trigger's event, and use <app_key>@<app_version> from it.
  3. Build guide: load Zapier's build guide with get_zapier_skill("zapier:build-workflows") and follow it to create, test and publish the workflow.
  4. 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.ts that doesn't match. Check that the Calendly payload uses invitee_name, invitee_email, invitee_phone and event_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.