Adding Microsoft Direct Line API as a communication channel
Microsoft Direct Line enables administrators to connect BMC HelixGPT to custom applications by using the Microsoft Bot Framework Direct Line API. Direct Line is suitable when you want to build a custom chat interface and control how bot messages and cards are displayed.
Direct Line uses the same Bot Framework channel integration as Microsoft Teams. However, it does not provide feature parity with the Microsoft Teams client.
Best practice for adding Direct Line in the Azure portal
If your Azure Bot Service uses different Direct Line configurations for different sites or environments, use separate Direct Line secrets for each environment.
Limitations
When you use Direct Line, the following limitations apply:
- Streaming responses are not supported. Bot replies are delivered as complete messages.
- Activity updates are limited. Updated cards or messages appear as new messages.
- No support for typing indicators.
- The customer must implement the identity, authentication, and user mapping.
- Adaptive Card behavior and styling differ from Microsoft Teams.
- Polling-based implementations are for demonstration purposes only.
Process overview
To embed BMC HelixGPT in a custom application, administrators must perform the following tasks:

Before you begin
Make sure that you meet the following requirements:
- You have access to the Azure portal.
- An Azure Bot Service resource is already configured for BMC HelixGPT.
- The bot is configured with the same Microsoft Bot ID and app password used for Microsoft Teams.
- The Direct Line channel is enabled in Azure Bot Service.
To obtain the Direct Line secret key from the Azure portal
- Log in to the Azure portal.
- Search for and select your Azure bot service resource.
- From the navigation pane, select Settings > Channels.
- Click Direct Line in the channels list.

- In the Secret keys section, locate Key 1 and Key 2.
- Click Show next to the key that you want to use.
- Copy the secret value.
The secret is typically a long string (around 170 characters).
The following image shows the secret keys for the Direct Line channel:
To configure the channel in HelixGPT Agent Studio
- In HelixGPT Agent Studio, select an application from the Applications drop-down list.
- Select the skill.
- Click the Channels tab.
- Click Add Channel.
The Add Channel dialog box is displayed. - From the Channel drop-down list, select Microsoft Teams.
- Click Add and set the following values in the Add Channel dialog box:
Field name Description Name Custom channel name. Description Custom channel description. Name of the custom channel A unique name for the bot registered in Microsoft Azure. This name enables integration between BMC HelixGPT and the custom bot, enabling seamless communication and automated interactions within the bot. Microsoft Bot ID The bot’s unique App ID, created during Azure Bot registration. Microsoft App Password The bot's secret key to authenticate the bot with Azure and the Bot Framework Service. Direct Line Secret A master key that authenticates a client to your bot through the Direct Line API, granting access to any bot conversation. Paste the Direct Line secret that you copied from the Azure portal.
- Click Save.
Result
After you complete the configuration, BMC HelixGPT can accept messages from Direct Line–based clients. Developers can build a custom user interface that sends and receives messages by using the Direct Line API.


Related topic