Settings

Theme

Adaptive Cards

adaptivecards.io

137 points by miguelrochefort 4 years ago · 36 comments

Reader

miguelrochefortOP 4 years ago

I maintain a list of Adaptive Cards projects and resources here:

https://github.com/miguelrochefort/awesome-adaptive-cards

Gys 4 years ago

This reminds me of https://jasonette.com/

Very interesting idea because it can be much more platform agnostic then html. Ideally resulting in moving away from the html everywhere, which often means including a separate browser everywhere and non native UIs.

dchuk 4 years ago

Interesting, seems similar to what Joel is doing here: https://blockprotocol.org

michaelmior 4 years ago

Would be great to see something like catch on for other chat platforms as well (e.g. Slack, Messenger, etc.). Being able to define a UI once for all those would be great.

  • hyperrail 4 years ago

    Webex's Slack-like chat room service uses Adaptive Cards to define interactive messages from bots, just like Microsoft Teams does.

    I do agree with you that it should catch on more and it's unfortunate that it hasn't.

    • valgaze 4 years ago

      + 1

      ex. You can do something like this: https://i.imgur.com/dcbzn3w.gif

      I do a lot of thinking about conversation design "tooling" for automated agents and I found wrangling Adaptive Cards with "dynamic" content was a bit annoying since there's so many options. I needed a simple subset of functionality to cover most cases and to add features like tappable suggestion "chips"

      I made little a utility called "Speedycard" which lets you "build" Adaptive Cards kinda like this:g

        const myCard = new SpeedyCard()
          .setTitle('System is ')
          .setSubtitle('If you see this card, everything is working')
          .setImage('https://i.imgur.com/VQoXfHn.gif')
          .setInput(`What's on your mind?`)
          .setUrl('https://www.youtube.com/watch?v=3GwjfUFyY6M', 'Take a moment to celebrate')
          .setTable([[`Bot's Date`, new Date().toDateString()], ["Bot's Uptime", `${String(process.uptime())}s`]])
          .setData({mySpecialData: {a:1, b:2}})
      
      const fullCard = myCard.render() // JSON passed to an API/client

      While I am convinced about the importance of conversation design and being thoughtful about this stuff sometimes it's convenient to just have a little form and the user adds their data and call it day

      Cards source (can use this anywhere): https://github.com/valgaze/speedybot/blob/master/src/cards.t...

      Experiment optimized for Cloudflare Workers: https://www.npmjs.com/package/speedybot-hub

      Main Library: https://www.npmjs.com/package/speedybot

spankalee 4 years ago

This is what HTML is for, and if you look at the schema it has many of the same element/container concepts that HTML has.

A subset of HTML designed for easy embedding, possibly removing features and quirks and allowing for a smaller and faster runtime was the goal of the project that directly preceded and led to Flutter. I wish that goal had remained so that we had a cross-platform UI runtime that was still lightweight on the web.

  • paulcam206 4 years ago

    Probably the first thing to call out is that solving cross-plat UI in the general case is a non-goal for Adaptive Cards. It's not intended to replace e.g. ReactNative. Adaptive Cards exists to allow small snippets of card-like UI to be defined and shared across platforms.

    The problem with using HTML (or a subset thereof) to solve this problem is that it necessarily requires HTML rendering on every platform you want to support.

    If your intent as a dev is to integrate card-like experiences into an existing app, requiring a web rendering surface might be too heavyweight... and even if apps chose to adopt web rendering, there would still be the issue of getting styling to line up.

    The goal of Adaptive Cards is to use a platform's native rendering and controls. Apps should get native performance with native styling.

    Of note, these cards may not be originating from within your team, so there's no way to guarantee that card authors will make design choices that fit within the design language of your app. The solution is to only allow for semantic styling choices (e.g. card author can't specify "Ubuntu Mono" as the font, but can specify "monospace"). The app hosting the card gets to define how these semantic choices are actually implemented.

jacknews 4 years ago

Is it just me or is the video a word-soup marketing pitch of benefits, possibilities etc? 'Open yourself up to content, with adaptive cards'.

What does this thing actually do, and how does it work?

eliseumds 4 years ago

Wow, this is very hard to read. It should be illegal to use light grey text on a white background.

  • Tao332 4 years ago

    It's technically black, but the font weight is ultra ultra light.

thermin 4 years ago

Seems incredibly like an intentionally style-less, script-less version of HTML: a tree structure of blocks, tables, lists etc with simple actions like "show", "hide" and "submit form".

eternityforest 4 years ago

Looks amazing! It's not every day I see a new technology that actually stands out. I could see a lot of apps being built largely as card galleries.

Also, "Experience Owners" should be nominated for Buzzword of the Year. It's so incredibly plastic corporate buzzword-y, but actually kind of does give a bit of a buzz when you see it.

paulcam206 4 years ago

Hey everyone -- I'm a dev on AdaptiveCards and happy to (attempt to) answer any questions folks might have :)

I'd be remiss if I didn't mention our monthly Community Calls. Feel free to join in! You can grab a .ics reminder here: https://aka.ms/adaptivecardscommunitycall

brundolf 4 years ago

Our industry has been chasing the dragon of universal GUI components for nearly as long as there have been GUIs. What's different this time?

bloopernova 4 years ago

Unfortunately it didn't work in Linux Firefox :(

password4321 4 years ago

Smells new. Anyone willing to recommend how long to wait before adopting a new MS technology?

wokwokwok 4 years ago

Use this in teams automation.

It’s just another priority format you need a full blown editor to build your UI in.

Difficult to debug with, but works fine as long as you hardly ever need to change your templates.

TeeMassive 4 years ago

Makes sense to have the Markdown equivalent but for UI. (In fact that wouldn't be a bad idea.)

latchkey 4 years ago

This concept is patented:

https://patents.justia.com/patent/9285977

https://www.wrap.co/

stayinrhythm 4 years ago

"there are now 15 competing standards" vibes (https://xkcd.com/927/)

Keyboard Shortcuts

j
Next item
k
Previous item
o / Enter
Open selected item
?
Show this help
Esc
Close modal / clear selection