Create creative asset records from task webhook entries
When a task posts its creative assets, each file becomes a Notion asset record with its format, style, theme and creator read from the filename, linked to the original request.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-creative-asset-records-from-task-webhook-entries/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Design · Creative operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-creative-asset-records-from-task-webhook-entries
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-creative-asset-records-from-task-webhook-entries/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-creative-asset-records-from-task-webhook-entries - 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-creative-asset-records-from-task-webhook-entries - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-creative-asset-records-from-task-webhook-entries
zaps/create-creative-asset-records-from-task-webhook-entries/
- 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 3 to fill in
- connections/notion.tsThe
notionaccount it uses - triggers/hook.tsWhat starts it:
webhookhook_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 task system posts a payload to a Webhooks by Zapier catch hook (
webhook,hook_v2). The payload carries the task ID, the task permalink, optional board ID and assignee, and a list ofassets(each with atitleand anid). - Check: if an asset link is given it must be
https://. If the list of assets is empty, the run stops and writes nothing. - Notion searches the requests database for a row whose permalink matches the task. If none exists, it creates one.
- Parse: for each asset, the filename (extension dropped) is split on
_into format, visual style, source, theme, CTA and creator. The asset URL is built from the board ID and asset ID. - Notion creates one asset record per asset with the parsed fields, the URL, status
New, and a relation to the request. One failed asset is counted and does not stop the others.
The Zap only creates rows. It never edits or deletes an existing request or asset.
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 |
|---|---|
REQUESTS_DATA_SOURCE |
The Notion data source (database) of creative requests. Look it up from the database they name |
ASSETS_DATA_SOURCE |
The Notion data source (database) of creative asset records. Look it up from the database they name |
ASSET_URL_BASE |
The host their asset links point at, with no trailing slash |
Also review the defaults with them. The property names in config.ts must match their two databases exactly: which property holds the task permalink (REQUEST_PERMALINK_PROPERTY), the title, the asset URL, the relation from assets to requests, and the status with its New value. The defaults are Permalink, Name, URL, Request, Status and New.
Confirm these before building:
- Both databases are shared with the user's Notion integration, or they will not appear in the picker.
- The filename uses
_between six segments (format, visual style, source, theme, CTA, creator), in that order. If not, changeFILENAME_PROPERTIESandparseFilenameinworkflow.ts. - The task system sends the asset list in the payload. This zap does not fetch assets from another app.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-creative-asset-records-from-task-webhook-entries, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-creative-asset-records-from-task-webhook-entries, 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 that holds both databases. Webhooks by Zapier needs none. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/hook.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 Notion connection before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run this sample once as a draft test. It has no assets, so it writes nothing to Notion:
{
"task_id": "install-test-0",
"task_permalink": "https://example.com/install-test/task/0",
"asset_link": "https://example.com/install-test/boards/0",
"board_id": "0",
"assignee": "install-test",
"assets": []
}
Expect { "skipped": true, "reason": "no-assets" } and no Notion activity.
Then run a payload with one or two assets whose titles follow the filename pattern, against a test requests database and a test assets database with rows named [install-test] …. Check that:
- a request row exists whose permalink matches
task_permalink, created if it was missing; - one asset row per asset exists, with the parsed format, style, source, theme, CTA and creator, the URL built from the board and asset IDs, status
New, and the relation to the request; - the result reports
recordedequal to the number of assets andfailedas 0.
If run-status tools aren't available, check the result in Notion directly. Then publish, confirm the trigger is active, and give the user the webhook URL to point the task system at. The user deletes the test rows, not the agent.
Notes
- Notion's own property types must match what the workflow sends. A select property takes one option name, and a relation takes a list of page IDs.
- To notify a channel when assets are added, add a Slack step after the asset loop that posts one summary message.
- To recognise more filename prefixes, add a field to
FILENAME_PROPERTIESand a matching property name. - Anyone with the webhook URL can create asset records in the database. Keep it private, and never commit a real data source ID, asset host or webhook URL.