See llms.txt for all machine-readable content.

Back to Templates

Send monthly Japanese support inquiry reviews with OpenAI and Gmail

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

  1. Runs on a schedule at 09:00 on the first day of each month.
  2. 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.
  3. 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.
  4. Stops if there are no inquiries for the reporting month.
  5. 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.
  6. 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

  1. 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).
  2. Add an OpenAI credential (Chat Completions) and select the model you want to use in the OpenAI Chat Model node.
  3. Add a Gmail OAuth2 credential and ensure the workflow can send email from the desired Gmail account.
  4. 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).