Follow up AutoCount quotations and create invoices with Gmail and GPT-4o
UnknownWhat this workflow does
This AI workflow has 34 nodes and runs on Auto Count events (created) (plus 2 other triggers). Along the way it connects Gmail, OpenAI Chat Model, Slack and Autocount (community).
How it runs
Trigger: On Auto Count events (created) (plus 2 other triggers).
- Set Workflow Parameters (Edit Fields (Set)): sets 7 fields: companyName, senderName, salesAccount…
- Route by Event Trigger (Switch): routes items into 3 branches
- Start Quote Tracking (Data table): insert (row)
- Fetch Due Follow-Ups (Data table): get (row)
- Retrieve Tracked Quotes (Data table): get (row)
- Retrieve Quotation Details (Auto Count): get (quotation)
- Link Email to Quote (Code): runs custom JavaScript code
- Check Quote Pending Status (If): checks a condition and branches into true / false
- Fetch Quote for Email (Auto Count): get (quotation)
- Generate Follow-Up (Basic LLM Chain): sends a prompt to an LLM, with model: Utilize OpenAI GPT-4 for Writing; output parser: Parse Email Template
…plus 18 more steps. See the full node list below.
Services it uses
Other OpenAI + Gmail templates (1,623) · Other OpenAI + Slack templates (979) · Other Gmail + Slack templates (957)
Before you upgrade to n8n 3.0
We can't fully verify this one: it relies on 2 community packages, and n8n 3.0 turns unverified community packages off by default (N8N_UNVERIFIED_PACKAGES_ENABLED=false).
- Check that n8n-nodes-autocount is verified or supports 3.0 (used in When AutoCount Quotation Received).
- Check that n8n-nodes-autocount is verified or supports 3.0 (used in Retrieve Quotation Details, Fetch Quote for Email, Tag Quote as Accepted).
- Also check Gmail Trigger below v1.4 runs as v1.4 (drafts skipped, max emails per poll).
Nodes used (15)
- Auto Count Trigger
n8n-nodes-autocount.autoCountTrigger - Edit Fields (Set)
n8n-nodes-base.set - Schedule Trigger
n8n-nodes-base.scheduleTrigger - Gmail Trigger
n8n-nodes-base.gmailTrigger - Switch
n8n-nodes-base.switch - Data table
n8n-nodes-base.dataTable - Auto Count
n8n-nodes-autocount.autoCount - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - Gmail
n8n-nodes-base.gmail - Code
n8n-nodes-base.code - Information Extractor
@n8n/n8n-nodes-langchain.informationExtractor - Slack
n8n-nodes-base.slack
From the author
Quick overview This workflow follows up every new AutoCount quotation with AI-written Gmail emails, reads the customer's reply with OpenAI, and acts on it: accepted quotes are marked won and turned into sales invoices, declined quotes are marked lost, and…