Skip to content
Docs

Teams

The Teams node posts a message card to a Microsoft Teams channel using an incoming webhook. Use it to send notifications, alerts, or an agent’s reply into a channel. You find it on the node picker’s Channels — send a reply shelf.

It has two handles: input, which takes the upstream node’s output (available in every field as $prev), and output, which passes the send result to the next node.

Store the webhook URL in a secret and reference it with {!! $secrets->yourSlug !!}. The {!! !!} form matters here: Teams workflow URLs carry query parameters joined with &, which the escaping {{ }} form would corrupt.

The Teams node's settings form, with the fields described below
The Teams node's settings form, with the fields described below
FieldTypeDefaultDescription
Webhook URL (webhookUrl)string ✦ (required) — The Microsoft Teams incoming-webhook URL to post the message card to.
Text (text)string ✦ (required) — The body text of the Teams message card.
Title (title)string ✦ (optional) — An optional title shown at the top of the message card.
Theme color (themeColor)string ✦ (optional) #007bff The accent colour of the message card, as a hex code; defaults to #007bff.

Fields marked ✦ accept expressions.

Try this node — run it once against your own workspace, with your credentials, without building a flow first.

On a successful send (Teams answers with status 200) the node emits:

{ "status": "sent", "channel": "teams" }

Any other response status fails the node without retrying.

In Teams, create an incoming webhook for the target channel (through a Workflows template or the channel’s connectors, depending on your Teams plan) and copy the generated URL. Save it as a secret in Publicus.

The Channel / Teams template is a minimal working send: Start → Injector → Teams, with text set to {{ $prev->message }}.

To send an agent’s reply instead, wire Agent → Teams:

  1. Set webhookUrl to {!! $secrets->teamsWebhookUrl !!}.
  2. Set text to {!! $prev->content !!} (the Agent node emits its reply under content; the agent’s answer may contain characters that escaping would corrupt).
  3. Optionally set title to a heading and themeColor to an accent colour such as #019247.

When an agent calls this node as a tool, the send is approval-gated by default; see How to add human approval.

  • The message posts to the webhook’s fixed channel. To choose a channel per message you need a separate webhook per channel.
  • The node sends a legacy MessageCard payload, not an Adaptive Card, so layout options are the card’s title, text, and themeColor.