Approval Request Template
When you click Approve or Reject on a request in your approval table, the requester gets a Slack message with the decision.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/send-slack-dm-for-zapier-tables-approval-decisions/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Business Owners · Team communication
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/send-slack-dm-for-zapier-tables-approval-decisions
Set it up with the CLI
- Add it. Copies the folder into
zaps/send-slack-dm-for-zapier-tables-approval-decisions/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/send-slack-dm-for-zapier-tables-approval-decisions - 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-slack-dm-for-zapier-tables-approval-decisions - Check it. Its recent runs, with status and errors.
npx zap-pack logs send-slack-dm-for-zapier-tables-approval-decisions
zaps/send-slack-dm-for-zapier-tables-approval-decisions/
- 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
- connections/slack.tsThe
slackaccount it uses - connections/zapier-tables.tsThe
zapier-tablesaccount it uses - triggers/button-click-record.tsWhat starts it:
zapier-tablesbutton_click_record1 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: someone clicks a button on a record in the approval table (
zapier-tables,button_click_record). - Workflow checks which button was clicked. Approve sends "Your request has been approved!"; Reject sends "Your request has been rejected." Any other button is ignored.
- Slack looks up the requester by the Slack username typed on the record, then sends them a direct message with the decision.
The Zap doesn't change the record. Each click sends one message.
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 |
|---|---|---|
table_id |
triggers/button-click-record.ts |
The approval table, with Name, Details of Request, Slack Username, and Approve and Reject buttons. Look up its ID with the user's Zapier Tables connection. |
The table needs these fields in this order: Name (text), Details of Request (long text), Slack Username (text), Approve (button), Reject (button). The APPROVE_BUTTON_KEY and REJECT_BUTTON_KEY values in config.ts match the Approve and Reject button fields; change them only if the user's table uses different field keys.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/send-slack-dm-for-zapier-tables-approval-decisions, replace each REPLACE_… value as this file says, then run npx zap-pack deploy send-slack-dm-for-zapier-tables-approval-decisions, 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
zapier-tablesto the user's Zapier Tables connection for the table, andslackto the user's Slack connection for the workspace where the requesters are. - Source: publish
workflow.tsandconfig.ts.triggers/button-click-record.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them, withtable_idreplaced by the user's answer. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug, find the row whosekeyisbutton_click_record, 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 trigger's output and the Slack
user_by_usernameanddirect_messageactions with the user's connections before the first test run, and fix any key inworkflow.tsthat doesn't match.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP), with a test record in the approval table that the user created for this:
{
"field_data_key": "data__f4",
"new": {
"data": {
"f1": "Test Requester",
"f2": "Test request details",
"f3": "test.user"
}
}
}
Confirm that the test user receives one direct message reading "Your request has been approved!" in Slack. The user deletes the test record and its message, not the agent.
Notes
- Clicking Approve or Reject on any record sends a message to whoever is named in its Slack Username field, so keep that column accurate before the Zap is turned on.
- The Zap sends each message as a bot. It doesn't mention people, so the message doesn't ping a channel.
- Never commit a real table ID or a real Slack username.