AGENT?GET /zapier/awesome-zaps/add-training-program-link-to-new-person-records/SKILL.mdand deploy the files next to it
All zaps

Add training program link to new person records

When a new person is added to Pipedrive with a training reference, the matching program link from your training table is copied onto their record, so no one has to look it up by hand.

Install it

For your agent
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/add-training-program-link-to-new-person-records/

Paste into Claude, ChatGPT, Cursor or any agent.

Apps it uses
PipedriveZapier Tables
Author
Zapier
Source
zapier/awesome-zaps, folder zaps/add-training-program-link-to-new-person-records

Set it up with the CLI

  1. Add it. Copies the folder into zaps/add-training-program-link-to-new-person-records/. Outside a project, it makes one first.
    npx zap-pack add awesome-zaps/add-training-program-link-to-new-person-records
  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 add-training-program-link-to-new-person-records
  4. Check it. Its recent runs, with status and errors.
    npx zap-pack logs add-training-program-link-to-new-person-records

zaps/add-training-program-link-to-new-person-records/

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 new person in Pipedrive (pipedrive, personV2) fires when a person record is created.
  2. Stop early if the person has no training reference in the configured custom field.
  3. Zapier Tables (zapier-tables) finds the row whose program key matches that reference exactly. If there is no match, the run stops and nothing is written. No table rows are created.
  4. Pipedrive updates that same person with the program link from the matched row, in the configured link field. No new person is created.

The Zap never creates a table row or a person, and it changes nothing when the reference or the match is missing.

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
REPLACE_TRAINING_TABLE_ID The Zapier Table that holds the training programs. Look up its ID with the user's Zapier Tables connection.
REPLACE_PERSON_TRAINING_FIELD The Pipedrive custom field that holds the training or program reference. Look up its key with the user's Pipedrive connection.
REPLACE_PERSON_LINK_FIELD The Pipedrive custom field that receives the program link. Look up its key with the user's Pipedrive connection.

Also review the defaults with them: PROGRAM_KEY_FIELD (f1) and PROGRAM_LINK_FIELD (f2) are the table's columns for the program key to match and the program link to copy. Check them against the table's output schema.

Build it

If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/add-training-program-link-to-new-person-records, replace each REPLACE_… value as this file says, then run npx zap-pack deploy add-training-program-link-to-new-person-records, 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 pipedrive (the account whose people are being updated) and zapier-tables (the account that owns the training table) to the user's connections. The trigger and the action use the same Pipedrive connection.
  2. Source: publish workflow.ts and config.ts, with each REPLACE_… replaced by the user's answer. triggers/person-v2.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.

Test it

Run it once as a draft test, with a test person whose training field holds a key that exists in the table:

{
  "id": 4100001,
  "<training field key>": "[install-test] PROG-100"
}

Check that the table lookup returns the row, and that the person's link field now holds that row's program link. Then run it again with a key that isn't in the table, and check that the person is skipped and nothing is written. If run-status tools aren't available, check Pipedrive and the table directly. Ask the user to delete the test person and table row; the agent doesn't delete them. Then publish, confirm the trigger is active, and do the real thing once with a new test person.

Notes

  • Table matching is exact. If the table has more than one row with the same key, the lookup uses the most recently created one.
  • A missing reference or a missing match skips the run quietly. To hear about these, add a Slack or email step after the no-matching-program return in workflow.ts.
  • To normalize lookup values (trim, change case) before the table search, add a plain JavaScript step before find-training-program.