메인 콘텐츠로 건너뛰기

Overview

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.
Confirm Microsoft Teams is connected under Tools & Integrations and enabled in the Triggers tab for your deployment.

Enabling the Microsoft Teams Trigger

  1. Open your deployment in CrewAI AMP
  2. Go to the Triggers tab
  3. Locate Microsoft Teams and switch the toggle to enable
Enable or disable triggers with toggle

Microsoft Teams trigger connection

Example: Summarize a new chat thread

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.

로컬에서 테스트

CrewAI CLI를 사용하여 Microsoft Teams 트리거 통합을 로컬에서 테스트하세요:
# 사용 가능한 모든 트리거 보기
crewai triggers list

# 실제 payload로 Microsoft Teams 트리거 시뮬레이션
crewai triggers run microsoft_teams/teams_message_created
crewai triggers run 명령은 완전한 Teams payload로 크루를 실행하여 배포 전에 파싱 로직을 테스트할 수 있게 해줍니다.
개발 중에는 crewai triggers run microsoft_teams/teams_message_created를 사용하세요 (crewai run이 아님). 배포 후에는 크루가 자동으로 트리거 payload를 받습니다.

Troubleshooting

  • Ensure the Teams connection is active; it must be refreshed if the tenant revokes permissions
  • crewai triggers run microsoft_teams/teams_message_created로 로컬 테스트하여 정확한 payload 구조를 확인하세요
  • Confirm the webhook subscription in Microsoft 365 is still valid if payloads stop arriving
  • Review execution logs for payload shape mismatches—Graph notifications may omit fields when a chat is private or restricted
  • 주의: 트리거 실행을 시뮬레이션하려면 crewai triggers run을 사용하세요 (crewai run이 아님)
I