Create or update public post from project webhook
When a project update comes in, its public release-notes post is created or refreshed, the tracking table is updated, and the team gets a short Discord note.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-or-update-public-post-from-project-webhook/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Product · Digital product operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-or-update-public-post-from-project-webhook
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-or-update-public-post-from-project-webhook/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-or-update-public-post-from-project-webhook - 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-or-update-public-post-from-project-webhook - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-or-update-public-post-from-project-webhook
zaps/create-or-update-public-post-from-project-webhook/
- 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 4 to fill in
- connections/cms_api.tsThe
cms_apiaccount it uses - connections/discord.tsThe
discordaccount it uses - connections/zapier-tables.tsThe
zapier-tablesaccount 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 project event arrives at a Webhooks by Zapier catch hook (
webhook,hook_v2) withproject_reference,title,descriptionandstatus. A project tool or script posts to the hook. - Zapier Tables looks up the row whose project reference matches. If there is no reference, the run stops.
- The CMS posts API is called. If the row already holds a post ID, that post is updated; otherwise a new one is created in the default category. The post ID is kept.
- Zapier Tables creates the row (no match) or updates it (match), storing the project reference, the post ID and the status.
- Discord posts one short line with the title, project reference and status to the team channel.
The Discord message never pings anyone: PING_MENTIONS stays false.
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 |
|---|---|
TRACKING_TABLE_ID |
The Zapier Tables table that tracks each project's public post |
CMS_POSTS_URL |
The URL of the CMS posts endpoint, such as https://<their CMS host>/api/posts |
CMS_DEFAULT_CATEGORY |
The CMS category every post is published under |
DISCORD_CHANNEL_ID |
The Discord channel that gets the team summary |
Also review the defaults with them: REFERENCE_FIELD, POST_ID_FIELD and STATUS_FIELD are the tracking table's field keys for the project reference, CMS post ID and publish status, so map them to the user's column names. Keep PING_MENTIONS false.
Ask what the project tool sends. The payload must carry project_reference, title, description and status. If its field names differ, change the input schema in workflow.ts before publishing.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-or-update-public-post-from-project-webhook, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-or-update-public-post-from-project-webhook, 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 tracking table),discordto their Discord connection (for the team channel), andcms_apito their CMS connection. The CMS is not a Zapier app, so connect it in the CMS's own app or through a Zapier app that wraps it. Webhooks by Zapier needs no connection. - 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 connections (and sample the trigger, if it has one) before the first test run, and fix any key in
workflow.tsthat doesn't match.
Test it
Run it once as a draft test, with the tracking table, CMS category and Discord channel set to ones the user controls, so the test touches no real posts. Use this sample:
{
"project_reference": "PRJ-1042",
"title": "Dark mode for dashboards",
"description": "Dashboards now follow the system theme.",
"status": "released"
}
Check that the tracking row for PRJ-1042 has the post ID and status, that the CMS post shows the new title and body, and that one line reached the Discord channel with no mention. If run-status tools aren't available, check the tracking table, the CMS and the Discord channel directly. Then publish, confirm the trigger is active, and ask the user to delete the test row, post and message. The user deletes test data, not the agent.
Notes
- The CMS call runs through
sdk.fetchwith thecms_apiconnection, so that connection must exist before the workflow can publish. - If two rows share a project reference, the lookup takes the first match.
- Anyone with the webhook URL can publish or change posts, so keep it private.
- To publish only some projects, such as those with a chosen tag, add a check before the CMS step.
- To send high-priority projects to a separate Discord channel, or to add an approval step before publishing, change the steps after the lookup.