Skip to content

ActionDraft

Stable

The draft an AI proposes, edited in place, confirmed by the person, then shown as progress.

Also known as action preview, draft action, prepared action

Install with npm install @tattva/ui (setup), or copy the code from the kit in Downloads.

Draft with an edited field

Buy 10 RELIANCE at market

Draft

Drafted from your message. Check it before you confirm.

Quantity
10 shares

Order type

Market

Margin needed
29,455.00
Charges
41.20

Nothing happens until you confirm.

Press Edit on Quantity, change it and press Done. The Edited tag appears. Enter 0 to see Confirm lock.

When to use it

Keeps a person in charge of an action an AI prepared: they read it, fix it and decide.

Made of: Title and status · Summary · Fields with Edit buttons · Computed rows · Steps · Result or error · Note · Confirm and discard buttons

Use it for

  • An order the AI drafted from a message.
  • Any action with values the person may want to change before it runs.
  • Showing progress and the result in the same place the person confirmed.

Not for

Do and avoid

Buy 10 RELIANCE at market

Draft

Drafted from your message. Check it before you confirm.

Quantity
10 shares

Margin needed
29,455.00

Nothing happens until you confirm.

Do. The person reads, fixes and confirms. Nothing happens before that.

Buy 10 RELIANCE at market

Done

Placed for you as soon as you asked.

Quantity

10 shares

Order filled at 2,945.50.

Done.

Avoid. The AI confirmed by itself, so nobody checked the order first.

Do

  • Show the facts the app worked out in rows so the person sees them first.
  • Move status to confirming while you wait for the app to accept the press.
  • Put OrderTicket inside it when the AI drafted an order.
  • Show the result in words when done.

Avoid

  • Do not confirm for the person, even behind a setting.
  • Do not let the AI write dates, deadlines or amounts into fields. Code computes them.
  • Do not make the discard button small or hidden.
  • Do not remove the sentence that nothing happens until they confirm.

On a phone

  • The card fills the width of its container up to 430px, and Confirm and Not now sit side by side as two 48px buttons on touch screens.
  • Editable fields open as inline inputs and use the decimal keypad for number fields.
  • Put the card where the on-screen keyboard will not hide Confirm, for example by letting the page scroll.

Build your next AI screen with Tattva.

Free and open, with the code. Start in one line.

Get started