Skip to content

Read and answer an agent's cards

An agent can answer with a card instead of plain text. A card is one bubble headed by the agent’s face and the card’s title, with parts laid out inside it, such as steps with their state, a table, a chart, pictures, buttons or a poll. Everyone in the chat sees the same card, and when someone taps it, everyone sees what changed.

Ask for one in your own words, such as “Show the export status as a card”. Agents are also told to show anything visual as a card, never as text art. Only an agent posts a card. A person answers it.

A card is not an ask. When an agent wants a tool approved or needs you to sign in, it shows an ask, which Answer what an agent asks covers.

  • In a chat. The card is a post like any other. The post also holds the card in words, which is what search, summaries, the other agents in a group chat and Slack read.
  • On a task’s page. Each card the shown session posted sits among what the agent said, in the order it posted them. Only a person who can see the task reads its cards. A task’s card takes no taps yet.
  • In a Slack thread. The card shows as a Slack message whose counts stay current as people tap the card in the app. Talk to agents from Slack covers it.
Kind Parts What you see
Layout Column, Row, Tabs, Divider, Footer Parts stacked or side by side, tabs, a hairline, and a footer with a summary line beside the card’s buttons. A Row stacks on a narrow card.
Words Text, List, Icon, Link A title, body, quiet or code line, a bulleted or numbered list, one of a set of icons, and a link that opens a web page in a new tab.
Status Status, Progress, Table, Chart A step’s state (done, running, waiting, failed or not started), a job’s steps with each one’s time over a flat bar, a table of results with a check or a cross on each row, and flat bar charts.
Media Picture, Video, Audio Pictures, videos and sound files sent in the card’s own chat or task.
Taps Button, Choice, SignOff, Item, Popup Buttons, polls and decisions, sign-offs, a row of its own with its own buttons, and a quiet button that opens more.
Questions CheckBox, TextField, DateTimeInput, Slider Rows to tick, suggested answers or your own words, suggested times or one you pick, and five stops on a scale.
Attempts Attempts A task’s attempts side by side, each with its screen and Pick. Only Agents posts this one.

At most one button on a card is dark, the main action. Every other button is quiet and still takes taps. Long words wrap inside the card.

  • A decision settles at the first tap for everyone, such as Pick across a task’s attempts. The button then shows who settled it, “By Mara” or “By you”, and the agent hears it at once. A later tap is refused, and the card’s foot says why, such as “Mara picked first, so your pick did not count.”
  • A press button counts each tap and wakes the agent each time.

A tapped button reads Sending… until the server answers, and the part takes no other tap meanwhile. A screen reader hears what it is sending.

  • A poll is a Choice where each person holds their own pick. Each option shows its count, its share of the picks as a flat bar, and who picked it, such as “Mara, Dev, you”.
  • A sign-off turns each person on or off, and reads “Mara and you” or “Nobody yet”.

Votes and sign-offs don’t wake the agent. It reads the tally on its next turn in that chat, whoever starts it.

The card’s foot sums up the picks for you, such as “You and Dev picked the same plan.” or “2 of 3 people voted. Closes in 20 min.”

A poll or a sign-off can close at a time the agent sets, at most 30 days out. After that, a tap is refused with when it closed, and the card shows the winner, such as “Lisbon, with 3 of 5 votes.”, with every option, count and name behind Show every vote. Within a minute of the close, the agent of a card in a DM gets one turn with the final tally. A card in a group chat wakes nobody at its close.

Four parts ask you something you answer in one tap or a few words. Each answer wakes the agent with what you answered. The first answer settles the part for everyone, except a slider, which each tap sets again.

  • Rows to tick. The agent’s own picks start ticked. One button sends them and counts them, such as Rerun 2 checks.
  • Your own words. Tap a suggested answer, or Write my own. That puts “Answering fixer: What should the project be called?” over the chat’s message box, and your next send answers the card and posts your words as your own post. Stop answering gives the box back.
  • A time. Tap a suggested time, shown in your own time zone with why it suits. Another time opens a picker of the next 7 days and their hours.
  • A scale. Five stops on a flat track. It shows the agent’s guess until someone answers.

Words you write are scrubbed of secrets before they are kept, posted or sent to the agent.

An Item is one thing in a list as a row of its own, such as a review finding with its file and line under its name. Fix and Skip decide that row for everyone at the first tap, and the row then reads “Mara picked Fix”, or “You picked Fix”, in place of its buttons. Explain asks the agent at each tap and decides nothing.

A status card can carry Watch and Stop. The app carries them out at once, and the agent gets no message.

  • Watch opens the live screen of the agent’s newest session in that chat, in the panel beside it, if the screen’s own rule lets you watch it. If not, the card says why, such as “This screen has shown work you can’t see.”
  • Stop stops the agent’s running turn and keeps the work so far. The card reads “Stopped by you”, or your name for everyone else. When the agent isn’t working, the card says so, such as “fixer is not working now.”

A card holding a picture, a video or parts side by side offers Open full size. It opens the card in a view of its own inside the app, which fills the window on a phone. Each picture there has Open in browser, which opens the file in a new tab. Buttons, polls and sign-offs take taps there too.

A Popup is a quiet button that opens what it holds in the same view. Close or Escape closes it and puts your focus back on the button.

Nothing plays on its own. The play mark plays and pauses, and a tap on the track jumps to that point. The track fills only while the file plays. A file that is gone, or one the browser won’t play, says why under its label.

Read the agent’s state from the card’s head

Section titled “Read the agent’s state from the card’s head”

The agent’s face heads each card with the same dot the chat’s header uses.

  • Amber while the card asks you something you can still answer.
  • Green on the agent’s newest card while the agent works.
  • Idle on every other card.

A screen reader reads it as “Waiting on you”, “Working” or “Idle”.

An agent can change a card it posted. The post keeps its place and shows no Edited mark, and every open chat draws the new card without a reload. A tap carries over only on a part that reads the same. A poll, sign-off or decision whose words, options or rule changed starts again with no picks, and a tap made on the old version is refused.

A card is at most 64 KB, with 200 parts, 500 drawn parts, 12 columns a table and 65,536 characters. Its parts nest at most 12 deep, such as a Column in a Row in a Column, and its data nests objects and lists at most 20 deep. A card that breaks a rule goes back to the agent with each problem in the same turn, and nothing is posted. Ask for something a card can’t hold and the agent says so in words.

A tap is a person’s, since it puts a name on a decision, so agents have no tool for it. bin/agentsctl api taps as a person through the same route the app uses:

Terminal window
bin/agentsctl api POST "/v1/messages/<post id>/taps" --as person \
--body '{"control":"<id>","row":null,"seen":"<seen>","clientId":"<key>"}'

seen is how the part read where it was tapped. A tap whose seen no longer matches is refused with 409, naming what the part reads as now. An answer to a question part adds answer, such as {"kind":"value","value":5} for a scale.