Outlook Mail

Outlook Mail logo

Outlook Mail

Connect your Outlook Mail data to Airweave

Overview

The Outlook Mail connector allows you to sync data from Outlook Mail into Airweave, making it available for search and retrieval by your agents.

Configuration

OutlookMailSource

Outlook Mail source implementation (read-only).

This connector retrieves Outlook mail folders in a hierarchical fashion and yields OutlookMailFolderEntity for each folder. For each folder, it also retrieves email messages and yields OutlookMessageEntity items.

Authentication

This connector uses OAuth 2.0 with refresh token.

You can connect through the Airweave UI, which will guide you through the OAuth flow.

Entities

The following data models are available for this connector:

Schema for an Outlook mail folder.

See: https://learn.microsoft.com/en-us/graph/api/resources/mailfolder?view=graph-rest-1.0

FieldTypeDescription
display_namestrDisplay name of the mail folder (e.g., ‘Inbox’).
parent_folder_idOptional[str]ID of the parent mail folder, if any.
child_folder_countOptional[int]Number of child mail folders under this folder.
total_item_countOptional[int]Total number of items (messages) in this folder.
unread_item_countOptional[int]Number of unread items in this folder.
well_known_nameOptional[str]Well-known name of this folder if applicable (e.g., ‘inbox’).

Schema for an Outlook message.

See: https://learn.microsoft.com/en-us/graph/api/resources/message?view=graph-rest-1.0

FieldTypeDescription
breadcrumbsList[Breadcrumb]Breadcrumb hierarchy (e.g., parent mail folder).
subjectOptional[str]Subject of the email message.
body_previewOptional[str]Short text preview of the message body.
body_contentOptional[str]Full text or HTML body of the message.
is_readOptional[bool]Indicates if the message has been read (True) or is unread (False).
is_draftOptional[bool]Indicates if the message is still a draft.
importanceOptional[str]Indicates the importance of the message (Low, Normal, High).
has_attachmentsOptional[bool]Indicates if the message has file attachments.
internet_message_idOptional[str]Internet message ID of the email (RFC 2822 format).
from_Optional[Dict[str, Any]]Information about the sender. Typically includes emailAddress { name, address }.
to_recipientsList[Dict[str, Any]]List of primary recipients (each typically contains emailAddress info).
cc_recipientsList[Dict[str, Any]]List of CC recipients (each typically contains emailAddress info).
bcc_recipientsList[Dict[str, Any]]List of BCC recipients (each typically contains emailAddress info).
sent_atOptional[datetime]Timestamp when the message was sent.
received_atOptional[datetime]Timestamp when the message was received.
created_atOptional[datetime]Timestamp when the message resource was created (if available).
updated_atOptional[datetime]Timestamp when the message was last updated (if available).