Send monthly Japanese support inquiry reviews with OpenAI and Gmail
Ready for 3.0What this workflow does
This AI workflow has 19 nodes and runs on a schedule (every month at 09:00) (plus 1 other trigger). Along the way it connects OpenAI Chat Model and Gmail.
How it runs
Trigger: On a schedule (every month at 09:00) (plus 1 other trigger).
- Set Report Settings (Edit Fields (Set)): sets 3 fields: manager_email, report_month, previous_month
- Sample Inquiries (Edit Fields (Set)): sets 1 field: rows
- Load Inquiry Log (Data table): get (row)
- Split Sample Rows (Split Out): splits a list into separate items
- Combine Inquiries (Aggregate): combines items into one
- Insert Inquiries (Data table): insert (row)
- Count Inquiries (Code): runs custom JavaScript code
- Any Inquiries? (If): checks a condition and branches into true / false
- Write Monthly Review (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse Review
- Verify Review Numbers (Basic LLM Chain): sends a prompt to an LLM, with model: OpenAI Chat Model; output parser: Parse Verified Review
…plus 4 more steps. See the full node list below.
Services it uses
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 (12)
- Schedule Trigger
n8n-nodes-base.scheduleTrigger - Edit Fields (Set)
n8n-nodes-base.set - Data table
n8n-nodes-base.dataTable - Aggregate
n8n-nodes-base.aggregate - Code
n8n-nodes-base.code - If
n8n-nodes-base.if - Basic LLM Chain
@n8n/n8n-nodes-langchain.chainLlm - Structured Output Parser
@n8n/n8n-nodes-langchain.outputParserStructured - OpenAI Chat Model
@n8n/n8n-nodes-langchain.lmChatOpenAi - Gmail
n8n-nodes-base.gmail - Split Out
n8n-nodes-base.splitOut - Manual Trigger
n8n-nodes-base.manualTrigger
From the author
Quick overview This workflow runs on the first day of each month, analyzes inquiry records from an n8n Data Table, uses OpenAI to draft and verify a Japanese monthly support review, emails the report via Gmail, and converts the recommended improvements into…