Post SSL renewal notices to your team channel
When a certificate renewal or failure email arrives, its details are posted to your team channel with a link to the original, so the right person sees it at once.
Install it
Set up this Zap for me, read how here: https://zapier.sh/zapier/awesome-zaps/post-ssl-renewal-notices-to-your-team-channel/
Paste into Claude, ChatGPT, Cursor or any agent.
- Category
- IT · Security operations
- Author
- Zapier
- Source
- zapier/awesome-zaps, folder zaps/post-ssl-renewal-notices-to-your-team-channel
Set it up with the CLI
- Add it. Copies the folder into
zaps/post-ssl-renewal-notices-to-your-team-channel/. Outside a project, it makes one first.npx zap-pack add awesome-zaps/post-ssl-renewal-notices-to-your-team-channel - 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-ssl-renewal-notices-to-your-team-channel - Check it. Its recent runs, with status and errors.
npx zap-pack logs post-ssl-renewal-notices-to-your-team-channel
zaps/post-ssl-renewal-notices-to-your-team-channel/
- 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/gmail.tsThe
gmailaccount it uses - connections/slack.tsThe
slackaccount it uses - triggers/search.tsWhat starts it:
gmailsearch - 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 new Gmail email matches the search
subject:(certificate OR SSL OR TLS) in:inbox(gmail,search). - Filter (in code): the subject and body must contain a word starting with
renew,expirorfail. Other messages stop the run and post nothing. - Slack: one message is posted to the team channel. The first line is the sender's name (or address), then the subject in bold, then the first 300 characters of the body, then a link to the original email. Mentions and link previews are switched off, so a notice never pings the whole channel.
Ask the user
Each REPLACE_… value is set per person. Resolve channel 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 |
|---|---|
SLACK_CHANNEL |
The channel that gets the notices, looked up from the user's Slack connection. The Slack app must be in that channel. |
Also review the defaults with them: the trigger search (subject:(certificate OR SSL OR TLS) in:inbox, set on the trigger; add a from: sender to narrow it), RENEWAL_PATTERN (the words renew…, expir… and fail… that mark a notice) and PREVIEW_LENGTH (300 body characters).
Confirm with them as well:
- Which Gmail account receives the certificate emails, and which sender or subject words identify them?
- Should the renewal and failure words differ from the defaults?
Build it
If you can run shell commands, set it up with zap-pack: run npx zap-pack add awesome-zaps/post-ssl-renewal-notices-to-your-team-channel, replace each REPLACE_… value as this file says, then run npx zap-pack deploy post-ssl-renewal-notices-to-your-team-channel, 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
slack(used by the workflow's post) to the user's Slack connection for the workspace with the team channel, andgmail(used by the trigger) to the Gmail account that receives the certificate emails. Both apps need a connection; no other apps are used. - Source: publish
workflow.tsandconfig.ts, with eachREPLACE_…replaced by the user's answer.triggers/search.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 before publishing (run_workflow_draft in Zapier MCP). Use a test channel, not the team's real one. The sample is labelled [install-test] and matches the fields the Gmail trigger declares:
{
"subject": "[install-test] SSL certificate renewal failed for test.example.com",
"body_plain": "[install-test] The automatic renewal of the SSL certificate for test.example.com failed. The certificate expires in 7 days. Please check the ACME challenge.",
"from": {
"name": "[install-test] Certificate Monitor",
"email": "you@example.com"
},
"message_url": "https://mail.google.com/mail/u/0/#inbox/install-test-1"
}
Check that the run finished and that one message appeared in the test channel with the sender in bold, the subject in bold, the preview and the link. If run-status tools aren't available, check the test channel in Slack directly. Ask the user to delete the test message, since the user deletes test data, not the agent. Then publish, and confirm the trigger is active.
Notes
- The Gmail search is set on the trigger, not in code. If you change
RENEWAL_PATTERNbut not the trigger search, emails that the search never matches will never reach the filter. - Gmail's message link opens the original email in the connected account, so only people with access to that inbox can follow it. Anyone who can post to the channel sees its notices.
- To also DM the owner for high-severity failures, add a second Slack step after the channel post, filtered on the failure words. To create a task for critical expirations, add a task step after the Slack post, filtered on the expiry words.