Microsoft Teams bot quickstart
Azure app → Bot Framework → HTTPS Gateway → first Teams message
Azure app → Bot Framework → HTTPS Gateway → first Teams message
This is the fast path for US and global enterprises on Microsoft Teams. Tenant policies, manifest packaging, and advanced group rules are in the full Microsoft Teams channel guide. Confirm exact JSON keys in official docs—schemas evolve across releases.
Time: about 30–45 minutes (Azure + HTTPS). Teams requires a public HTTPS messaging endpoint; a home PC alone is not enough unless you add a tunnel (remote access) or a US VPS (US deployment hub).
OpenClaw Bot). Supported account type depends on your tenant (single-tenant is common for internal bots).Store secrets in a vault or env vars—not in git. See secrets configuration.
Without valid HTTPS and a reachable endpoint, Teams cannot deliver messages to your Gateway.
During openclaw onboard, enable Microsoft Teams and paste the App ID and client secret when prompted—or merge into ~/.openclaw/openclaw.json. Example shape (keys may differ in your build):
{
"channels": {
"microsoftTeams": {
"appId": "YOUR_APPLICATION_CLIENT_ID",
"appPassword": "YOUR_CLIENT_SECRET",
"allowFrom": ["you@company.com"]
}
}
}
Use allowFrom / group policies so the bot is not open to your entire tenant by accident. Read is OpenClaw safe? before widening access.
The Setup Wizard can generate merge-ready JSON for Teams.
openclaw gateway start
openclaw doctor
doctor should report Teams/Microsoft channel healthy. Host on a US-region VPS if most users and LLM endpoints are US-based (DigitalOcean, Vultr).
hello.openclaw pairing list microsoft-teams then openclaw pairing approve microsoft-teams <code> (pairing guide)—exact channel id may vary; see pairing list output.| Symptom | Likely cause | Fix |
|---|---|---|
| Teams shows bot but no replies | Messaging endpoint wrong or HTTP only | HTTPS public URL; fix reverse proxy; restart Gateway |
| 401 / unauthorized from Microsoft | Expired secret or wrong App ID | Rotate client secret; update config |
| Bot not installable | Tenant app policy | Ask Teams admin; use approved catalog upload |
| Only pairing replies | User not approved | pairing approve |
More detail: Teams guide · troubleshooting