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 tasks in a second Data Table.
How it works
- Runs on a schedule at 09:00 on the first day of each month.
- Calculates the reporting month (last month) and the comparison month (two months ago), then loads all rows from the n8n Data Table named
inquiry_log.
- Aggregates the rows and computes monthly stats such as totals, counts by category/channel/product, unresolved count, and average response time, and prepares sample inquiry summaries.
- Stops if there are no inquiries for the reporting month.
- Uses OpenAI to write a structured Japanese review (headline, findings, and improvement actions) based on the computed statistics and inquiry summaries, then runs a second OpenAI pass to verify and correct any numbers and remove unsupported points.
- Sends the verified review to the manager via Gmail and inserts each improvement action as an open row in the n8n Data Table named
improvement_tasks.
Setup
- Create two n8n Data Tables named
inquiry_log (received_at, channel, category, product, summary, resolved, response_hours) and improvement_tasks (month, team, action, reason, status).
- Add an OpenAI credential (Chat Completions) and select the model you want to use in the OpenAI Chat Model node.
- Add a Gmail OAuth2 credential and ensure the workflow can send email from the desired Gmail account.
- Replace
REPLACE_WITH_MANAGER_EMAIL with your manager’s email address and populate inquiry_log with your real inquiry data (optionally run the manual “Load Sample Data” branch once to test).