AI Email Auto Responder
Documentation for the automated n8n workflow handling customer inquiries and sending AI-generated email responses.
1 n8n Workflow Architecture
The application relies on an n8n webhook workflow to process incoming inquiries and dispatch responses. The workflow executes in the following sequence:
2 Workflow Breakdown
Trigger & AI Generation
- •On Customer Inquiry The frontend Vue application sends a POST request to the n8n Webhook node containing the user's
emailandmessage. - •Generate AI Response An HTTP Request node calls OpenRouter's Chat Completion API. The system prompt instructs the LLM to draft a helpful, professional response to the user's inquiry.
Formatting & Delivery
- •Clean AI Output (Manual) A Code node or Mutate node manually parses the JSON response from OpenRouter and extracts only the assistant's message content.
- •Format to HTML Since LLMs natively output Markdown, a Markdown-to-HTML formatting node ensures the email body renders correctly with bolding, lists, and links.
- •Email Response to Client The Gmail node constructs an email utilizing the provided HTML and sends it directly back to the customer's original email address.