Add the Direct Line secret key to your Virtual Agent Bot Interconnect instance
To use Power Virtual Agents with Virtual Agent Bot Interconnect, you must add the Direct Line security key as a credential in your Bot Interconnect instance.
Before you begin
Locate and copy the Direct Line secret key in Microsoft Power Virtual Agents.
Role required: admin
Procedure
Navigate to All > Connections & Credentials > Connection & Credential Aliases.
Click the Bot Interconnect DirectLine Credentials record to open it.
On the Credentials related list, click New.
When prompted for the type of credential to create, click Bot Interconnect Static Token Credential.
On the form, fill in the fields as follows:
| Field | Description |
|---|---|
| Name | Any unique name for the credential, such as `Power VA Direct Line key`. |
| Header | Leave as Authorization. |
| Static Token | Enter `Bearer`, with a white space, followed by the Direct Line secret key from Power Virtual Agents.For example, enter: |
Click Submit.
Return to All > Connections & Credentials > Connection & Credential Aliases.
Click the Bot Interconnect DirectLine Fetch Msgs record to open it.
Under Related Links, click Create New Connection & Credential.
In the dialog box, fill in the form.
| Field | Description |
|---|---|
| Secondary Bot Name | Any unique name that refers to the Power Virtual Agents bot. |
| Secondary Bot Endpoint | The Azure function URL that you copied in a previous step.For example, enter `https://demoazurefunctionreceivemsgapp.azurewebsites.net`. |
| Header | Enter: `dlsecret` |
| Static Token | The Direct Line key that you copied from Power Virtual Agents in the previous step. |
- Click Create.
Parent Topic:Using Microsoft Power Virtual Agents as a secondary bot with Virtual Agent Bot Interconnect
Previous topic:Locate and copy the Direct Line secret key in Microsoft Power Virtual Agents
Next topic:Create a Virtual Agent Bot Interconnect shell topic to call Microsoft Power Virtual Agents topics