Microsoft Outlook is a comprehensive email and calendar management platform used by millions of professionals worldwide.
Microsoft Outlook is a comprehensive email and calendar management platform used by millions of professionals worldwide. With Relevance AI’s Outlook integration, you can seamlessly connect your Outlook account to your AI agents, enabling them to manage emails, calendar events, contacts, and more, making your communication workflows more efficient and intelligent.
The Outlook integration in Relevance AI was built by Relevance AI, and is therefore supported by our team, not Microsoft. If you have a question or issue with using Outlook in Relevance AI, please reach out to our support team. If you have a question or issue that is only about Outlook, you can reach out to Microsoft support.
Connecting your Outlook account to Relevance AI is a straightforward process:
Go to the “Integrations & API Keys” page in the sidebar of your Relevance AI dashboard.
Click on “Outlook” from the available integrations.
Click on the “Add Integration” button.
In the pop-up window, sign into your Microsoft account.
Grant the necessary permissions for Relevance AI to access your Outlook data.
Once authenticated, your Outlook account will appear as a connected integration.
After connecting, you can use Outlook as a trigger for your agents to automatically respond to incoming emails, or use Outlook tool steps in your custom tools to manage emails, calendar events, and contacts.
The Outlook integration provides a comprehensive set of actions that your agents can use to interact with your emails, calendar, and contacts. These actions can be incorporated into your agent’s workflows as tool steps, enabling sophisticated communication automation capabilities.
In addition to the pre-built actions available in the tool directory, you can build custom tools that perform Outlook-specific activities using the Microsoft Outlook API Call tool step. This gives you access to the full Microsoft Graph API for advanced email, calendar, and contact operations.
Example: Creating a Calendar Event with Custom Properties
Here’s a practical example of using the Microsoft Outlook API Call tool step to create a calendar event with custom properties:API Endpoint: POST /me/calendar/eventsConfiguration:
You can configure your agents to automatically respond to incoming Outlook emails by setting up Outlook as a trigger.
The Outlook trigger has a 25MB per-attachment limit due to Microsoft Graph API constraints, so emails with attachments larger than 25MB will not be processed by the trigger. To work around this, compress large files before sending, convert large DOCX files to PDF format to reduce file size, or use cloud storage links (OneDrive, SharePoint) instead of large attachments.
Choose whether to filter emails that trigger your agent. Without a search filter, your agent will receive every email sent to your connected account.You can use Microsoft Graph search query syntax to filter emails:
subject:ask us anything - Subject contains “ask us anything”
body:book a demo - Body contains “book a demo”
from:*apple.com - Only emails from apple.com domain
hasAttachments:true - Only emails with attachments
received:07/23/2018 - Only emails received on this date
Build a tool that uses the “Send Email (Outlook)” tool step to respond to emails. Equip your agent with this tool in the agent settings.
5
Configure tool permissions
Set the tool permissions to “approval mode” initially so your agent asks for permission before sending emails. Switch to autopilot once you’re confident in the responses.
6
Write agent instructions
In the “Core Instructions” section of your agent settings, write a prompt that guides your agent on how to respond to emails.
It can take up to 30 minutes for the first email to come through after setting up the trigger.
Here are some ways you can leverage the Outlook integration with your agents:
Customer Support Email Agent
Create an agent that automatically responds to customer support emails, categorizes inquiries, searches your knowledge base for relevant information, and provides helpful responses. The agent can escalate complex issues to human team members and track response times.
Meeting Scheduler Assistant
Build an agent that manages your calendar by finding available time slots, scheduling meetings with attendees, sending calendar invites, and handling rescheduling requests. The agent can check multiple calendars for conflicts and suggest optimal meeting times.
Email Triage & Organization
Deploy an agent that automatically organizes incoming emails by moving them to appropriate folders, adding labels based on content, flagging urgent messages, and archiving newsletters or promotional emails according to your preferences.
Lead Qualification Agent
Create an agent that qualifies leads from incoming emails, extracts key information (company size, budget, timeline), updates your CRM, and schedules follow-up calls with qualified prospects while sending polite responses to unqualified leads.
Meeting Notes & Follow-up
Build an agent that sends meeting summaries and action items to attendees after calendar events, tracks follow-up tasks, and sends reminders for pending action items. The agent can integrate with your project management tools.
Email Newsletter Manager
Deploy an agent that manages your email newsletter by collecting subscriber information, organizing contact lists, scheduling newsletter sends, and tracking engagement metrics like open rates and click-throughs.
Out-of-Office Assistant
Create an agent that handles emails while you’re away by sending personalized auto-responses, forwarding urgent messages to colleagues, categorizing emails for later review, and scheduling follow-ups for when you return.
Invoice & Receipt Processor
Build an agent that automatically processes invoices and receipts received via email, extracts key information (amount, date, vendor), saves attachments to cloud storage, and updates your accounting system or expense tracking tools.
Event Registration Manager
Deploy an agent that handles event registrations via email, confirms attendance, sends calendar invites with event details, manages waitlists, and sends reminder emails before the event.
Contact Sync & Management
Create an agent that keeps your contacts synchronized across platforms, enriches contact information from email signatures, updates contact details when changes are detected, and removes duplicate entries.
I converted my account input to an input variable but can't see my account. What should I do?
This issue occurs because new Microsoft Teams scopes have been added to the Outlook integration (OnlineMeetingTranscript.Read.All and MailBoxSettings.Read).Solution: Update the permission type filter to select the Microsoft Teams option. This will allow you to see and select your Outlook account that now includes the expanded Microsoft Teams permissions.If you continue to experience issues, try reconnecting your Outlook account through the Integrations & API Keys page to ensure all the latest permissions are granted.
What permissions does the Outlook integration require?
The integration requires permissions to read and write emails, manage calendar events, access contacts, and read mailbox settings. This includes Microsoft Teams scopes for meeting transcripts and mailbox settings. You can review the specific permissions during the authentication process.
How long does it take for the email trigger to start working?
After setting up the Outlook trigger, it can take up to 30 minutes for the first email to come through to your agent. Subsequent emails should be processed more quickly, typically within a few minutes.
Why aren't emails with large attachments triggering my agent?
The Outlook trigger has a 25MB per-attachment limit due to Microsoft Graph API constraints, so emails with attachments larger than 25MB will not be processed by the trigger. To work around this, ask senders to compress large files before sending, convert large DOCX files to PDF format to reduce file size, or use cloud storage links (OneDrive, SharePoint, Dropbox) instead of attaching large files directly. You can also set up a separate workflow to handle large file transfers outside of email. This is a Microsoft Graph API limitation, not a Relevance AI limitation.
Can I filter which emails trigger my agent?
Yes! You can use Microsoft Graph search query syntax to filter emails. For example:
Can I use multiple Outlook accounts with my agents?
Yes, you can connect multiple Outlook accounts through the Integrations & API Keys page. When building tools or setting up triggers, you can select which account to use from the dropdown menu. This is useful for managing different email addresses or separating personal and business communications.
How do I prevent my agent from sending emails automatically?
Set your email-sending tools to “approval mode” in the agent settings. This ensures your agent will always ask for permission before sending an email. You can review the draft, make edits if needed, and then approve or reject the send action.
Can my agent access shared mailboxes or distribution lists?
Yes, if you have the appropriate permissions, your agent can access shared mailboxes. You’ll need to use the Microsoft Graph API Call tool step with endpoints like /users/{userId}/messages instead of /me/messages. Make sure your connected account has delegated access to the shared mailbox.
What's the difference between the pre-built Outlook tool steps and the API Call tool step?
Pre-built tool steps (like “Send Email” or “Create Event”) are designed for specific, common tasks and have simplified interfaces with guided inputs. The Microsoft Outlook API Call tool step gives you full access to Microsoft Graph API, allowing you to implement any functionality available in the API, including advanced operations not covered by pre-built steps.
Are there rate limits for Outlook API calls?
Yes, Microsoft Graph API enforces rate limits. The specific limits depend on your Microsoft 365 subscription and the type of requests being made. Your agents should be designed to handle rate limiting gracefully. Microsoft typically returns a 429 Too Many Requests status code when limits are exceeded.
Can I access email attachments with the Outlook integration?
Yes, you can access email attachments using the Microsoft Graph API. Use the endpoint GET /me/messages/{id}/attachments to list attachments, and GET /me/messages/{id}/attachments/{attachmentId} to download specific attachments. The attachment content is returned as base64-encoded data.Note: When using the Outlook trigger, emails with attachments larger than 25MB will not be processed due to Microsoft Graph API limitations.
How do I remove the Outlook integration?
To remove the Outlook integration:
Open your agent settings
Navigate to “Integrations & API Keys”
Click the three dots menu next to your connected Outlook trigger
Click “Remove”
Once removed, your agent will no longer receive emails or have access to your Outlook data. You can also disconnect the integration entirely from the main Integrations & API Keys page.
Can I use the Outlook integration with Office 365 or Microsoft 365?
Yes! The Outlook integration works with Outlook.com, Office 365, and Microsoft 365 accounts. All these services use the same Microsoft Graph API, so the integration functions identically across all Microsoft email platforms.