
Template - Automation starter - About 20 minutes
Automation starter: verified webhook handling for failed charges
1
Verified webhook handling for failed charges
2
Alerts enriched with customer, amount, code and retry date
3
Severity routing: soft declines log, final failures page
4
A recovery-rate tracker to prove the flow pays
Step 1
Verify the webhook signature check with a test event before trusting any alert.
Step 2
Route severities correctly; paging on soft declines trains people to ignore pages.
Step 3
Draft the customer email but review sends for the first dozen.
A SaaS routes failed charges by severity. Sample events (example).
| Event | Severity | Route |
|---|---|---|
| card_declined, retry in 3 days | Soft | Logged only |
| insufficient_funds, retry in 3 days | Soft | Logged, customer email draft |
| final failure, subscription cancelled | Final | Page the owner |
| Webhook with bad signature | Rejected | Never trusted |
The numbers shown are examples. Swap in your own.
Done looks like
Mistakes to avoid
Each connector page describes what it does.
Download the workflow definition (json) - the full trigger, steps and connector requirements as a workflow file, ready to import when Automate opens. Every step is readable on this page and in the linked playbook today.
Related playbook: Alert on failed payments
Plan for about 20 minutes for the first run. The install steps above are in order, and the worked example shows what a finished setup looks like with example data.
The workflow file will be importable when Automate opens. Every step is readable on this page and in the linked playbook, and the Slack, Stripe connector pages cover the services involved.
Verify the webhook signature check with a test event before trusting any alert.
Other templates that use the same services: SaaS starter · Approval chain · Weekly research brief
This template follows Alert on failed payments. The same steps, with the free tool that does each one.
Step 1 of 5
Connect the payment provider's failure webhook and verify the signature check with webhook-tester.
Use Webhook Tester. Build webhook payloads, sign them with HMAC, and get the exact curl command to fire them
Step 2 of 5
Enrich the alert with what the responder needs: customer email, amount, failure code, retry date.
Step 3 of 5
Route by severity: a retryable soft decline logs quietly, a final failure alerts a human.
Step 4 of 5
Draft the customer email from a template but keep sending manual until you have seen a dozen correct drafts.
Step 5 of 5
Track recovery rate monthly; the number pays for the automation.
These run in your browser with no account.
Compose the JSON, sign it like the real provider would, and copy the curl that fires it. Webhook integrations stop needing a staging deploy to test.
Real output from the tool
YOU ENTER:
Preset
github
Input
{"event":"user.created","data":{"id":"u_123","email":"new@customer.com"}}
Input
whsec_test_123
Input
https://localhost:3000/webhooks/provider
THE TOOL RETURNS:
curl -X POST 'https://localhost:3000/webhooks/provider' \
-H 'Content-Type: application/json' \
-H 'X-Hub-Signature-256: sha256=d2a7a1778ccddd6311aa21be3f1cb4bb29f1772b80bfdac1d57832f6e0e68734' \
--data-binary '{"event":"user.created","data":{"id":"u_123","email":"new@customer.com"}}'Pick the email type, fill in the specifics, and get a complete template with subject line, preview text, body, and CTA - written to be read on a phone and answered.
Real output from the tool
YOU ENTER: Type outreach Your name / company Sam, Acme Recipient (name or role) Jordan The point (one sentence) we cut onboarding time in half for support teams The ask (the one thing you want) a 15-minute call next week THE TOOL RETURNS: Subject: Quick question, Jordan Preview: we cut onboarding time in half for support teams Hi Jordan, we cut onboarding time in half for support teams. I thought this was relevant to you specifically. Worth a 15-minute call next week? Either way, no follow-up spiral - one reply settles it. Sam, Acme
Name each step, say where it goes next - including yes and no targets for decisions - and get a validated flow graph as SVG. Unknown targets, unreachable steps, missing terminals and cycles are called out before you ship the map.
Real output from the tool
YOU ENTER: Input A: Ticket arrives -> B B: Urgent? -> yes: C, no: D C: Page on-call -> E D: Queue for morning -> E E: Resolved? -> yes: END, no: B THE TOOL RETURNS: yes no yes no Ticket arrives A Urgent? B Page on-call C Queue for morning D Resolved? E
Each connector page shows whether it is available yet.
Uses:
Until it ships, set this part up by hand in Stripe.
Uses:
Until it ships, set this part up by hand in Slack.
The download is a workflow file. These are its fields.
| Kind | automation-workflow |
|---|---|
| Status | draft-definition |
| Connectors | stripe, slack |
| Linked playbook | alert-on-failed-payments |
| Install steps | 3 |
| Included parts | 4 |
No. Signing happens in your browser with the Web Crypto API. The secret never leaves the tab.
HMAC-SHA256, hex and base64 output, with sha256= prefix styles for GitHub and Stripe formats.
Yes - structured for relevance-first, short, one ask. The rest is your research.
Generate the outreach, then the follow-up type for touch two and three.
Yes - real workflows loop. Cycles are detected and listed so they are deliberate, not accidental.
Fine - every node with no outgoing edge (or -> END) counts as a terminal.

Each template lists what ships inside and the install steps.