Microsoft Teams
Run your memcode agent from a bot in Microsoft Teams.
Teams bots are registered through Azure, and Teams delivers messages to a web address you host, so this channel needs an Azure bot registration and a public address that reaches your gateway.
Step 1: Create an Azure Bot
In the Azure portal, create an Azure Bot resource. From the registration, collect three values: the app ID, a client secret (create one under the app registration's certificates and secrets), and your tenant ID.
Step 2: Set the messaging endpoint
In the bot's configuration, set the messaging endpoint to:
https://<your-gateway-host>/webhook/teamsThe gateway serves this path on port 8787. Teams requires HTTPS, so put the gateway behind a tunnel or reverse proxy that gives it a public HTTPS address, and use that address here.
Step 3: Add the Teams channel
Still on the Azure Bot resource, open Channels and add Microsoft Teams. This is what makes the bot reachable from Teams itself.
Step 4: Configure
memcode gateway setupChoose msteams and enter the app ID, client secret, and tenant ID. When
prompted for allowed users, enter the Teams user ids that may drive the agent.
Step 5: Run
memcode gatewaythen message the bot in Teams. Personal chats are always answered; in a team channel the bot acts only when you @mention it, so it does not run on ordinary chatter. The reply comes back in the same thread.