IBM Cloud Docs
Integrating with Microsoft Teams

Integrating with Microsoft Teams

IBM Cloud

Add a chatbot to Microsoft Teams to create and customize a productive hub where content, tools, and people come together to chat, meet, and collaborate.

After you create an action, you can use this integration to connect your assistant with Microsoft Teams.

Before you begin

Sign up for a Microsoft 365 Developer Administrator email address, if you don’t have one:

  1. Go to the Microsoft Dev Center.

  2. Click Join now to become a member of the Microsoft 365 Developer program.

  3. On the Dashboard, click Set up E5 subscription, and select an Instant or a Configurable sandbox.

  4. Copy the email address listed under Administrator. Your admin credentials will be required at several points of setup.

Adding the Microsoft Teams integration

  1. Go to the Integrations page by clicking the integrations icon (Integrations icon) in the left menu.

  2. Click Add on the Microsoft Teams tile.

  3. Click Confirm. The Get Started page provides a summary of the setup process.

  4. Click Next to begin app registration.

App registration

  1. Go to the Microsoft Azure portal, and log in with your admin credentials.

  2. On the App registrations page, click New registration.

  3. On the Register an application page, enter a name, select the multi-tenant option that applies to your app, and then click Register.

  4. Copy the application ID from the Overview page of your app, and paste it into the App registration field of your watsonx Assistant Microsoft Teams integration.

  5. On the same Microsoft Azure Overview page, click the hyperlink Add a certificate or secret next to Client Credentials.

  6. On the Certificates & secrets page for token creation, click New client secret. Enter a description and then select Recommended 180 days. Click Add.

  7. Copy the string under Value and paste into Client secret value on the App registration page of your watsonx Assistant Microsoft Teams integration. Note: You must generate a new value before the current one expires on day 180.

  8. Click Next to create your bot.

Create your bot

  1. Go to the Microsoft Bot Framework developer portal, and log in with your admin credentials.

  2. On the Tell us about your bot page, complete your bot profile.

  3. Copy the generated endpoint from the Create your bot page of your watsonx Assistant Microsoft Teams integration and paste into the Messaging endpoint field of the Configuration section.

  4. Select Multi-Tenant as the app type.

  5. Copy and paste your app ID, and then click Register.

  6. On the Connect to channels page, click Configure Microsoft Teams channel in the Add a featured channel section.

  7. On the Configure Microsoft Teams page, specify options in the Messaging, Calling, and Publish tabs that fit your bot needs, and then click Save.

  8. In your watsonx Assistant Microsoft Teams integration, click Next to create your Teams app.

Create your Teams app

  1. Go to the Microsoft Teams Developer Portal, and log in with your admin credentials.

  2. On the Apps tab, click New App.

  3. Enter a name, and click Add.

  4. On the Basic information page, enter app names, app ID, descriptions, developer information, and app URLs, and then copy and paste your app ID into Application (client) ID. Click Save.

  5. In the Configure section, select App features, and then Bot.

  6. On the Identify your bot page, select your bot.

  7. In the Select the scope in which people can use this command section, select Personal, Team, and Group Chat.

  8. Click Save, but keep the window open.

  9. In your watsonx Assistant Microsoft Teams integration, click Finish.

  10. Click Publish to publish your bot.

Publishing your Teams app

  1. In the Microsoft Teams Developer Portal window where you created and saved your Teams app, click Publish to publish your bot.

  2. Click Download the app package.

  3. Go to Microsoft Teams, and log in with your admin credentials.

  4. Click Apps in the sidebar menu, and then click Manage your apps and Upload an app.

  5. Select Upload a custom app and specify the app package .zip file you downloaded.

  6. Click Add to finish.

  7. Test your actions and responses in the Chat section of your Teams app.

Response types

These response types are supported and displayed as expected when your assistant is deployed for Microsoft Teams direct messages, channels, or group chats.

  • date
  • image
  • option
  • suggestion
  • text