Skip to content
Tibor Šeděnka

What your agent sees

working example, no model, nothing leaves the page

This form is shown twice: as you see it, and as your agent reads it. Your agent’s reading is the snapshot of the form that the page gives an agent, written out in sentences. Beside each field, a switch keeps that field from your agent. The booking is pretend.

Try:Keep the day and the time from your agent first, and see what it’s told. Your agent is filling in the form.

Day

Time

Seats

What your agent reads

Written from that snapshot, as you change the form:

With JavaScript on, an agent reading this form’s snapshot gets the lines below, which the page wrote when it was built, from the form’s own definition; and a switch beside each field keeps that field from your agent.

  1. Name: a text field, empty.
  2. Day: one of Fri, Sat or Sun, none chosen.
  3. Time: one of 18:00, 19:30 or 21:00, none chosen.
  4. Seats: 2, of 2, 4 or 6.
  5. By the window: a switch, off.
  6. Note for the kitchen: a text field, empty.
  7. Book the table: a button that needs you. Before it tries, your agent reads “Books a table for 2. The booking is pretend: nothing is sent.”

You keep nothing from your agent yet.

How it works

A field you type in reads “[redacted]” once you keep it: your agent knows the field is there, not what you wrote, and is told to ask you if it tries to change it. A choice you keep leaves its reading altogether; if your agent names it anyway, it’s told to ask you.

Book the table needs you whatever you keep: your agent reads its sentence before it tries. The sentence leaves out what you keep, or it would give it away.

Let an agent try runs a pretend agent, a script on this page, the way a real agent would act. It can change any field you don’t keep; at one you keep, it’s told to ask you. Book the table stays yours, and the page lends the form to no other agent.

The switches keep a field from an agent that reads the form’s snapshot. An agent that reads your screen, or the page’s code, sees what you see.

Two hands keeps a record of which changes were your agent’s, and takes them back in one press. No model is involved, and nothing you put in the form leaves your browser.