Generate professional emails instantly using this powerful n8n workflow. Select the recipient, context, and tone (formal, friendly, casual) for perfect AI-driven communication using the OpenAI n8n node.
Download this n8n workflow template and start using it instantly.
Business professionals needing high-volume, personalized email drafting.
Customer service teams seeking consistent, tone-appropriate responses.
Users looking for advanced examples of a combined custom n8n node and AI logic.
Anyone interested in creating powerful custom internal tools using n8n templates.
Writing emails that match the desired tone—whether formal, casual, or friendly—can be time-consuming, especially when managing high volumes of communication. This powerful n8n workflow solves this by providing a simple, user-facing form that handles all the complexity.
By leveraging the LangChain agent and the OpenAI n8n node, this solution transforms raw context and a tone selection into a perfectly formatted, ready-to-send email. This n8n workflow demonstrates how to use custom code within an n8n node to dynamically adjust the AI prompt based on user selection, ensuring highly tailored output every time. It’s one of the most practical n8n templates for accelerating internal communications.
This automation starts with an accessible public form and ends by displaying the generated email back to the user.
To deploy this useful n8n workflow, follow these steps:
Email Generator Form (Form Trigger): The initiating n8n trigger. It collects four inputs: Recipient Name, Email Subject, Email Context (textarea), and Tone (dropdown with Professional, Friendly, Formal, Casual options).
Extract Form Data (Set n8n node): Standard node used to cleanly map the form output objects into simple variables (recipient, subject, context, tone) for easier downstream manipulation in the n8n workflow.
Build AI Prompt (Code n8n node): A critical custom n8n node that uses JavaScript logic to create precise tone-specific instructions. This dynamic prompt creation ensures the AI adheres strictly to the user’s selection.
OpenAI Chat Model (LangChain Node): Configures the connection to the OpenAI API, specifying the gpt-3.5-turbo model with a temperature of 0.7 for balanced creativity and consistency.
Generate Email (LangChain Agent n8n node): The core intelligence step. It uses the input prompt to interface with the OpenAI model and produce the final, coherent email text (output).
Display Generated Email (Form Completion n8n node): This n8n node is the final display step, formatting the AI-generated email body along with the original metadata (Subject, Recipient, Tone) in an easy-to-read completion message.
Use this powerful n8n workflow to automatically generate professional HTML email signatures, convert them to PDF, and deliver them instantly via Gmail. A perfect n8n template for HR automation.

Automate document creation (PDF, PPTX, DOCX, XLSX) using an n8n workflow and Anthropic Claude AI skills. Automatically download files and upload them to Google Drive.

Automate document creation using n8n. Trigger an n8n workflow when a new PDF is uploaded to Google Drive, extract data using OpenAI, and generate a professional draft document with email notifications.

Streamline billing using this powerful n8n workflow. Automatically create Xero contacts and invoices from Jotform submissions, and use an OpenAI n8n node to draft personalized email notifications via Gmail.

Automate professional product ad generation using this advanced n8n workflow. Input an image and caption via Telegram, and Google Gemini AI returns a high-quality, commercial-grade advertisement.

Automating your biz, one workflow at a time. I build and share powerful n8n workflows to save you hours and boost productivity. All workflows are completely free. Streamline your operations with no-code.







































