Tekos
  • General overview
  • Tekos Chat Workspace
    • Tekos Chat
      • Design and Interface of chat
      • Apps
    • Tekos Chat FAQ
      • How to create a workspace for my team?
      • How to invite members to my workspace?
      • What is a room and to create it?
      • Public or private room? What is the difference?
      • What is Roles & Permissions?
      • What is power level and how does it work?
      • How do I know if my message was read?
      • How can I share a file?
      • How to search messages and/or files.
      • How do I make video calls?
      • How do I change my profile settings?
      • Notifications settings.
      • Room settings.
      • How to leave a room?
      • Lab features
  • Flow Builder
    • Tekos Flow
      • Editor UI
      • Building your first flow
        • Import / Export Flow
      • Flow.tekos library
      • Subflows
  • Omnichannel Live Chat
    • Overview
    • Channels
      • WhatsApp
  • Building Apps
    • Building Apps
      • Connecting flow with the chat
      • HTTP Requests
        • Handle query parameters passed to an HTTP endpoint
        • Handle url parameters in an HTTP endpoint
    • Chat Surfaces
      • Modals - Adaptive Cards
        • Building An Adaptive Card
        • Basic usage of Cards
        • Variables in the Cards
        • Action Buttons
      • Messages
        • Instant Messaging
          • Message types
        • Getting the Messages
        • Getting events for a room
        • Messages webhook
    • Interactivity in the Chat
      • Shortcuts
      • Slash Commands
      • Buttons
Powered by GitBook
On this page
  • Adaptive Cards Designer interface
  • Content of your first Adaptive Card

Was this helpful?

  1. Building Apps
  2. Chat Surfaces
  3. Modals - Adaptive Cards

Building An Adaptive Card

Your first adaptive card

PreviousModals - Adaptive CardsNextBasic usage of Cards

Last updated 4 years ago

Was this helpful?

To create AdaptiveCard you need to use microsoft platform:

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.

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. Card structure Defines the drag and drop structure of your card

  3. 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.

  4. 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.

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

Content of your first Adaptive Card

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:

 {
      "$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"
   }


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

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

Working Area of your card It is the place to show how your card will look like.

Adaptive Card Designer