Overview
Escalate customer conversations to Microsoft Teams channels, enabling your support team to receive real-time notifications and collaborate on customer issues within Teams.Requirements
- Active Microsoft Teams workspace
- Microsoft Teams integration connected (see Integration Setup below)
- Teams channel for escalation notifications
- Appropriate permissions to post messages
Setup Instructions
Step 1: Connect Teams Integration
Microsoft Teams Integration
Connect your Microsoft Teams workspace first
Step 2: Create Escalation Path
- Navigate to Agents → Your Agent → Escalations
- Click “Create Escalation Path”
- Fill in the basic information:
- Name: Descriptive name (e.g., “Teams Support Channel”)
- Platform: Select “Microsoft Teams”
- Platform Integration: Choose your connected Teams workspace
Step 3: Configure Teams Settings
Configure the following Teams-specific settings:- Team ID: The Teams team to notify
- Channel ID: The specific channel for notifications
- Notification Template (optional): Custom message format
- Mention Users (optional): Automatically mention team members
- Adaptive Card Template (optional): Use custom card design
Step 4: Set Up Triggers (Optional)
Choose when to automatically escalate:- Manual Only: Only when customer requests or AI determines need
- Message Count: After specific number of messages
- Keywords: When certain words detected
Step 5: Save Configuration
Click “Save” to create the escalation path.Configuration Options
| Option | Description | Required |
|---|---|---|
| Team ID | Microsoft Teams team identifier | Yes |
| Channel ID | Channel for notifications | Yes |
| Notification Template | Custom message format | No |
| Mention Users | Users to tag in notifications | No |
| Adaptive Card Template | Custom card design (JSON) | No |
Getting Team and Channel IDs
Method 1: Via Teams Web App
- Open Teams in web browser
- Navigate to the desired channel
- URL format:
https://teams.microsoft.com/...teams/[TEAM_ID]/channels/[CHANNEL_ID] - Copy the IDs from the URL
Method 2: Via Graph Explorer
- Go to Graph Explorer
- Sign in with Microsoft account
- Query:
GET /me/joinedTeamsto list teams - Query:
GET /teams/{team-id}/channelsto list channels
Notification Template
Customize the message sent to Teams:Available Variables
{{customer_name}}: Customer’s name or identifier{{channel_name}}: Communication channel (Live Chat, SMS, etc.){{escalation_reason}}: Why the conversation was escalated{{conversation_summary}}: Brief summary of conversation{{conversation_url}}: Link to full conversation{{agent_name}}: Name of the AI agent{{timestamp}}: When escalation occurred
Adaptive Cards
Use Adaptive Cards for rich, interactive notifications:Adaptive Cards Designer
Design custom Adaptive Cards
Mentioning Users
Tag specific users in notifications: Format: Use Azure AD User Principal Name (UPN)- Example:
[email protected] - Or use Teams User ID
- Example:
[email protected], [email protected]
Escalation Triggers
Manual Only
Escalate only when:- Customer explicitly requests human help
- AI determines it cannot assist (low confidence)
Message Count Trigger
Automatically escalate after a specific number of customer messages. Use Case: If conversation exceeds 5 messages, AI may not be resolving the issue.Keyword Trigger
Escalate when specific keywords are detected. Example Keywords:- Urgent: “urgent”, “asap”, “emergency”
- Escalation: “manager”, “supervisor”
- Dissatisfaction: “frustrated”, “complaint”, “unacceptable”
How It Works
When escalation is triggered:- Teams Notification: Message or Adaptive Card posted to channel
- AI Pauses: AI agent stops responding to conversation
- Team Notified: Team members receive Teams notification
- Context Included: Full conversation history shared
- Human Takeover: Team member responds through original channel
Managing Teams Escalations
Test Connection
- Navigate to Agents → Your Agent → Escalations
- Find your Teams escalation path
- Click “Test Connection”
- Verify test message appears in Teams channel
Activate/Deactivate
Toggle the “Active” switch to enable or disable the escalation path.Edit Settings
- Navigate to Agents → Your Agent → Escalations
- Click the Teams escalation path
- Update configuration
- Click “Save Changes”
Set Priority
If you have multiple escalation paths, drag and drop to set priority order.Best Practices
- Dedicated Channel: Use specific channel for escalations
- Rich Cards: Use Adaptive Cards for better context and actions
- Mention On-Call: Tag current on-call support person
- Clear Formatting: Use bold, bullets for readability
- Action Buttons: Include links to view full conversation
- Monitor Response: Track how quickly team responds
Example Use Cases
Use Case 1: General Support Escalations
Configuration:- Team: Customer Success
- Channel: Support Escalations
- Trigger: Message count > 5
- Mentions: On-call support agent
- Adaptive Card: Standard escalation template
Use Case 2: VIP Customer Issues
Configuration:- Team: Account Management
- Channel: VIP Support
- Trigger: Manual (detected by AI)
- Mentions: Account manager, Support lead
- Adaptive Card: VIP customer template with priority badge
Use Case 3: Technical Escalations
Configuration:- Team: Engineering
- Channel: Customer-Reported Issues
- Trigger: Keywords (“error”, “bug”, “broken”)
- Mentions: Engineering on-call
- Adaptive Card: Technical issue template
Using in Procedures
Reference the escalation path in AI procedures:Procedures Guide
Learn how to use escalations in procedures
Troubleshooting
Notifications Not Appearing
- Verify Teams integration is connected and active
- Check Team ID and Channel ID are correct
- Ensure bot has permission to post in channel
- Add Support Unicorn app to the team/channel
- Test connection using “Test Connection” button
Invalid Team or Channel ID
- Verify IDs are copied correctly (no extra spaces)
- Check that team and channel exist
- Ensure you have access to the team/channel
- Use Graph Explorer to verify IDs
Mentions Not Working
- Verify email addresses are correct (UPNs)
- Use Azure AD email, not display name
- Ensure mentioned users have access to channel
- Check for typos in email addresses
Adaptive Cards Not Rendering
- Validate JSON syntax using Adaptive Cards Designer
- Ensure card version is supported (1.4 or lower)
- Check that all required properties are included
- Verify template variables are correctly formatted
Duplicate Notifications
- Check for multiple active escalation paths with same triggers
- Make trigger conditions more specific
- Set priority order to control which path fires first
Permissions
Ensure the Teams app has:- Send messages: Post notifications to channels
- Post Adaptive Cards: Use rich card templates
- Read team members: For @mentions
- Channel access: Added to escalation channel