Skip to content

Chat integrations

Chat integrations list

Description

The chat bridge connects a saved agent to a chat platform. Users message a bot in Mattermost, Slack, or Microsoft Teams, the bridge runs the configured agent as its owner, and the answer comes back in the same thread. If a turn is still running after 15 seconds, the bot first posts a short "working on it" message and later rewrites it to "The reply is below." when the answer arrives as a new message (see the status message). Each connection binds one chat workspace to one agent, so a user in that workspace always talks to the same agent. ("Chat bridge" remains the backend/API name; the UI page is Chat integrations.)

The Chat integrations view is the Chat integrations tab of Connections in the Organisation area: open Organisation from the user-block menu at the bottom of the left sidebar, then AI setup › Connections › Chat integrations (route /org/<organisation id>/ai-setup/connections?view=chat; the crumb reads Organisation › AI setup › Connections). The old address /chat-bridge redirects here (the query string is kept). The tab is visible only to holders of the MCP_TENANT_MANAGE permission (tenant admin); an AI manager sees Connections with the MCP connectors tab only. The endpoints serve only the signed-in user's own organisation, so a platform admin sees Connections only inside their own organisation. A connection is always created for the caller's own tenant; the tenant is derived from the session and cannot be set from the request. MCP_TENANT_MANAGE cannot be granted to a custom role: it is held only by the tenant admin and admin system roles, because chat-bridge claims are mapped to users by e-mail.

The list shows one row per connection with the Platform, Workspace, Agent, Gateway, Status, Web search, Outgoing, and Created columns. The Status column shows Enabled or Disabled; the Web search and Outgoing columns show Approval (held for approval, the default) or Direct (runs without approval), each with a row action to change it. (The Outgoing column is the outgoing data setting, allow_egress, described below.) While Outgoing is Direct, the Web search column also shows Direct, because outgoing data without approval already includes web searches, and the web search row action is locked until you require approval for outgoing data again. The stored web search setting is not changed by this.

⚠️ Outgoing data without approval (Egress). The Allow outgoing data without approval setting (allow_egress) lets calls that send data out run without approval: fetching a web page, writing through a connector, and web search, including the same calls made by sub-agents. Code execution and image generation run in both settings; code never has network access. Because a chat bridge is an unauthenticated channel (anyone who can message the bot drives the agent), anyone in the chat workspace can trigger these calls. Leave the setting off unless the agent genuinely needs it. See Chat bridge API — full-tool opt-in.

Credentials are write-only. The gateway never returns a bot token, secret, or client secret, so those fields are blank when a connection is reopened.

💡 Note: The chat bridge documented here is the tenant-admin configuration surface. For the inbound receiver, the per-platform trust boundary, and the run-as-owner execution model, see Chat bridge API.


Creating a connection

Required role: tenant admin or admin.

A connection binds a chat workspace to one agent on one gateway of the tenant. Each platform needs its own credentials, listed in the tables below.

The Add chat connection page The Add chat connection page with the two settings at the bottom: Allow web search without approval and Allow outgoing data without approval. With the second one ticked, the first is ticked and locked.

Proceed as follows to create a connection:

  1. Click on the Add connection button.
    • The Add chat connection page opens (/org/<organisation id>/ai-setup/connections/chat/new). Its sticky bar at the bottom holds Cancel and Save; leaving the page with unsaved input asks first.
  2. Select the chat platform in the Platform drop-down list.
    • The list shows only the platforms a platform admin has activated for the deployment (the default active set is Mattermost). A platform admin sees every platform, each flagged with its active state, and controls the active set from the Feature flags & settings page (active_chat_platforms).
  3. Select the gateway in the Gateway drop-down list.
  4. Select the agent in the Agent drop-down list.
    • If agents are not enabled for the tenant, the list is empty and the page shows Agents are not enabled for this tenant, so no agent can be chosen.
  5. Enter the workspace identifier in the Workspace text field.
  6. Enter the credentials of the selected platform in the fields described below.
  7. If required, select the Allow web search without approval check box.
    • While the Allow outgoing data without approval check box is selected, this check box is selected and locked, because outgoing data without approval already includes web searches. Clear the other check box to decide web search separately again; your own choice for this check box is kept.
  8. If the agent needs to send data out without a person approving each call, select the Allow outgoing data without approval check box — but see the warning above; leave it off for an unauthenticated channel unless required.
  9. Click on the Save button.
    • The gateway verifies the bot with the chat platform before it stores the connection. If the platform cannot be reached, the connection is not created (502).
    • If the save fails, the page stays open with your input kept and shows a specific message:
      • These credentials do not belong to the workspace you entered, so they cannot connect it. — the credentials are valid but belong to another workspace (400 workspace_ownership_failed). Check the workspace ID and use the bot credentials from that same workspace.
      • This workspace is already connected, possibly by another organisation or through a disabled connection. — it cannot be taken over automatically; ask the owner of the existing connection to delete it, or contact Myra support (409 workspace_already_configured).
      • The chat platform could not verify these credentials: it did not answer or did not accept them. — nothing was saved; check the credentials and try again later (502 platform_unreachable).
      • The chat platform answered but did not accept these bot credentials. — check the bot token and, for Mattermost, the server URL (400 bot_verification_failed).
      • A message naming the expected format when the Workspace identifier is malformed for the platform: a Slack team ID in capital letters and digits, an Entra tenant GUID for Microsoft Teams, or a 26-character lowercase Mattermost team ID. The Microsoft Teams workspace (tenant) ID and the bot app ID are lower-cased before they are sent; the bot home tenant ID is only trimmed.
    • Any other failure shows the generic The connection could not be created. text.

-> The new connection appears in the list. Repeat this process for all required connections.

Mattermost credentials

For a Mattermost connection, enter the following values:

Field Value
Workspace (team id) The Mattermost team id.
Mattermost URL The base URL of the Mattermost server. The URL must be an https URL that resolves to a public IP.
Bot access token The access token of the bot account.
Relay secret A high-entropy shared secret the relay presents on every event. Store the secret only in the relay configuration.

Native Mattermost slash commands

A Mattermost connection can also power two native slash commands, alongside the message relay:

  • /agents — lists the agents the connection exposes.
  • /agent <name> — starts or continues a chat with the named agent.

Auto-provisioned. When you create a Mattermost connection, the gateway registers both commands in your Mattermost workspace for you — it calls the Mattermost API, points each command at the bridge slash endpoint, and stores the verification token Mattermost returns on the connection. There is no manual command creation and no token copying.

Two Mattermost server settings must be on first (these belong to your Mattermost administrator, not the gateway):

  • System Console → Integrations → Integration Management → Enable Custom Slash Commands.
  • The connection's bot account needs the manage_slash_commands permission. Adopting a command that a different user pre-created at the same URL additionally needs manage_others_slash_commands.

If provisioning cannot complete — the settings above are off, the bot lacks the permission, or Mattermost is unreachable — the connection is still created and fully usable over the message relay and the !agents / !agent directives; only the /-commands are skipped, and a warning records which command and why. Each command works independently, so a partially-provisioned connection still serves the one that succeeded.

Re-run provisioning at any time with the idempotent, non-destructive Re-provision slash commands action (POST /admin/v1/chat-bridge/connections/{id}/provision-slash): it lists the workspace's commands and adopts/refreshes the ones pointing at the bridge endpoint rather than creating duplicates. (If the gateway's public host changes after a command exists, that command reads as foreign and is left in place — remove it in Mattermost, or re-create the connection, to re-provision.) For the endpoint, the token fields, and the response shape, see the Chat bridge API reference.

Slack credentials

For a Slack connection, enter the following values:

Field Value
Workspace (Slack team ID) The Slack team id, for example T0123ABCD.
Bot token (xoxb-…) The bot access token of the Slack app.
Signing secret The request-signing secret from the Slack app credentials.

When an agent run is held for a tool approval, a Slack or Mattermost connection also sends the approver a direct message. For Slack the app needs the im:write and users:read.email scopes; after adding them, reinstall the app to your workspace. With four-eyes approval, each eligible second approver receives the same kind of direct message once the first approval is given. Details are in Approval DMs.

Microsoft Teams credentials

For a Microsoft Teams connection, enter the following values:

Field Value
Workspace (Entra tenant ID) The Entra (Azure AD) tenant GUID.
Bot app ID The application id of the Azure Bot registration.
Bot app type Select Multi-tenant or Single-tenant in the drop-down list.
Home tenant ID (Entra GUID) The home tenant GUID of the bot.
Service URL The Bot Connector service URL, for example https://smba.trafficmanager.net/emea/.
Client secret The client secret of the Azure Bot registration.

Rotating a bot token

Required role: tenant admin or admin.

Rotate the credentials of a connection when a secret is compromised or expires. A rotation replaces the named secret only; it does not change the bot itself. The platform, workspace, and gateway of a connection cannot be changed after creation — to change the underlying bot, delete the connection and create a new one. The agent that answers on a connection can be changed: open the agent's Channels tab and switch the channel on for that agent (see The Channels tab); the gateway asks for confirmation (Change the default agent) before it replaces the current agent.

The rotate bot token page The rotate page of a connection: the platform, workspace and agent are shown read-only, and only the new token is entered.

Proceed as follows to rotate a bot token:

  1. Click the Rotate token row action on the connection row.
    • The connection's page (heading Edit <workspace>, /org/<organisation id>/ai-setup/connections/chat/<connection id>/edit) opens with the platform, workspace, and agent shown read-only.
  2. Enter the new secret in the credential text field. For a Mattermost or Slack connection, the field is New bot access token or New bot token. For a Slack connection, enter a new New signing secret if required. For a Microsoft Teams connection, the field is New client secret.
  3. Leave a credential field blank to keep the current value.
  4. Click on the Rotate token button in the bar at the bottom.
    • The chat integrations list opens again.
    • If the new credentials belong to a different workspace, the page stays open, keeps your input and shows The new credentials do not belong to this connection's workspace. Nothing was changed; the current credentials remain active. A rotate can only show the ownership-rejected text above or the platform-unreachable text from create; only a refusal the page does not recognise shows The credentials could not be replaced.

-> The new secret takes effect immediately. The bot id does not change.


Changing the connection status

Required role: tenant admin or admin.

A disabled connection stops answering. An inbound event for a disabled workspace is rejected.

Proceed as follows to change the connection status:

  1. Locate the connection in the list.
  2. Click the Disable row action to disable an enabled connection.
  3. Click the Enable row action to enable a disabled connection.

-> The Status column shows Enabled or Disabled for the connection.


Required role: tenant admin or admin.

Web search is the one external tool you can allow on its own. When web search is allowed without approval, the bot can run a web search to answer, but other outgoing calls — such as fetching URLs or writing through external connectors — are still held for approval (unless Outgoing is Direct). Web search is held for approval by default. Set the opt-in when creating a connection with the Allow web search without approval check box, or change it later from the list.

The approval rules in full:

  • Who approves. A held call is approved by you as owner of the connection. Exception: when every held call in a step uses only the asking person's own, unshared connector, that person approves the whole batch. A sub-agent's call on the asking person's own connector still goes to you as the connection owner.
  • Outgoing data without approval applies to the connection's own agent, and to another agent that the asking person owns. If someone picks another agent they do not own, its outgoing calls are held and you approve them.
  • Content nobody wrote. While Outgoing is Direct, turns that contain content no known person wrote (posts by integrations or other bots, quoted replies) have their outgoing calls, web search included, held for the asking person. While Outgoing is Approval (the default), such calls are held for you as the connection owner, as described above, and web search follows the web search setting. Agents that were already running unattended before this rule keep the tools their saved consent granted (see Chat bridge API and Grandfathered agents on a marked run).
  • Sub-agents do not inherit the web search allow of the connection.
  • Code always runs without network access.

The web-search opt-in on a connection row The web-search opt-in on a connection row.

Proceed as follows to allow web search for a connection:

  1. Locate the connection in the list.
  2. Click the Allow web search without approval row action on the row.

-> The Web search column shows Direct for the connection. Click the Require approval for web search row action to hold web searches for approval again. The Allow outgoing data without approval / Require approval for outgoing data row action changes the Outgoing setting the same way. While Outgoing is Direct, the web search row action is locked.

⚠️ Caution: Enabling web search widens the outbound surface of the bot on an unauthenticated channel. A workspace user can prompt the agent to run a search. The search query is masked and routed to the EU-resident search provider, so the residual risk is a search being triggered, not data leaving to an arbitrary endpoint. Leave web search off unless the bot needs current information.

💡 Note: Web search takes effect only when the agent itself has web search enabled. A local-only (Tier 1) project or knowledge area still blocks web search entirely.


Deleting a connection

Required role: tenant admin or admin.

⚠️ Caution: Deleting a connection stops the bot answering and revokes the connection's access token. The action cannot be undone.

Proceed as follows to delete a connection:

  1. Click the Delete row action on the connection row.
    • A confirmation dialog opens.
  2. Confirm the deletion.

-> The connection is removed from the list.


See also