Attach new design files to matching project card
When a design file lands in your shared Dropbox folder, it is attached to the Trello card with the same name, so reviewers find it on the card.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/attach-new-design-files-to-matching-project-card/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Design · Cad technical design
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/attach-new-design-files-to-matching-project-card
Set it up with the CLI
- Add it. Copies the folder into
zaps/attach-new-design-files-to-matching-project-card/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/attach-new-design-files-to-matching-project-card - 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 attach-new-design-files-to-matching-project-card - Check it. Its recent runs, with status and errors.
npx zap-pack logs attach-new-design-files-to-matching-project-card
zaps/attach-new-design-files-to-matching-project-card/
- 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/dropbox.tsThe
dropboxaccount it uses - connections/trello.tsThe
trelloaccount it uses - triggers/new-file.tsWhat starts it:
dropboxnew_file1 to fill in - 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: Dropbox, New File in Folder (
dropbox,new_file), on the folder you choose. Each new file in that folder starts a run, with its name and contents. - Trello, Find Card: searches the board you choose for cards that contain the filename. If no card has exactly that name, the run stops and attaches nothing.
- Trello, Add Attachment to Card: attaches the full file (not a link) to the matching card. A file whose name matches no card changes nothing.
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 | Where | What goes there |
|---|---|---|
REPLACE_DROPBOX_FOLDER |
triggers/new-file.ts, params.directory; config.ts, DROPBOX_FOLDER |
The Dropbox folder that holds the design files, such as /Design/CAD. Set both to the same path. |
REPLACE_TRELLO_BOARD_ID |
config.ts, TRELLO_BOARD_ID |
The Trello board that holds the project cards. |
Also confirm with them that card names match the design filenames exactly, including the extension. A card with a different name is never matched.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/attach-new-design-files-to-matching-project-card, replace each REPLACE_… value as this file says, then run npx zap-pack deploy attach-new-design-files-to-matching-project-card, 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
trello(the account that can see the board) anddropbox(the account that owns the design folder, used by the trigger) to the user's connections. Neither needs another app. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/new-file.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.
Test it
Run it once as a draft test (run_workflow_draft in Zapier MCP) before publishing. Use a test file in the watched folder whose name matches a test card on the board:
{
"filename": "[install-test] bracket-v2.dwg",
"file": "<the file the Dropbox trigger delivers>"
}
Check that the test card now has the file attached, and that a file whose name matches no card leaves every card unchanged. If run-status tools aren't available, check the result in Trello directly. Then publish, confirm the trigger is active, and ask the user to delete the test file and the test card, not the agent.
Notes
- To create a card when no match is found instead of skipping, or to move the card to a review list after the attachment is added, add a step after the attachment.
- Trello's keyword search returns up to 50 cards by default. If the board has more cards matching the filename than that, an exact match can be missed.
- If two cards share the exact same name, the first one returned is used.