Skip to main content

Microsoft Bot Framework Connector

Microsoft Bot Framework Manage conversational interactions across platforms using Microsoft Bot Framework

Connections

OAuth 2.0 Client Credentials

OAuth 2.0 Client Credentials Connectivity for Microsoft Bot Framework

The Microsoft Bot Framework component authenticates using OAuth 2.0 Client Credentials associated with your Azure Bot's App Registration.

To begin you will need to create a new Azure Bot or retrieve the app id and app password (client secret) for an existing bot. If creating a new bot you will likely want to set its type to "Multi Tenant" to allow using your bot across tenants.

Open the Azure Bot and ensure that appropriate Channels are enabled and configured for your intended use case. Each will require additional configuration - Microsoft Teams, for example, will require a Teams app containing a manifest file specifying your bot's configuration with Teams.

Next, navigate to the "Configuration" blade of the bot and click "Manage" next to "Microsoft App ID". This will take you to the Azure AD App Registration for the bot. From here you are able to create a new Client Secret from the "Certificates & Secrets" blade. This will be your "Client secret" (some Microsoft documentation also refers to this as the "app password").

The Client ID and Tenant ID (for Single Tenant bots) can be retrieved from the "Overview" blade.

Next supply the following values to the OAuth 2.0 Client Credentials connection in your flow:

  • For Client ID enter the value for "Microsoft App ID" or the "Client ID" from the app registration.
  • For Client Secret enter the value from "Certificates & Secrets" of the app registration.
  • If your bot is configured as "Single Tenant" you will need to use the conventional Token URL for Azure: https://login.microsoftonline.com/tenantId/oauth2/v2.0/token and replace tenantId with the ID of your tenant.

This connection uses OAuth 2.0, a common authentication mechanism for integrations. Read about how OAuth 2.0 works here.

InputCommentsDefault
Token URLThe OAuth 2.0 Token URL for Microsoft Bot Framework. Use the default for Multi-Tenant bots and https://login.microsoftonline.com/<tenant id>/oauth2/v2.0/token for Single-Tenant.https://login.microsoftonline.com/botframework.com/oauth2/v2.0/token
Client ID
Client secret value

Triggers

Bot Framework Trigger

Trigger that validates incoming requests as coming from Bot Framework

InputCommentsDefault
Microsoft App IDMicrosoft App ID found in the Azure Bot's Configuration blade.

Actions

Create Conversation

Create a new Conversation

InputCommentsDefault
Connection
Service URLThe Service URL (also referred to as Base URI) to send requests to the Bot Framework. Varies per bot channel and region.
API VersionVersion of the API to call3
Bot IDIdentifier of the Bot receiving requests
Channel Account IDIdentifier of the Channel Account to use (refers to conversation members; bots and users)
Tenant IDTenant ID of the Channel Account ID

Get Conversation Members

Get list of members of the conversation

InputCommentsDefault
Connection
Service URLThe Service URL (also referred to as Base URI) to send requests to the Bot Framework. Varies per bot channel and region.
API VersionVersion of the API to call3
Conversation IDIdentifier of the Conversation to use (refers to a channel, team, direct message)

Raw Request

Issue a raw HTTP request

InputCommentsDefault
Connection
URLThis is the URL to call.
MethodThe HTTP method to use.
DataThe HTTP body payload to send to the URL.
Form DataThe Form Data to be sent as a multipart form upload.
File DataFile Data to be sent as a multipart form upload.
Query ParameterA list of query parameters to send with the request. This is the portion at the end of the URL similar to ?key1=value1&key2=value2.
HeaderA list of headers to send with the request.
Response TypeThe type of data you expect in the response. You can request json, text, or binary data.json
TimeoutThe maximum time that a client will await a response to its request
Debug RequestEnabling this flag will log out the current request.false
Retry Delay (ms)The delay in milliseconds between retries.0
Retry On All ErrorsIf true, retries on all erroneous responses regardless of type.false
Max Retry CountThe maximum number of retries to attempt.0
Use Exponential BackoffSpecifies whether to use a pre-defined exponential backoff strategy for retries.false

Send Adaptive Card Message

Send an adaptive card message

InputCommentsDefault
Connection
Service URLThe Service URL (also referred to as Base URI) to send requests to the Bot Framework. Varies per bot channel and region.
API VersionVersion of the API to call3
Conversation IDIdentifier of the Conversation to use (refers to a channel, team, direct message)
Card PayloadAdaptive Card payload to send

Send Message

Create a message to a Conversation

InputCommentsDefault
Connection
Service URLThe Service URL (also referred to as Base URI) to send requests to the Bot Framework. Varies per bot channel and region.
API VersionVersion of the API to call3
Conversation IDIdentifier of the Conversation to use (refers to a channel, team, direct message)
TextText of the message to send
Text FormatText Format of the message to sendmarkdown