Skip to content

The open alternative to Salesforce, designed for AI.

Document Teams chat setup (#28067)

Abdul Rahmanb6b485de74cc
diff --git a/packages/twenty-apps/public/teams/SETUP.md b/packages/twenty-apps/public/teams/SETUP.md
index 586cbf94b5c..cf26db741e1 100644
--- a/packages/twenty-apps/public/teams/SETUP.md
+++ b/packages/twenty-apps/public/teams/SETUP.md
@@ -47,6 +47,32 @@ three credentials before bot operations can run.
| `TEAMS_BOT_APP_PASSWORD` | yes | Client secret of that app registration. Used to mint Bot Connector tokens. |
| `TEAMS_BOT_TENANT_ID` | no | Directory (tenant) ID that owns the Azure Bot. Microsoft stopped issuing multi-tenant bots after 2025-07-31, so token minting is tenant-scoped rather than going through the shared `botframework.com` authority. |
+## Chat
+
+Chat lets workspace members message the Teams Assistant bot from Microsoft
+Teams. It needs the [bot server variables](#bot-server-variables), the
+`IS_CHAT_ASSISTANT_ENABLED` release flag, and the workspace's **Enable chat**
+setting.
+
+1. In the Azure Bot resource, set the messaging endpoint to
+ `https://<your-twenty-host>/webhooks/server/c78db1b1-a0ec-4183-9edd-63299ab5a477`
+ and enable the Microsoft Teams channel. The Twenty server must be reachable
+ from the internet over HTTPS.
+2. Add the bot to a Teams app (for example in the Teams Developer Portal, using
+ `TEAMS_BOT_APP_ID` as the bot ID) and install it for your users.
+3. Turn on **Enable chat**, then add a **workspace-shared** Microsoft connection.
+ Adding it claims the connection's Microsoft tenant for this workspace, so
+ activities from that tenant route here. Personal connections do not claim a
+ tenant, and a tenant can only be claimed by one workspace.
+
+The route verifies the Bot Framework token on every activity and ignores
+activities from tenants no workspace has claimed. The bot answers direct
+messages, and channel or group messages that mention it. It answers as the
+workspace member whose email matches the sender's Microsoft account, links that
+account under **Linked Teams accounts**, and replies with a short notice when no
+member matches. Members who can manage roles can remove a link there; an
+account matched on email is linked again on its next message.
+
## Connect
Open **Settings > Applications > Microsoft Teams > Settings**, select