RhinoAgents + Microsoft Outlook

RhinoAgents × Microsoft Outlook

Connect AI Employees to Microsoft Outlook & Exchange Online Mailboxes, Shared Inboxes, and Calendars via Microsoft Graph API v1.0, Entra ID OAuth 2.0, and Graph Change Notifications.

Entra ID OAuth 2.0 Microsoft Graph v1.0 Shared Mailboxes Graph Change Webhooks
Graph v1.0
Mail, Folders, Attachments
25+
Typed Outlook Tools
Shared Inbox
ap@ / support@ Ready
100%
Draft-First & HITL Ready
01 / INTEGRATION ARCHITECTURE

How RhinoAgents Connects Safely to Microsoft Outlook

RhinoAgents connects to Exchange Online and Microsoft 365 mailboxes via Microsoft Graph API v1.0 under an Entra ID App Registration, supporting Application Access Policies to lock access to specific shared mailboxes.

// Microsoft Outlook Enterprise Execution Flow
OUTLOOK / M365
Mailboxes • Shared Inboxes
Folders, Attachments, Calendar
Graph v1.0 / OAuth
RHINOAGENTS RUNTIME
AI Employee + Guardrails
RBAC, Tool Registry, Audit Log
HITL Gate
SIGN-OFF
Slack / Teams
1-Click Approval

Pattern A — Shared Mailbox Triage

Monitor invoices@ or support@, parse PDFs, categorize emails, and create Dynamics/SAP records.

Shared Inbox → Parse → ERP/CRM

Pattern B — Graph Change Webhooks

Microsoft Graph subscriptions notify RhinoAgents immediately when new mail arrives in a watched folder.

Graph Webhook → Agent → Triage

Pattern C — Draft Reply + Teams Approval

Agents save a threaded reply in Outlook Drafts and ask for 1-click sign-off in Microsoft Teams.

Outlook Draft → Teams HITL → Send
02 / HOW TO CONFIGURE

Step-by-Step Microsoft Outlook Setup

Configure an Entra ID App Registration with scoped Microsoft Graph Mail permissions (and optional Exchange ApplicationAccessPolicy).

STEP 01 • ENTRA ID

Create App Registration

  1. Open Azure Portal → Entra ID → App registrations → New registration.
  2. Copy Tenant ID, Client ID, and create a Client Secret.
STEP 02 • GRAPH PERMISSIONS

Grant Mail & Calendar Scopes

  1. Add Mail.ReadWrite and Mail.Send (Delegated or Application) and grant admin consent.
STEP 03 • MAILBOX ISOLATION

Scope to Specific Shared Mailboxes

  1. Recommended: Use Exchange PowerShell New-ApplicationAccessPolicy so the app can only read ap@ or support@.
STEP 04 • RHINOAGENTS

Verify Connection

  1. Open RhinoAgents → Integrations → Microsoft Outlook → Connect and enter credentials.
  2. Test GET /v1.0/users/{mailbox}/mailFolders/Inbox/messages.
Required Connector Fields in RhinoAgents AES-256 Encrypted Vault
Parameter Example Format Purpose
tenant_id 72f988bf-86f1-41af... Entra ID Tenant UUID
client_id / secret a1b2c3d4... / •••••• Entra ID App credentials (vault encrypted)
mailbox_address invoices@company.com Target user or shared mailbox UPN
03 / COMPLETE API ACTIONS REGISTRY

Supported Microsoft Outlook Tools & Triggers

Typed Microsoft Graph Outlook tools for messages, attachments, drafts, folders, and categories.

Read & Attachments
list_messages(folder, filter, top)
get_message(message_id)
list_attachments(message_id)
download_attachment_bytes(msg_id, att_id)
Drafts & Replies
create_reply_draft(message_id, html)
send_draft(message_id)
send_mail(to, cc, subject, html)
forward_message(message_id, to, note)
Folders & Categories
move_message_to_folder(msg_id, folder_id)
set_message_categories(msg_id, cats)
mark_message_read(msg_id, is_read)
list_mail_folders()
Calendar & Scheduling
find_meeting_times(attendees, duration)
create_calendar_event(subject, start, end)
Subscriptions
create_graph_mail_subscription(url)
renew_subscription(sub_id)
Graph Triggers
outlook.message_received
outlook.shared_inbox_attachment
outlook.calendar_event_updated
EXAMPLE TOOL EXECUTION • outlook.create_reply_draft() RBAC + HITL Enforced
{
  "tool": "outlook.create_reply_draft",
  "input": { "mailbox": "ap@acme.com", "message_id": "AAMkAGI2...", "comment": "PO-10482 verified; awaiting controller sign-off." },
  "result": { "draft_id": "AAMkAGI2_DRAFT_91", "status": "SAVED_IN_DRAFTS" }
}
05 / TECHNICAL FAQ

Microsoft Outlook Integration FAQ

Can we restrict RhinoAgents to a single shared mailbox?

Yes. Exchange ApplicationAccessPolicy (or Graph RBAC for Applications) isolates access strictly to approved mailboxes.

Does it support Draft-Only mode?

Yes. Use create_reply_draft() so staff can review drafts in Outlook or approve via Teams.

Are inline and PDF attachments supported?

Yes, download_attachment_bytes() handles PDFs, DOCX, XLSX, and CSVs.

How are Graph webhooks kept alive?

RhinoAgents automatically renews Microsoft Graph mail subscriptions before expiration.

Ready to Connect Microsoft Outlook?

Build & Test Your Microsoft Outlook AI Employee Today.

Start on the RhinoAgents platform with credits, or have our engineering team build, integrate, and manage your Microsoft Outlook AI workflows end-to-end.