Table of contents
Create Azure Bot
- Go to Azure Portal
- Search for “Azure Bot” and click “Create”
- Fill in:
- Bot handle: Unique name
- Subscription: Choose your Azure subscription
- Resource group: Create or select
- Pricing tier: Free (F0) is fine to start
- Click “Review + create”, then “Create”
Enable Teams Channel
- Once deployed, go to the bot resource
- In the left menu, click “Channels”
- Click the Microsoft Teams icon
- Click “Save”
Get Bot Token
- In the bot resource, go to “Configuration”
- Copy the Microsoft App ID
- Click “Manage” next to the App ID
- Under “Certificates & secrets”, create a new client secret
- Copy the secret value (you won’t see it again)
Login Command
Run the Teams login command:
openclaw channels login teams --token YOUR_TOKEN
Replace YOUR_TOKEN with the App ID and secret combined as a JWT or use the Bot Framework token if available.
Invite the Bot
- Open Microsoft Teams
- Click “Apps” > “Manage your apps” > “Upload an app”
- Upload the manifest provided by Azure (download from bot resource)
- Add the bot to chats or channels
Next Steps
- Getting Started Overview
- Allowlists and Sender Policies
- Daily Brief Workflow
- Teams Setup Guide
- Teams Troubleshooting
FAQ
Q: Do I need an Azure subscription?
A: Yes. A free tier is available for testing.
Q: Can I limit which teams the bot joins?
A: Yes. Configure channels.teams.allowTeams in openclaw.json.
Q: What if the bot doesn’t respond?
A: Ensure it’s added to the team/channel and has permissions. Check Azure logs.
Q: Can I use adaptive cards?
A: Yes. Configure in the bot or via skills.
Q: How do I disconnect?
A: Run openclaw channels logout teams.