Outlook
Learn how to automate Outlook email tasks in StackAI. Discover available actions, required inputs, configurations, and output examples for seamless workflow integration.
What is Outlook?
Outlook in StackAI is a powerful integration node that enables you to automate sending and managing emails directly through your Outlook account. This node streamlines communication workflows, allowing you to trigger email actions as part of your automated processes.
How to use it?
To use the Outlook node in StackAI, simply add it to your workflow and configure the desired action. Connect it to other nodes to dynamically generate email content, recipients, or attachments. You can use this node to send emails, search your mailbox, or automate other Outlook-related tasks.
Example of Usage
Suppose you want to automatically send a summary report to your team every week. You can connect a report-generating node to the Outlook node, configure the email details, and automate the process without manual intervention.
Available Actions
Below are the most commonly used Outlook actions in StackAI:
1. Send Email
Description: Send an email from your Outlook account to one or more recipients.
Inputs:
to (Required): The recipient's email address(es). Accepts a single email or a list of emails.
Example:
"to": "[email protected]"
or"to": ["[email protected]", "[email protected]"]
subject (Required): The subject line of the email.
Example:
"subject": "Weekly Report"
body (Required): The main content of the email. Supports plain text or HTML.
Example:
"body": "Please find the attached weekly report."
cc (Optional): Email address(es) to be copied.
Example:
"cc": "[email protected]"
bcc (Optional): Email address(es) to be blind copied.
Example:
"bcc": ["[email protected]"]
attachments (Optional): List of files to attach. Provide file paths or references from previous nodes.
Example:
"attachments": ["{doc-0}"]
Configurations:
connection_id (Required if you have multiple Outlook accounts): Specify the Outlook connection to use.
Example:
"connection_id": "your-connection-id"
Outputs:
message_id (Always returned): The unique ID of the sent email.
status (Always returned): Confirmation of successful delivery or error details.
Example:
{ "message_id": "abc123", "status": "sent" }
2. Search Emails
Description: Search your Outlook mailbox for emails matching specific criteria.
Inputs:
query (Required): The search query string (e.g., keywords, sender, date).
Example:
"query": "from:[email protected] subject:invoice"
folder (Optional): Specify the folder to search in (e.g., Inbox, Sent).
Example:
"folder": "Inbox"
max_results (Optional): Limit the number of results.
Example:
"max_results": 10
Configurations:
connection_id (Required if you have multiple Outlook accounts): Specify the Outlook connection to use.
Outputs:
emails (Always returned): List of matching emails with details such as subject, sender, date, and body.
Example:
{ "emails": [ { "subject": "Invoice Due", "from": "[email protected]", "date": "2025-07-01", "body": "Please see the attached invoice." } ] }
Best Practices
Always ensure required fields are filled to avoid errors.
Use dynamic references (e.g.,
{llm-0}
or{doc-0}
) to personalize emails or attach generated content.For attachments, connect a Files node or other relevant node to provide file paths.
Summary Table
Send Email
to, subject, body
cc, bcc, attachments
message_id, status
Search Emails
query
folder, max_results
emails
Automate your Outlook email workflows in StackAI to save time, reduce manual effort, and ensure consistent communication.
Last updated
Was this helpful?