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

Community site session details

Session Id :
Power Platform Community / Forums / Copilot Studio / How to keep in the con...
Copilot Studio
Unanswered

How to keep in the conversation - ChatGPT

(0) ShareShare
ReportReport
Posted on by 188

Dear Community,

 

I created a PVA bot calling the OpenAI API to just to learn and have fun.

 

I started by asking user whether it's for text completion (ChatGPT style) or image generation (Dall.E-2 style) as two choices.

 

User choose one of the options. Then I will ask user to provide the prompt.

If user selected text, I will pass the prompt to a flow that calls Text completion API. If user selected image, I will pass the prompt to another flow that calls a Image generation API.

 

Results will be returned to the PVA window.

 

My question is, how do I keep user in the conversation without reset back to the beginning (asking for text or image) every time.

 

For example, when user are in the text completion and typed a first prompt, PVA calls the flow and returns the result. If user straight away types another words, they need to be considered another text prompt and calls the same flow. Unless user types the trigger phrases again, I'd to keep the user in the text flow. Vice versa, I like to keep the user in the image flow unless trigger phrases are detected. 

 

I don't know how to do the loops correctly. Right now, after the flow returns the first result, if user follows with a second prompt, the PVA can't recognize it and doesn't know where to take the second prompt to.

 

nhtkid_0-1676460099444.png

 

Thanks.

 

 

 

I have the same question (0)
  • Verified answer
    HenryJammes Profile Picture
    on at
    Re: How to keep in the conversation - ChatGPT

    Hi @nhtkid,

    Do these LinkedIn articles by Rémi Dyon help?

    Part 2 seems to address your challenge with keeping context of the past questions.

    Henry

  • nhtkid Profile Picture
    188 on at
    Re: How to keep in the conversation - ChatGPT

    Omg Henry that's exactly what I need. Thank you so much!

  • remidyon Profile Picture
    on at
    Re: How to keep in the conversation - ChatGPT

    I'm glad you found my articles useful! 🙂

  • viga Profile Picture
    4 on at
    Re: How to keep in the conversation - ChatGPT

    Hi 

     

    This solution uses the preview version of Power virtual agents and hence cannot be used for production use cases - anyways this could be refactored to use the production version ?

  • viga Profile Picture
    4 on at
    Re: How to keep in the conversation - ChatGPT

    Hi 

     

    This solution uses the preview version of Power virtual agents and hence cannot be used for production use cases - anyways this could be refactored to use the production version ?

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
Romain The Low-Code Bearded Bear Profile Picture

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 257 Super User 2025 Season 2

#3
Sam_Fawzi Profile Picture

Sam_Fawzi 84 Super User 2025 Season 2

Last 30 days Overall leaderboard