Microsoft Teams chat notifications
Post missed calls, voicemails, queue alerts, call transcripts and AI summaries to Microsoft Teams channels you choose. This connector is read only: unlike Slack (see the connector index) and Google Chat, it has no slash command, message action or click-to-call. Microsoft retired the old Office 365 Connectors ("Incoming Webhook" on a channel); the current path is a Power Automate workflow, and a Workflows webhook cannot call anything back into MonoPbx — there is nothing on the Teams side to build a command on.
Open Admin > Integrations, find Microsoft Teams in the catalogue and press Install. You need integrations:read to see it and integrations:write to install or change it.
Notifications
Each event goes to the channel alias you choose for it; an event without an alias is not posted.
| Event | Posted when | In the payload |
|---|---|---|
| Missed call | An inbound call nobody answered ends. | title, fields (time), call_back_number |
| Voicemail | A caller leaves a message (posted about 45 seconds later, so the transcript is ready). | title, the start of the transcript as text, call_back_number, link to the console |
| Queue alert | A caller waits longer than the queue's service level target, a wait passes 2 minutes (or twice the target), or a caller hangs up while waiting. At most one alert per queue and reason every 10 minutes. | title, fields (callers waiting, longest wait) |
| AI summary, Transcript | The AI summary of a recorded call is ready. | title, text, link |
| Fax received, SMS received | A fax or an SMS arrives on a company number. The SMS text is not posted. | title, link |
MonoPbx posts a flat JSON object, not an Adaptive Card (event, title, and whichever of fields, text, call_back_number and link apply). Your own Power Automate flow turns it into whatever card you want — that is also why there is no card preview here: the flow you build decides the layout.
Create a channel webhook (owner, once per channel)
You do this once for every Teams channel you want notifications in.
- In the Teams channel, open Workflows (the ⋯ menu, or the apps panel) and pick the template Post to a channel when a webhook request is received.
- Name the flow (for example
MonoPbx alerts) and finish the wizard. Teams creates the flow in Power Automate and shows you the trigger's HTTP POST URL — copy it; this is the credential (treat it like a password). - Open the flow in Power Automate to shape the card: after the trigger, add a Parse JSON step with a sample payload (for example
{"event": "missed_call", "title": "Missed call from +1 555 0100 to 101", "fields": [{"label": "Time (UTC)", "value": "2026-11-24 18:00:00"}], "call_back_number": "+15550100", "link": "https://pbx.example.com/calls/1"}), then build whatever Adaptive Card or plain message you want fromtitle,fields,text,call_back_numberandlink(any of the last four may be absent) and post it with Post card in a channel (or Post message in a channel for plain text). - Repeat for every channel you want a different set of events in (for example one flow for
#alerts, another for#voicemail).
Screenshot placeholder: the Power Automate flow with the webhook trigger and the "Post card in a channel" action.
Connect MonoPbx
- Install: press Install in the catalogue, fill in the form and tick the AI tools you allow (
post_message,queue_alert). - Channel webhooks: paste a JSON object of channel alias to webhook URL, for example:
An alias is 1-40 lowercase letters, digits,{"alerts": "https://prod-12.westus.logic.azure.com/workflows/.../triggers/manual/paths/invoke?...", "voicemail": "https://prod-9.eastus.logic.azure.com/workflows/.../triggers/manual/paths/invoke?..."}
-or_(your own name for the channel, not anything Teams gives you). At most 32 aliases. - Save, then press Channels and map each event to the alias of the channel it should go to, with an optional default for events you did not map. Save again.
- Press Test connection: Microsoft gives this kind of webhook no read-only endpoint to check, so this step only confirms every mapped alias has a webhook URL — it never posts. Open the install's Channels panel and use Send test message to actually post and check the flow end to end.
Screenshot placeholder: the generic install form with the channel webhooks field and the channel mapping panel below it.
Troubleshooting
| Symptom | Check |
|---|---|
Test connection fails with bad_channel | An event is mapped to an alias that is not a key of the channel webhooks object (or the default channel alias is wrong). Check spelling on both sides. |
Send test message fails with channel_not_found | The flow was turned off or deleted in Power Automate, or the URL was rotated by creating the flow again. Copy the new URL into the channel webhooks field. |
| Nothing is ever posted | The event has no route and no default channel; or the flow's trigger schema does not match MonoPbx's payload (open the flow's run history in Power Automate to see what arrived). |
| No "Call back" button in Teams | There is none: the webhook is outbound only. Use call_back_number in your own flow to show a number, or dial from the console or the app instead. |
Error codes: MPBX-INT-UPSTREAM (the flow refused the post or did not answer in time; the detail carries the short code channel_not_found, rate_limited or http_status), MPBX-INT-INVALID (a malformed channel alias, webhooks object or channel mapping).