Create an A/B test entry in your experiment database
When a task reaches your A/B testing section in Asana, a matching entry is created in your Notion experiment database, so every test has a record without manual copying.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-a-b-test-entry-in-your-experiment-database/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Product · Product experimentation
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-a-b-test-entry-in-your-experiment-database
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-a-b-test-entry-in-your-experiment-database/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-a-b-test-entry-in-your-experiment-database - 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-a-b-test-entry-in-your-experiment-database - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-a-b-test-entry-in-your-experiment-database
zaps/create-a-b-test-entry-in-your-experiment-database/
- 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
- connections/asana.tsThe
asanaaccount it uses - connections/notion.tsThe
notionaccount it uses - triggers/task-moved-to-section.tsWhat starts it:
asanatask_moved_to_section - 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 task is moved to a section in an Asana project (
asana,task_moved_to_section), set to your A/B testing section. - Notion creates one item in your experiment database (
notion,create_database_item). The item's body holds the task name as a heading, the task link, the owner (the assignee's name, or "Unassigned") and the task description.
The Zap only creates entries. It doesn't change the task or any existing entry.
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 |
|---|---|
EXPERIMENT_DATA_SOURCE |
The Notion database that new entries go into. Ask which database it is, then look up its data source ID with the user's Notion connection |
Also ask which Asana workspace, project and section mean "A/B testing", and set the trigger's workspace, project and section_id to them from the dropdowns. The trigger has no REPLACE_ value, so this is a question, not a lookup.
Review the default with them: CONTENT_FORMAT is "markdown", which renders the heading and link. Leave it unless they need another format.
Before turning it on, confirm the Notion database is shared with the Notion integration being used, and ask whether each entry should also set the database's title, task-link and status properties. If so, map them to that database's property names.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-a-b-test-entry-in-your-experiment-database, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-a-b-test-entry-in-your-experiment-database, 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
notionto the user's Notion connection for the workspace with the experiment database, and bindasanato the Asana connection for the project (the trigger uses it too). Both apps need a connection. - Source: publish
workflow.tsandconfig.ts, withEXPERIMENT_DATA_SOURCEreplaced by the user's answer.triggers/task-moved-to-section.tsandconnections/are settings, not code: set the workflow's trigger and connection bindings from them, and set the trigger'sworkspace,projectandsection_idto the user's A/B testing section. The trigger file names the app by its slug; for the trigger'sselected_api, callsearch_triggerswith that slug (asana), find the row whosekeyis the trigger'sevent(task_moved_to_section), 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. Check Notion's property names too, since they depend on the database.
Test it
Run this sample as a draft test (run_workflow_draft in Zapier MCP) before publishing:
{
"gid": "1200000000000001",
"name": "[install-test] Checkout button copy test",
"notes": "Compare 'Start free trial' against 'Try Zapier free' on the pricing page.",
"permalink_url": "https://app.asana.com/0/0/1200000000000001",
"assignee": { "name": "Test Person" }
}
Check that one new Notion entry appeared with the task name as its heading, the link, the owner line and the description. If run-status tools aren't available, check the result in Notion directly. Ask the user to delete the test entry and the test task; the agent doesn't delete test data.
Notes
- The entry's body carries the task details. To fill the database's own properties (title, task link, status), add those fields to the Notion step once you know their names.
- Each task moved into the section creates one entry, so a task moved in and out again creates another.
- Anyone who can move tasks into that section can create entries in your database. Keep the section limited to the people who should.
- To update an existing entry with the same task link instead of creating a new one, or to fill a tag or owner field from the task's custom fields or assignee, change the Notion step.