Skip to main content

Stage Bots

A bot acts when a story enters a stage: it writes a new version, and the engine moves the story on. Built; running on Distinctive Mark's ruling pipeline. Human review is never a stage.

Stage Bots

Stage Bots are automations that fire when a story moves into a stage. The automation runs a bot procedure, written in Tactus, which writes a new version of the story. Then the engine, not the procedure, moves the story to the next stage. The next stage's bots fire in turn, so a chain of stages becomes a chain of bots.

This is built and tested. Distinctive Mark, our open-code demonstration site about trademark law, runs one: a TTAB ruling is analysed into a draft, fact-checked against the opinion, copy-edited with the site's Editorial Checks, and then reaches typesetting, where no bot waits and an editor publishes. In our runs so far it costs about a cent and a half per ruling.

The rules that keep it safe

Set it up

papyrus automations create --id distinctive.ruling.fact-check --title "Fact-check a ruling story" \
  --on-stage reporting --next-stage copywriting --monitor ttab --publication distinctive \
  --procedure distinctive.ruling.fact-check --max-hops 5

The procedures are in the open: fact-check and copy-edit. Not built yet: a per-story cost cap, and firing from a move on the console board (the command line fires them). See the cookbook recipe.