With emma's Microsoft Teams integration, you can manage teams, channels, and chats. Send messages, retrieve history, and automate your Teams communication workflow.
Features
Teams_Operator supports the following 7 tools:
Category
Tools
Teams
1
Tool Name
Description
teams_list_teams
List teams you've joined
Channels
3
Tool Name
Description
teams_list_channels
List channels in a team
teams_get_channel_messages
Get channel message history
teams_send_channel_message
Send a message to a channel
Chats
3
Tool Name
Description
teams_list_chats
List user's chats
teams_get_chat_messages
Get chat message history
teams_send_chat_message
Send a message to a chat
Main Parameters
Parameter
Description
team_id
Team ID
channel_id
Channel ID
chat_id
Chat ID
content
Message content
Prerequisites
• emma account
• Microsoft 365 account
• Microsoft Graph API access token
Setup
1. Install the package
npm install @duzzle/teams-integration
2. Initialize
import { DuzzleTeams } from '@duzzle/teams-integration';
const teams = new DuzzleTeams({
apiKey: process.env.DUZZLE_API_KEY,
teamsToken: process.env.TEAMS_ACCESS_TOKEN
});
3. Send Message
// Send a message to a channel
const message = await teams.sendChannelMessage({
team_id: 'team-123',
channel_id: 'channel-456',
content: 'Hello from emma!'
});
console.log('Message sent:', message.id);