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
Add a new Microsoft Teams OAuth2 credential
Enter a name for the credential.
Copy the OAuth Redirect URL.
Note that the following fields need to be filled in:
Authorization URL
Access Token URL
Client ID
Client Secret

Create an Azure application
Search for App registrations.
Next, register a new Azure application in app registrations.

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

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.

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

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

Finish setup in Flowise
Fill in all the values copied earlier. Then click "Authenticate":

A Microsoft window will pop up, select the account.
The account user must have a valid Microsoft 365 licensed

Grant the required permissions:

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