Back to all tools
Needs API key

Microsoft Teams on escalate

Teams incoming webhooks accept a simple JSON text payload, which works well with custom tools.

What this tool does

Larger businesses often coordinate in Microsoft Teams. This tool sends an alert to a Teams channel through an incoming webhook whenever your agent escalates, with the customer’s name, channel and a short summary. Teams accepts a simple JSON text payload, so it works directly with custom tools. Create the webhook in your channel, paste the URL and pair the tool with escalate_to_human so your team sees every handoff as it happens.

Example conversation

Customer

I need to change my flight dates for next week’s package. It is urgent.

Tool callnotify_teams_on_escalate

message: Urgent flight date change for next week package

AI agent

I understand. I have alerted our bookings team, and an agent will reply here shortly.

Customer

Please hurry, the airline deadline is today.

AI agent

I have marked it as urgent and included your booking reference, so they can act straight away.

Example only. Tool calls are shown so you can see when the agent uses this template. Your agent’s wording depends on your prompt and business information.

Who uses it

  • Travel agencies routing urgent booking changes to the reservations team.
  • Clinic groups and franchises that use Microsoft 365.
  • B2B service firms alerting account managers about client requests.

Setup

  1. In Teams, add an Incoming Webhook connector to the target channel and copy the webhook URL.
  2. Paste the full webhook URL into Endpoint URL.
  3. Add the prompt tip below so the agent notifies Teams whenever it escalates.

Prompt tip

In your agent prompt, add: When you call escalate_to_human, also call notify_teams_on_escalate with a short summary including the customer name, email, and reason.

Copy into custom tool form

Copy each value into the matching field when you add a custom tool on the create or edit agent page. Replace any YOUR_… placeholders with your real credentials.

Tool name

notify_teams_on_escalate

Description

Post a Microsoft Teams incoming webhook message when this conversation needs a human. Call this when escalating to a human, after collecting the customer name and email.

Endpoint URL

Paste into Endpoint URL (https:// is added automatically).

YOUR_ORG.webhook.office.com/webhookb2/YOUR_WEBHOOK_PATH

HTTP method

POST

Tool inputs (all)

1. message (string) Escalation summary including customer name, email, and why a human is needed

Tool input: message

Input name

message

Input type

string

Input description

Escalation summary including customer name, email, and why a human is needed

Reference value

Use this as the request query or body value and choose “Tool input” in the form.

{{message}}

Request body (all)

text: {{message}}

Field name

text

Field value

{{message}}

Headers (all)

Header values are encrypted when stored. Replace placeholders with your real secrets.

Content-Type: application/json

Header name

Content-Type

Header value

application/json