Viral Content Creation Agent
Every morning AI drafts a viral video package for your niche, saves it as a Google Doc, shares it, and sends you the link on Slack.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/create-daily-viral-content-to-google-docs-and-slack/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Marketing · Content marketing
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/create-daily-viral-content-to-google-docs-and-slack
Set it up with the CLI
- Add it. Copies the folder into
zaps/create-daily-viral-content-to-google-docs-and-slack/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/create-daily-viral-content-to-google-docs-and-slack - 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-daily-viral-content-to-google-docs-and-slack - Check it. Its recent runs, with status and errors.
npx zap-pack logs create-daily-viral-content-to-google-docs-and-slack
zaps/create-daily-viral-content-to-google-docs-and-slack/
- 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/google-docs.tsThe
google-docsaccount it uses - connections/google-drive.tsThe
google-driveaccount it uses - connections/slack.tsThe
slackaccount it uses - triggers/every-day.tsWhat starts it:
scheduleeveryDay - 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: every day at 8:00 AM in the account's timezone, on weekends too (
schedule,everyDay). - AI by Zapier drafts one document for the niche: three trending topics judged for short and long video, the strongest one chosen, a 5-second hook, an 80-second short script, a 5-minute long script with b-roll and filming notes, a caption and up to six hashtags per video, a two-paragraph newsletter post, and an engagement keyword with three reply templates and a daily posting SOP.
- Google Docs creates a document titled
Viral contentplus the run's date, with that text in it. - Google Drive adds the sharing preference the user chose to the document. It keeps any sharing that already exists.
- Slack sends the user a direct message with the document link.
The Zap only creates and shares documents and sends that one message. It does not post anything publicly or reply to comments.
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 |
|---|---|---|
BUSINESS_NICHE |
config.ts |
The niche the videos cover, in a few words, for example "home coffee brewing". The AI looks for trends in it. |
SLACK_RECIPIENT_ID |
config.ts |
The Slack user who gets the daily link: look up their user ID (U…) with the user's Slack connection. |
SHARING_PREFERENCE |
config.ts |
Who can open the document. Pick one key from the list below. |
Sharing keys (permission in Google Drive's Add File Sharing Preference):
org_link_view: anyone at the organization with the link can view (recommended default)org_link_comment: anyone at the organization with the link can commentorg_link_edit: anyone at the organization with the link can editorg_discoverable: anyone at the organization can find and viewpublic_link_view: anyone on the internet with the link can viewpublic_link_comment: anyone on the internet with the link can view and commentpublic_link_edit: anyone on the internet with the link can editpublic_discoverable: anyone on the internet can find and view
Only use a public_ key when the user says so. The org_ keys need a Google Workspace organization account.
Also review the defaults with them: the 8:00 AM time in triggers/every-day.ts (hod), and MODEL_ID in config.ts.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/create-daily-viral-content-to-google-docs-and-slack, replace each REPLACE_… value as this file says, then run npx zap-pack deploy create-daily-viral-content-to-google-docs-and-slack, 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-docsandgoogle-driveto the same user's Google connection (the one that owns the documents), andslackto the user's Slack connection for the workspace of the recipient. The AI step uses Zapier-managed credentials (authentication_id"0"), so it needs no connection. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/every-day.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_triggerswithschedule, find the row whosekeyiseveryDay, 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
get_completionaction of AI by Zapier, thenewtxtdocumentaction of Google Docs, theshare_fileaction of Google Drive and thechannel_messageaction of Slack with the user's connections before the first test run, and fix any key inworkflow.tsthat doesn't match. The Google Docs and Slack keys above have not been checked against a live connection.
Test it
Build-only by default: don't run this Zap in the user's account unless they ask. If they do, run it once as a draft test (run_workflow_draft in Zapier MCP) with this sample. The test creates a real document and sends a real Slack message, so tell them that first.
{}
Confirm that one document with the date in its title appears in the Google Drive folder, that it is shared with the chosen preference, and that the Slack message links to it. The user deletes the test document, not the agent.
Notes
- The Zap runs every day, so it creates one new document each day. Tell the user that; they may want to move old documents somewhere else.
- The AI writes the research from its own knowledge unless the AI step is given a web-search tool, so trends may lag the day. Review the document before posting anything from it.
- The engagement keyword and reply templates are drafts for a person to set up. The Zap doesn't reply to comments or post anywhere.
- Never commit a real Slack user ID, a Google document ID or a real niche that names a private person.