Azure rejected the App ID, client secret, or Tenant ID. Check that the secret is the secret's value, not its ID, that it has not expired, and that the Tenant ID is the one that owns the app registration.
Connect Microsoft Teams to an agent
Connect an Azure Bot to an agent and your team can message the agent in Microsoft Teams: send a request or attach a document, and the agent replies in the same conversation. Each agent gets its own bot, and the setup takes three parts: register the bot in Azure, connect it in Fluent, then point Azure at Fluent.
Before you start
You need to be a team admin in Fluent. Only admins see Messaging Channels on an agent.
You need permission to register apps and create an Azure Bot in your organization's Azure account.
Each bot connects to one agent, and an agent has one Teams connection. To put a second agent in Teams, register a second Azure Bot.
Register the bot in Azure
Fluent signs in as the bot with an app registration, so the bot has to be single tenant, which limits it to the people in your organization's Azure directory.
In the Azure portal, register an app and choose Single tenant.
Copy the Application (client) ID and the Directory (tenant) ID from the app's overview page.
Under Certificates & secrets, create a client secret and copy its value now. Azure shows it only once.
Create an Azure Bot that uses the existing app registration, and set its type to Single tenant.
In the bot's Channels, enable Microsoft Teams.
In the bot's Configuration, set the Messaging endpoint to the address below.
https://www.fluenterp.com/api/messaging/inbound?provider=teamsThe address is the same for every agent and every team, so you can set it before you connect the bot in Fluent.
Connect the bot to the agent
Fluent checks the credentials with Azure before it saves anything, and stores the client secret encrypted.
In Agents, open the agent.
In Messaging Channels, click Add Channel, then choose Microsoft Teams.
Enter the App ID (Microsoft App ID), the App Password (Client Secret), and the Tenant ID.
Click Connect Teams.
The bot shows under Messaging Channels as active as soon as the credentials check out.
Who can message the agent
Anyone in the Azure directory whose Tenant ID you entered can message the agent. They do not need a Fluent account, and the agent's sharing settings do not apply to Teams. A message from any other organization is ignored without a reply.
What happens when someone messages the agent
The agent reads the message and any attached files or pasted images the way it reads a chat in Fluent, and replies as text in the same Teams conversation. Each person's messages stay in one running conversation with the agent.
When the message leads to a document, the agent posts a link to it in Teams once it is ready. For a quote, the message includes the customer and the total. Review and approval happen in Fluent, as they do for documents that arrive by email.
Disconnect a bot
Disconnecting removes the bot from the agent right away, and Teams messages to it stop reaching Fluent. You can connect the same Azure Bot again later.
In Agents, open the agent.
In Messaging Channels, open the menu on the Teams card and click Disconnect.
Confirm with Disconnect.
Troubleshooting
Connect Teams fails with "Invalid Azure credentials"
Connect Teams fails because the bot is already connected to another agent
A bot can serve only one agent. Disconnect it from the other agent, or register a separate Azure Bot for this one.
Someone messages the agent and gets no reply
Check that the Messaging endpoint in Azure is exactly the address above, then check that the person is in the directory whose Tenant ID you entered. A message from another tenant is dropped without an answer.