Skip to main content

Notifications

Copilot Studio - Building Copilot Studio Chatbo...
Unanswered

Get Chat Bot Session ID to Respond to chat within a flow

(0) ShareShare
ReportReport
Posted on by 14

Is it possible to respond back to the same chat session within a flow process? I am trying to help user locate info and it requires them to select options based on query of our SharePoint data/files. I couldn't find a way to return a selectable options list back to user at end of flow (which would have sufficed), so am using the teams post a choice of options as bot... unfortunately, this creates two chat sessions, which seems a bit awkward. 

 

Is it possible for me to get the ID of the primary chat session to respond back during the flow process so user can make a selection and then continue?

  • BenjaminDoyle Profile Picture
    BenjaminDoyle 14 on at
    Re: Get Chat Bot Session ID to Respond to chat within a flow

    Yes, I am able to return values back using the closing action "Return Value(s) to PVA." However, the issue is 

    1. This action does not support "options list" [array] as a return value (which i would need to allow user to make a dynamic selection based on Flow query result as a next step of PVA), so
    2. I am using a Teams connector action to send those choices before flow ends. However, this action creates a secondary chat session/scenario.

    so if i am correct that i cannot return a selectable options list as value to PVA (where user would then trigger a second flow based on choice), can i at least "get" the current chat bot chat session ID so that when using the teams connector, i can have it reply to same chat session rather than a parallel one?

     

    BenjaminDoyle_0-1603214793866.png

     

  • Jcook Profile Picture
    Jcook 7,770 on at
    Re: Get Chat Bot Session ID to Respond to chat within a flow

    Hello @BenjaminDoyle 

     

    Could you share a screenshot of your flow?

    You’re using the Power Virtual agents trigger? You should be able to use the return action and be able to pass values back into PVA

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

Microsoft Kickstarter Events…

Register for Microsoft Kickstarter Events…

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Announcing Forum Attachment Improvements!

We're excited to announce that attachments for replies in forums and improved…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 145,666

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,996

Leaderboard

Featured topics