Create debt records and attach credit pull PDFs
When a credit pull request comes in, the credit report is requested and its PDF captured, so the client's file is ready without manual pulls.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-debt-records-and-attach-credit-pull-pd-fs/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Finance · Accounts receivable
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-debt-records-and-attach-credit-pull-pd-fs
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-debt-records-and-attach-credit-pull-pd-fs/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-debt-records-and-attach-credit-pull-pd-fs - 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-debt-records-and-attach-credit-pull-pd-fs - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-debt-records-and-attach-credit-pull-pd-fs
zaps/create-debt-records-and-attach-credit-pull-pd-fs/
- 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
- 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 credit-pull request arrives at a Webhooks by Zapier catch hook (
webhook,hook_v2). A CRM or intake form posts the client's details to it. - Webhooks by Zapier sends the client's identity and contact fields to your credit-report API. The response is meant to carry the report's PDF.
- If no report comes back, the run stops and says so.
The SSN and date of birth go only to the credit API.
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 |
|---|---|
CREDIT_PULL_URL |
The endpoint of the user's credit-report API, which receives the pull request. The spec doesn't name a provider, and the request format and the response field that carries the PDF must match theirs |
Also review the default with them: DEFAULT_COUNTRY_CODE (+1) is added to 10-digit phone numbers; change it for non-US clients.
Before the Drive and HubSpot steps are added, ask which Google Drive folder should hold the PDFs, and which CRM (HubSpot, Salesforce or other) holds the debt records.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-debt-records-and-attach-credit-pull-pd-fs, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-debt-records-and-attach-credit-pull-pd-fs, 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: none. The catch hook and the POST step need no connection.
- Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.tsis a setting, not code: set the workflow's trigger from it. 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 the POST action's fields 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 fake client that has no real identity data:
{
"client_id": "TEST-0001",
"first_name": "Test",
"last_name": "Client",
"ssn": "000-00-0000",
"dob": "1990-01-01",
"address": "1 Example St, Testville",
"phone": "555-0100"
}
Check that the POST reached the credit API with these fields, and that the run stops with credit-pull-returned-no-report if the response has no report. If run-status tools aren't available, check the result in your credit-report API directly. Then publish, confirm the trigger is active, and give the user the webhook URL to point their intake system at. The user deletes any test data, not the agent.
Notes
- Not built: the Google Drive PDF upload and the HubSpot deal update. HubSpot has no connection. Both steps need a connection and an enabled action before they can be added.
- Not built: the Zapier Tables lookup for the credit API key. Keep that key in a secret store, not in the workflow source.
- Never commit a real credit API URL or any credentials. Anyone with the webhook URL can start a credit pull.
- To extend it: notify the team on failed pulls or missing tokens with a Slack or email step after the credit-pull step, or create a case-manager task for debts above a threshold with a step that compares the debt total to a limit.