Introduction
This document is your definitive resource for integrating and utilizing the Outlook toolkit within ELITEA. It provides a comprehensive, step-by-step walkthrough, from registering an application in Azure Active Directory to configuring the toolkit in ELITEA and effectively using it within your Agents. By following these steps, you will unlock the power of automated email management, streamlined mail workflows, and enhanced inbox intelligence, all directly within the ELITEA platform. This integration empowers you to leverage AI-driven automation to optimize your Outlook-driven workflows using the combined strengths of ELITEA and Microsoft Outlook. Brief Overview of Microsoft Outlook Microsoft Outlook is Microsoft’s email and personal information management service, built on top of Microsoft Graph — the unified API for Microsoft 365 data. The ELITEA Outlook toolkit interacts with a mailbox through the Microsoft Graph Mail endpoints (https://graph.microsoft.com/v1.0), enabling Agents to:
- Read and Search Messages: List messages from any mail folder, retrieve full message details, and search across a mailbox using Microsoft’s KQL (Keyword Query Language) syntax.
- Send and Reply: Compose and send new email messages, or reply (including reply-all) to existing messages.
- Manage Message State: Mark messages as read or unread, move messages between folders, and delete messages.
- Organize and Discover Folders: List all mail folders in a mailbox.
- Track New Activity and Threads: Detect new or unread messages since a previous check, filter by sender or recipient, and retrieve every message in a conversation thread across folders.
Toolkit’s Account Setup and Configuration in Outlook
Registering an App in Azure Active Directory (Azure AD)
The Outlook toolkit authenticates using Delegated (User OAuth) access only — it acts on behalf of a signed-in user via Microsoft Entra ID (Azure AD). To enable this, you need to register an application in Azure AD that will represent ELITEA.- Access Azure Portal: Open your web browser, navigate to the Azure Portal, and log in using an account with sufficient permissions to register applications in Azure AD.
- Navigate to App Registrations: In the Azure portal, use the search bar at the top to search for “App registrations” and select “App registrations” from the search results under “Services”.
-
Create New Registration: On the “App registrations” page, click ”+ New registration”.

-
Configure App Registration Details: On the “Register an application” page, provide the following information:
- Name: Enter a meaningful and descriptive name for your application registration, for example “ELITEA Outlook Integration” or “ELITEA Agent Access to Outlook”.
- Supported account types: Select the appropriate account type based on your organization’s requirements. In most cases, “Accounts in this organizational directory only ([Your Organization Name] only - Single tenant)” is the recommended option for internal organizational use.
- Redirect URI: Since Outlook only supports Delegated (User OAuth) access, a redirect URI must always be configured:
- In the “Select a platform” dropdown, select “Web”.
- In the URI field, enter the ELITEA callback URL for your instance. The correct value depends on your deployment — refer to the info callout below.
-
Register Application: Click the “Register” button at the bottom of the page to create the app registration.

Application Credentials
Once the app registration is created successfully, you will be redirected to the application’s Overview page. Note down the following, as you will need them to configure the Outlook credential in ELITEA:- Application (client) ID — Copy and store this value securely.
-
Directory (tenant) ID — Copy and store this value securely.

Configure API Permissions for the Registered App
To allow ELITEA to act on a signed-in user’s mailbox, configure delegated Microsoft Graph permissions for your registered application.- Navigate to API Permissions: In your registered app within the Azure portal, navigate to the left-hand menu and click “API permissions”.
-
Add Permissions: On the “API permissions” page, click ”+ Add a permission”.

-
Select API Type - Microsoft Graph: In the “Request API permissions” panel, select the “Microsoft Graph” API tile.

-
Select Permission Type - Delegated permissions: Choose “Delegated permissions” — the Outlook toolkit always acts on behalf of the signed-in user, never as the application itself.

-
Add Microsoft Graph Mail Scopes: Search for and select the scopes your Agents require, for example:
- Add Permissions: Click “Add permissions” at the bottom of the panel to add the selected scopes to your application registration.
-
Grant Admin Consent (if required by your tenant): On the “API permissions” page, click “Grant admin consent for [Your Organization Name]” and then “Yes” if your organization requires admin consent for delegated permissions before users can authorize the app.

Configure the Client Secret
To securely authenticate your ELITEA Outlook credential, create a Client Secret for your registered application.- Navigate to Certificates & secrets: In your registered app within the Azure portal, click “Certificates & secrets”.
-
Create New Client Secret: On the “Certificates & secrets” page, select the “Client secrets” tab and click ”+ New client secret”.

-
Configure Client Secret Details: In the “Add a client secret” panel, enter a Description and choose an appropriate Expiration period.

- Add Client Secret: Click “Add” to create the client secret.
-
Securely Copy and Store the Client Secret Value: Immediately copy the generated Client Secret Value displayed in the “Value” column. This is the only time you will see the full value. Store it securely, preferably in ELITEA’s Secrets feature.

System Integration with ELITEA
To integrate Outlook with ELITEA, you need to follow a three-step process: Create Credentials → Create Toolkit → Use in Agents. This workflow ensures secure authentication and proper configuration.Step 1: Create Outlook Credentials
Before creating a toolkit, you must first create Outlook credentials in ELITEA. The Outlook credential supports a single authentication mode — Delegated (User OAuth).- Navigate to Credentials Menu: Open the sidebar and select Credentials.
-
Create New Credential: Click the
+ Credentialbutton. -
Select Outlook: Choose Outlook as the credential type.

-
Configure Credential Details:
-
Log in: Once the OAuth Discovery Endpoint field is filled in, a Login button appears next to the Test Connection button. Click Login to initiate the OAuth authorization flow — ELITEA calls the Outlook check-connection endpoint, which redirects to Azure AD for user sign-in. After you authorize the application, the token is stored and the connection is verified against Microsoft Graph.
- Test Connection: Click Test Connection to verify that your credentials are valid and ELITEA can successfully connect to the mailbox. This performs a health check against
GET /me/mailFolderson Microsoft Graph.
- Test Connection: Click Test Connection to verify that your credentials are valid and ELITEA can successfully connect to the mailbox. This performs a health check against
-
Save Credential: Click Save to create the credential. It will be added to the credentials dashboard and available to use in toolkit configurations.

Step 2: Create Outlook Toolkit
Once your credentials are configured, create the Outlook toolkit:- Navigate to Toolkits Menu: Open the sidebar and select Toolkits & Indexes.
-
Create New Toolkit: Click the
+ Toolkitbutton. -
Select Outlook: Choose Outlook from the list of available toolkit types.

-
Configure Toolkit Details:
-
Enable Desired Tools: In the “Tools” section, select the checkboxes next to the specific Outlook tools you want to enable. Enable only the tools your agents will actually use to follow the principle of least privilege.
- Enable MCP access for selected tools — (optional) exposes the tools selected in this toolkit through the platform MCP server, so external MCP clients can call them.
-
Save Toolkit: Click Save to create the toolkit.

Available Tools:
The Outlook toolkit provides 12 tools for interacting with email messages, folders, and conversation threads. In the toolkit configuration form, tools are grouped by the effect they have on your mailbox:list_messages, search_messages, find_new_messages and get_thread_messages return a short body preview (200 characters) and at most 5 To/Cc recipients per message by default — to_more / cc_more report how many were left out, and conversationId is hidden unless include_ids=True. get_message returns a plain-text body capped at 8000 characters by default instead of full HTML. This keeps responses small for agents by default; pass the relevant *_chars / max_recipients / include_ids / body_format parameter on the tool call when the full detail is actually needed (e.g. a mass-mail recipient audit, or quoting a long message in full).since or after_message_id on the next call to only see messages that arrived after the previous check.Testing Toolkit Tools
After configuring your Outlook toolkit, you can test individual tools directly from the Toolkit detailed page using the Test Settings panel. This allows you to verify that your credentials are working correctly and validate tool functionality before adding the toolkit to your workflows. General Testing Steps:- Select LLM Model: Choose a Large Language Model from the model dropdown in the Test Settings panel
- Configure Model Settings: Adjust model parameters like Creativity, Max Completion Tokens, and other settings as needed
- Select a Tool: Choose the specific Outlook tool you want to test from the available tools
- Provide Input: Enter any required parameters or test queries for the selected tool
- Run the Test: Execute the tool and wait for the response
- Review the Response: Analyze the output to verify the tool is working correctly and returning expected results
Step 3: Add Outlook Toolkit to Your Workflows
Now you can add the configured Outlook toolkit to your agents, pipelines, or use it directly in chat:In Agents:
- Navigate to Agents: Open the sidebar and select Agents.
- Create or Edit Agent: Either create a new agent or select an existing agent to edit.
-
Add Outlook Toolkit:
- In the “TOOLS” section of the agent configuration, click the “+Toolkit” icon
- Select your configured Outlook toolkit from the dropdown list
- The toolkit will be added to your agent with the previously configured tools enabled

In Pipelines:
- Navigate to Pipelines: Open the sidebar and select Pipelines.
- Create or Edit Pipeline: Either create a new pipeline or select an existing pipeline to edit.
-
Add Outlook Toolkit:
- In the “TOOLS” section of the pipeline configuration, click the “+Toolkit” icon
- Select your configured Outlook toolkit from the dropdown list
- The toolkit will be added to your pipeline with the previously configured tools enabled

In Chat:
- Navigate to Chat: Open the sidebar and select Chat.
- Start New Conversation: Click + Conversation or open an existing conversation.
-
Add Outlook Toolkit to Conversation:
- Click the
+icon in the chat input toolbar (tooltip: Add files, agents, toolkits and more…) - Hover over Toolkits in the popup menu
- Search for your Outlook toolkit by name
- Enable the toolkit to add it to your conversation
- Click the
- Verify Toolkit Added: The Outlook toolkit appears in the PARTICIPANTS panel on the right side under the Toolkits section.
-
Use Toolkit in Chat: You can now directly interact with the connected mailbox by asking questions or requesting actions that will trigger the Outlook toolkit tools.

- A prompt appears asking: “Authorization is required for toolkit “<toolkit name>”. Authorize now or skip it for this run?”
- Selecting Authorize opens an OAuth dialog (titled “Configuration OAuth”) with Cancel and Authorize buttons.
- Completing the sign-in shows a “Successful authentication!” confirmation and the message ”✓ Authorization successful! Your credentials and session have been saved. Please send your message again to use the authorized MCP server.”
- Send your message again to continue with the now-authorized toolkit.
- “Show me my last 10 unread emails.”
- “Send an email to john@example.com with the subject ‘Status Update’.”
- “Search for messages from my manager about the budget.”
- “Has anyone from the finance team emailed me since yesterday?”
Instructions and Prompts for Using the Outlook Toolkit
To effectively instruct your ELITEA Agent to use the Outlook toolkit, you need to provide clear and precise instructions within the Agent’s “Instructions” field. These instructions are crucial for guiding the Agent on when and how to utilize the available Outlook tools to achieve your desired automation goals.Instruction Creation for OpenAI Agents
When crafting instructions for the Outlook toolkit, especially for OpenAI-based Agents, clarity and precision are paramount. Break down complex tasks into a sequence of simple, actionable steps. Explicitly define all parameters required for each tool and guide the Agent on how to obtain or determine the values for these parameters. OpenAI Agents respond best to instructions that are:- Direct and Action-Oriented: Employ strong action verbs and clear commands to initiate actions. For example, “Use the ‘list_messages’ tool…”, “Send an email to…”, “Search for messages containing…”.
-
Parameter-Centric: Clearly enumerate each parameter required by the tool. For each parameter, specify:
- Its name (exactly as expected by the tool)
- The format or type of value expected
- How the Agent should obtain the value – whether from user input, derived from previous steps in the conversation, retrieved from an external source, or a predefined static value
- Contextually Rich: Provide sufficient context so the Agent understands the overarching objective and the specific scenario in which each Outlook tool should be applied within the broader workflow. Explain the desired outcome or goal for each tool invocation.
- Step-by-Step Structure: Organize instructions into a numbered or bulleted list of steps for complex workflows. This helps the Agent follow a logical sequence of actions.
- Add Conversation Starters: Include example conversation starters that users can use to trigger this functionality. For example, “Conversation Starters: ‘Show me my unread emails’, ‘Send a status update to the team’, ‘Any new messages from the client?’”
- State the Goal: Begin by clearly stating the objective you want to achieve with this step. For example, “Goal: To send a status update email to the project team.”
- Specify the Tool: Clearly indicate the specific Outlook tool to be used for this step. For example, “Tool: Use the ‘send_mail’ tool.”
-
Define Parameters: Provide a detailed list of all parameters required by the selected tool. For each parameter:
- Parameter Name:
<Parameter Name as defined in tool documentation> - Value or Source:
<Specify the value or how to obtain the value. Examples: "user input", "from previous step", "hardcoded value 'inbox'", "value of variable X">
- Parameter Name:
- Describe Expected Outcome (Optional but Recommended): Briefly describe the expected result or outcome after the tool is successfully executed. For example, “Outcome: The Agent will confirm the email was sent and report the message_id.”
- Add Conversation Starters: Include example conversation starters that users can use to trigger this functionality.
Chat Usage Examples by Tool Category
The following examples demonstrate how to interact with the Outlook toolkit in ELITEA Chat, grouped by functional area. Each example shows the user request and the expected agent behavior.Reading & Searching - List Messages
Reading & Searching - List Messages
Reading & Searching - Search Messages
Reading & Searching - Search Messages
Sending & Replying - Send Mail
Sending & Replying - Send Mail
Sending & Replying - Reply to Message
Sending & Replying - Reply to Message
Organizing - Move and Mark Messages
Organizing - Move and Mark Messages
Tracking New Activity - Check New Messages
Tracking New Activity - Check New Messages
Tracking Threads - Get Thread Messages
Tracking Threads - Get Thread Messages
Troubleshooting
Credential Not Appearing in Toolkit Configuration
Credential Not Appearing in Toolkit Configuration
- Check Credential Scope: Ensure you’re working in the same workspace/project where the credential was created. Private credentials are only visible in your Private workspace, while project credentials are visible within the specific team project.
- Verify Credential Creation: Go to the Credentials menu and confirm that your Outlook credential was successfully saved.
- Credential Type Match: Ensure you selected “Outlook” as the credential type when creating the credential.
OAuth Login Fails with 'No Reply Address Is Registered' Error
OAuth Login Fails with 'No Reply Address Is Registered' Error
AADSTS500113: No reply address is registered for the application.Cause: This error occurs when no Redirect URI has been registered in your Azure AD App Registration. Azure AD requires the redirect URI to be explicitly registered before it will send the authorization response back to ELITEA.Troubleshooting Steps:
- Open your App Registration: In the Azure Portal, go to Microsoft Entra ID → App registrations and select your app.
- Navigate to Authentication: In the left menu, click “Authentication”.
- Add a Redirect URI: If no Web platform exists, click ”+ Add a platform” → “Web”. If Web is already listed, click the Edit pencil next to it.
- Enter the ELITEA callback URL: In the “Redirect URIs” field, enter the value matching your deployment (see the redirect URI table above).
- Save: Click “Configure” (or “Save” if editing), then click “Save” at the top of the page.
- Retry: Return to your ELITEA Outlook credential and click Login again.
'Access Forbidden' Errors
'Access Forbidden' Errors
403 response from Microsoft Graph — the token was issued successfully, but it does not carry the delegated Mail scope(s) required for the operation.Troubleshooting Steps:- Review Granted Scopes: In Azure AD, go to API permissions on your app registration and confirm the required Mail scopes (
Mail.Read,Mail.Send,Mail.ReadWrite, etc.) are listed as Delegated permissions. - Grant Admin Consent (if required): If your tenant requires admin consent for delegated permissions, ensure it has been granted.
- Update the Scopes Field and Re-login: Update the Scopes field in your ELITEA credential to include the missing scope(s), then click Logout and Login again — an existing token does not automatically pick up newly added scopes.
Search Messages Misses Recently Received Emails
Search Messages Misses Recently Received Emails
search_messages does not return a message you know arrived recently, even though a plain list_messages call shows it.Cause: search_messages uses Microsoft’s KQL syntax, where date-based clauses (e.g., received>=2026-09-27) have day precision only — they cannot distinguish between messages received at different times on the same day.Troubleshooting Steps:- Use Find New Messages for Precise Timing: For “did anything new arrive since a specific moment” queries, use
find_new_messagesorcheck_new_messageswith asincetimestamp instead — these use exact ISO 8601 timestamp comparisons, not day-level KQL date matching. - Broaden the KQL Query: If you must use
search_messages, broaden the date range or drop the date clause and filter results afterward.
Toolkit Configuration Issues
Toolkit Configuration Issues
- Credential Selection: Ensure you have selected the correct Outlook credential from the dropdown in the toolkit configuration.
- Re-check Required Credential Fields: Confirm Client ID and Client Secret are both set on the linked credential — these are required regardless of whether OAuth login has been completed.
Support Contact
If you encounter issues not covered here or need additional assistance with Outlook integration, please refer to Contact Support for detailed information on how to reach the ELITEA Support Team.FAQ
Does the Outlook toolkit support App-Only (application-only) authentication?
Does the Outlook toolkit support App-Only (application-only) authentication?
What are the required credential fields for the Outlook toolkit?
What are the required credential fields for the Outlook toolkit?
- Client ID — Azure AD Application (client) ID.
- Client Secret — Azure AD Client Secret value.
- OAuth Discovery Endpoint —
https://login.microsoftonline.com/{tenant_id}. - Scopes — the Microsoft Graph Mail scopes your Agents need (e.g.,
Mail.Read,Mail.Send).
- Mailbox — leave empty to use the signed-in user’s own mailbox (
/me). - Auto Refresh Token — enabled by default; automatically refreshes the token using
offline_access.
What happens if I leave the Mailbox field empty?
What happens if I leave the Mailbox field empty?
/me on Microsoft Graph — i.e., the mailbox of whichever user completed the OAuth login on the credential. Set Mailbox explicitly only when the credential should operate on a different, specific mailbox.Is the offline_access scope something I need to add myself?
Is the offline_access scope something I need to add myself?
offline_access scope alongside whatever you list in the Scopes field, so refresh tokens are issued without any extra configuration on your part.Do I need to register a Redirect URI for the Outlook credential?
Do I need to register a Redirect URI for the Outlook credential?
AADSTS500113: No reply address is registered.How do I find my Directory (Tenant) ID?
How do I find my Directory (Tenant) ID?
- In the Azure Portal, search for “Microsoft Entra ID” and select it.
- On the Overview page, copy the “Tenant ID” value.
- In the Azure Portal, go to Microsoft Entra ID → App registrations and select your app.
- On the Overview page, copy the “Directory (tenant) ID” value.
Can I use the same Outlook credential across multiple toolkits and agents?
Can I use the same Outlook credential across multiple toolkits and agents?
How does the toolkit distinguish new messages from ones I've already seen?
How does the toolkit distinguish new messages from ones I've already seen?
check_new_messages, find_new_messages, and get_thread_messages return a watermark value (a timestamp or the latest message ID). Pass that value back in on the next call as since or after_message_id to only surface messages received after the previous check. If neither is provided, these tools fall back to unread-status instead.Why am I only seeing 5 recipients, a short preview, or a short body?
Why am I only seeing 5 recipients, a short preview, or a short body?
list_messages, search_messages and find_new_messages cap body previews at 200 characters and To/Cc recipients at 5 each (to_more / cc_more show how many more exist); get_message caps the body at 8000 plain-text characters by default; get_thread_messages caps each body at 2000 characters with include_body. Pass preview_chars, max_recipients, max_body_chars (0 = no limit), or body_format='html' on the relevant tool call to get more.What are some best practices for using the Outlook toolkit effectively?
What are some best practices for using the Outlook toolkit effectively?
- After setting up the Outlook toolkit and incorporating it into your Agents, thoroughly test each tool you intend to use to ensure seamless connectivity, correct authentication, and accurate execution of mailbox actions.
- Store the Client Secret using ELITEA’s Secrets Management feature rather than entering it directly.
- Grant only the minimum necessary Microsoft Graph Mail scopes (principle of least privilege).
- When an Agent or pipeline checks a mailbox repeatedly (e.g., on a schedule), always persist and reuse the watermark returned by
check_new_messages/find_new_messages/get_thread_messagesso it doesn’t re-report the same messages.
- Have Agents draft the body of
send_mailorreply_to_messageand confirm it with the user before actually sending, especially for Delegated credentials acting under a real person’s identity.
- Craft clear and unambiguous instructions within your ELITEA Agents to guide them in using the Outlook toolkit effectively. Use the prompt examples provided in this documentation as a starting point.
- Azure Portal - Manage your Azure AD App Registrations, API permissions, and Client Secrets.
- Microsoft Graph Mail API Overview - Official documentation for the Microsoft Graph Mail API used by this toolkit.
- Microsoft Graph Permissions Reference - Detailed reference for Microsoft Graph API permission scopes, including Mail.Read, Mail.Send, and Mail.ReadWrite.
- KQL Query Syntax Reference - Reference for the Keyword Query Language (KQL) syntax used by the search_messages tool.