Clickable suggestions or links in Completion


I want to suggest to my user next questions.
I expect it like this:

{"prompt": "What's your name?", "completion": "Michal", "prompt-suggestions":["How old are you?", "What's your hobbies?", "Do you like music?"]}

Is it possible to give my user prompt suggestions with openai API?


Hi @michal.mhlk

Welcome to the community.

Yes you can do that, using a prompt like:

“Message:${message}\nHere are 3 followup questions relevant to the message above:”

and then pass the suggestions in your application’s chat UI.