Connections

APPLIES TO: Composer v2.x

Connections let you connect your bots to various Azure and external messaging services. You can use Azure connections, including Web Chat, Direct Line Speech, Microsoft Teams, and external connections. Azure connections are created by Microsoft, and external connections are created by community developers. Both offer the ability to connect bots to messaging services, but external connections may be more flexible.

Tip

In Bot Framework Composer, you can develop a bot in a connection-independent way; however, not every connection supports all aspects of the Bot Framework Activity schema. For information about which features are supported and how to customize the user experience, see the documentation for each connection.

To use Connections, you need:

  • A bot in Composer that has been published.
  • An Azure account, or Azure resources provisioned by an administrator.

Access Connections

The following steps show how to access both types of connections in Composer.

  1. Open a bot project in Composer.

  2. Select the Configure button on the left.

  3. Select Connections on the top.

    Connections page

See the sections on Azure connections and External connections for more information about different types of connections.

Azure connections

There are three available Azure connections:

To add Azure connections, do the following:

  1. Select a publishing profile. You'll be prompted to sign into Azure.

  2. Select the Azure connection you want to add, shown in the screenshot below, by toggling it on (Web Chat is enabled by default).

    Azure Connections options

Web Chat

Web Chat is enabled by default, therefore you don't need to take any steps to connect your bot to Web Chat. See the enabling a connection to Web Chat page for more information.

Direct Line Speech

  1. Under Azure connections, toggle on Direct Line Speech.

  2. Select the Learn more link for information about enabling a connection to Direct Line Speech. Make sure you have all the prerequisites before attempting to enable a connection to Direct Line Speech.

  3. If you want to delete your connection to Direct Line Speech, toggle off Direct Line Speech on the Connections page and republish your bot.

  4. If you want to configure your Direct Line Speech connection, go to the Azure portal and select Channels from the right. You'll notice that Direct Line Speech is included in the list of connected channels:

    Direct Line Speech in connected channels list

  5. Select Edit. Here you can configure the connection or delete it, as shown below:

    Azure Direct Line Speech

    Note

    Your Speech key may be only associated with one Speech app at a time.

Microsoft Teams

  1. Under Azure connections, toggle on Microsoft Teams.

  2. Select the Learn more link for information about enabling a connection to Microsoft Teams. Make sure you have all the prerequisites before attempting to enable a connection to Microsoft Teams. Also select See instructions that pops up when you toggle on Microsoft Teams, as shown below, for more information:

    See instructions teams link

  3. Once Microsoft Teams is configured, you'll be able to add it to your Teams manifest. Copy the manifest and select Open Teams on the bottom.

    Open Teams to add manifest

  4. If you want to delete your connection to Microsoft Teams, toggle off Microsoft Teams on the Connections page and republish your bot.

  5. If you want to configure your Microsoft Teams connection, go to the Azure portal and select Channels from the right. You'll notice that Microsoft Teams is included in the list of connected channels.

    Microsoft Teams in connected channels list

  6. Select Edit. Here you can configure the connection or delete it, as shown below:

    Azure MS Teams

External connections

To access external connections, complete the following steps:

  1. Open the Package Manager.

    Package manager page

  2. Browse or search for your extension.

  3. Select the package you want to install and select Install.

  4. Read the documentation in the package's README to learn about more about it and how to use it in your bot.

    Note

    If you experience problems connecting your bot to a channel, verify that you're using the correct package.

Alternatively, you can select + Add a package at the top and enter the exact name and version of the connection's package you want to add.

Add a package page