Send escalating invoice reminders with Notion, Claude, Gmail and Telegram
Ready for 3.0What this workflow does
This AI workflow has 12 nodes and runs on a schedule (cron 0 8 * * *). Along the way it connects Notion, Anthropic Chat Model, Gmail and Telegram.
How it runs
Trigger: On a schedule (cron 0 8 * * *).
- Fetch Invoice Records (Notion): get many (database page)
- Normalize Notion Records (Code): runs custom JavaScript code
- Calculate Overdue Status (Code): runs custom JavaScript code
- Draft Reminder (AI Agent): runs an AI agent, with model: Anthropic Chat Model; output parser: Structured Output Parser
- Build Output (Code): runs custom JavaScript code
- Send Reminder Email (Gmail): uses Gmail
- Update Notion Record (Notion): update (database page)
- If: checks a condition and branches into true / false
- Alert Freelancer (At Risk) (Telegram): uses Telegram
Services it uses
Other Gmail + Telegram templates (361) · Other Anthropic + Gmail templates (192) · Other Notion + Gmail templates (120)
Before you upgrade to n8n 3.0
Nothing in this workflow is removed in n8n 3.0, so it should import and run after the upgrade.
- Code node: the task timeout drops from 300s to 60s. Test with a realistic data volume.
Nodes used (9)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Notion
n8n-nodes-base.notion - Code
n8n-nodes-base.code - AI Agent
@n8n/n8n-nodes-langchain.agent - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - If
n8n-nodes-base.if - Telegram
n8n-nodes-base.telegram
From the author
Quick overview This workflow runs every morning to pull unpaid invoices from a Notion database, calculates how overdue each one is, uses Anthropic Claude to draft an escalation-appropriate reminder, emails the client via Gmail, updates the invoice record in…