Microsoft Teams
Microsoft Teams via Microsoft Graph (delegated OAuth, any tenant), teams, channels, channel messages and replies, chats and members, agent sends need an opt-in
Beta v0.1.0 Node.js 17 actions ToS risk low
About
A Graphrt plugin for Microsoft Teams through Microsoft Graph v1.0: joined teams, channels, channel messages and replies, chats and chat messages, team and channel members, as the signed-in user.
What it can do
- Teams: get_me, list_joined_teams, get_team, list_team_members
- Channels: list_channels, get_channel, list_channel_members
- Channel messages: list_channel_messages (optionally with replies), get_channel_message, list_message_replies, send_channel_message, reply_to_channel_message
- Chats: list_chats, get_chat, list_chat_messages, send_chat_message
- api_request: any other Graph endpoint (GET only for agents)
Actions
Each action is a step you can add to a workflow. Agents can also use most of them as tools.
- Signed-in user
microsoft-teams.get_me - My teams
microsoft-teams.list_joined_teams - Get team
microsoft-teams.get_team - Team members
microsoft-teams.list_team_members - List channels
microsoft-teams.list_channels - Get channel
microsoft-teams.get_channel - Channel members
microsoft-teams.list_channel_members - Channel messages
microsoft-teams.list_channel_messages - Get channel message
microsoft-teams.get_channel_message - Message replies
microsoft-teams.list_message_replies
Show all 17 actions
- Post to channel
microsoft-teams.send_channel_message - Reply in channel
microsoft-teams.reply_to_channel_message - My chats
microsoft-teams.list_chats - Get chat
microsoft-teams.get_chat - Chat messages
microsoft-teams.list_chat_messages - Send chat message
microsoft-teams.send_chat_message - Microsoft Graph (Teams) request
microsoft-teams.api_request
Settings
Graphrt starts plugins with a clean environment. Only these values reach the plugin, and secrets stay out of logs.
-
MICROSOFT_CLIENT_IDRequiredApplication (client) id -
MICROSOFT_CLIENT_SECRETRequiredClient secret of the app registration -
MICROSOFT_REFRESH_TOKENRequiredRefresh token of the signed-in user (delegated, with offline_access) -
MICROSOFT_TENANT_IDFor single-tenant appsTenant id or domain, default common (multi-tenant apps only) -
MICROSOFT_TEAMS_TOOL_ALLOW_SENDOptional1 lets agent tools send channel and chat messages -
MICROSOFT_TEAMS_TOOL_TOKEN_SOURCE
How to use it
In Graphrt Desktop
- Open Plugins and search for Microsoft Teams.
- Click Install and approve it.
- Follow the setup steps on the plugin's page, then paste the settings it needs.
- Describe a job that needs it, and the builder adds the steps.
With the CLI
terminal
$ graphrt plugin install microsoft-teams workflow.yaml
- id: post
type: microsoft-teams.send_channel_message
team_id: "{{#start.team_id#}}"
channel_id: "19:abc123@thread.tacv2"
content: "<p>Deploy <b>done</b></p>"
content_type: html