End chat button in agent messages
Objective
To add an end chat button on all messages received by the agents so that agents don't have to send '/end' commands from MS Teams cleint to end their chat sessions.
Preview
Code
{
"type": "AdaptiveCard",
"body": [
{
"type": "ColumnSet",
"columns": [
{
"type": "Column",
"items": [
{
"type": "TextBlock",
"color": "Accent",
"text": "@Model.SeekerDisplayName"
}
],
"width": "auto"
},
{
"type": "Column",
"items": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "@Model.Text",
"wrap": true
}
]
}
],
"width": "stretch"
}
]
}
],
"actions": [
{
"type": "Action.Submit",
"title": "End Chat",
"data": {
"message": "/end"
}
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.0"
}
Text Resources
fghazi