Graphrt

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
Use in Graphrt Desktop

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_ID Required
    Application (client) id
  • MICROSOFT_CLIENT_SECRET Required
    Client secret of the app registration
  • MICROSOFT_REFRESH_TOKEN Required
    Refresh token of the signed-in user (delegated, with offline_access)
  • MICROSOFT_TENANT_ID For single-tenant apps
    Tenant id or domain, default common (multi-tenant apps only)
  • MICROSOFT_TEAMS_TOOL_ALLOW_SEND Optional
    1 lets agent tools send channel and chat messages
  • MICROSOFT_TEAMS_TOOL_TOKEN_SOURCE

How to use it

In Graphrt Desktop

  1. Open Plugins and search for Microsoft Teams.
  2. Click Install and approve it.
  3. Follow the setup steps on the plugin's page, then paste the settings it needs.
  4. Describe a job that needs it, and the builder adds the steps.
Plugins in Graphrt Desktop

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
Plugins in the docs