Connect Microsoft Teams Bot
How to create and connect a Microsoft Teams bot in Buda for two-way AI conversations.
Connect Microsoft Teams Bot
Buda supports direct conversations with team members via a Microsoft Teams bot. Setup requires creating a Bot resource in Azure — the whole process takes about 10–15 minutes.
Step 1: Create a Bot in Azure
Open Azure Portal and search for Azure Bot to open the creation page.
Fill in the following:
| Field | Value |
|---|---|
| Bot handle | Bot name, e.g. buda-bot |
| Subscription | Select your Azure subscription |
| Resource group | Create new or use existing |
| Pricing tier | Free (sufficient for development) |
| Type of App | Single Tenant |
| Creation type | Create new Microsoft App ID |
Click Review + create → Create and wait about 1–2 minutes.
Step 2: Get Credentials
Once created, open the Azure Bot resource:
Get App ID:
- Go to Configuration
- Copy Microsoft App ID
Get App Password:
- Click Manage Password to go to the App Registration page
- Go to Certificates & secrets → New client secret
- Enter a description, choose an expiry, and click Add
- Copy the generated Value (shown only once — save it immediately)
Get Tenant ID:
- On the App Registration page, click Overview
- Copy Directory (tenant) ID
Step 3: Add the Channel in Buda
- Open Channels in Buda settings
- Click Add Channel and select Microsoft Teams
- Enter the three credentials:
- App ID
- App Password (Client Secret)
- Tenant ID
- Click Connect
Step 4: Set the Webhook URL
Back in the Azure Bot resource, go to Configuration and set the Messaging endpoint to:
https://buda.im/api/channels/msteams/webhookClick Apply to save.
Step 5: Enable the Teams Channel
In the Azure Bot resource, go to Channels, click Microsoft Teams, accept the terms of service, and click Save.
Step 6: Create and Install the Teams App
Teams requires an app package to be installed before the bot can be used.
6.1 Create the App Package
- Click + New app
- Fill in the app name, description, and other basic info
- Go to App features → Bot
- Select Enter a bot ID manually and paste your App ID
- Check the scopes: Personal, Team, Group Chat
- Click Distribute → Download app package to download the ZIP file
6.2 Install in Teams
In Teams:
- Click Apps on the left → Manage your apps
- Click Upload a custom app
- Select the ZIP file you just downloaded
- Follow the prompts to complete installation
Step 7: Test
Find the bot you just installed in Teams and send a direct message, for example: Hi.
Once Buda replies, you're all set 🎉
In channels, you need to @mention the bot to trigger a reply.
Troubleshooting
The bot is not responding
| Possible cause | Solution |
|---|---|
| Incorrect Messaging endpoint | Confirm it is set to https://buda.im/api/channels/msteams/webhook |
| App Password expired | Regenerate the Client Secret in Azure and update Buda's channel settings |
| Teams channel not enabled | Check that Microsoft Teams is enabled under Azure Bot → Channels |
| App not installed in Teams | Confirm Step 6 is complete |
What if the App Password is compromised?
In Azure App Registration → Certificates & secrets, delete the old secret, generate a new one, and update it in Buda's channel settings.