Skip to content

Integrating with a Microsoft Teams chat (SaaS)

Learn how to configure AI Security as a chatbot in your Microsoft Teams environment using our SaaS (Software as a Service) platform. This tutorial walks you through the complete process of creating, configuring, and installing your AI Security Microsoft Teams bot.

PREREQUISITES

You must have an active AI Security AI Guardrails subscription, and be an administrator user of your organization's Microsoft Teams.

Create a bot project

A bot project is a fundamental component for your Microsoft Teams integration. For the purpose of this tutorial, we will use the project to configure some basic settings and generate the necessary credentials.

To create a bot project:

  1. Log in to AI Security.

  2. From the menu, select Projects.

  3. In the Quick project setup section, select the Bot (Slack or Microsoft Teams) option, and then select Create.

  4. In the popup, complete the basic configuration for your bot:

    • In Bot name, enter the name for your bot.
    • From the available models list, choose the AI model you want to use for your bot.
    • From the Assign project admins list, select one or more administrator users to manage your bot configuration.
  5. Select Create.

    AI Security displays confirmation that the bot with the default scanners enabled was created and is connected to the chosen AI model.

  6. In the next popup, select Generate API key.

    AI Security generates and assigns an API token for your bot project.

    STORING THE TOKEN

    Make sure you store the token securely, as it is required to complete the configuration in Microsoft Teams.

  7. Select Next.

  8. In the next popup, select the Microsoft Teams option, and then select Next.

  9. In the Download window, download the .zip app manifest file by selecting the Download here link.

    APP MANIFEST FILE

    You will use this .zip file later to install the AI Security bot in a Microsoft Teams client.

  10. Select Next, and then Finish.

Your AI Security bot project is now ready to be integrated with Microsoft Teams.

Upload the AI Security bot app to Microsoft Teams

After creating the bot project, you need to add the AI Security app to your organization's Microsoft Teams environment, making it available for users to install and access.

DIFFERENT STEPS?

The steps in the following procedure can differ depending on how your organization manages Microsoft Teams.

To upload the AI Security app:

  1. Open the Microsoft Teams desktop app.

  2. From the main menu, select Apps > Manage your apps > Upload an app. Upload AI Security app

  3. In the Upload an app window, select Upload an app to your organisation's app catalogue.

  4. In the popup, upload the .zip manifest file you downloaded from AI Security.

    The AI Security app card is now available in the list of apps for your organization.

  5. Select the AI Security card, and then select Add. Add AI Security app

Your AI Security app is uploaded and added to Microsoft Teams, and should be visible in the main Microsoft Teams menu.

Configure the AI Security bot app in Microsoft Teams

Establish the connection between your Teams environment and the AI Security bot, enabling secure communication and functionality.

  1. From the Microsoft Teams main menu, select AI Security. Open AI Security bot
  2. In the message text box, enter and send the /configure command.
  3. In the response box from AI Security, enter the API token you created for the AI Security bot project, and then select Submit. API token submission

After the token is accepted, you can start interacting with the AI Security bot through the message text box:

  • To list the AI models available in the chat, enter and send /models.

  • To start a new chat with the default model, enter and send /chat <YOUR-MESSAGE>

    For example: /chat What is the capital of Peru?

  • To start a new chat with a specific model, enter and send /chat-with <MODEL-NAME>

    For example: /chat-with gpt-4

Finalize the integration

Complete the integration process by finalizing the bot project configuration in AI Security.

  1. Log in to AI Security.
  2. From the menu, select Projects.
  3. Find the bot project you created in Create a bot project.
  4. In the project's card, select View details.
  5. Select Finish integration.
  6. In the popup, select the Microsoft Teams option, and then select Next.
  7. In the Download window, select Next, and then Finish.

Your Microsoft Teams integration is now complete!

Updated at: