Recipes: Chain Automations into One Flow

A recipe connects several pieces of work — automations, scripts, document processing, bulk uploads, and human review — into one flow that runs step by step. Use a single automation for one routine, a batch to run one automation over many records at once, and a recipe when several routines must happen in order, with decisions and check-points between them. A recipe can itself contain a batch step, so the two compose.

Naming note: saved pipelines in Document Preparation are also called "recipes" — those process files. The Recipes described here live in the sidebar under Recipes and orchestrate whole flows (and can include a document-processing step).


The Recipe's Page

A recipe's page has five tabs:

  • Run — start a run and follow it step by step. The page opens here when the recipe can run.
  • Design — the steps, from top to bottom. The page opens here when the recipe cannot run yet, and lists why above the tabs.
  • Runs — the recipe's runs, newest first, with the log of the run you choose. Needs help, Failed and Running show only those runs.
  • Settings — name, description, Stop a run after, One runner for the whole run, Test my models first and When it runs.
  • Tests — the recipe's tests and their results on each computer (see Testing a recipe).

Check is at the top of every tab.

Building a Recipe

  1. Open Recipes → New Recipe, give it a name and description, and click Create & design
  2. You land on the Design tab, ready to edit. Add the Start step first.
  3. Press the + between two steps (or under the last one) to add a step there. A list of steps opens, in groups, with a search box. Some steps then ask you to choose something: the Automation, the template, the capability or the Recipe they work with.
  4. A Decision put between two steps starts with two empty branches, side by side, that meet again at the next step. Put steps in a branch with the + at its top, and add more branches with Add a branch. Each branch says at its top when it is taken; one branch can be left as the default (Otherwise). On a phone the branches sit in a row you scroll sideways. A Decision added after the last step starts with two branches that meet at a new End. The + under the branches adds a step that comes after all of them. End is offered only where it does not cut a step off from the rest of the recipe.
  5. Tap a step to open its options. Move up and Move down swap it with its neighbour; Remove step takes it out and joins the steps before and after it. A Decision can be removed once it has one branch left.
  6. Click Save — "Saved ✓ — runnable" or "Saved — not runnable yet:" with the exact reasons. Done saves and leaves editing; Cancel leaves without saving.

Step Types

StepWhat it does
Start / EndEvery recipe has exactly one Start and at least one End. Tick This recipe is handed its instances when it starts on the Start step when whoever runs the recipe supplies the records — a recipe started with records but without that box ticked is refused. Tick This recipe is handed one item when it starts instead when the recipe works on one template, instance, notebook or media item, chosen when it runs (see Running a Recipe on an item). Tick This recipe is handed notebooks when it starts when it works on one or more of your notebooks (see Running a Recipe on notebooks). Only one of the three boxes can be ticked. + run parameter adds a question the recipe asks each time it runs: Text (typed), Checkbox (ticked or not; a Decision tests it as true or false) or Template (one of your templates, chosen from a list). A run parameter also reaches the Script and Automation steps: a script parameter with the same name gets its value (Pay mode fills PAY_MODE), and so does an automation input with the same name when the step before does not pass one.
TaskRuns one of your Scripts or Automations
InstancesSelects instances that already exist — by template, name mask (INV-2026-*), when they were created or last changed, and status — and passes them to the next step. A count beside the step shows what it matches right now. Name instance ids under except to leave those out.
BatchRuns an Automation over every record on the step's input (a checkbox on any Automation task)
same browser as the step beforeA checkbox on any Automation task: the automation runs in the browser the step before used, on the page it left and with the sites it signed in to. Without it, each automation has its own browser and its own sign-ins
Doc PrepRuns one of your document-processing pipelines over files you pick at run time
Bulk UploadUploads the incoming files as new records on a published form template
DecisionBranches the flow (at least two ways out). Each branch has its condition at its top: a step's result, how to compare it, and the value. At least one branch needs a condition; at most one is the default.
WaitPauses for human review — choose who reviews the step: you, or a person who already owns, fills or uses one of the recipe's forms
CapabilityAsks one of your capabilities, or one of Nocarta's, about the one instance or item it receives, and passes the answer on. It changes nothing by itself. Optional boxes: page (which page to read), with page (shown for Compare and Locate, which read two pages of the instance: the second page; left blank, they read page 1 and page 2), Of (shown for Count: what to count, in words, for example ticked checkboxes; Count needs it), text (a text to read instead of the item's own; for one of your capabilities that reads a picture, the text is added to its question as context, and the picture is still read), region (the part of the page a picture capability reads: 8 numbers from 0 to 1, the x and y of its four corners as fractions of the page, separated by spaces or commas — 0 0 0.5 0 0.5 0.5 0 0.5 is the top-left quarter; left blank, the step reads the region the run was handed, else the whole page), field (the field a Write fields step puts the answer in), model (the name of the model that answers for this step only, for example Handstand, Mistral AI's model, or the name of one of your own models; left blank, the model chosen in Settings answers; a name that answers nothing stops the run and lists the names that do) and words from (an earlier step whose answer this capability reads with — Doc. structure, for example, spells the words it finds as that answer spells them).
Write fieldsPuts the answer of the step before it into the field named on that step
ParallelAsks two or more capabilities about the same item at the same time. Pick each capability in the step's options; + capability adds one. Each capability has its own region box, which works as on the Capability step. The next step starts when all of them have answered. If one fails, the run fails.
Build fieldsMakes a template's fields from what the capability steps before it read on the template's page: Field detection, Doc. structure, Text, Image or Mistral reader. Page text from chooses which reading becomes the page's text (Text when left at its default). Works only on a template.
Fill fieldsWrites what a Field reading step read on an instance's photo into that instance's fields. Works only on an instance.
Split on spoken wordsCuts the recording it is handed into pieces at spoken marker words (one per line; here unless you change it), stopping at its end words, and makes one instance per piece of the template you choose, or of a new template named after the recording. Each piece's words go into the field you name.
Cut framesGives each instance a Split on spoken words step made the frame of the video at its marker, as the instance's image. The frame is the sharpest one from the moment you held the camera still around the marker word, so say the marker while the page is steady in view; when the camera never stays still there, it is the sharpest one in the second after the word.
each piece becomes (a setting of Split on spoken words)an instance of its own (the default) makes one instance per piece. a page of one instance for the whole recording makes one instance, named after the recording, and a Cut frames step after it gives that instance one page per piece, in the order they were spoken — a book filmed page by page, saying page at each one, becomes one instance with one page per page of the book. Run the Recipe on the next video with the same template chosen and that video adds one more instance. Cut clips needs an instance per piece, so it cannot follow this setting.
seconds before a marker counts again (a setting of Split on spoken words)Speech to text sometimes hears a marker twice in a row. A marker heard again less than this many seconds after the previous one counts as a repeat: it starts no new piece, so it makes no extra instance or page. Empty means 1.5 seconds; 0 keeps every marker. To choose it each time you run the Recipe, add a run parameter named Marker gap on Start.
Read page textExtracts the text of every page of every instance on its input and waits until every page has its text. Text read before the step started does not count. If the text of a page cannot be read, the run stops and names that page.
Convert recordings, Sync recordings, Compose video, Export cut listThe steps of a shoot filmed with several recordings, for a recipe whose Start is handed recordings. The run panel converts every video on your device before the run starts, and Convert recordings checks them; the first recording is the main one. Say cut camera NAME during the take to change the picture to that camera (its number or its recording's name), dissolve camera NAME to fade to it, and add with OTHER for a second camera in a corner or beside OTHER for two side by side. Sync recordings lines the recordings up from the commands and the sound; a recording it cannot line up takes an offset typed in Recording offsets (2 +1.250). Compose video makes one video: the main recording's sound with the commands silent, the picture following the camera cuts. Export cut list writes it as FCPXML, EDL and OpenTimelineIO files for another video editor. On the template's master recording, the Cut to camera buttons add cuts, and Render preview and Render full size make the video again.
Read recording commands, Create template and instances, Cut clipsThe three steps of a recording narrated with commands (start recording … action … cut NAME … stop), in this order: they read the commands, make a new template with one instance per slice, and give each instance its video clip, its frame at 1 second and the clip's own transcript. After a Split on spoken words step, Cut clips gives each piece's instance the clip of the video from its marker to the next one, with the clip's own transcript; the instance's image stays the one Cut frames made.
For each instanceRuns another Recipe once on every instance on its input, all at the same time — Nocarta's Fill from photo, for example, fills each instance from its own image. Choose the Recipe when you add the step: one of yours or of Nocarta's that is handed one item or instances and needs no Nocarta Desktop. The next step starts when every run has ended. If one fails, the run fails, naming the instance.
Name frames by fieldCuts the video of the one instance it receives at spoken markers (here unless you change it). The first words after each marker must be one of the form's field names (here: license plate). A Cut frames step after it gives each named frame to the instance as an image, and a Read named frames step reads each field from its frame. A name that matches no field stops the run, listing what was heard and the form's fields.
Read named framesReads each field a Name frames by field step named from its own frame, all at the same time, and passes the values to a Write fields step.
Copy notebook to templateMakes each notebook the recipe is handed into a new instance of a template, named after the notebook, with the notebook's pages and their text, its recordings and documents, and the values of the fields whose names the template also has. The template is a Template run parameter on Start, chosen when the recipe runs. The notebook stays as it was. If one notebook cannot be copied, none is, and the run stops naming the reason.
Delete notebookDeletes the notebooks a Copy notebook to template step before it copied, and only those. Put a Decision before it to delete only when you ask for it.
Then run the Recipe namedLooks in the instance's recording for then run recipe and the name said after it, and runs the Recipe with that name, one of yours or of Nocarta's, on the same instance. Say the name as the Recipe is called: a name that matches no Recipe stops the run, listing what was heard. When the recording does not say it, the step does nothing.

Rules a recipe must meet before it can run: one Start, at least one reachable End, every step reachable, no loops — recipes flow forward only. Steps the Start does not lead to are listed under Not connected to Start.


Running a Recipe

A recipe's Task steps run on a computer. With this page open in Nocarta Desktop, they run there. From any other browser, they run on your Nocarta Desktop when it is connected, else on a Nocarta Runner started for the run. Every step of one run goes where its first step ran, unless you clear One runner for the whole run on the recipe's Settings tab. On a Nocarta Runner a run stops after at most 60 minutes. A Nocarta Runner costs 1 credit per started 5 minutes of work. With One runner for the whole run, the runner is kept from the first step to the end of the run, and all of that time is billed, waiting included; the run's time limit then counts the waiting too, so it is also the most the run can cost. Run asks you to confirm this first. New recipes start with the box ticked or not as set in Connections → Remote Execution → Remote Dispatch. A recipe with a Batch, Doc Prep or Bulk Upload step, or a step that needs your vault unlocked, runs only in the desktop app; from another browser, Run says which step. The thinking and bookkeeping happen on the server.

Where a Recipe runs

The top of each Recipe's page says where it runs; Why? tells you which steps decide it.

  • Runs on Nocarta: every step runs on Nocarta's servers. Start it from any browser or phone; you can close the page.
  • Runs in your browser: its Automation steps are browser Automations, and they run in the page that shows the run. No Desktop App is needed, so it works on a phone too. Keep that page open until the run finishes.
  • Desktop App required (local or remote): a step runs a Script, an Automation that drives a web browser or Windows programs, a batch, or works with files on a computer. It runs on the Desktop App on your computer when it is connected, otherwise on a Nocarta Runner; credits may be required.

Test my models first

A recipe whose Capability steps are answered by your own models can test those models before the first step. Set Test my models first on the recipe's Settings tab:

  • No: the run starts at once.
  • Yes, and stop the run if one fails: the run stops before any step and its error names the model and why, for example Model test: test-ocr (Images): answered “3”.
  • Yes, and run anyway: the run goes on, and its log keeps the failed tests.

Each model is tested like Test Connection does it (see Models), for what the recipe sends it, on the Nocarta Desktop it runs on. The log shows the test as the step _model_check. The test uses the models chosen in Settings; a model a template chooses for its own documents, and a model an automation step asks with ask or decide, are not tested.

A recipe with none of those steps runs on Nocarta's servers, so its Run button works in any browser. A capability answered by your own model still waits for your Nocarta Desktop to answer it.

  • While running, the page shows one row per step with its status and how many records went in and came out ("N in → M out")
  • When a document-processing step needs files, a panel asks for a folder and a file pattern (e.g. *.pdf)
  • The Runs tab lists every run; choose one to read its log. Every run also has its own permanent log page — Open this run's own page. Record identifiers in the log link straight to each record.
  • A batch step's row links into the batch itself, with a tally of completed and failed records. A partly-successful batch continues the recipe with the records that succeeded; the failures stay visible in the log.

Choosing what a Recipe runs on: Input Data

When a recipe is handed notebooks, instances or one item, its page has an Input Data tab. Type in the search box: the name and the words read on the pages are found at once, and after three letters the notebooks or instances with the same meaning are added below them. Switch to What the pictures show (Pictures on a phone) and describe what is in the picture, for example a forklift by a loading bay, to find them by their page pictures and your image items. Each card says how it was found. Narrow the list with Today, Last 7 days, Last 30 days or From… to… (the day it was made), and for instances with a template. Tap a card to choose it, tap it again to leave it out; the bar at the bottom shows what is chosen, and Continue to Run takes you back to the Run tab, where the choice waits for you. On the Run tab you can also add one by name or remove one. Pictures are found only while Find my images by what they show is on in your settings.

Running a Recipe on an item

When the Start step is handed one item, the recipe page shows Run on: choose a template, an instance, a notebook or a media item, and optionally a Page number, then press Run. The list shows only the kinds of item every step of the recipe can work on: a recipe with a Build fields step lists templates only, one with a Fill fields step instances only. A recipe with both can never run, and the Design tab says so when you save.

On the Design tab, under This recipe is handed one item when it starts, It takes: has one box for each kind of item: Templates, Instances, Notebooks and Media items. With every box ticked the recipe takes any kind. Clear a box and the recipe refuses that kind when someone runs it, and Run on offers only the kinds still ticked. The last box cannot be cleared: the recipe needs at least one kind it can take. A kind that one of the steps cannot work on is cleared and greyed out, with that step named next to it: Build fields works only on templates, Fill fields only on instances, and steps that read a recording only on media items. Clearing This recipe is handed one item when it starts forgets the boxes; ticking it again starts with every kind ticked.

Running a Recipe on notebooks

On a notebook, Run Recipe lists the recipes that can run on it: your own recipes with Show on the notebook's Run Recipe list ticked on their Settings tab, and Nocarta's Copy to Template and Pros and cons. Type in the search box to find one by name, answer its questions, and press Run; the run's page opens. On the recipe's own page you choose several notebooks for one run, on the Input Data tab or by name under Run on notebooks.

An Automation step of such a recipe reads notebooks: one entry per notebook, with its name, text, its instance (fields and pages) and its recordings. With one notebook it also reads text and fields, as an automation run on a notebook always did. On an Automation's page, Create a Recipe with this Automation makes a recipe with the Automation's name and that one step, shown on notebooks; if a recipe with that name already exists, nothing is made.

Schedule, on a notebook's page, runs one of these Recipes on that notebook later: Once, at a date and time, Every a number of minutes or hours, or At fixed times on the days you tick, in the time zone you pick. You can schedule a Capability (one of yours, or Describe or Translate) or an Automation there too: the first time you save, a Recipe of yours with that one step is made, named after it. The page says whether it needs a computer, and whether a Nocarta Runner can run it. A Recipe runs once at a time, so a time that comes while it is still running is skipped. The notebook's page lists what is scheduled on it, with Change and Remove (Notebooks). When it runs, on a Recipe's Settings tab and an Automation's Overview tab, also offers Once, at a date and time.

Nocarta Recipes

Below your own recipes, the Recipes page lists Nocarta Recipes: the recipes Nocarta runs when you scan a template (Smart Detection, Deep Analysis, Image Analysis, Mistral Analysis), when it fills an instance from a photo, and Copy to Template, which makes a notebook into an instance of the template you choose and, when you tick Delete the notebook, deletes the notebook after it is copied. Its Template list shows only the templates whose settings have Notebooks can be copied into this template ticked; type in the search box above it to find one by name. Tick Create New Template instead and type a name: the run makes a new template with that name, ready to take notebooks next time, and copies into it. A name you already use for a template is refused. You cannot change them. Open shows a Nocarta Recipe's page: run it there, read its steps, and see your own runs of it — only yours. Its Settings tab has one choice, whether it appears on your notebooks' Run Recipe list. Copy makes a recipe of your own with the same steps and opens it on the Design tab, where you can change it and run it on your own items.


Testing a Recipe

A test runs the whole recipe, the way you start it, and then checks what the run made. It is written in three parts:

  • Given — what the run starts with: nothing, values for the recipe's run parameters, or files. Files become your media items when the test starts.
  • When — where it runs: where your runs go, one of your computers, or a Nocarta Runner.
  • Then — the checks, one per line: the run finishes within some minutes, a step ran or did not run, the run makes an audio, video, image or file item (with a length and a size if you want), the run makes an instance of a template, a field of that instance is filled or has a value, a step answers with some text, or the run fails at a step. Every test also checks that the run finishes completed, unless it expects a failure.

Afterwards is optional: a recipe, automation or script of yours that runs after the test, passed or failed. It receives what the run made, so it can delete it or stop what the run started. Nocarta deletes nothing itself.

Press Run test. The result appears on the Tests tab when the run ends: Passed or Failed, each check with the value it got, and the computer it ran on. A test run is a normal run of the recipe: it is in the Runs tab and uses credits like any run. When this test runs runs it on a schedule, as When it runs does for a recipe.

Tested on sums up each computer: Passed, Failed, Not tested since the last change (you changed the recipe after the tests ran), Some tests not run here, or Passed on an earlier Nocarta (Nocarta has been updated since). Show as text gives a test as Gherkin text, to copy into a ticket.

An app with a tested recipe carries its tests. Its store page lists the computers it works on with your results there, and the Nocarta Desktop version they passed on. Whoever installs it finds Test on this computer on the install page.


Human Review Steps

When a run reaches a Wait step, it pauses and the reviewer gets an email — "Review needed — (recipe name)" — linking to the review screen. There, the reviewer sees one card per waiting record:

  • A Keep checkbox per record — untick to drop a record from what continues
  • Every field, editable in place — corrections are saved onto the record and attributed to the reviewer
  • Approve & continue resumes the run with the kept records

Who reviews this step lists the people the email can go to: you, the person who publishes a form the recipe's steps use, and the people who use or filled in the instances of that form you can see. Nobody else can be chosen. If the person you chose no longer has anything to do with the recipe's forms when the step is reached, the email comes to you instead.

Only the recipe's owner can open the review screen — the reviewer email is a notification, not an access grant. Approving works from any device; the recipe's next desktop step then continues once the desktop app reconnects.


When a Step Gets Stuck

If a step declares itself stuck (rather than simply failing), the run pauses in a needs help state, you get an email, and the run page shows "This step needs your help" with the step's own message, its category, the last checkpoint reached, and — when one was captured — a screenshot of the moment it got stuck.

Three buttons, explained on the panel itself:

  • Retry step — runs the step again with the same input
  • Skip step — passes its input through unchanged and moves on
  • Abort run — cancels the whole run

An "Ask the assistant" control can diagnose the situation and pre-select one of the three — it never acts on its own. Your decision is recorded in the run log. When possible, resolve on the running desktop page so a retry is picked up immediately.

The email is optional. Each automation has an Email me when a run needs my attention setting on its Settings tab, on by default; untick it and a step of that automation going stuck sends nothing. The run still pauses in needs help and still waits for your decision — only the message is suppressed.


Statuses and Failure Behaviour

  • A run is pending, running, needs help, and ends completed, failed, or cancelled
  • A failed step fails the run — there is no silent continue-on-error. The one exception: a batch step that partly succeeded continues with its successful records.
  • Saving a runnable design snapshots a numbered version, and each run pins the version it started with — editing a recipe never affects a run already in flight
  • Deleting a recipe also removes its run history and saved versions (the delete button warns you)

Need More Help?

Ask AI Assistant