Create invoice drafts from chat or forms with Claude and Google Workspace
Ready for 3.0What this workflow does
This AI workflow has 25 nodes and runs when someone submits an n8n form (“Create an invoice”) (plus 1 other trigger). Along the way it connects Anthropic Chat Model, Google Drive and Gmail.
How it runs
Trigger: When someone submits an n8n form (“Create an invoice”) (plus 1 other trigger).
- Config (Edit Fields (Set)): sets 19 fields: request, source, addon…
- Chat settings (Edit Fields (Set)): sets 1 field: allowed_chat_users
- Read the spreadsheet (HTTP Request): calls an HTTP API (GET)
- Read the chat event (Code): runs custom JavaScript code
- Parse the sheets (Code): runs custom JavaScript code
- Is it a request? (If): checks a condition and branches into true / false
- Read the request (Basic LLM Chain): sends a prompt to an LLM, with model: Claude Haiku 4.
- Reply in Chat (Respond to Webhook): sends the response back to the webhook caller
- Check the reading (Code): runs custom JavaScript code
- Reading OK? (If): checks a condition and branches into true / false
…plus 12 more steps. See the full node list below.
Services it uses
Other Google Sheets + Gmail templates (2,102) · Other Google Drive + Google Sheets templates (720) · Other Gmail + Google Drive templates (465)
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 (12)
- n8n Form Trigger
n8n-nodes-base.formTrigger - Webhook
n8n-nodes-base.webhook - Edit Fields (Set)
n8n-nodes-base.set - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Respond to Webhook
n8n-nodes-base.respondToWebhook - HTTP Request
n8n-nodes-base.httpRequest - Anthropic Chat Model
@n8n/n8n-nodes-langchain.lmChatAnthropic - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Google Drive
n8n-nodes-base.googleDrive - Gmail
n8n-nodes-base.gmail - n8n Form
n8n-nodes-base.form
From the author
Quick overview This workflow accepts an invoice request from an n8n Form or Google Chat, reads customer and month using Anthropic Claude, pulls line items from Google Sheets, generates an invoice PDF from a Google Docs template in Google Drive, and creates a…