Skip to main content

Notifications

Copilot Studio - Topic Creation & Management
Answered

How to keep in the conversation - ChatGPT

(0) ShareShare
ReportReport
Posted on by 186

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.

 

 

 

  • viga Profile Picture
    viga 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
    viga 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 ?

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

    I'm glad you found my articles useful! 🙂

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

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

  • Verified answer
    HenryJammes Profile Picture
    HenryJammes 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

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,495

#2
RandyHayes Profile Picture

RandyHayes 76,287

#3
Pstork1 Profile Picture

Pstork1 64,822

Leaderboard

Featured topics