Send incoming receipts to tax provider and archive
Each new receipt in your intake folder is emailed to your tax provider, then filed away in a processed folder a day later.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/send-incoming-receipts-to-tax-provider-and-archive/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Finance · Tax management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/send-incoming-receipts-to-tax-provider-and-archive
Set it up with the CLI
- Add it. Copies the folder into
zaps/send-incoming-receipts-to-tax-provider-and-archive/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/send-incoming-receipts-to-tax-provider-and-archive - 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 send-incoming-receipts-to-tax-provider-and-archive - Check it. Its recent runs, with status and errors.
npx zap-pack logs send-incoming-receipts-to-tax-provider-and-archive
zaps/send-incoming-receipts-to-tax-provider-and-archive/
- 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 4 to fill in
- connections/gmail.tsThe
gmailaccount it uses - connections/google-drive.tsThe
google-driveaccount it uses - triggers/file-in-folder.tsWhat starts it:
google-drivefile_in_folder_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 new file is created in your intake folder (
google-drive,file_in_folder_v2). - Google Drive looks for a file with the same name in the processed folder. If one exists, the run stops and sends nothing.
- Google Drive downloads the new file.
- Gmail emails the file as an attachment to your tax provider's upload address, from your connected Gmail account, with the subject
Receipt: <file name>. - The workflow waits one day (
DELAY_SECONDS) so a person can review the receipt first. - Google Drive moves the original file into the processed folder.
The Zap only moves originals. It never deletes one.
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 |
|---|---|
INTAKE_FOLDER_ID |
The Google Drive folder receipts land in. Ask which folder, then look up its ID with the Drive connection. Also set as the trigger's folder |
PROCESSED_FOLDER_ID |
The Google Drive folder originals move into after the delay. Ask which folder, then look up its ID with the Drive connection |
TAX_UPLOAD_ADDRESS |
The tax provider's upload inbox address. Ask the user; no connection holds it |
SENDER_ADDRESS |
The address of the connected Gmail account that sends the email. Look it up with the Gmail connection; it must be that account |
Also review the defaults with them: DELAY_SECONDS (in workflow.ts, 86400, one day; use a few hours for same-day uploads), SUBJECT_TEMPLATE and BODY_TEXT (in config.ts).
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/send-incoming-receipts-to-tax-provider-and-archive, replace each REPLACE_… value as this file says, then run npx zap-pack deploy send-incoming-receipts-to-tax-provider-and-archive, 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
google-driveto the user's Google Drive connection for the account that owns both folders, andgmailto the Gmail connection that sends the email. No other apps need a connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/file-in-folder.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them, and set the trigger's folder toINTAKE_FOLDER_ID. 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
Test with test folders and a test file, not real receipts:
- Create two test folders in Drive named
[install-test] intakeand[install-test] processed. SetINTAKE_FOLDER_IDandPROCESSED_FOLDER_IDto their IDs. - Set
TAX_UPLOAD_ADDRESSandSENDER_ADDRESSto the same connected Gmail address, so the test only emails the user. - Set
DELAY_SECONDSto60for the test, then back to86400. - Drop a small test file named
[install-test] receipt.pdfin the intake folder and start a draft test run with input{"id": "<the file's ID>", "title": "[install-test] receipt.pdf"}.
Check that the email arrives with the attachment, that the file is in the processed folder after the delay, and that the intake folder no longer has it. If run-status tools aren't available, check the result in Google Drive and Gmail directly. The user deletes the test folders, file and email; the agent does not. Then publish, and confirm the trigger is active.
Notes
- To shorten the delay for same-day uploads, change
DELAY_SECONDS. To add a second recipient, add an address toto; for an approval step before high-value receipts are sent, add a pause before the send step. - The duplicate check matches on file name only. File size is not compared.
- The attachment passes the download action's result straight to Gmail. Check it on the first test.