What you’ll build
Outcome: Every Monday morning, finance or ops receives a Gmail message with KPIs and plain-language commentary sourced from your database.Prerequisites
- project_contributor access
- Postgres connection with read-only user for reporting queries
- Google connection with Gmail enabled
- LLM provider in Providers
- External scheduler (GitHub Actions, Cloud Scheduler, cron) that can POST to your webhook URL weekly
Connectors to install
Example report query
Adjust to your schema — this example aggregates orders:Build the workflow
Send via Gmail
mcp_call →
send_email to distribution list with subject line including the week ending date.Schedule
Configure external cron to POST
{} or {"report_week": "2026-W23"} to your inbound webhook each Monday 08:00 UTC.Optional approval
Insert human_task between LLM and Gmail for regulated reports — see Approve then send.
Query step
LLM step
Gmail step
Full workflow graph (copy-paste)
Bind yourpostgres and gmail MCP instances. Adjust the SQL and recipient list before publishing.
POST /v1/workflows/{id}/command with { "command": "start", "params": { "report_week": "2026-W23" } }.
Schedule with GitHub Actions (example)
Variations
- Export raw CSV with
postgres_query→ attach via a future file step, or write to Google Sheets withinsert_multiple_rows. - Swap Gmail for Resend for transactional sending from a verified domain.
- Chain multiple queries (revenue, support tickets, churn) before one LLM step.