i have a problem using adaptive card JSON into python web chat bot (BotFrameWork), i want to know how to customize values in the JSON element, these values are dynamic. I explain more i have to do a list of books information in one card, but title,author,etc... changes everytime. So how i can fill values dynamically?
That's my json file
{
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"type": "AdaptiveCard",
"version": "1.3",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "RISULTATI",
"horizontalAlignment": "center",
"spacing": "None",
"size": "Large",
"color": "Attention",
"wrap": true
}
]
}
]
},
{
"type": "ColumnSet",
"separator": true,
"spacing": "Medium",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "Nome Libro e autore",
"isSubtle": true,
"weight": "Bolder",
"wrap": true
},
{
"type": "TextBlock",
"text": "Prezzo",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "Disponibilità",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "Link",
"spacing": "Small",
"wrap": true
}
]
},
{
"type": "Column",
"width": "auto",
"items": [
{
"type": "TextBlock",
"text": "Genere",
"horizontalAlignment": "Right",
"isSubtle": true,
"weight": "Bolder",
"wrap": true
}
]
}
]
},
{
"type": "ColumnSet",
"spacing": "Medium",
"separator": true,
"columns": [
{
"type": "Column",
"width": 1,
"items": [
{
"type": "TextBlock",
"text": "Prezzo",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "Disponibilità",
"spacing": "Small",
"wrap": true
},
{
"type": "TextBlock",
"text": "Link",
"spacing": "Small",
"wrap": true
}
]
}
]
}
]
}
I have to fill the text values in items, how i should do this?
question from:
https://stackoverflow.com/questions/65921505/dynamically-create-adaptive-card-bot-framework-azure