Created
August 22, 2018 13:45
-
-
Save aw230012/02669833883132b9a122d51d4d7aa5bd to your computer and use it in GitHub Desktop.
Adaptive Card json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json", | |
"type": "AdaptiveCard", | |
"version": "1.0", | |
"body": [ | |
{ | |
"type": "Container", | |
"items": [ | |
{ | |
"type": "TextBlock", | |
"text": "BIAD Bot", | |
"weight": "bolder", | |
"size": "large" | |
}, | |
{ | |
"type": "ColumnSet", | |
"columns": [ | |
{ | |
"type": "Column", | |
"width": "auto", | |
"items": [ | |
{ | |
"type": "Image", | |
"url": "https://www.microsoftevents.com/accounts/register123/microsoft/msft-v1/c-and-e/events/mtc-155940/eventfiles/image.png", | |
"size": "small", | |
"style": "person" | |
} | |
] | |
}, | |
{ | |
"type": "Column", | |
"width": "stretch", | |
"items": [ | |
{ | |
"type": "TextBlock", | |
"text": "Hello there!", | |
"weight": "bolder", | |
"size": "medium", | |
"wrap": true | |
}, | |
{ | |
"type": "TextBlock", | |
"spacing": "none", | |
"text": "", | |
"isSubtle": true, | |
"wrap": true | |
} | |
] | |
} | |
] | |
} | |
] | |
}, | |
{ | |
"type": "Container", | |
"items": [ | |
{ | |
"type": "TextBlock", | |
"text": "Thanks for stopping by! I've got jokes and I've got smarts. Select and option below to get started, or type \"start over\" at any time to select a new option.", | |
"wrap": true | |
}, | |
{ | |
"type": "FactSet", | |
"facts": [ | |
{ | |
"title": "", | |
"value": "" | |
}, | |
{ | |
"title": "", | |
"value": "" | |
}, | |
{ | |
"title": "", | |
"value": "" | |
}, | |
{ | |
"title": "", | |
"value": "" | |
} | |
] | |
} | |
] | |
} | |
], | |
"actions": [ | |
{ | |
"type": "Action.Submit", | |
"title": "Tell me jokes", | |
"data": { | |
"action": "jokes" | |
}, | |
"card": { | |
"type": "AdaptiveCard", | |
"body": [ | |
{ | |
"type": "Input.Text", | |
"id": "tellJoke", | |
"title": "Tell me jokes" | |
} | |
], | |
"actions": [ | |
{ | |
"type": "Action.Submit", | |
"title": "OK" | |
} | |
] | |
} | |
}, | |
{ | |
"type": "Action.Submit", | |
"title": "Tell me trivia", | |
"data": { | |
"action": "trivia" | |
}, | |
"card": { | |
"type": "AdaptiveCard", | |
"body": [ | |
{ | |
"type": "Input.Text", | |
"id": "tellTrivia", | |
"title": "Tell me trivia" | |
} | |
], | |
"actions": [ | |
{ | |
"type": "Action.Submit", | |
"title": "Play Trivia" | |
} | |
] | |
} | |
}, | |
{ | |
"type": "Action.Submit", | |
"title": "None of these", | |
"card": { | |
"type": "AdaptiveCard", | |
"body": [ | |
{ | |
"type": "Input.Text", | |
"id": "doNothing", | |
"title": "None of these" | |
} | |
], | |
"actions": [ | |
{ | |
"type": "Action.Submit", | |
"title": "OK" | |
} | |
] | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment