For Agents
Designing requests people answer in seconds.
What a good request is
A Taskriz request is a small native screen your Agent sends to a person. The best ones have one clear task, show only what’s needed to do it, and take a tap or two to answer — on a phone, a laptop, wherever the person is. If it would be a form you’d skim past, make it shorter.
Principles
Taskriz requests follow world-leading human interface guidelines, so they feel familiar at first glance.
- Name the task in the title — “Approve invoice #4567”, not “Request”. Put what they need to know first.
- Choices over typing. A choice of two to five is a segmented control; more is a pop-up; yes/no is a switch; a date is a date picker. Prefill sensible defaults.
- Group related fields in an inset grouped list, with a header naming the group.
- One main button, labelled with a verb — “Approve”, “Book”, “Send” — not “OK”. Other choices are plain buttons.
- Ask only what you need. No scrolling forms; one request per decision.
- Use importance sparingly. High is for things that can’t wait.
The building blocks
These are the building blocks most requests need; get_ui_guide has every one. You read what the person chose from the control when they tap a button.
| Building block | For | Read |
|---|---|---|
SegmentedControlMorph | A choice of 2–5 (Window · Middle · Aisle) | selected |
PopUpButtonMorph | A choice from more options | selected |
SwitchMorph | Yes / no, on / off | on |
StepperMorph | A small number in a range (quantities) | value |
SliderMorph | A value in a range | value |
DatePickerMorph | A date, a time, or both | value (ISO 8601) |
TextFieldMorph | One line of text (with keyboards for email, numbers, phone…) | value |
TextViewMorph | Several lines of text | value |
PhotoPickerMorph | A photo — chosen or taken on the spot | files |
DocumentPickerMorph | A document (PDF, Word…) | files |
CollectionViewMorph | A grid to choose from — pictures, cards (tapped cells show a checkmark) | selected (0-based) |
ListMorph | A form or table — group related fields (style: #insetGrouped) | — |
LabelMorph | Text: what they need to know (text styles: #headline, #footnote…) | — |
ImageMorph | A picture or symbol (always give alt:) | — |
ButtonMorph | The action — one primary (filled), others style: #plain | — |
See every building block and its options, live, in the Morph catalog.
Worked examples
These are the requests in the live demo on For Developers: real, and tested. Each asks a person outside the business: a customer, a tenant, a contractor or a supplier.
Change an appointment
A customer who can’t make it: the days that work, the times as a segmented choice, and another doctor if that suits better. Cancelling is the plain alternative.
| day time doctor |
day := DatePickerMorph new label: 'Day'; mode: #date; value: '2026-11-05'; min: '2026-11-04'; max: '2026-11-06'.
time := SegmentedControlMorph new label: 'Time'; segments: #('9:15' '11:40' '14:20'); selected: '11:40'.
doctor := SegmentedControlMorph new label: 'Doctor'; segments: #('Dr Chen' 'Any doctor'); selected: 'Dr Chen'.
ScreenMorph new title: 'Change Your Appointment';
addMorph: (LabelMorph new text: 'You can’t make Tuesday at 10:30am with Dr Chen. Pick a new time, or see another doctor sooner.');
addMorph: (ListMorph new style: #insetGrouped; addMorph: day; addMorph: time; addMorph: doctor; yourself);
addMorph: (ButtonMorph new label: 'Book New Time'; onClick: [Taskriz current reply: #{ #day -> day value. #time -> time selected. #doctor -> doctor selected }]);
addMorph: (ButtonMorph new label: 'Cancel Appointment'; style: #plain; onClick: [Taskriz current reply: #{ #decision -> 'cancel' }]);
yourself
Approve a quote
A decision with the facts in a grouped list, when to start and an optional note: the main action filled, the alternative plain.
| start note |
start := SegmentedControlMorph new label: 'Start'; segments: #('This week' 'Next week'); selected: 'This week'.
note := TextFieldMorph new label: 'Note'; placeholder: 'Optional'.
ScreenMorph new title: 'Quote #1182';
addMorph: (LabelMorph new text: 'Bayside Plumbing’s quote to replace the hot water system at 12 Smith St.');
addMorph: (ListMorph new style: #insetGrouped; header: 'Quote';
addMorph: (TextFieldMorph new label: 'Job'; value: '250 litre electric, installed');
addMorph: (TextFieldMorph new label: 'Total'; value: '$2,480.00');
addMorph: (TextFieldMorph new label: 'Valid until'; value: 'Friday, Nov 13'); yourself);
addMorph: (ListMorph new style: #insetGrouped; addMorph: start; addMorph: note; yourself);
addMorph: (ButtonMorph new label: 'Approve Quote'; onClick: [Taskriz current reply: #{ #decision -> 'approve'. #start -> start selected. #note -> note value }]);
addMorph: (ButtonMorph new label: 'Ask a Question'; style: #plain; onClick: [Taskriz current reply: #{ #decision -> 'question'. #note -> note value }]);
yourself
Get a photo and access details
Ask for a file with a picker, never a link or a file path, and the access details as a segmented choice.
| photo access |
photo := PhotoPickerMorph new label: 'Photos'.
access := SegmentedControlMorph new label: 'Access'; segments: #('Lockbox' 'I’ll be home' 'Call me'); selected: 'Lockbox'.
ScreenMorph new title: 'Leaking Tap';
addMorph: (LabelMorph new text: 'Thanks for reporting the leaking tap at 4/18 Ocean Rd. Add a photo so the plumber brings the right parts, and tell us how they can get in.');
addMorph: (ListMorph new style: #insetGrouped; addMorph: photo; addMorph: access; yourself);
addMorph: (ButtonMorph new label: 'Send'; onClick: [photo files isEmpty ifFalse: [Taskriz current reply: #{ #photos -> photo files. #access -> access selected }]]);
yourself
Confirm a finished job
A contractor’s evidence: Job Complete waits for a photo, a switch says whether another visit is needed, and a plain button says it isn’t finished yet.
| photo visit note |
photo := PhotoPickerMorph new label: 'Photo of the finished work'.
visit := SwitchMorph new label: 'Another visit needed'.
note := TextFieldMorph new label: 'Note'; placeholder: 'Optional'.
ScreenMorph new title: 'Job #3307';
addMorph: (LabelMorph new text: 'Switchboard upgrade at 4/18 Ocean Rd. Confirm it’s done with a photo of the finished work.');
addMorph: (ListMorph new style: #insetGrouped; addMorph: photo; addMorph: visit; addMorph: note; yourself);
addMorph: (ButtonMorph new label: 'Job Complete'; onClick: [photo files isEmpty ifFalse: [Taskriz current reply: #{ #photo -> photo files. #anotherVisit -> visit on. #note -> note value }]]);
addMorph: (ButtonMorph new label: 'Not Finished Yet'; style: #plain; onClick: [Taskriz current reply: #{ #decision -> 'not finished'. #note -> note value }]);
yourself
Confirm a delivery
A supplier’s answer: a date picker limited to the days that work, a delivery window, and a stepper for the quantity.
| day slot pallets |
day := DatePickerMorph new label: 'Day'; mode: #date; value: '2026-11-04'; min: '2026-11-03'; max: '2026-11-06'.
slot := SegmentedControlMorph new label: 'Window'; segments: #('Morning' 'Midday' 'Afternoon'); selected: 'Morning'.
pallets := StepperMorph new label: 'Pallets'; min: 1 max: 12 value: 4.
ScreenMorph new title: 'Order #5521';
addMorph: (LabelMorph new text: 'When will order #5521 (tiles and adhesive) arrive at the Carlton site, and on how many pallets?');
addMorph: (ListMorph new style: #insetGrouped; addMorph: day; addMorph: slot; addMorph: pallets; yourself);
addMorph: (ButtonMorph new label: 'Confirm Delivery'; onClick: [Taskriz current reply: #{ #day -> day value. #window -> slot selected. #pallets -> pallets value }]);
addMorph: (ButtonMorph new label: 'Can’t Deliver This Week'; style: #plain; onClick: [Taskriz current reply: #{ #decision -> 'later' }]);
yourself
Designing the answer
A button sends the answer with Taskriz current reply: #{ … }. Shape it as the data your Agent wants to read: it arrives as JSON in the event’s reply — #{ #decision -> 'approve'. #note -> note value } becomes {"decision": "approve", "note": "…"}. Use clear keys, one answer per button, and put a picker’s files straight in (each arrives as {id, name, type, size}).
Testing
Before sending, run the interface with check_ui: it runs in the real Taskriz runtime and returns the error, or a text preview of what the person will see. The plugins check every request before sending it; on the API, test your interfaces with check_ui before you ship them.
Threads and follow-ups
Requests that share a correlationId are one thread for the person: ask a follow-up on the same thread and they see the conversation together. A request can allow one answer (the default) or several (replies: multiple). Sent the wrong thing? Recall it.
Respecting people
- Your Agent reaches people it sends a request to by email — someone without a Taskriz account opens it from the link with one tap, no app and no account (a one-time code on another device, or with
verifyfor a sensitive request) — and people who have paired with it, by scanning its QR code with their phone’s camera, by a code they enter, or by accepting an invitation. Scanning fills in the code; pairing still waits for them to tap Pair. Share a QR code or pairing code only with the person it’s meant for: each lasts 15 minutes and works once. - An invitation email never shows the request itself. If they choose Decline, no Agent in your account can invite them again — tell the person you’re helping, and don’t look for a way round it.
- People can unpair at any time, and choose how they’re notified. Ask when it matters; don’t over-ask.
The request catalog
Give people actions they can start themselves — “Report a problem”, “Request a statement”. Keep labels short and specific (up to 60 characters), add a one-line description, and answer the initiate event with a request that collects what you need. How many actions an Agent can offer follows your plan: Free plans include 2 actions per Agent, Builder 10 and Business 50 (see Pricing). Docs shows how to set them.
Next: Docs — the API, the plugins and the MCP tools.