Hello,
I'm having a problem with Power Virtual Agent. When I start a new voice chat the bot doesn't insert a conversationId in the variable bot.msdyn_conversationId. I controlled everything and have no idea what's wrong.
I discoverd this issue checking why a couple of Power automate flows continued to fail an notiched the empty conversationId.
I'm sure the bot should be working fine cuase it was exported from an enviroment where it worked whitout problem whit all the needed components.
Has anyone an Idea about what could have I missed?
Hi @DavideSalma,
This seems specific to the Dynamics 365 Omnichannel for Customer Service integration.
Can you ask the question on their community forum? Dynamics 365 Customer Service Forum - Support & Help.
I'm also sharing how to get the Conversation ID through other means:
For chatbots created in the new authoring canvas, you can get the conversation id directly from the system variables:
Open the PVA bot with Bot Framework Composer:
Create a new dialog (e.g. GetConversationId)
In the dialog, under "Dialog Interface", add a new Output.
With a key name, e.g. "conversationId" and of type "string".
In BeginDialog, add a new node of type "Set a property" (under "Manage properties"), and define it with:
Property: dialog.result.conversationId
Value: =turn.activity.id (even if it's not auto-suggested)
In Bot Framework Composer, the final step is to publish the bot:
Back in Power Virtual Agents, in a topic, you can select "Redirect to another topic" and select the "getConversationId" dialog.
The conversationId variable will be available as an output:
Pablo Roldan
33
Romain The Low-Code...
25
stampcoin
10