web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to get conversatio...
Copilot Studio
Answered

How to get conversation ID in Power virtual atent

(2) ShareShare
ReportReport
Posted on by 16

I am creating a bot in which I need to know conversation ID of the conversation which can be used to get the transcript of the conversation . How do I get conversation ID.

Categories:
I have the same question (0)
  • Verified answer
    CU22081450-0 Profile Picture
    Most Valuable Professional on at

    Hi @mselvadevi ,

     

    Unfortunately, you cannot do it yet.

    Please, vote in my idea and make this answer as the solution, to help more users.

    https://powerusers.microsoft.com/t5/Power-Apps-Ideas/Receive-whole-Conversation-by-email/idi-p/514397

     

    ---
    If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution.

    Thanks!
    Renato Romão
    https://www.linkedin.com/in/renatoromao/

  • dougmaloney Profile Picture
    59 on at

    @mselvadevi did you manage to figure out how to do this ? In the absence of global variables I need a unique ID for the conversation.

  • mselvadevi Profile Picture
    16 on at

    No,  I am yet to find solution for it. for me it need transcript of the conversation and also need to add additional information in the dynamic entity which stores the information.

  • HenryJammes Profile Picture
    on at

    Resurfacing this thread to suggest 2 workarounds:

    1) In the new PVA unified authoring canvas (currently in public preview)

    For chatbots created in the new authoring canvas, you can get the conversation id directly from the system variables:

    HenryJammes_0-1669409107541.png

    2) In the production version of PVA, using Bot Framework Composer

    Open the PVA bot with Bot Framework Composer:

    HenryJammes_1-1669409192917.png

    Create a new dialog (e.g. GetConversationId)

    HenryJammes_2-1669409349518.png

    In the dialog, under "Dialog Interface", add a new Output.
    With a key name, e.g. "conversationId" and of type "string".

    HenryJammes_3-1669409448820.png

    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.conversation.id (even if it's not auto-suggested)

    HenryJammes_0-1677772426553.png

     

     

    In Bot Framework Composer, the final step is to publish the bot:

     

    HenryJammes_5-1669409707196.png

    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:

    HenryJammes_6-1669409928357.png

     

  • postimerkk1 Profile Picture
    12 on at

    Thanks for resurfacing this! Just to confirm, for option 2, the id will then still need to be parsed from the output i.e. |00000000 is not part of the id, correct?

  • HenryJammes Profile Picture
    on at

    Hi @postimerkk1 

    Yes, that's correct.
    By the way, as a user, you can also obtain the Conversation ID by typing "/debug conversationid" in the chat.

    HenryJammes_0-1670928427422.png

     

     

  • xhan1 Profile Picture
    14 on at

    Hi @HenryJammes , for option1, The conversation ID does not seem to be a property that identifies different conversations. We'd like to build a report that analyzes conversation history by conversation. However, we found that the name in the Dataverse (conversation ID in PVA) is not unique. The scenario is that if the bot is not helpful, we will record a conversation ID and then link to the Conversation details through that ID .

     

    Screenshot in Dataverse (ConversationTranscrips): the same conversation ID (Name) maps multiple sessions

    xhan1_1-1702518575572.png

     

  • HenryJammes Profile Picture
    on at

    Yes, this is expected for conversations happening over the Teams channel.

    They can exist across multiple records in Dataverse.

  • xhan1 Profile Picture
    14 on at

    Thanks @HenryJammes by the way, do you have any ideas to check a specific conversation? The conversation transcript id seems to be unique, but we cannot capture it in PVA

  • HenryJammes Profile Picture
    on at

    Not sure what you mean, the conversation ID is available in a system variable if needed

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Copilot Studio

#1
Michael E. Gernaey Profile Picture

Michael E. Gernaey 261 Super User 2025 Season 2

#2
Romain The Low-Code Bearded Bear Profile Picture

Romain The Low-Code... 198 Super User 2025 Season 2

#3
S-Venkadesh Profile Picture

S-Venkadesh 93 Moderator

Last 30 days Overall leaderboard