What this workflow does
This workflow uses n8n to watch a Microsoft Outlook inbox and reply to certain emails automatically.
It looks only for emails from [email protected] and writes reply drafts using AI from OpenAI’s GPT-4o-Mini.
The replies keep the same style as your own emails and save drafts in Outlook so you can check them first.
This saves time spending hours replying by hand and helps keep replies clear and consistent.
Who should use this workflow
Anyone handling many similar sales emails in Outlook can use this workflow.
It fits sales managers or teams overwhelmed with repeated questions from one main address.
Also useful for users wanting to keep replies personalized but automated.
Tools and services used
- Microsoft Outlook: To receive emails and save reply drafts.
- OpenAI GPT-4o-Mini: For AI-generated reply text.
- n8n Automation Platform: To connect Outlook and OpenAI with workflow logic.
How the workflow works (Inputs → Processing → Output)
Inputs
- New incoming emails to Outlook inbox.
- Only emails sent from [email protected] are processed.
Processing Steps
- The Microsoft Outlook Trigger node watches for new emails from the specific sender.
- The email content passes to the LangChain Agent node which holds instructions and style examples.
- This node creates an AI prompt to draft a reply similar to your usual tone.
- The prompt goes into the LangChain OpenAI Chat Model node which uses GPT-4o-Mini to write the reply.
- The reply text is sent to the Microsoft Outlook Tool node set to draft a reply message back to the original sender.
Output
- A draft reply saved in the Outlook Drafts folder, ready for user review and send.
Beginner step-by-step: How to use this workflow in n8n
Step 1: Import the workflow
- Download the workflow file using the Download button on this page.
- Open the n8n editor where you build and manage your workflows.
- Use “Import from File” to load the saved workflow JSON into n8n.
Step 2: Configure credentials and settings
- Add your Microsoft Outlook account credentials with OAuth2 authentication in n8n credentials manager.
- Enter your OpenAI API Key in the LangChain OpenAI Chat Model node.
- Check the sender filter in the Microsoft Outlook Trigger node is set to [email protected] or change to your required email.
- Verify the Microsoft Outlook Tool node is set to draft replies (not send automatically).
- Optionally, update any custom prompt texts or examples in the LangChain Agent node.
Step 3: Test and activate
- Send a test email from [email protected] to your connected Outlook inbox.
- Run the workflow manually or trigger by the test email.
- Check the Drafts folder in Outlook for the AI-generated reply.
- If satisfied, activate the workflow toggle in n8n to run continuously and live.
Workflow inputs and outputs explained
The main input is an email message from [email protected] arriving in Outlook.
The workflow outputs a new draft reply email in Outlook’s Drafts folder addressed only to the original sender.
This output lets you review replies before sending them to avoid mistakes.
Edge cases and error handling
- If no emails match the filter, the workflow does not trigger, so no unnecessary processing.
- Invalid or missing OpenAI API keys cause generation failure; check credentials if replies fail.
- Improper Outlook Tool node setup may cause replies to send automatically instead of saving drafts.
- No messages will be processed if sender filter is wrong or if Outlook authentication expires.
Customization ideas for the workflow
- Change sender filter in the Outlook Trigger node to monitor different or multiple sender emails.
- Switch AI model from GPT-4o-Mini to other OpenAI models inside the LangChain OpenAI Chat Model node for different reply styles.
- Adjust AI instructions in LangChain Agent node to make replies more formal, casual, or multilingual.
- Optionally enable auto-send mode in Outlook Tool node to skip draft review and send replies automatically.
- Add support for multi-language prompt instructions to handle international email replies.
- Consider self-host n8n for better control and security when running this workflow on your own server.
Summary of what this workflow gives you
✓ Saves hours of manual email replying by drafting replies automatically using AI.
✓ Keeps replies in your own tone and style for clear, consistent communication.
✓ Protects privacy by replying only to the sender email.
✓ Draft mode allows review before sending to avoid errors.
✓ Filters messages to only process relevant sales emails, not all inbox mail.
✓ Integrates easily with Microsoft Outlook and OpenAI in n8n automation.
