# Microsoft Teams

## Selecting the Connection Type

Once you have [selected your connection type](https://docs.probe.splx.ai/ai-red-teaming/probe/add-target/integration-setup#selecting-a-connection-type), a configuration tab will appear on the next step, prompting you to input the required connection details.

## Integration Setup

<figure><img src="https://1029475228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi12bk7lo75SODuwcRCQp%2Fuploads%2Fnp61sVZnnNCiPm0HzY5o%2F2_MSTeams.png?alt=media&#x26;token=b995f200-f6e1-486d-86ab-1a17952bfc31" alt=""><figcaption><p>Figure 1: Microsoft Teams Connection Example</p></figcaption></figure>

Microsoft Teams chatbots are Azure bots connected to Microsoft Teams. Testing is performed directly on the Azure bot, as it contains all the functionalities of the bot within Microsoft Teams. Azure Bot integration uses the [Directline API](https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-direct-line-3-0-concepts?view=azure-bot-service-4.0.).

To create the integration, you need to provide the bot ID and the bot Direct Line secret from the Bot Framework. To retrieve these, navigate to your bot in the [Microsoft Bot Framework](https://dev.botframework.com/bots).

**Bot ID**

On the My bots page, select your desired bot.

<figure><img src="https://1029475228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi12bk7lo75SODuwcRCQp%2Fuploads%2Fgit-blob-46a89c1dde0e045fbf484ca75b2480c30b334a5f%2FmyBots.png?alt=media" alt="My Bots Page"><figcaption><p>Figure 2: My Bots Page</p></figcaption></figure>

Once on the bot’s page, click on Settings.

<figure><img src="https://1029475228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi12bk7lo75SODuwcRCQp%2Fuploads%2Fgit-blob-9cb3e4ff0ecc0d7b729141763f3efeca83faea0b%2FmyBotsSettings.png?alt=media" alt="My Bots Settings"><figcaption><p>Figure 3: Microsoft Bot Page</p></figcaption></figure>

Copy the Bot handle value and paste it into the Bot ID input on Probe.

<figure><img src="https://1029475228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi12bk7lo75SODuwcRCQp%2Fuploads%2Fgit-blob-58bcb7ae29c3ca8e11c01bf2f9ba5005974f497a%2FbotHandle.png?alt=media" alt="Bot Handle"><figcaption><p>Figure 4: Microsoft Bot Handle</p></figcaption></figure>

**Bot Secret**

On the bot’s page, click Edit in the Direct Line row.

<figure><img src="https://1029475228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi12bk7lo75SODuwcRCQp%2Fuploads%2Fgit-blob-93bc8e0f6108340e6720bbef08575f7d36b00ddd%2FdirectlineEdit.png?alt=media" alt="Direct Line Edit"><figcaption><p>Figure 5: Microsoft Bot Edit</p></figcaption></figure>

Copy the Secret key and paste it into the Bot Secret input on Probe.

<figure><img src="https://1029475228-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi12bk7lo75SODuwcRCQp%2Fuploads%2Fgit-blob-8cbca316f773c7a7f532a1881d7ff916b459d0ca%2FmyBotsSecret.png?alt=media" alt="Direct Line Edit"><figcaption><p>Figure 6: Microsoft Bot Secret Key</p></figcaption></figure>

Once you’ve entered the required inputs, click Continue to test your connection and proceed.
