cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
fernarod
Regular Visitor

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.760 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.760 students) : English | Português
fernarod
Regular Visitor

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.760 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.760 students) : English | Português

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Carousel_PP_768x460_Wave2 (1).png

2022 Release Wave 2 Plan

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

Canadian Cloud 2022 768x460.png

Register for a free PVA chatbot creation workshop.

Learn how to respond rapidly to your customers and employees at scale, using intelligent conversational chatbots.

365 EduCon 768x460.png

Microsoft 365 EduCon

Join us for two optional days of workshops and a 3-day conference, you can choose from over 130 sessions in multiple tracks and 25 workshops.

Top Solution Authors
Users online (2,701)