docs/en/enterprise/guides/outlook-trigger.mdx
Automate responses when Outlook delivers a new message or when an event is removed from the calendar. Teams commonly route escalations, file tickets, or alert attendees of cancellations.
<Tip> Connect Outlook in **Tools & Integrations** and ensure the trigger is enabled for your deployment. </Tip>from outlook_message_crew import OutlookMessageTrigger
crew = OutlookMessageTrigger().crew()
crew.kickoff({
"crewai_trigger_payload": outlook_payload,
})
The crew extracts sender details, subject, body preview, and attachments before generating a structured response.
Test your Outlook trigger integration locally using the CrewAI CLI:
# View all available triggers
crewai triggers list
# Simulate an Outlook trigger with realistic payload
crewai triggers run microsoft_outlook/email_received
The crewai triggers run command will execute your crew with a complete Outlook payload, allowing you to test your parsing logic before deployment.
crewai triggers run microsoft_outlook/email_received to see the exact payload structureincludeResourceData flagcrewai triggers run (not crewai run) to simulate trigger execution