Skip to main content

Add a human review step

A review step pauses an Unstract Flow run and puts the workflow's findings in front of a person. The way you write it in the spec decides what the reviewer sees, what they can correct, and which buttons the ticket offers.

Write the review​

In the step that needs a person, mention @hitl and name three things:

  • What the reviewer sees. List the values, for example the vendor, the invoice number, the line items and the total.
  • What the reviewer may correct. Name each field. A field the workflow couldn't fill goes out empty, and the ticket asks the reviewer to supply it.
  • What each answer leads to. Say what happens after an approval and after a rejection.

Send each invoice over $10,000 to @hitl for review. Show the vendor, the invoice number, the line items and the total. Let the reviewer correct the vendor and the total. If the reviewer approves, post the invoice. If they reject it, reply to the sender that the invoice was declined, and record the reviewer's note.

When the reviewer only decides and corrects nothing, write that the review is decision-only.

Approve and reject, or resolve​

A ticket offers Approve & Next and Reject & Next when the workflow acts on the decision: every path after the review checks whether it was approved, before the next review or the end of the run. A spec that says nothing about a rejection produces a ticket with a single Resolve & Next button, and the review only corrects values.

What comes back to the workflow​

  • A value the reviewer corrects keeps its type: a number field takes only a number.
  • In a table, every value in a row the reviewer adds comes back as text, and a number cell the reviewer clears comes back as empty text. When the workflow adds up or compares those values, say in the spec how to read them and what to do when one doesn't read as a number.
  • A value the reviewer types into an empty field comes back as text. When the workflow needs a number or a date there, say in the spec how to read it and what to do when it doesn't read.
  • A cleared number field comes back empty, and a cleared text field comes back as empty text. Say in the spec what to do when a corrected field is empty; otherwise the run may go on with the empty value.
  • A rejection sends the note and none of the corrections.
  • A field the reviewer leaves as it was keeps the value the workflow found.
  • A list of records with the same fields appears as a table the reviewer can edit, add rows to, and delete rows from. An empty list appears as a plain field, so when the reviewer may need to add records, have the workflow send at least one.
  • When the spec keys corrections by item, such as a claim number, the ticket shows one record of fields per item. A record the reviewer touched comes back whole, the fields left alone with the values they were shown; a record the reviewer didn't touch isn't sent back, and the workflow keeps the values it holds for it.

The ticket's queue, title and description, and the Throttle and Info only, no stop settings, live in the review step's settings. Below 100%, Throttle approves some reviews automatically, and the approval branch runs with no one checking. The first review after you prepare a changed spec always creates a ticket, and every pass of a loop counts toward the same share. With Info only, no stop on, the ticket is only a record: the run carries on as approved at once, and the ticket offers Mark as seen & Next. Keep it at 100% for a review that must always be seen. Human review covers them and the reviewer's side.

Add the run's values to the ticket​

The review step's settings also offer Visible Variables (read-only context) and Editable Variables (reviewer can modify). Each lists the values the workflow records before that review, such as an extracted field or a total, and the ticket adds the ones you pick to what the spec shows:

  • A visible pick appears on the ticket for the reviewer to read.
  • An editable pick appears as a field the reviewer can correct, and the correction reaches the rest of the run. Editable Variables lists only the values the workflow applies on every path after that review. Any other value saved earlier appears read-only on the ticket. A value the workflow already shows in that review stays read-only too, and the list says so. A value recorded per loop item isn't listed. To correct another value the list leaves out, say in the spec that the rest of the workflow uses the corrected value, then prepare the workflow again.
  • When the spec already shows or offers a value of the same name, the spec's value is the one on the ticket.
  • A value longer than about 1,200 characters is cut short in the run's views. A visible pick of that length appears cut short on the ticket. An editable pick appears whole, so the reviewer corrects the full value, up to about 260,000 characters; a longer one appears cut short and can't be corrected. In a workflow prepared before Flow kept whole values, an editable pick over 1,200 characters appears cut short and can't be corrected; prepare it again.
  • A value the run hasn't recorded by the time the review opens is left off the ticket. If Flow can't read the run's values when the review opens, the ticket says so above its read-only values, and it names any value shown cut short.

The settings belong to the review connector instance, so the picks apply to every review that uses it. A workflow prepared before Flow recorded these values lists none; prepare it again.