Sumit's AI & Tech Notes

Adaptive Cards in Copilot Studio

Adaptive Cards in Copilot Studio


In this blog:

  1. (Text features)[]
  2. (Responsive Layouts)[]
  3. (Collapsible Sections)[]
  4. (Edge-to-edge content)[]
  5. (Container layout)[]

Text features

Using Markdown

Date and time formatting

Examples

  1. Compact date: {{DATE(2017-02-14T06:00:00Z)}} -> 14/2/2017
  2. Short date: {{DATE(2017-02-14T06:00:00Z,SHORT)}} -> Tue, 14 Feb, 2017
  3. Long date: {{DATE(2017-02-14T06:00:00Z,LONG)}} -> Tuesday, 14 February 2017
  4. Date and time: {{DATE(2017-02-14T06:00:00Z,LONG)}}, {{TIME(2017-02-14T06:00:00Z)}} -> Tuesday, 14 February 2017, 11:30 am

Responsive Layouts

  1. The four width groups: Wide, Standard, Narrow, Very narrow
  2. Make use of atLeast and atMost prefixes in targetWidth property to make an element visible only when the card width is 'standard or above' or only when the card width is 'narrow or below'. E.g. atLeast:standard

Wide Width

Standard Width

Narrow and Very Narrow Width


Collapsible Sections

Action.ShowCard

Action.ToggleVisibility


Edge-to-edge content

(Read more)[https://adaptivecards.microsoft.com/?topic=edge-to-edge-content]


Container Layouts