Generate and track invoices with HubSpot, Gmail, Slack, Sheets, and Notion — n8n 工作流
概览
How it works
This workflow triggers when a HubSpot deal stage changes to Closed Won and automatically generates an invoice. It collects deal and contact data, builds a styled invoice, converts it into a PDF, and sends it to the client. The system logs all invoices and alerts the team, then monitors payment status with automated reminders. If payment is delayed, it escalates the issue and handles errors separately.
Step-by-step
Trigger and data collection**
HubSpot - Deal Trigger – Star
使用的节点
Google SheetsHTTP RequestSlackGmailNotionCode
工作流预览
⚡
�
🎯 HubSpot - Deal Trigger
�
🔀 IF - Is Deal Closed W…
🏷️ HTTP - Get Deal Deta…
🔗 HTTP - Get Deal Assoc…
⚙️ Code - Extract Contac…
👤 HTTP - Get Contact De…
📄 Code - Build Invoice …
🖨️ HTTP - Generate PDF
📊 Google Sheets - Log I…
📓 Notion - Create Invoi…
📧 Gmail - Send Invoice …
💬 Slack - Invoice Sent …
⏳
⏳ Wait - 7 Day Payment W…
🔍 HTTP - Recheck Deal S…
�
🔀 IF - Payment Received?
✅ Slack - Payment Confir…
📧 Gmail - Follow-up Ema…
⏳
⏳ Wait - 5 More Days
🔍 HTTP - Final Payment …
�
🔀 IF - Still Unpaid? (E…
🚨 Slack - Escalation Al…
📓 Notion - Flag as Over…
✅ Slack - Late Payment C…
⚡
⚡
⚡ Error Trigger
🚨 Slack - Workflow Erro…
25 nodes23 edges
工作原理
- 1
触发器
工作流由 触发器 触发器启动。
- 2
处理
数据流经 25 个节点, connecting code, errortrigger, gmail。
- 3
输出
工作流完成自动化并将结果发送到配置的目标。
节点详情 (25)
GO#1
Google Sheets
googleSheets
HT#2
HTTP Request
httpRequest
SL#3
Slack
slack
GM#4
Gmail
gmail
NO#5
Notion
notion
CO#6
Code
code
如何导入此工作流
- 1点击右侧 下载 JSON 按钮保存工作流文件。
- 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入。
- 3选择下载的
generate-and-track-invoices-with-hubspot-gmail-slack-sheets-and-notion文件并点击导入。 - 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
- 5点击 测试工作流 验证一切正常,然后激活它。
或直接在 n8n → 从 JSON 导入 中粘贴:
{ "name": "Generate and track invoices with HubSpot, Gmail, Slack, Sheets, and Notion", "nodes": [...], ...}
集成
codeerrortriggergmailgooglesheetshttprequesthubspottriggerifnotionslackwait
创建者
Avkash Kakdiya
@itechnotion
标签
codeerrortriggergmailgooglesheetshttprequesthubspottriggerifnotionslackwait