Visit to Designer to create your own Adaptive Card. Watch video to learn creating adaptive cards.
Adaptive Card Samples
- Covid-19 Adaptive Card
JSON
{
"type": "AdaptiveCard",
"body": [
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "COVID - 19 Updates in India",
"size": "ExtraLarge",
"wrap": true,
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "Government of India is taking all necessary steps to ensure that we are prepared well to face the challenge and threat posed by the growing pandemic of COVID-19 the Corona Virus. With active support of the people of India, we have been able to contain the spread of the Virus in our country. The most important factor in preventing the spread of the Virus locally is to empower the citizens with the right information and taking precautions as per the advisories being issued by Ministry of Health & Family Welfare.",
"wrap": true
},
{
"type": "TextBlock",
"text": "Click on any of the below options to view the details",
"wrap": true
}
],
"style": "good",
"bleed": true
}
],
"actions": [
{
"type": "Action.ShowCard",
"title": "Information and Advisory",
"card": {
"type": "AdaptiveCard",
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"body": [
{
"type": "Container",
"style": "warning",
"items": [
{
"type": "TextBlock",
"text": "MYTH BUSTERS",
"size": "Medium",
"color": "Dark",
"weight": "Bolder"
},
{
"type": "TextBlock",
"text": "**There is a lot of false information around. These are the facts.**\n\nPeople of all ages CAN be infected by the coronavirus. Older people, and people with pre-existing medical conditions (such as **asthma**, **diabetes**, **heart disease**) appear to be more vulnerable to becoming severely ill with the virus.",
"wrap": true
},
{
"type": "TextBlock",
"text": "* Cold weather and snow **CANNOT** kill the CoronaVirus .\n* The coronavirus **CAN** be transmitted in areas with hot and humid climates.\n* The coronavirus **CANNOT** be transmitted through mosquito bites.\n* There is **NO** evidence that companion animals/pets such as dogs or cats can transmit the coronavirus.\n* Taking a hot bath **DOES NOT** prevent the coronavirus.\n* Hand dryers are **NOT** effective in killing the coronavirus.\n* Ultraviolet light **SHOULD NOT** be used for sterilization and can cause skin irritation.\n* Thermal scanners **CAN** detect if people have a fever but **CANNOT** detect whether or not someone has the coronavirus.\n* Spraying alcohol or chlorine all over your body **WILL NOT** kill viruses that have already entered your body.\n* Vaccines against pneumonia, such as pneumococcal vaccine and Haemophilus influenzae type b (Hib) vaccine, **DO NOT** provide protection against the coronavirus.\n* There is **NO** evidence that regularly rinsing the nose with saline has protected people from infection with the coronavirus.\n* Garlic is healthy but there is **NO** evidence from the current outbreak that eating garlic has protected people from the coronavirus.\n* Antibiotics **DO NOT** work against viruses, antibiotics only work against bacteria.\n* To date, there is **NO** specific medicine recommended to prevent or treat the coronavirus.",
"color": "Warning",
"wrap": true
}
]
},
{
"type": "Container",
"items": [
{
"type": "TextBlock",
"text": "SYMPTOMS",
"size": "Medium",
"weight": "Bolder",
"color": "Dark"
},
{
"type": "TextBlock",
"text": "* Dry Cough\n* High Fever\n* Sore Throat\n* Difficulty in Breathing\n",
"wrap": true,
"color": "Dark"
}
],
"style": "attention"
},
{
"type": "Container",
"style": "warning",
"items": [
{
"type": "TextBlock",
"text": "HOW IT SPREADS",
"size": "Medium",
"weight": "Bolder",
"color": "Dark"
},
{
"type": "TextBlock",
"text": "* Air by Cough or Sneeze\n* Personal Contact\n* Contaminated Objects\n* Mass Gathering",
"color": "Warning",
"wrap": true
}
]
},
{
"type": "Container",
"style": "good",
"items": [
{
"type": "TextBlock",
"text": "PREVENTION",
"size": "Medium",
"weight": "Bolder",
"color": "Dark"
},
{
"type": "TextBlock",
"text": "* Wash your hands often\n* Wear a Face Mask\n* Avoid contact with sick people\n* Always cover your cough or sneeze",
"color": "Dark",
"wrap": true
}
]
}
]
},
"style": "positive"
},
{
"type": "Action.ShowCard",
"title": "States/UTs Covid Status",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "Image",
"url": "https://res.cloudinary.com/dewiride/image/upload/v1590846936/ChatBots/covid_status_zmrbev.png",
"selectAction": {
"type": "Action.OpenUrl",
"url": "https://www.mygov.in/corona-data/covid19-statewise-status"
}
}
]
}
},
{
"type": "Action.ShowCard",
"title": "MyGov State Activities",
"card": {
"type": "AdaptiveCard",
"body": [
{
"type": "Image",
"selectAction": {
"type": "Action.OpenUrl",
"url": "https://mp.mygov.in/en/group-issue/share-your-ideas-and-suggestions-help-us-lifting-lockdown/"
},
"url": "https://res.cloudinary.com/dewiride/image/upload/v1590847249/ChatBots/im1_s7s2rx.png"
},
{
"type": "Image",
"url": "https://res.cloudinary.com/dewiride/image/upload/v1590847249/ChatBots/im2_vg5ql0.png",
"selectAction": {
"type": "Action.OpenUrl",
"url": "https://uttarakhand.mygov.in/group-issue/join-hands-government-participate-relief-efforts-covid-19"
}
},
{
"type": "Image",
"url": "https://res.cloudinary.com/dewiride/image/upload/v1590847249/ChatBots/im3_mjkep2.png",
"selectAction": {
"type": "Action.OpenUrl",
"url": "https://uttarakhand.mygov.in/task/saluting-covid-19-heroes"
}
},
{
"type": "Image",
"url": "https://res.cloudinary.com/dewiride/image/upload/v1590847249/ChatBots/im4_fdasyf.png",
"selectAction": {
"type": "Action.OpenUrl",
"url": "https://mp.mygov.in/en/home/8463/do/"
}
}
]
},
"style": "positive"
}
],
"$schema": "http://adaptivecards.io/schemas/adaptive-card.json",
"version": "1.2"
}
Use this Adaptive Card in your Bot Framework or Render in your own application.