Docs / Interactive cards

Interactive cards

A card is a small form you send in a chat: a poll, a sign-up sheet, a checklist or a quick survey. Everyone in the chat can answer it, and everyone sees the answers come in.

A poll card and a checklist card propped on a table, with a pencil
Markdown version Scripted cards reference Every example on this page is checked with the app's own card validator

What a card is

Everyone

A card has a title, an emoji, an accent colour and a list of blocks: some text, a question with options, a checklist, a star rating, a few buttons. You build it once, keep it in My cards, and send it into any chat.

In the chat, everyone can answer. Votes, ticks and stars appear on every phone as they happen, with counts under each question. Tap a count to see who answered. The person who sent the card can close it to new answers when the time is up.

A poll card titled Where should dinner be, with four options, vote counts and bars, and Curry picked
A poll in a chat, after five people voted.

Cards are made of blocks, so there is no code to write. If you want a card that does more, such as a game, a timer or a card that keeps score, read Scripted cards.

Cards work in one-to-one chats and in groups, over Wi-Fi, Bluetooth or through a community, just like messages. Answers are sent end-to-end encrypted, the same way messages are.

Blocks

Everyone

A card holds up to 30 blocks, shown in order. These are the kinds of block you can use:

BlockWhat it showsHow people answer
TextWords, with simple formatting: **bold**, _italic_, lists and links.They don't. It's for information.
PictureA photo, with an optional caption. Or someone's profile picture, cover photo, or a picture already sent in the chat.They don't.
ButtonA button that does one of three things: counts who tapped it, opens a web link, or starts a reply to the card.A tap. Tapping again takes it back.
ChoiceA question with 2 to 12 options. Pick one, or allow several.A pick, with live counts and bars.
Checklist1 to 30 items with tick boxes.Anyone can tick or untick any item. Ticks are shared by everyone.
AnswerA question answered in words, with a hint in the empty box.Up to 500 characters each.
RatingA question answered with 1 to 5 stars.Stars, with the average shown.
LinkA web link with a title.They don't. It opens the page.
A card titled Picnic on Sunday with text, an I'm in button tapped by three people, a map link button, an Ask a question button, a food checklist, a star rating and a link
Text, three kinds of button, a checklist, a rating and a link.
{
  "v": 1,
  "id": "picnic",
  "title": "Picnic on Sunday",
  "emoji": "🧺",
  "accent": 4279548070,
  "blocks": [
    { "id": "when", "k": "text", "t": "**Sunday, 1pm** at the park gates.\n- Bring a blanket\n- Rain plan: the café" },
    { "id": "in", "k": "button", "t": "I'm in", "a": "respond" },
    { "id": "map", "k": "button", "t": "Open the map", "a": "link", "u": "https://example.com/map" },
    { "id": "ask", "k": "button", "t": "Ask a question", "a": "reply" },
    { "id": "food", "k": "checklist", "t": "Food", "o": ["Sandwiches", "Fruit", "Drinks"] },
    { "id": "hungry", "k": "rating", "t": "How hungry will you be?" },
    { "id": "site", "k": "link", "t": "Park opening times", "u": "https://example.com/park" }
  ]
}

Make a card

Everyone

Cards are made in Card Studio.

  1. Go to You → My cards and tap + (New card). You can also start from a chat: tap + beside the message box, choose Card, then New card.
  2. Pick a template, or Blank card. The templates are grouped into Plans, Polls, Lists, Games and Tools, and you can search them. Examples include RSVP, Meet up, Lift share, Poll, Quick survey, Rate it, Checklist, Sign-up sheet, Kit list, House chores and Check in.
  3. In the Design tab, drag blocks from the palette into the card, or tap one to add it at the end. Drag a block's handle to move it, and tap a block to set it up: its question, options, items, hint or link.
  4. Open Card details to set the card's name, emoji and colour.
  5. Use the Preview tab to try the card. Nothing you do there is sent.
  6. Tap Save. The card goes to My cards. If you belong to a community, you can save it to the community's card library instead (see Community card library).

To change a card later, open it in My cards and tap Edit. Cards you already sent stay as they were when you sent them.

Want more than blocks? In Card Studio, Switch to code turns the blocks into a script you can change in any way. The card stays code after that. You can also start from Blank scripted card. See Scripted cards.

Send a card

Everyone
  1. In a chat, tap + beside the message box and choose Card.
  2. Pick a card from My cards.
  3. Check it in the last look, then tap Send.

The last look has a few options:

You can also send a card from My cards: open it and tap Send in a chat.

Answers and how they sync

Everyone
The dinner poll before anyone voted, with no counts
Before it's sent: no counts yet.
The dinner poll with a Closed label in its header
Closed by its sender.

Long-press a card in a chat for more: Save to My cards, Copy card code and, for scripted cards, Sites this card can reach.

My cards

Everyone

You → My cards holds the cards you made or saved, up to 200. It follows your account: a card you save on your phone appears on your other linked devices, and a card you delete goes from all of them. Cards already sent stay in their chats.

Tap a card to try it, then:

The download button at the top, Import a card, takes a card from a code on the clipboard or from a .isocard file.

Share a card as a code or a file

Everyone

A card can travel outside a chat in two ways:

When you open a code or a file, Isolink shows the card first, then asks Add this card? with what it can do: the pictures inside it, the sites it reaches (each with its own switch), the community actions it calls, and whether it runs a script. A card that is only blocks says Just blocks: it reaches no sites and runs no script. Only add a card if you trust who made it.

A card code or file sent in a chat can be opened from the message's menu with Open card.

Cards in a community's card library

Everyone

If you belong to a community, it has a card library that its members share. Open the community and tap Card library to browse it, try a card, save it to My cards or send it.

Cards in the library are not encrypted for the community. Whoever runs the community can read them. Key values are never put in the library: Isolink takes them out before publishing.

Templates from your community

A community can offer its own card templates. When you make a new card, they show first, under the community's name. Community admins add one from My cards with Make it a community template, and change or remove them under Manage → Card templates or on the community's admin page.

Cards in backups

Everyone

My cards is part of your chat backup. Restoring a backup adds the cards you don't have, and replaces older copies with the backup's newer ones. Nothing in My cards is removed. Cards in chats are messages, so they come back with their chats.

Privacy and safety

Everyone

The card format

Developers

A card is a JSON object. This is the form the app sends in chats, puts in card codes and .isocard files, and accepts when you paste JSON. Field names are short to keep cards small.

Two forms. This page documents the app's own form (k, t, o…). Community bots also accept a longer, friendlier form (type, text, options…) in --card files and model tools; the community turns it into this one. See Cards from bots.

FieldTypeRules
vnumberFormat version. The app writes 1. Ignored when reading.
idstringRequired. 1 to 40 characters from A-Z a-z 0-9 _ -. My cards keeps cards by id, so give each card its own. A different card imported under an id you already hold gets a new id.
titlestringRequired. Not blank, at most 80 characters.
emojistringOptional. 1 to 8 Unicode code points, shown before the title.
accentintegerOptional. The colour as ARGB, 0 to 4294967295 (0xFFFFFFFF). Always made opaque. Default 4284704497 (0xFF6366F1, indigo).
blocksarrayUp to 30 blocks, shown in order. See Block format. Optional; a card without blocks shows This card has nothing to show.
scriptstringOptional. A card script, up to 49,152 characters. When present, the script draws the card. See Scripted cards.
pobjectOptional. Params: read-only values the card shows. At most 8 KB as JSON. See Params.
formobjectOptional. Questions answered together and sent with one button: {"send": label, "to": "sender"}. send is the button's label, at most 40 characters (default Send). "to": "sender" sends the answers only to the card's sender; "all" (the default) to everyone. Any other to refuses the card.
asarrayOptional. Up to 16 assets: pictures a script draws by name. See Pictures and sites.
sitesarray of stringsOptional. Up to 16 host names the card reaches, like api.example.com. Lower-cased.
actarrayOptional. Up to 8 community actions. See Community actions.
srcobjectSet by the app on a card from a community's card library: {"r": relay, "i": id, "a": publishedAtMs}. Don't write it by hand.

The app checks every card strictly when it arrives. A card with a bad top-level field, or one past a limit, is refused whole. A single block that doesn't check out (an unknown kind from a newer app, a choice with one option, a second block with the same id) is dropped, and the rest of the card shows.

Block format

Developers
id
Required. 1 to 40 characters from A-Z a-z 0-9 _ -, unique in the card. Answers are kept by block id. Don't use _fb: it is kept for scripted cards.
k
Required. The kind: text, image, button, choice, checklist, input, rating or link.
t
The words: the text, label, question, heading, caption or title. At most 2,000 characters in a text block and 120 in the others.
o
Options or checklist items: an array of strings, none blank, each at most 120 characters.
m
true lets people pick more than one option of a choice. Default false.
a
A button's action, required on buttons: respond, link or reply.
u
A web address for a link block or a link button: http:// or https://, at most 1,000 characters. On an image block without img, a picture the phone holds (see below).
img
An image block's picture, base64. JPEG, PNG, GIF or WebP, at most 160 KB.
h
An input block's hint, shown in the empty box. At most 120 characters.
for
Who sees the block: "sender", "others" (everyone but the sender), or an array of up to 32 account ids. Leave it out for everyone. Anything else drops the block.

for only changes what each phone draws: the card itself goes to everyone in the chat. Don't put secrets in a block for someone else. Answers to a private form are different: they go only to the sender, and other phones ignore them if an older app sends them anyway.

Kind kNeedsOptional
textt, not blank. Markdown: **bold**, _italic_, lists, links.
imageimg, or u naming a picture the phone holds: avatar: or cover: followed by an account id, me, viewer or sender; or chat: followed by a number (0 is the newest picture in the chat) or a message id.t (caption)
buttont (the label), a. With "a": "link", also u.
choiceo: 2 to 12 options, all different.t (question), m
checklisto: 1 to 30 items.t (heading)
inputt (question), not blank.h
ratingt (question), not blank.
linkut (title; the host shows when empty)

Button actions: respond records the tap as that person's answer and shows how many tapped; link opens u; reply starts a reply to the card in the chat. Fields a kind doesn't use are dropped. A card holds at most 3 image blocks. A picture block that shows a picture the phone holds asks the person first, like a script would.

Examples

Developers

Each example is a complete card. Paste the JSON into My cards → Import a card → Paste a card code (the app accepts a card's plain JSON there too), or send it from a community bot. The pictures are the real app, drawn with a few answers in.

A poll

The dinner poll with counts: Pizza 2, Curry 3
One vote each. The bars show the share of answers.
{
  "v": 1,
  "id": "dinner-poll",
  "title": "Where should dinner be?",
  "emoji": "📊",
  "accent": 4284704497,
  "blocks": [
    { "id": "pick", "k": "choice", "t": "Pick one", "o": ["Pizza", "Curry", "Burgers", "Something else"] },
    { "id": "note", "k": "text", "t": "Results update as people vote. Tap your pick again to take it back." }
  ]
}

A sign-up sheet with a checklist

A beach clean-up sign-up card with time slots picked, a shared checklist with two items ticked and a typed note
"m": true lets people pick several slots. Checklist ticks are shared.
{
  "v": 1,
  "id": "beach-clean",
  "title": "Beach clean-up sign-up",
  "emoji": "📝",
  "accent": 4287323382,
  "blocks": [
    { "id": "intro", "k": "text", "t": "**Saturday 10am**, by the pier. Pick the slots you can do." },
    { "id": "slots", "k": "choice", "t": "Slots", "o": ["10 to 11", "11 to 12", "12 to 1"], "m": true },
    { "id": "bring", "k": "checklist", "t": "Who brings what", "o": ["Bin bags", "Gloves", "Litter pickers", "Water"] },
    { "id": "note", "k": "input", "t": "Anything to add?", "h": "Times, a phone number, questions" }
  ]
}

A feedback form

A workshop feedback card in the light theme with a star rating averaging 4.0, a multiple choice question, a text answer box and a link
The same card format in the light theme.
{
  "v": 1,
  "id": "workshop-feedback",
  "title": "How was the workshop?",
  "emoji": "⭐",
  "accent": 4294096196,
  "blocks": [
    { "id": "stars", "k": "rating", "t": "Overall" },
    { "id": "best", "k": "choice", "t": "What worked?", "o": ["The pace", "The examples", "The room", "The snacks"], "m": true },
    { "id": "better", "k": "input", "t": "What would make it better?", "h": "One thing is plenty" },
    { "id": "slides", "k": "link", "t": "Slides and notes", "u": "https://example.com/workshop" }
  ]
}

Answer values

Developers

Answers are not part of the card. They travel separately, one per person per block, each with a time stamp; the newest wins. Bots that answer cards, and anything reading a stored chat, see these values:

BlockAnswer value
button with respondThe button's label, exactly.
choiceAn array of option indexes from 0, sorted. One index unless m is true. An empty pick takes the answer back.
inputThe words, trimmed, at most 500 characters. Empty takes it back.
ratingA whole number from 1 to 5.
checklistNot an answer: each item has one shared state, ticked or not, set by whoever changed it last.
text, image, link, other buttonsTake no answers.

null takes an answer back. Only the card's sender can close it; a closed card takes no answers until it is opened again.

Params

Developers

p holds read-only values the card carries. Write {param:name} in the title or in any block's t, and the app shows the value. Text, numbers and true/false are filled in; a missing name or an object leaves the placeholder as it is. A script reads the same values as ctx.params. Names are 1 to 64 of A-Z a-z 0-9 _. Never put secrets in params: everyone in the chat holds them.

A card titled Welcome, Sam saying Your desk is in Room 4, with a Got it button
Params filled into the title and a text block.
{
  "v": 1,
  "id": "welcome",
  "title": "Welcome, {param:name}",
  "emoji": "👋",
  "accent": 4280138122,
  "p": { "name": "Sam", "room": "Room 4" },
  "blocks": [
    { "id": "where", "k": "text", "t": "Your desk is in **{param:room}**." },
    { "id": "ok", "k": "button", "t": "Got it", "a": "respond" }
  ]
}

When you send a card in a group with Add the group's info, the app adds two params:

{
  "me": { "id": "<your account id>", "name": "Alex" },
  "group": {
    "count": 3,
    "members": [
      { "id": "<account id>", "name": "Sam", "status": "At the gym", "online": true }
    ]
  }
}

A scripted card with bot slots gets "bots": { "slotName": "<bot account id>" } when it is sent.

Pictures, assets and sites

Developers

A card's own pictures go in image blocks as base64 (img). The app shrinks a picture to fit before it goes in. All the card's own pictures together, picture blocks and embedded assets, take at most 480 KB.

An image block can instead name a picture the phone already holds, with no bytes in the card:

{
  "v": 1,
  "id": "profile-card",
  "title": "Who's this?",
  "blocks": [
    { "id": "pic", "k": "image", "u": "avatar:sender", "t": "The sender's profile picture" },
    { "id": "guess", "k": "input", "t": "Say hello" }
  ]
}

Assets (as) are pictures a script draws by name. Each has an id (1 to 32 of A-Z a-z 0-9 _ -, not shared with a block id) and exactly one of img (base64, at most 160 KB) or url (an https:// address). A picture from a web address loads only after the person lets the card reach that site. One bad asset refuses the whole card.

"as": [
  { "id": "logo", "img": "iVBORw0KGgo…" },
  { "id": "map", "url": "https://tiles.example.com/map.png" }
],
"sites": ["api.example.com"]

Sites (sites) lists the hosts a scripted card reaches with ctx.fetch or for pictures. People see them, with a switch each, before they add the card. The hosts of web assets count too.

Community actions

Developers

A community action lets a scripted card call a web service with keys the person must never see. The card carries the action's definition; the community that sent the card runs it, filling in its secrets from its own locked store. The script calls it with ctx.bot(name, args), and the person allows bot:name first.

n
Required. The name ctx.bot uses: a small letter, then up to 31 small letters, digits or _. Unique in the card.
m
GET (default) or POST.
u
Required. An https:// address, at most 1,000 characters. The host is fixed: only the path, query and body may hold placeholders.
h
Headers, name to value. At most 16, each value at most 1,000 characters.
b
A body template for POST, at most 4,000 characters.
x
Hosts the community may reach for this action, at most 8. The action's own host is always added.
e
Names of secrets it reads from the community's env store, at most 8, like STOCK_KEY.
k
Key values, packaged by a community owner only. They move into the community's store on install and are stripped from the stored card. Don't put them in cards you share.

Placeholders: {arg:name} takes a value the card passes in args (escaped), and {env:NAME} takes a secret the community keeps. Install the actions on a bot from My cards with Install on a community bot, or on the server with isolink-relay bot card install <bot> <card.json>.

{
  "v": 1,
  "id": "stock-check",
  "title": "Stock check",
  "emoji": "📦",
  "accent": 4281244656,
  "blocks": [{ "id": "b1", "k": "text", "t": "Checks the shop's stock through the relay." }],
  "script": "card({ name: 'Stock check', permissions: ['bot:stock'] });\n\nfunction init() {\n  return { result: '' };\n}\n\non.check = (state, args, ctx) => {\n  const r = ctx.bot('stock', { sku: 'A-100' });\n  state.result = r.ok ? 'In stock: ' + r.json.count : 'Could not check: ' + (r.error || r.status);\n};\n\nfunction view(state) {\n  return column([text(state.result || 'Tap to check'), button('Check', 'check')]);\n}\n",
  "act": [
    {
      "n": "stock",
      "m": "POST",
      "u": "https://api.example.com/v1/stock/{arg:sku}",
      "h": { "Authorization": "Bearer {env:STOCK_KEY}" },
      "b": "{\"store\": \"main\"}",
      "e": ["STOCK_KEY"]
    }
  ]
}

A ctx.bot call only works in a one-to-one chat with the community bot that sent the card, and waits up to 20 seconds for an answer.

Scripted cards

Developers

A card with a script is drawn by the script, not by its blocks. Its blocks are what older versions of the app show, after a line of text the app keeps in a block with the id _fb: the card's fallback, at most 500 characters, or Update Isolink to use this card. The script can still draw the card's picture blocks by id.

A script may start with card({...}), the card's manifest: its name, and what it may use (sounds, the keyboard, sites, community bots, people's pictures, files), its players, rounds, bot slots and screens. Each person allows what it asks for before it runs. A scripted card can also ask for a file with an upload button; before the file goes into the chat, the app runs the card's action with a stand-in file, and if the card would turn it down, the person sees why and nothing is sent.

Everything about scripts, from the manifest to canvases, timers and screens, is in the Scripted cards reference.

Cards from community bots

Developers

A community bot can send cards: with a fixed reply (isolink-relay bot rule add … --card file.json), or from a language model with its card tools. The community accepts the long form below as well as the app's short form, checks the card as the app does, and fills in missing block ids. In the long form, accent may be a colour like "#6366F1", and an image block may name an https picture by url, which the community fetches and puts in the card.

{"title": "Wi-Fi", "emoji": "📶", "blocks": [
  {"type": "text", "text": "The password is **on the fridge**."},
  {"type": "choice", "id": "worked", "text": "Did it work?", "options": ["Yes", "No"]}
]}

When someone answers a bot's card, the bot hears it. A card a bot sends as a preview never reports answers. See Bots for rules that answer cards.

Codes, files and checks

Developers

Limits

Developers
WhatLimit
Blocks30 (plus the _fb block on a scripted card)
Card id, block id1 to 40 of A-Z a-z 0-9 _ -
Title80 characters
Emoji8 code points
text block2,000 characters
Other t, options, items, hints120 characters
Choice options2 to 12, all different
Checklist items1 to 30
Web address1,000 characters, http or https
Typed answer500 characters
Picture blocks3
One picture160 KB, JPEG, PNG, GIF or WebP
All the card's own pictures480 KB
Card JSON without pictures64 KB
Params8 KB as JSON
Assets, sites, community actions16, 16, 8
Script49,152 characters
Fallback text500 characters
My cards200 cards
Community card library768 KB a card; 50 cards an account and 2,000 in all by default (cards_per_account, cards_total)