Microsoft Teams Adapter
The Teams adapter lets Wingman receive Microsoft Teams bot messages and route them through the gateway, similar to the Discord adapter.
Configuration
Add this to wingman.config.json:
Key behaviors
mentionOnly: in team channels, only respond when the bot is mentioned.allowedTeamIds/allowedChannelIds: restrict where messages are accepted.channelSessions: pin a channel to a specific Wingman session key.sessionCommand: override routing with!session <sessionKey> <message>.endpointPath: Teams messaging endpoint path served by the gateway process.
Session mapping order
!session <sessionKey> <message>override (single message).channelSessionsmapping for the channel/conversation.- Gateway-derived key from routing metadata.
Session keys
Use agent:<id>: prefixes to auto-select an agent:
Setup checklist (low friction)
- Create an Azure Bot app registration (App ID + client secret).
- In Teams app manifest, configure the bot and include your messaging endpoint:
https://<your-public-host>/api/adapters/teams/messages(or your customendpointPath). - For local development, run the gateway and expose it with a tunnel (for example, dev tunnels or ngrok) using HTTPS.
- Put
appIdandappPasswordintogateway.adapters.teams. - Restart the gateway.
Once running, mention the bot in a Teams channel (or chat directly) to start a session.
