Create a lightweight, adaptable card
Cards are actionable snippets of content that you can add to a conversation through a bot, a connector, or app. Using text, graphics, and buttons, cards allow you to communicate with an audience.
Our card framework eliminates the burden of designing a fully functional UX. We developed several standard card types and each one fits within our supported platforms. This means layout is completely taken care of, and you won’t need to develop different card iterations across platforms. Instead, you can focus on dialing in your content.
Think of a card as a response to a user question or a setting. A card can respond to a direct question (like, “How many open bugs do I have?”) or to a condition (like, “Send a list of my open bugs at 9 am every day”).
Using one of our standard card types means you’ll already know that all your responses will render nicely across each supported platform.
A card could include any of the following elements:
Envelope text: Best used for chat messages. For example, if you want a bot to say: “Here’s what I found!” or “Time for your 1:00 news digest”, that message is best displayed in envelope text.
Envelope text is a great way to inject a little personality into your service—just remember to keep it relatively short.
Title: Your title will always be the largest text in your card. It also serves as your “hook”, so try to keep the title short, memorable, and easy to scan.
Subtitle: Best used for attribution, taglines, or as a secondary directive. This component appears just below your title.
Image: Images scale to fit their container. Hero cards have a max width of 420px, thumbnails have a max width of 100px, and list views only allow for 32px in desktop mode.
Text: Best used for plain text in the body of your card. Your max length depends on the card type you’ve selected.
Buttons: Best used to open web pages, tabs, or additional chat content. Make sure to keep your button text short and to the point.
You can include up to 6 buttons per card, but we’d recommend following a ‘less is more’ philosophy here.
Tap region: This is the clickable region of your card. Most users will want to click on images automatically, so try and craft your text so they know where they should tap or click.
There’s no need to include every element in each card you create. Let your content dictate your elements.
Types of cards
Our largest card. Best used for articles, long descriptions, or scenarios where your image is telling most of the story.
Short and sweet. These cards are ideal for short answers, or if you want to return several cards at once so the user can choose from a bunch of options. We think these are a great way to deep link to another tab or a web service.
Some services require users to sign in independently of our authentication. In that event, you would present a sign-in card before the user can connect to your service.
Limit the occurrences of an additional sign-in card since they pose a significant speed bump for new users.
We also have standard card types that are best used when you want to present several pieces of content at once or in quick succession. For that purpose, we have a carousel, a digest, a list, and what we call a ‘bubble merge’.
Best used for articles, shopping, and browsing through cards.
The carousel will be the max height of your largest card. We recommend using the same card type and content fields throughout.
Best used for news, digests, and whenever you want the user to view multiple cards at once. We recommend using thumbnail cards for digests.
Lists are a great way to present a scannable set of objects in a “pick one of these” scenario. Lists are best used for items that don’t need a lot of explanation.
Some interesting effects can be achieved by sending one hero and several thumbnails in quick succession. We recommend this approach when you want to serve a main result but include a few more related items.
Keep the noise down
It’s easy to send multiple cards into a conversation, but once cards scroll out of view, they become less useful. Try to limit yourself to the essentials. This is especially true in a channel where users have less tolerance for what they perceive as “noise”.
Test on mobile
Mobile environments are space- and bandwidth-constrained, so be cautious about including oversized images and large data sets in lists and carousels. Also, title widths and text lengths will truncate on mobile, so that’s another thing to keep an eye on.
Check your graphics
Graphics are going to scale, so be sure to preview them on all platforms.
Avoid including text in a graphic
Anything that needs to be read by a user should be included in a text field. Once an image is dynamically scaled, any text you add to a graphic may become unintelligible.