Overview
Enable your agents to access Teams data, send messages, create meetings, and manage channels. Automate team communication, schedule meetings, retrieve messages, and streamline your collaboration workflows with AI-powered automation.Prerequisites
Before using the Microsoft Teams integration, ensure you have:- A CrewAI AMP account with an active subscription
- A Microsoft account with Teams access
- Connected your Microsoft account through the Integrations page
Setting Up Microsoft Teams Integration
1. Connect Your Microsoft Account
- Navigate to CrewAI AMP Integrations
- Find Microsoft Teams in the Authentication Integrations section
- Click Connect and complete the OAuth flow
- Grant the necessary permissions for Teams access
- Copy your Enterprise Token from Integration Settings
2. Install Required Package
Available Actions
microsoft_teams/get_teams
microsoft_teams/get_teams
Description: Get all teams the user is a member of.Parameters:
- No parameters required.
microsoft_teams/get_channels
microsoft_teams/get_channels
Description: Get channels in a specific team.Parameters:
team_id
(string, required): The ID of the team.
microsoft_teams/send_message
microsoft_teams/send_message
Description: Send a message to a Teams channel.Parameters:
team_id
(string, required): The ID of the team.channel_id
(string, required): The ID of the channel.message
(string, required): The message content.content_type
(string, optional): Content type (html or text). Enum:html
,text
. Default istext
.
microsoft_teams/get_messages
microsoft_teams/get_messages
Description: Get messages from a Teams channel.Parameters:
team_id
(string, required): The ID of the team.channel_id
(string, required): The ID of the channel.top
(integer, optional): Number of messages to retrieve (max 50). Default is20
.
microsoft_teams/create_meeting
microsoft_teams/create_meeting
Description: Create a Teams meeting.Parameters:
subject
(string, required): Meeting subject/title.startDateTime
(string, required): Meeting start time (ISO 8601 format with timezone).endDateTime
(string, required): Meeting end time (ISO 8601 format with timezone).
microsoft_teams/search_online_meetings_by_join_url
microsoft_teams/search_online_meetings_by_join_url
Description: Search online meetings by Join Web URL.Parameters:
join_web_url
(string, required): The join web URL of the meeting to search for.
Usage Examples
Basic Microsoft Teams Agent Setup
Messaging and Communication
Meeting Management
Troubleshooting
Common Issues
Authentication Errors- Ensure your Microsoft account has the necessary permissions for Teams access.
- Required scopes include:
Team.ReadBasic.All
,Channel.ReadBasic.All
,ChannelMessage.Send
,ChannelMessage.Read.All
,OnlineMeetings.ReadWrite
,OnlineMeetings.Read
. - Verify that the OAuth connection includes all required scopes.
- Ensure you are a member of the teams you’re trying to access.
- Double-check team IDs and channel IDs for correctness.
- Team and channel IDs can be obtained using the
get_teams
andget_channels
actions.
- Ensure
team_id
,channel_id
, andmessage
are provided forsend_message
. - Verify that you have permissions to send messages to the specified channel.
- Choose appropriate
content_type
(text or html) based on your message format.
- Ensure
subject
,startDateTime
, andendDateTime
are provided. - Use proper ISO 8601 format with timezone for datetime fields (e.g., ‘2024-01-20T10:00:00-08:00’).
- Verify that the meeting times are in the future.
- The
get_messages
action can retrieve a maximum of 50 messages per request. - Messages are returned in reverse chronological order (newest first).
- For
search_online_meetings_by_join_url
, ensure the join URL is exact and properly formatted. - The URL should be the complete Teams meeting join URL.
Getting Help
Need Help?
Contact our support team for assistance with Microsoft Teams integration setup or troubleshooting.