Post new A/B test rows to team channel
When someone adds an A/B test to your tracking sheet, its variants, link, reporter and screenshot are posted to your team's Slack channel so everyone can review it right away.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/post-new-a-b-test-rows-to-team-channel/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Design · User testing
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/post-new-a-b-test-rows-to-team-channel
Set it up with the CLI
- Add it. Copies the folder into
zaps/post-new-a-b-test-rows-to-team-channel/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/post-new-a-b-test-rows-to-team-channel - 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 post-new-a-b-test-rows-to-team-channel - Check it. Its recent runs, with status and errors.
npx zap-pack logs post-new-a-b-test-rows-to-team-channel
zaps/post-new-a-b-test-rows-to-team-channel/
- 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/google-sheets.tsThe
google-sheetsaccount it uses - connections/slack.tsThe
slackaccount it uses - triggers/new-row-notify-hook.tsWhat starts it:
google-sheetsnew_row_notify_hook - 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 row is added to the bottom of the A/B test worksheet in Google Sheets (
google-sheets,new_row_notify_hook). - If the row has no test name, variants or URL, the run stops (blank row).
- Google Sheets looks up every row with the same test URL. If an earlier row already has that URL, the run stops so the same test isn't posted twice.
- Slack posts one message to the team channel: an
@channelmention, the test name, Variant A, Variant B, the test URL as a link, who reported it, and the screenshot. When the row has a screenshot URL the image is attached; otherwise the message says none is attached yet.
The Zap only reads the sheet and posts to Slack. It never edits a row, and a skipped run posts 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 | What goes there |
|---|---|
SPREADSHEET_ID |
The A/B test log spreadsheet: the long ID in its URL. The trigger uses the same spreadsheet and worksheet. |
SLACK_CHANNEL_ID |
The channel that gets the posts, as its ID (starts with C) |
Also review the defaults with them: WORKSHEET_ID ("0" is the first tab; the worksheet needs a header row), the six column settings (TEST_NAME_COLUMN to SCREENSHOT_COLUMN; the defaults assume columns A to F hold test name, Variant A, Variant B, test URL, reporter and screenshot URL), and MENTION_CHANNEL in workflow.ts, which prefixes each post with @channel.
Ask them:
- Which spreadsheet and tab is the A/B test log, and which columns hold the test name, the two variants, the test URL, the reporter and the screenshot link? If they have no log yet, offer to create one with those six headers.
- Should posts
@channeleveryone, or post quietly?
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/post-new-a-b-test-rows-to-team-channel, replace each REPLACE_… value as this file says, then run npx zap-pack deploy post-new-a-b-test-rows-to-team-channel, 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-sheets(the account that owns the test log) andslack(the workspace with the team channel) to the user's connections. The trigger and the actions use them. Every app here needs a connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/new-row-notify-hook.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them, and set the trigger'sspreadsheetandworksheetparams fromSPREADSHEET_IDandWORKSHEET_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
Add a row to a test sheet the user controls (or use one they just added), then run it as a draft test run (run_workflow_draft in Zapier MCP) with the trigger's record as input. Sample input:
{
"id": 2,
"row": 2,
"COL$A": "[install-test] Checkout button color",
"COL$B": "Green button, 'Buy now'",
"COL$C": "Orange button, 'Complete purchase'",
"COL$D": "https://example.com/checkout?exp=install-test-1",
"COL$E": "Sample Reporter"
}
Empty cells are left out of the trigger record, as COL$F is here. Check that:
- one message appears in the channel with the
@channelmention, both variants, an "Open the test" link, the reporter and the "none attached yet" screenshot line; - a row that adds a screenshot URL in
COL$Fposts with the image attached; - a later row with the same test URL returns
{ skipped: true, reason: "duplicate-url" }and posts nothing.
If run-status tools aren't available, check the result in Slack directly. Publish after the checks pass, and wait until the trigger reads back as active. The user deletes the test rows and messages, not the agent.
Notes
- The trigger fires only for rows added at the bottom of the sheet; editing an existing row doesn't post again.
- The duplicate check reads up to 50 rows with the same URL and compares the text exactly, so
https://example.com/aandhttps://example.com/a/count as different tests. A row with no URL is always posted. - Slack attaches the screenshot only if its URL is publicly reachable; a link behind a login shows only as the "View screenshot" link.
- Google Sheets drops a leading
'in a cell. - To DM the test owner instead of mentioning the channel, look up the reporter in Slack and send a direct message. To create a task for long reviews instead of posting, add a step that creates it in the user's project tool.
- Never commit a real spreadsheet ID or channel ID.