cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fernarod
New Member

Get ConversationID when starting a chat

Hello team, SOS
I am working on an Omnichannel for Customer Service (D365) implementation. I have a bot developed in PVA that works as a user in D365.

I need from the PVA bot to obtain the conversationid and then with power virtual automate obtain the name of the contact.

I am trying to use the va_conversationId and bot msdyn_liveworkitemid context variables but they work randomly. If I use them in the greeting topic the variable is empty. On the other hand, if I use it after asking some questions, the variable is complete.

 

Context variables take time to initialize? How can I get the conversation id when starting the chat?

 

I need it for multiple channels (facebook, live chat, whatsapp).

 

Thank you!

6 REPLIES 6
renatoromao
Super User
Super User

hI @fernarod ,

 

Unfortunately, you can just get the conversation Id using the Custom Canvas (custom website), using JavaScript you can get all information behind the Html code.

You can suggest your idea here: https://aka.ms/pva/community/ideas


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português
renatoromao
Super User
Super User

You can see the reference here: https://powerusers.microsoft.com/t5/Publish-Channel-Management/Is-it-possible-to-reconnect-the-user-...


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português
fernarod
New Member

Thanks @renatoromao , from what I see the variable msdyn_liveworkitemid is populated with the conversation id after a few seconds, it is not immediate. For that reason I cannot get the id when starting the conversation.

renatoromao
Super User
Super User

Hi @fernarod ,

 

Yes, today the updates occur after 6 hours.


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

@renatoromao 6 hours? What updates are you talking about?

renatoromao
Super User
Super User

@fernarod 

 

When you talk with the chatbot, the conversation transcript will be stored in a ConversationTranscript entity in 6 hours.


Did I answer your question? Mark my post as a solution!
Thanks!

Renato Romão,

Connect with me here 😉

Power Virtual Agents course (+2.650 students) : English | Português

Helpful resources

Announcements
V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

PVA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (2,376)