Mattermost
Run your memcode agent from a bot account on your Mattermost server.
Mattermost is self-hosted team chat, and it has bot accounts built in. You create one, hand memcode its token, and invite it to the channels where you want the agent.
Step 1: Create a bot account
In Mattermost, open Integrations → Bot Accounts → Add Bot Account (a system admin may need to enable bot accounts first). Give it a name and create it. Mattermost shows the bot's access token once. Copy it.
Step 2: Invite the bot
Add the bot to the channels you want it to answer in, the same way you invite any member.
Step 3: Configure
memcode gateway setupChoose mattermost and enter your server URL (for example
https://chat.example.com) and the bot's access token. When prompted for
allowed users, enter the Mattermost user ids that may drive the agent. You can
find a user's id from their profile (View Profile → copy ID) or in the
admin console under Users.
Step 4: Run
memcode gatewaythen message the bot. Direct messages are always answered; in a channel the bot acts only when you @mention it, so it does not run on ordinary chatter. The reply comes back in the same conversation.