Deploy your agent to Microsoft Teams by using the Teams channel integration.
Prerequisites
A Microsoft Azure account
An Azure Bot or App registration that is configured for Microsoft Teams
Microsoft credentials:
Application client ID
Client secret
A Microsoft Teams tenant ID (optional)
Create a Microsoft Teams channel
Use one of the following methods to define the channel:Using YAML:
spec_version: v1kind: channel# Required: Channel type identifierchannel: teams# Required: Name for this channel instancename: production_teams_channel# Optional: Description of this channeldescription: Main customer support Microsoft Teams channel for production environment# Required: Microsoft App Client secret (from Certificates & secrets)app_password: ${TEAMS_APP_PASSWORD}# Required: Microsoft Application (client) IDapp_id: ${TEAMS_APP_ID}# Optional: Microsoft Teams tenant ID (also called Directory ID)teams_tenant_id: ${TEAMS_TENANT_ID}# Optional: Show thumbs up/down feedback buttons on every agent response (default: false)enable_feedback: false# Optional: Use v2 chat completions for this channel (default: false)use_v2_chat_completions: false
Using Python:
import osfrom ibm_watsonx_orchestrate.agent_builder.channels import TeamsChannelfrom dotenv import load_dotenvload_dotenv()channel = TeamsChannel( name="production_teams_channel", description="Main customer support Microsoft Teams channel for production environment", app_password=os.getenv("TEAMS_APP_PASSWORD"), app_id=os.getenv("TEAMS_APP_ID"), teams_tenant_id=os.getenv("TEAMS_TENANT_ID"), enable_feedback=False, # Optional: show thumbs up/down on every agent response use_v2_chat_completions=False, # Optional: use v2 chat completions)
Configuration requirements
Field
Required
Format
Description
app_id
Yes
String
Microsoft application client ID
app_password
Yes
String
Client secret created in Azure App registration
teams_tenant_id
No
String
Microsoft Entra tenant ID
enable_feedback
No
Boolean
Show thumbs up/down feedback buttons on every agent response. Defaults to false.
use_v2_chat_completions
No
Boolean
Use v2 chat completions for this channel. Defaults to false.