Connect Sofi to Microsoft Teams
Let users chat with a Sofi AI assistant in Microsoft Teams: choose the assistant, link Teams users to Servicely users and test.
Connect Sofi to Microsoft Teams so users can ask a Servicely AI assistant for help in Teams instead of the Service Portal. You end with an assistant that answers one-to-one chats, group chats and the channels you enable.
Before you begin
- You need the
administratorrole. - Complete Register an Azure bot, so the Microsoft Teams messaging account is active and the app is published.
- Have at least one AI assistant that should answer in Teams. See Configure an AI assistant.
Steps
-
Go to AI assistants & agents → Assistants & Agents → AI Assistants and open the assistant.

The AI Assistants item in the AI assistants & agents menu. -
On the Selection context tab, add Teams to Channels, or set it to All, and save. An empty Channels list means the assistant answers only in Servicely.

The Channels field on the Selection context tab of an AI assistant. -
Go to Messaging & notifications → Accounts & channels → Messaging accounts and open Microsoft Teams.

The Messaging accounts item in the Accounts & channels menu. -
Decide how Servicely finds the user behind each Teams message, using the fields in the table below. Save the account.
-
From a Teams account that matches a Servicely user, open the Servicely app and send a message. Check that the assistant replies.
-
Ask a follow-up question, then send
/newchat. Check that the next answer has no memory of the earlier exchange.
Keep assistants that change configuration out of Teams. The Channels help text warns that external channels have weaker identity guarantees.
Servicely first matches the sender’s Microsoft Entra ID object ID to Active Directory ID on a user record.
| Field | Default | Effect |
|---|---|---|
| Email Fallback Enabled | Yes | If no user matches the object ID, Servicely matches the sender’s Microsoft 365 email address to the user’s Email. Set it to No to require Active Directory ID. |
| Persist Matched Identity | Yes | After an email match, Servicely writes the object ID to the user’s Active Directory ID. Set it to No if your directory sync should be the only source of that field. |
Result
Users find the Servicely app in Teams and chat with the assistant. Each one-to-one chat, group chat and channel thread has its own conversation. Users type /newchat, /clear or /endchat to start again.
A chat does not create a ticket by itself. The assistant creates or updates records only when its tools allow it. A sender who matches no Servicely user gets a short notice instead of an answer. The application property agentic.messaging.unregistered_user.message holds its text, and an empty value turns the notice off.
In a Teams channel, the bot answers only where an administrator has enabled the channel. When a user mentions the bot in a channel that is not enabled, the request waits for administrator review.