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
- In Teams, add an Incoming Webhook connector to the target channel and copy the webhook URL.
- Paste the full webhook URL into Endpoint URL.
- 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
Description
Endpoint URL
Paste into Endpoint URL (https:// is added automatically).
HTTP method
Tool inputs (all)
Tool input: message
Input name
Input type
Input description
Reference value
Use this as the request query or body value and choose “Tool input” in the form.
Request body (all)
Field name
Field value
Headers (all)
Header values are encrypted when stored. Replace placeholders with your real secrets.
Header name
Header value
