I managed to fix it. I shouldn't have used the response editor for the Text in Send A Response. I should use the code editor. This resulted in the following bot response code which rectified my issue
[import](common.lg)
# Chicken()
-Chicken
# Steak()
-Steak
# Tofu()
-Tofu
# SteakImageURL()
-https://contososcubademo.azurewebsites.net/assets/steak.jpg
# ChickenImageURL()
-https://contososcubademo.azurewebsites.net/assets/chicken.jpg
# TofuImageURL()
-https://contososcubademo.azurewebsites.net/assets/tofu.jpg
# adaptivecardjson_meals(location)
-```
{
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.1",
"body": [
{
"type": "TextBlock",
"text": "Meal delivery options for ${location}:",
"size": "medium",
"weight": "bolder"
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Image",
"url": "${SteakImageURL()}",
"size": "Stretch",
"spacing": "Medium",
"horizontalAlignment": "Center"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Image",
"url": "${ChickenImageURL()}",
"horizontalAlignment": "Center"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "Image",
"url": "${TofuImageURL()}",
"horizontalAlignment": "Center"
}
]
}
]
},
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "${Steak()}",
"wrap": true,
"horizontalAlignment": "Center"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "${Chicken()}",
"wrap": true,
"horizontalAlignment": "Center"
}
]
},
{
"type": "Column",
"width": "stretch",
"items": [
{
"type": "TextBlock",
"text": "${Tofu()}",
"wrap": true,
"horizontalAlignment": "Center"
}
]
}
]
}
]
}
```
# AdaptiveCardMeals(location)
[Activity
Attachments = ${json(adaptivecardjson_meals(location))}
]
# SendActivity_VjZdQI()
- ${AdaptiveCardMeals(virtualagent.user_city)}
Thanks