Automate Microsoft Teams with TypeScript

Send and read Microsoft Teams channel and chat messages, manage conversations and members, and react when new messages arrive.

reply-in-teams.automation.ts
import { automation } from "automate.ax"
import { teams } from "automate.ax/teams"

export default automation("Watch the Teams help channel", () => {
  const message = teams.onChannelMessagePosted({
    team: "Engineering",
    channel: "Help",
  })

  teams.replyToChannelMessage({
    team: message.teamId,
    channel: message.channelId,
    messageId: message.messageId,
    body: "Your request is in the queue.",
  })
})

What you can do

Actions

  • Send channel messages, replies, and chat messages
  • Create and inspect chats
  • List teams, channels, conversations, and replies
  • Read team, channel, and chat membership

Triggers

  • Channel message posted
  • Chat message posted

Start automating with Microsoft Teams today

Start building