Outlook Trigger
Overview
Seção intitulada “Overview”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.
Enabling the Outlook Trigger
Seção intitulada “Enabling the Outlook Trigger”- Open your deployment in CrewAI AMP
- Go to the Triggers tab
- Locate Outlook and switch the toggle to enable
Example: Summarize a new email
Seção intitulada “Example: Summarize a new email”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.
Testando Localmente
Seção intitulada “Testando Localmente”Teste sua integração de trigger do Outlook localmente usando a CLI da CrewAI:
# Visualize todos os triggers disponíveiscrewai triggers list
# Simule um trigger do Outlook com payload realistacrewai triggers run microsoft_outlook/email_receivedO comando crewai triggers run executará sua crew com um payload completo do Outlook, permitindo que você teste sua lógica de parsing antes do deployment.
Troubleshooting
Seção intitulada “Troubleshooting”- Verify the Outlook connector is still authorized; the subscription must be renewed periodically
- Teste localmente com
crewai triggers run microsoft_outlook/email_receivedpara ver a estrutura exata do payload - If attachments are missing, confirm the webhook subscription includes the
includeResourceDataflag - Review execution logs when events fail to match—cancellation payloads lack attendee lists by design and the crew should account for that
- Lembre-se: use
crewai triggers run(nãocrewai run) para simular execução de trigger