π Search Outlook emails with natural language queries using GPT-4o
β‘ 1,058 views Β· π AI RAG & Knowledge Retrieval
Description
This workflow allows you to search your Outlook mailbox with natural language. You type what youβre looking for (e.g., βinvoice from last weekβ), and the workflow:
- Uses OpenAI to generate a search query.
- Searches Outlook emails and ranks them by relevance.
- Outputs results in a simple table with score + link to each email.
π The number of results can be changed (default: 5).
βοΈ Setup Instructions
1οΈβ£ Set Up OpenAI Connection
- Go to OpenAI Platform
- Navigate to OpenAI Billing
- Add funds to your billing account
- Copy your API key into the OpenAI credentials in n8n
2οΈβ£ Set Up Outlook Connection
- In n8n β Credentials β New β Microsoft Outlook OAuth2 API
- Log in with your Outlook account & approve access
- Attach this credential to the Search Outlook node in the workflow
- (Optional) Change the
limitparameter in the node if you want more/less than 5 results
π¬ Contact Information
Need help customizing this workflow or building similar automations?
π§ robert@ynteractive.com
π Robert Breen
π ynteractive.com
π Nodes Used
Microsoft Outlook, AI Agent, OpenAI Chat Model, Simple Memory, Structured Output Parser, Chat Trigger
π₯ Import
Download workflow.json and import into n8n:
Workflow menu β Import from File