I want to construct a json object in my Copilot chat bot (former PVA) with the following structure:
{
"messages": [
{
"role": "bot",
"content": "message1"
},
{
"role": "user",
"content": "message2"
}
]
}
The tricky part is that I want the strings message1 and message2 to be read from variables.
I tried to create a string and then parse it to json with a schema, but I had no luck with that.
I'll appreciate any suggestions and recommendations.
Thanks in advance