Microsoft Teams

Pre-requisite

A valid Microsoft 365 license assigned to the Azure Active Directory user. Refer: https://learn.microsoft.com/en-us/answers/questions/761931/microsoft-graph-api-throws-the-mailbox-is-either-i

Create credential in Flowise

  1. Add a new Microsoft Teams OAuth2 credential

  2. Enter a name for the credential.

  3. Copy the OAuth Redirect URL.

  4. Note that the following fields need to be filled in:

    • Authorization URL

    • Access Token URL

    • Client ID

    • Client Secret

Create an Azure application

  1. Login to your existing Azure account or sign up if you haven't already signed up

  2. Search for App registrations.

  3. Next, register a new Azure application in app registrations.

  1. Under "Redirect URI (optional)", select "Web" and paste your "OAuth Redirect URL" you copied earlier.

  1. After created application, navigate to Certificates & secrets > Client secrets and click on the "New client secret" button to create a client secret. Copy the secret to use later.

  1. Navigate to Overview and click "Endpoints". Copy the endpoints for "OAuth 2.0 authorization endpoint (v2)" and "OAuth 2.0 token endpoint (v2)".

  1. Close the Endpoints popup, copy the Application (client) ID:

Finish setup in Flowise

  1. Fill in all the values copied earlier. Then click "Authenticate":

  1. A Microsoft window will pop up, select the account.

  1. Grant the required permissions:

  1. The pop up will automatically close, and credential will be saved afterwards.

Use as Agent Tool

Multiple actions can be selected to let the Agent intelligently choose the appropriate one. Parameters can be left empty to allow the Agent to determine the values on its own. However, if the user provides values, those will override the Agent's choices.

Use as Tool Node

It can also be used as a Tool Node in a determined workflow scenario. For example, retrieving a list of Teams messages before proceeding to the next step. In this mode, Tool Input Arguments must be explicitly defined and filled with values. Unlike the Use as Agent Tool option, there is no Agent to automatically determine the inputs. The user must manually populate the fields, either by entering fixed values or using variables enclosed in double curly brackets {{ }}.

Last updated