docs/en/enterprise/guides/microsoft-teams-trigger.mdx
Use the Microsoft Teams trigger to start automations whenever a new chat is created. Common patterns include summarizing inbound requests, routing urgent messages to support teams, or creating follow-up tasks in other systems.
<Tip> Confirm Microsoft Teams is connected under **Tools & Integrations** and enabled in the **Triggers** tab for your deployment. </Tip>from teams_chat_created_crew import MicrosoftTeamsChatTrigger
crew = MicrosoftTeamsChatTrigger().crew()
result = crew.kickoff({
"crewai_trigger_payload": teams_payload,
})
print(result.raw)
The crew parses thread metadata (subject, created time, roster) and generates an action plan for the receiving team.
Test your Microsoft Teams trigger integration locally using the CrewAI CLI:
# View all available triggers
crewai triggers list
# Simulate a Microsoft Teams trigger with realistic payload
crewai triggers run microsoft_teams/teams_message_created
The crewai triggers run command will execute your crew with a complete Teams payload, allowing you to test your parsing logic before deployment.
crewai triggers run microsoft_teams/teams_message_created to see the exact payload structurecrewai triggers run (not crewai run) to simulate trigger execution