Complete guide to connecting Microsoft Teams with OpenClaw (formerly Moltbot, Clawdbot)
New to channel setup? For a hands-on, step-by-step tutorial, check out our Channel Setup Tutorial. This page is a comprehensive reference covering all Microsoft Teams features and configuration options.
Microsoft Teams is a collaboration platform for enterprises. OpenClaw (formerly Moltbot, Clawdbot) integrates with Teams using the Microsoft Bot Framework, providing chat, channels, and enterprise-grade features.
Setting up Microsoft Teams requires creating a bot in Azure Portal:
Create a Teams app manifest with your bot details. This manifest defines your bot's capabilities and appearance in Teams.
Configure Microsoft Teams in your OpenClaw configuration file:
{
"msteams": {
"appId": "your-microsoft-app-id",
"appPassword": "your-microsoft-app-password",
"allowFrom": ["user1@domain.com", "user2@domain.com"]
}
}
You can also use environment variables:
export MSTEAMS_APP_ID="your-microsoft-app-id"
export MSTEAMS_APP_PASSWORD="your-microsoft-app-password"
Control who can interact with your bot:
{
"msteams": {
"appId": "your-microsoft-app-id",
"appPassword": "your-microsoft-app-password",
"allowFrom": [
"user@example.com",
"admin@example.com"
]
}
}
Configure group chat access:
{
"msteams": {
"appId": "your-microsoft-app-id",
"appPassword": "your-microsoft-app-password",
"groupAllowFrom": ["team1@example.com"],
"groupPolicy": "open"
}
}
Group Policies:
"open" - Bot responds to all group messages"allowlist" - Only respond in groups listed in groupAllowFromOpenClaw supports various Teams features:
Your OpenClaw Gateway must be accessible from the internet for Teams to send messages. Configure:
allowFrom to control accessIf the bot doesn't respond:
If authentication fails:
If group features don't work:
groupPolicy configurationgroupAllowFrom includes correct team IDs