Post a daily email digest to Slack with AI
Once a day, AI reads your Gmail inbox and posts what needs you in Slack, each with a reply you can copy. Everything else is grouped so you can skip it.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/post-a-daily-email-digest-to-slack-with-ai/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- Personal Productivity · Email management
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/post-a-daily-email-digest-to-slack-with-ai
Set it up with the CLI
- Add it. Copies the folder into
zaps/post-a-daily-email-digest-to-slack-with-ai/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/post-a-daily-email-digest-to-slack-with-ai - 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-a-daily-email-digest-to-slack-with-ai - Check it. Its recent runs, with status and errors.
npx zap-pack logs post-a-daily-email-digest-to-slack-with-ai
zaps/post-a-daily-email-digest-to-slack-with-ai/
- 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/ai.tsThe
aiaccount it uses - connections/gmail.tsThe
gmailaccount 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 4:00 PM in the account's timezone, weekends included (
schedule,everyDay). - Gmail is searched with
INBOX_QUERY(by default, the last day's inbox, up to 50 emails). The workflow reads each email's sender, subject and Gmail's short preview through Gmail's API, and builds a link that opens the email. When nothing came in, the Zap stops there. - AI by Zapier sorts the emails from their previews and returns the ones that need the user: every email that asks something of them or that a person wrote to them directly, most urgent first.
- Gmail opens the first
MAX_FULL_EMAILSof those (10 by default) in full. The workflow keeps each one's text, cuts the quoted thread below a reply, and keeps up toMAX_BODY_CHARS(4,000) characters. - AI by Zapier writes the digest. It opens with how many emails came in and how many need the user. Under Needs you it lists the sorted emails in order, with a suggested reply they can copy when someone expects an answer, written from the full text where it has it. Under Everything else it groups the rest by
CATEGORIES, each with a count and up to three links. - Slack posts the digest as the bot, in a channel or as a DM.
Ask the user
Each REPLACE_… value is set per person.
| Setting | Where | What goes there |
|---|---|---|
REPLACE_SLACK_CHANNEL |
SLACK_CHANNEL in config.ts |
Where the digest goes: a channel only they read, or their own Slack member ID to get it as a DM. Look up the ID with their Slack connection |
Also ask what time they want it and what usually fills their inbox. Set hod in triggers/every-day.ts and CATEGORIES in config.ts to match, since the categories decide how easy Everything else is to skim.
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/post-a-daily-email-digest-to-slack-with-ai, replace each REPLACE_… value as this file says, then run npx zap-pack deploy post-a-daily-email-digest-to-slack-with-ai, which signs the user in to Zapier when it gets there. Otherwise build with Zapier MCP, as the steps below say. Either way, name the workflow Post a daily email digest to Slack with AI (zapier.sh/post-a-daily-email-digest-to-slack-with-ai): zap-pack takes that name from this file's title, so leave the title as it is, and with Zapier MCP give the workflow that name when you create it. 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
gmailto the user's Gmail connection for the inbox to read, andslackto their Slack connection.aiuses AI by Zapier and needs no account of its own. - Source: publish
workflow.tsandconfig.ts, with theREPLACE_values set to the user's answers.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_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 the Slack
channel_messageanddirect_messageactions and the AI by Zapierget_completionaction with the user's connections before the first test run, and fix any key inworkflow.tsthat doesn't match. Gmail is read through its API with thegmailconnection, so there's no Gmail action to inspect.
Test it
Run a draft test (run_workflow_draft in Zapier MCP) with SLACK_CHANNEL set to the user's own member ID, so the digest arrives as a DM only they see. The schedule trigger sends nothing the Zap reads, so any input works:
{}
Confirm that the DM opens with the count line, that each link under Needs you opens the right email, and that each suggested reply answers what its email asked, including anything below the preview. Then set SLACK_CHANNEL to where the user wants the digest. The user deletes the test DM, not the agent.
Notes
- The AI sorts every email from its sender, subject and preview, then gets the full text only of the ones that need the user, up to
MAX_FULL_EMAILS. Past that, a suggested reply answers only what the preview shows. The user reads the email before sending any reply. - The full text of those emails goes to AI by Zapier, and the digest copies email subjects and previews into Slack. Send it to a DM or a channel only the user can read.
INBOX_QUERYtakes any Gmail search.in:inbox newer_than:1d -category:promotionsdrops promotions, and-from:leaves out a sender.- To skip weekends, set
weekendsto"no"intriggers/every-day.ts.