Using AI Chatbots with Teams

7 min read Updated Nov 3, 2026 Microsoft Teams

AI chatbots and Microsoft Teams work together in Social Intents to create a support system where the AI handles routine questions instantly and human agents in Teams step in for complex issues. Below we cover how to configure AI chatbots when using the Teams integration, how escalation from AI to human agents works, and how to optimize the handoff experience.

How AI + Teams Works

When you enable an AI chatbot on a widget connected to Microsoft Teams, the conversation flow changes:

  1. Visitor opens the chat widget and sends a message
  2. The AI chatbot responds immediately using your configured AI engine (ChatGPT, Claude, or Gemini)
  3. If the chatbot can answer the question, the conversation continues without involving a human agent
  4. If the visitor asks to speak to a person, or the AI determines it cannot help, the conversation escalates to your Teams channel
  5. An agent in Teams joins the chat and takes over from the AI

The AI acts as a first-line filter. It handles common questions - product information, business hours, how-to guidance - and your team only gets pulled in when human judgment is needed.

Setting Up an AI Chatbot on a Teams Widget

Confirm Teams Connection

Make sure your widget is connected to Microsoft Teams. If not, follow the connection guide first.

Open the AI Agent Tab

Go to Chat Widgets → select your widget → AI Agent tab.

Turn On the AI and Choose an Engine

In Agent settings, switch the AI agent toggle on, choose When the AI responds, and select your provider and model under Provider & credentials:

  • ChatGPT (GPT-6 Luna is the default; GPT-6 Luna, GPT-5.6 Luna, GPT-4o, and GPT-4o Mini are included with your subscription, while models such as GPT-5.6 use your own key) - Best general-purpose option
  • Claude (Anthropic, BYOK) - Strong with nuanced, detailed responses
  • Gemini (Google, BYOK) - Good with factual, structured answers

Add an API Key If Needed

The included ChatGPT models need no key. For any other model, paste your provider key in the API key field. See Choosing Your AI Engine for which models need a key.

Write the Instructions

Open the Playground tab and enter AI Instructions that tell the AI who it is and how to behave:

"You are a helpful support assistant for [Company Name]. Answer questions about our products and services. If you cannot answer a question or the visitor asks to speak to a person, let them know you will connect them with a team member."

Add Training Content (Optional)

In the AI Agent tab, open Data sources to add website pages, sitemaps, or files, and Q&A for exact answers to your FAQs. The more relevant content you provide, the more accurate the AI's responses will be. See Training Your Chatbot for details.

Save and Test

Save your chatbot settings and open the chat widget on your website. Ask a few questions to verify the AI responds correctly, then ask to speak with a person to verify escalation works.

Escalation from AI to Teams

The most important part of the AI + Teams setup is ensuring smooth escalation. There are two ways escalation happens:

Automatic Escalation

Under AI Agent > Handoff, list Trigger phrases such as "talk to a person, human, agent" and an Escalation response. When the visitor uses one of those phrases, or your instructions tell the AI to hand off, the conversation goes to your Teams channel. See Escalation to Human Agents.

Action-Based Escalation

For more control, create an Escalate Chat to Human AI Action (Custom Actions are included on the Pro and Business plans and during your free trial) (see Escalation Routing in Teams). This lets you:

  • Route to specific channels based on conversation topic
  • Customize the handoff message
  • Add a confirmation step before escalation
  • Include routing instructions for multi-department setups

What the Visitor Sees During Escalation

When escalation is triggered:

  1. The AI sends a message like "Let me connect you with a team member"
  2. The visitor sees a connecting state while Social Intents sends the invitation to Teams
  3. Once an agent joins in Teams, the visitor sees the agent's name and can continue the conversation
  4. The agent sees the full AI conversation history, so the visitor does not need to repeat their question

What Agents See in Teams

When a chat escalates to Teams, agents see:

  • Visitor name (if provided)
  • Page URL where the visitor started the chat
  • Conversation summary - The AI's prior conversation gives the agent context
  • Join button to enter the chat

This context eliminates the "how can I help you?" question - the agent already knows what the visitor needs.

AI Chatbot Behavior Settings

Several settings affect how the AI chatbot interacts with Teams:

SettingEffect
AI agent offAll chats go directly to your Teams channel without AI interaction
When the AI responds: AI onlyThe AI answers every chat; your team is notified only when a visitor asks for a person
AI + human agents on all chatsThe AI and your Teams agents are added to every chat together
AI + human agents, AI drops when an agent answersBoth join each chat, and the AI steps aside as soon as an agent replies
AI answers missed chats / when your team is offline / offline or missed chatsYour Teams agents get the first chance; the AI covers missed chats or offline hours
End the chat actionLets the AI close the conversation after resolution without needing an agent
Trigger only once per sessionAn action fires only once per conversation

Common Configurations

AI-First with Human Backup

The AI handles all initial conversations. Agents only get involved when the AI cannot resolve the issue or the visitor requests a human. This is the most common setup and works well for teams that want to reduce chat volume.

  • Enable AI chatbot
  • Train it on your knowledge base
  • Create an "Escalate Chat to Human" action
  • Set your Teams channel as the escalation target

AI Triage + Department Routing

The AI identifies the visitor's need and routes to the correct department channel. Create multiple escalation actions, each targeting a different Teams channel, with clear routing instructions to help the AI choose correctly.

After-Hours AI Only

During business hours, chats go directly to Teams with no AI. After hours, the AI handles conversations and collects contact information. Set When the AI responds to AI answers when your team is offline and configure your hours in the widget's Settings tab > Availability.

Best Practices

  • Train the AI thoroughly - The better trained your chatbot is, the fewer chats need human intervention. Upload your FAQ, product docs, and common support answers
  • Write clear escalation triggers - Tell the AI exactly when to escalate: "If the visitor asks about refunds, enterprise pricing, or anything you are not sure about, escalate to a human"
  • Set expectations - Include in the AI prompt: "If you need to connect the visitor to a team member, let them know someone will be with them shortly"
  • Monitor AI performance - Check the dashboard for chats where the AI escalated. Look for patterns - if the AI frequently escalates for the same questions, add that content to its training data
  • Keep the AI prompt focused - Do not try to make the AI handle billing disputes or complex account issues. Let it answer informational questions and route everything else to your team

Frequently Asked Questions

Does the AI use the Teams channel history for training?

No. The AI chatbot is trained on content you provide - uploaded documents, URLs, and custom text. It does not learn from your Teams conversations.

Can I disable the AI for specific visitors?

There is no per-visitor toggle, but you can configure the chatbot to immediately escalate based on certain conditions. For example, if a returning customer's message contains "existing customer" or an account number, the AI can route them straight to a human.

Does the AI continue responding after an agent joins?

Whether the AI stops once an agent joins depends on When the AI responds in the AI Agent tab: with AI + human agents, AI drops when an agent answers (or AI answers offline or missed chats) the AI steps aside as soon as an agent replies; with AI + human agents on all chats both stay in the chat.

Does the AI answer WhatsApp chats that go to Teams?

Yes. WhatsApp conversations routed to the widget use the same AI agent, and escalations land in your Teams channel. See WhatsApp with Microsoft Teams.

Can I use different AI engines for different widgets?

Yes. Each widget has its own chatbot configuration. You could use ChatGPT on your marketing site widget and Claude on your support portal widget.

Next Steps