---
description: Your first adaptive card
---

# Building An Adaptive Card

To create AdaptiveCard you need to use microsoft platform: [Adaptive Card Designer](https://adaptivecards.io/designer/)

All Cards are built in the JSON scheme in which you can edit specified elements straight in the code, but the Microsoft platform allows you to use the drag and drop method together with configuration menu. \


![](https://lh4.googleusercontent.com/NxoFUdkwvuFXmVtREZ0U6Ba16b3BccWmBZi9xv7uOFA_HWPgUZuV42tS8dzCl1xN8_xGHAWw0LP33B6Wt01no30SG9rTjRq-TK62bO2AN9vlWycX2iFioaLCgELVsSUjwJ9LkIXz)

## Adaptive Cards Designer interface

Adaptive Cards builder can be split into 6 parts but for tekos uses only 5 of them

1. Left side menu with **Card Elements**. \
   Here you can find all elements of which the adaptive card can be built with. Like TextBlock, Images, All kinds of Inputs and other elements.\

2. **Working Area** of your card\
   It is the place to show how your card will look like. \
   <img src="https://lh5.googleusercontent.com/MlcYVOKyfjCsudz-TT8y0iar_w4e9n-wWW0Wg4qGgofHbVubjoI9i8oA0_A5N6klQD-72SB3kGkicLoFMhUFvPhZZoh5hZT48dQapTRzZmWQ_EKC5Xo7Rcu8RAgj8mYX-z0CiwLu" alt="" data-size="original">
3. **Card structure** \
   Defines the drag and drop structure of your card\

4. **Element Properties**\
   Whenever you pick an element from the Working area or Card structure you will get additional information about the selected element. Like the Id, Text, Styling, Layout and action types but will discuss them more in the future.  \

5. **Card Payload Editor**\
   This is the code representation of the card structure and this is the part needed for the tekos flow to get cards working in the chat.\

6. **Sample Data Editor** (we don’t use that one in the tekos flow)

## Content of your first Adaptive Card

![](https://lh4.googleusercontent.com/p1kK1hT6s6HahD8wUSra3eTHAw9ksunBI-yuuk8TtYto9R435uZJp-SsK7yZQrKONvgfPPalipN-vLPO1QzeYvTC8zBMViETZJsLKyGxihTCkMHhr047iU4TB3ebJ_-LH2Q5MqNU)

You might be already familiar with card it's showing the Amazon stock at exact day\
So we will use it as an example

Here you can see the card code in the CARD PAYLOAD EDITOR:

```javascript
 {
      "$schema":"http://adaptivecards.io/schemas/adaptive-card.json",
      "type":"AdaptiveCard",
      "version":"1.2",
      "body":[
         {
            "type":"Container",
            "items":[
               {
                  "type":"TextBlock",
                  "text":"Amazon.com, Inc. (NASDAQ: AMZN)",
                  "size":"Medium",
                  "isSubtle":true
               },
               {
                  "type":"TextBlock",
                  "text":"September 19, 4:00 PM EST",
                  "isSubtle":true
               }
            ]
         },
         {
            "type":"Container",
            "spacing":"None",
            "items":[
               {
                  "type":"ColumnSet",
                  "columns":[
                     {
                        "type":"Column",
                        "width":"stretch",
                        "items":[
                           {
                              "type":"TextBlock",
                              "text":"75",
                              "size":"ExtraLarge",
                              "isVisible":false
                           },
                           {
                              "type":"TextBlock",
                              "text":"▼ 0.20 (0.32%)",
                              "size":"Small",
                              "color":"Attention",
                              "spacing":"None"
                           }
                        ]
                     },
                     {
                        "type":"Column",
                        "width":"auto",
                        "items":[
                           {
                              "type":"FactSet",
                              "facts":[
                                 {
                                    "title":"Open",
                                    "value":"62.24"
                                 },
                                 {
                                    "title":"High",
                                    "value":"62.98"
                                 },
                                 {
                                    "title":"Low",
                                    "value":"62.20"
                                 }
                              ]
                           }
                        ]
                     }
                  ]
               }
            ]
         }
      ],
      "backgroundImage":{
         "horizontalAlignment":"Right",
         "verticalAlignment":"Center"
      },
      "verticalContentAlignment":"Bottom"
   }



```

&#x20;As you can see it’s a  JSON code representation of the Card Structure.&#x20;

We can specify the Containers, Columns, TextBlock, FactSet etc.\
Each of them contain different properties like value, title, width, color, spacing etc. all \
