Developers
ENPT

Microsoft Teams

Connect your organization's Microsoft Teams bot so people can talk to the avatar inside Teams.

With the Teams connection, people in your organization chat with the avatar through a Teams bot. The avatar answers in Teams, conversations appear in Conversations, and operators can reply from the platform once sending is active.

Each organization has one integration, tied to a single bot.

Before you start

  • A bot for Microsoft Teams registered in your organization's Azure (Microsoft Entra ID), with its Tenant ID, Client ID and Client Secret. See Advanced for the setup.
  • A Microsoft 365 administrator to grant admin consent and publish the Teams app.
  • Access to Settings › Teams connection in the Tolky platform.

Connect

Open the screen

Go to Settings › Teams connection. The Microsoft Teams page opens with the Not configured badge.

Fill in the credentials

Under Bot credentials, fill in Tenant ID, Client ID and Client Secret.

Test

Click Test credentials. The message Valid credentials — token obtained successfully. appears.

Save

Click Save. The message Teams integration saved successfully. appears and the badge changes to Configured.

Check the requirements

The Integration requirements section checks the setup on its own. Fix any item marked as missing and click Re-check.

Activate sending

If Operator sending shows "Sending inactive", click Activate sending. Operators can then reply from the platform.

When the bot credentials and the Microsoft Graph permission pass the check, the badge shows Operational.

Test

In Teams, open a chat with the bot and send a message. The avatar answers, and the conversation appears in Conversations.

Manage

BadgeMeaning
Not configuredNo credentials saved.
ConfiguredCredentials saved; the requirements were not checked yet.
OperationalBot credentials and Microsoft Graph permission are OK.
Needs attentionOne of these two checks failed. See Integration requirements.
  • To change the credentials, edit the fields and click Save. Leave Client Secret as it is to keep the current secret.
  • To remove the integration, click Unlink and confirm in Unlink Microsoft Teams. You can set it up again later.

Common problems

SymptomWhat to do
"Enter the Client Secret to test."Type the secret again: the saved one is not shown, and the test needs it.
"Invalid credentials: …"Check the three values in Azure. A client secret that expired must be replaced by a new one.
"Missing: User.Read.All"Add the Microsoft Graph application permission User.Read.All and grant admin consent.
"Sending inactive — the operator can't reply yet."Click Activate sending.
"No read event received yet"Check the two manual items: the Teams app manifest permission and the read receipts policy.
"Error loading the Teams configuration."Reload the page. If it continues, contact Tolky support.
Azure app registrationTechnical details

Register the app

  1. In the Azure portal, open Microsoft Entra ID › App registrations › New registration.
  2. Copy the Directory (tenant) ID into Tenant ID and the Application (client) ID into Client ID.
  3. Under Certificates & secrets, create a client secret and copy its value into Client Secret. Note the expiry date.
  4. Under API permissions, add the Microsoft Graph application permission User.Read.All and click Grant admin consent.
  5. Optional: add AppCatalog.Read.All with admin consent. Tolky then checks the Teams app manifest permission automatically.

Bot and Teams app

  • Create an Azure Bot that uses this app registration and turn on the Microsoft Teams channel. The bot's messaging endpoint must point to Tolky: ask Tolky support for the address.
  • In the Teams Developer Portal, open your app › Permissions › Chat/meeting and check the resource-specific consent (RSC) permission ChatMessageReadReceipt.Read.Chat. Publish the new version to your organization.
  • In the Teams admin center, under Messaging policies, turn on Read receipts.

Tolky identifies your organization by the bot's Client ID: messages to that bot reach the avatar of the account where you saved the credentials.

Requirements checked

ItemWhat is checked
Bot credentials (Bot Framework token)Tolky gets a token with your Tenant ID, Client ID and Client Secret.
Microsoft Graph permissionUser.Read.All with admin consent.
Operator sendingGlobal mode works from the start; it switches to regional mode after the user's first message to the bot. Inactive means operators cannot reply yet.
Read receipts workingDate of the last read event received from Teams.
Teams app manifestRSC permission ChatMessageReadReceipt.Read.Chat in the published app. Checked automatically with AppCatalog.Read.All; otherwise manual.
"Read receipts" policyManual item, controlled by your Teams administrator.
  • Build your own channel
  • WhatsApp via Meta

Previous

Voice widget

Next

Build your own channel