See llms.txt for all machine-readable content.

Back to Templates

Draft keigo-checked Japanese contact form replies with OpenAI and Teams

Quick overview

This workflow collects inquiries via an n8n Form, matches them to an FAQ stored in an n8n data table, drafts a Japanese keigo email reply with OpenAI, runs a second OpenAI pass to correct keigo, and posts the structured draft and review notes to Microsoft Teams.

How it works

  1. Receives a new inquiry submission from an n8n Form with the sender’s name, company, email, and message.
  2. Loads all rows from the n8n data table keigo_faq, aggregates them into one FAQ list, and adds your company name and email signature.
  3. Uses OpenAI to classify the inquiry into a category (pricing, demo request, product question, trouble report, other, or sales pitch/spam) and selects category-specific reply guidance.
  4. Matches up to three relevant FAQ entries by scoring keyword hits in the message and compiles them into a short FAQ text block.
  5. Uses OpenAI to generate a structured Japanese business email draft (subject, body, urgency, and staff check points) using only the matched FAQ answers as facts.
  6. Uses OpenAI again to correct keigo issues in the draft and list the specific fixes made.
  7. Sends an Adaptive Card to Microsoft Teams via an incoming webhook containing the original inquiry, the keigo-checked draft, the fix list, the FAQ topics used, and the check points for staff review.

Setup

  1. Create an n8n data table named keigo_faq with topic, keywords, and answer columns, and populate it (optionally by running the “Load Sample FAQ” branch once).
  2. Add an OpenAI credential and select your preferred model (configured as gpt-5-mini) for the classification, drafting, and keigo-check steps.
  3. Set your company name and signature text in the workflow’s company details step.
  4. Create a Microsoft Teams Workflows incoming webhook and paste its URL into the Teams HTTP request step.
  5. Publish the n8n Form and share its production URL where you want to receive contact form submissions.