Send milestone billing invoices with Google Sheets, GPT-4o mini, Gmail and Slack
Ready for 3.0What this workflow does
This AI workflow has 16 nodes and runs on a schedule (every 15 minutes) (plus 1 other trigger). Along the way it connects Slack, Google Sheets, OpenAI and Gmail.
How it runs
Trigger: On a schedule (every 15 minutes) (plus 1 other trigger).
- Sheets – Read Milestones (Google Sheets): uses Google Sheets
- Slack: uses Slack
- Filter – Ready to Invoice (Code): runs custom JavaScript code
- If: checks a condition and branches into true / false
- Code: runs custom JavaScript code
- GPT-4o – Write Invoice Narrative (OpenAI): uses OpenAI
- Code: runs custom JavaScript code
- Code: runs custom JavaScript code
- Gmail: send and wait for a reply
- If: checks a condition and branches into true / false
…plus 4 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other OpenAI + Google Sheets templates (2,011) · Other OpenAI + Gmail templates (1,623)
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 (8)
- Error Trigger
n8n-nodes-base.errorTrigger - Slack
n8n-nodes-base.slack - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Google Sheets
n8n-nodes-base.googleSheets - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - OpenAI
@n8n/n8n-nodes-langchain.openAi - Gmail
n8n-nodes-base.gmail
From the author
Quick Overview This workflow polls a Google Sheets milestone tracker every 15 minutes, calculates milestone-based invoice amounts, uses OpenAI (gpt-4o-mini) to draft invoice messaging, emails the invoice via Gmail with an approval link, then records approval…