Outlook Email integration for AI agents
Send, search, and organize emails across mailboxes
Connect Outlook Email to Langdock and use it in chat, in agents and in workflows.
38 actions · 7 triggers
Outlook Email actions
Each action is one step an agent or workflow can run in Outlook Email.
- Add category to email
Adds one or more categories (also known as labels or tags) to an email. Merges with any existing categories on the email (does not remove them). Category names must match entries in the user's Outlook category list - use 'List categories' to find valid names.
- Create contact
Creates a new contact in your personal Outlook address book or a specific contact folder.
- Create draft
Creates an email draft in the Drafts folder for later review and sending. Returns the draft ID and Outlook web link
- Create draft in shared mailbox
Creates an email draft in a shared mailbox (e.g., support@company.com) or another user's mailbox for later review and sending. The draft appears in the target mailbox's Drafts folder. Returns the draft ID and Outlook web link. Requires membership in the shared mailbox or delegated access to the user's mailbox
- Create folder
Creates a new mail folder. Creates a top-level folder by default, or a subfolder when a parent folder ID is provided.
- Create folder in shared mailbox
Creates a new mail folder in a shared mailbox. Creates a top-level folder by default, or a subfolder when a parent folder ID is provided.
- Draft reply to message
Creates a draft reply for review (does NOT send) — use when the user wants to draft, prepare, or save a reply for review before sending. Use the toggle to choose Reply (sender only) or Reply all (sender and all recipients); use 'send_reply' instead to send the reply immediately. Works only on your own mailbox: for an email in a shared mailbox, use 'Draft reply to message in shared mailbox' instead.
- Draft reply to message in shared mailbox
Creates a draft reply in a shared mailbox for review (does NOT send) — the draft appears in the shared mailbox's Drafts folder. Use the toggle to choose Reply (sender only) or Reply all (sender and all recipients); use 'send_reply_from_shared_mailbox' instead to send the reply immediately.
- Flag email
Flags an email in your mailbox for follow-up, marks a flag complete, or clears it. Optionally set start and due dates to add a reminder. Complements the flagged filter in Search own emails. Works only on your own mailbox: for an email in a shared mailbox, use 'Flag email in shared mailbox' instead.
- Flag email in shared mailbox
Flags an email in a shared mailbox for follow-up, marks a flag complete, or clears it. Optionally set start and due dates to add a reminder. Requires membership in the shared mailbox or delegated access.
- Forward email
Forwards an existing email message to one or more recipients with optional comment. Works only on your own mailbox: for an email in a shared mailbox, use 'Forward email from shared mailbox' instead.
- Forward email from shared mailbox
Forwards an email from a shared mailbox (e.g., support@company.com) to one or more recipients with optional comment.
- Get current user
Gets the display name and email address of the account connected to Outlook. Useful for finding out who 'I' am — for example to check whether a mailbox the user mentions is the connected account's own mailbox or someone else's. To look up other people, use 'search_people' instead.
- Get email
Gets the full content of a single email by ID and downloads all attachments. Set 'sharedFolderOwner' to the mailbox email address to fetch from a shared mailbox you have access to.
- Get person profile
Retrieves a person's directory profile by email address, including job title, department, office location, and contact details. Searches the organization directory — for personal Outlook contacts, use List contacts instead.
- List categories
Lists all available email categories (also known as labels or tags) from the user's Outlook mailbox with their assigned colors.
- List contact folders
Lists all personal contact folders (default Contacts and subfolders). Use this to retrieve the contact folder ID before listing or creating contacts inside a folder.
- List contacts
Lists contacts from your personal Outlook address book or a specific contact folder. To find people in the organization directory, use Search people instead. If listing from a contact folder, first use 'List contact folders' to get the folder ID.
- List drafts
Lists draft emails from your own Drafts folder (own mailbox only). Use 'list_drafts_in_shared_mailbox' to list drafts from a shared mailbox.
- List drafts in shared mailbox
Lists draft emails from a shared mailbox's Drafts folder. Returns draft subjects, recipients, creation dates, and attachment status. Use for browsing drafts in a shared mailbox before updating or sending them.
- List folders
Lists mail folders in the user's mailbox. Returns both well-known folders (inbox, drafts, sentitems, deleteditems, junkemail, outbox, archive, conversationhistory, scheduled, clutter) and custom folders. Use folder type filter to show only well-known or custom folders.
- Mark email read status
Marks an email in your mailbox as read or unread. Complements the read/unread filter in Search own emails. Works only on your own mailbox: for an email in a shared mailbox, use 'Mark email read status in shared mailbox' instead.
- Mark email read status in shared mailbox
Marks an email in a shared mailbox as read or unread. Requires membership in the shared mailbox or delegated access.
- Move email to folder
Moves an email or draft to a different folder — use to delete an email or draft by moving it to deleted items, archive an email, organize emails into folders, or unarchive. Accepts well-known names (inbox, drafts, sentitems, deleteditems, junkemail, outbox, archive, conversationhistory, scheduled, clutter) or folder IDs from 'list_folders'.
- Remove category from email
Removes one or more categories (also known as labels or tags) from an email. Category names are matched case-insensitively. Categories not present on the email are silently ignored.
- Search own emails
Searches your own mailbox (including subfolders) and returns matching emails — by default with full plain-text bodies (toggle off via 'includeDetails'). Use 'search_shared_email_folders' for shared mailboxes, or 'get_email' when you already have a message ID and need attachments downloaded. If the user asks about the mailbox or inbox of a specific person, team, or email address, call 'get_current_user' first to check whether that mailbox is the connected account's own — if it is not, use 'search_shared_email_folders' instead.
- Search people
Searches for people by name in the organization directory and mailbox contacts. When no search term is provided, returns people ranked by interaction frequency. Returns name, email, job title, department, and company.
- Search personal contacts
Searches your personal Outlook Contacts folder by email address or display name. Results come only from personal contacts, not the organization directory or mailbox people.
- Search shared email folders
Searches emails in a shared mailbox or another person's mailbox you have access to. Requires the mailbox's email address: if you only have a person's name, resolve it first (e.g. via 'search_people') or ask the user — never guess or invent an address.
- Send draft
Sends an existing draft email by ID. Works only on your own mailbox: for a draft in a shared mailbox, use 'Send draft from shared mailbox' instead.
- Send draft from shared mailbox
Sends an existing draft email from a shared mailbox by ID. The draft must already exist in the target mailbox's Drafts folder.
- Send email
Sends an email to the specified recipients immediately.
- Send email from shared mailbox or other user
Use when sending email from a shared mailbox (e.g., support@company.com) or on behalf of another user with delegated access. Requires 'Send As' or 'Send on Behalf' permission for user mailboxes, or membership in the shared mailbox.
- Send reply
Sends a reply to an existing email immediately — use when the user wants to reply now, send a reply, or respond to an email. Use the toggle to choose Reply (sender only) or Reply all (sender and all recipients); use 'draft_reply_to_message' to create a draft for review instead of sending immediately. Works only on your own mailbox: for an email in a shared mailbox, use 'Send reply from shared mailbox' instead.
- Send reply from shared mailbox
Sends a reply to an email in a shared mailbox immediately — use when the user wants to reply now from a shared mailbox (e.g., support@company.com). Use the toggle to choose Reply (sender only) or Reply all (sender and all recipients); use 'draft_reply_to_message_in_shared_mailbox' to create a draft for review instead of sending immediately.
- Update contact
Updates selected fields on an existing personal Outlook contact. Unspecified fields remain unchanged. Empty optional values are ignored and cannot clear a field. For a department-only change, set department and leave givenName, surname, displayName, and every other optional field unset. Clearing fields is not supported.
- Update draft
Updates an existing draft email by ID. Modify its subject, body, recipients, or attachments. Works only on your own mailbox: for a draft in a shared mailbox, use 'Update draft in shared mailbox' instead.
- Update draft in shared mailbox
Updates an existing draft email in a shared mailbox by ID. Modify its subject, body, recipients, or attachments. The draft must already exist in the target mailbox's Drafts folder.
Outlook Email triggers
A trigger starts a workflow when something happens in Outlook Email.
- Label changed on email
Triggers when categories are added to or removed from an email in your Outlook mailbox.
- Label changed on email in shared inbox
Triggers when categories are added to or removed from an email in a shared inbox (an owner you have Mail.Read.Shared access to).
- New email
Triggers when a new email is received.
- New email in shared inbox
Triggers when new emails are received in specified shared inboxes (users you have Mail.Read.Shared access to).
- New email in shared mailbox folder
Triggers when emails appear in a specific folder of a shared mailbox (either newly received or moved to it). Requires Mail.Read.Shared permission and folder access.
- New email in specific folder
Triggers when emails appear in a specific folder (either newly received or moved to it).
- New email matching search
Triggers when new emails matching the specified search query are received.
Agent templates that use Outlook Email
Outlook Email Manager
Finds, filters, and summarizes your emails by folder, sender, time frame, or search query, so you can quickly review unread items, conversations, and key topics.
IT Help Desk
Answers IT questions clearly, guides users through diagnosis and resolution steps, escalates as a Jira issue upon approval, and can send an email via Outlook (draft + confirmation). Leverages attached IT guides as knowledge and cites relevant sections.
Setup and permissions
An action can ask for your confirmation before it runs. In an agent, each action is set to “Always allow” or “Needs approval”.