Workflow templates
Start a workflow from a ready-made template, import one from a file, and download your own workflows as templates.
A template is a ready-made workflow. Adding one creates a draft in your library: it doesn't run until you publish it and turn it on, and you can change any step first.
Start from a template
- On Workflows, choose New workflow, then From a template.
- Pick a template and give the workflow a name.
- Choose what it uses. Templates name the connections, folders, tags and fields their steps need, and you choose one of yours for each:
- Connections: pick one, or create one from the picker. Only connections that offer what the steps need are listed, such as AI models that take images.
- Folders, tags and fields: pick one of yours, or keep Create … to make one with the template's name. A folder is created at the top level. When you already have one with that name (for a field, that key), it's chosen for you and used instead of a new one.
- Leave empty and choose later leaves the setting empty. The editor lists it as a problem until you choose one.
- Choose Add workflow. The editor opens on the draft.
Adding a template never runs it and creates nothing it doesn't list: only the folders, tags and fields you leave on Create.
Built-in templates
These come with the AI steps and use one AI connection whose model takes images, such as qwen2.5vl on Ollama. Each runs when a PNG, JPEG or WebP image is uploaded, and uses language models, so it works with every AI connection.
| Template | What it does | Steps |
|---|---|---|
| Sort, name and tag screenshots | Files each screenshot under Screenshots by what it shows (Chats, Code, Documents, Receipts or Other), names it, and tags it, suggesting new tags when none of yours fit. | AI classify, AI generate text, Rename, Move to folder, AI suggest tags, Add tags |
| Extract receipt details | Asks whether the image is a receipt. Receipts get Merchant, Receipt date and Total fields and move to a Receipts folder; anything else is left alone. | AI detect, AI extract, Set field ×3, Move to folder |
| Describe and tag images | Saves a detailed description as a Description attachment, which search finds, and tags the image from it. | AI describe image, Add attachment, AI suggest tags, Add tags |
| Send upload summaries | Summarizes the image in a sentence and sends it with the file's name through a notification connection, such as a Discord webhook. | AI summarize, Send notification |
Tessra OCR adds one more, which uses an OCR connection instead of an AI one and reads every PNG, JPEG, WebP, GIF and BMP upload:
| Template | What it does | Steps |
|---|---|---|
| Make images searchable | Reads the text in the image and stores it as an OCR text attachment, which search finds. Images without text are left alone. See Make screenshots searchable. | Load content, Extract text, Add attachment |
Every AI request sends the image to the connection's service. With a local model, nothing leaves your server.
Import a template from a file
Import on Workflows opens a template file (.json) someone shared with you. Tessra checks it, then shows the same choices as a built-in template. A template that needs steps from a plugin you don't have says so and can't be added. A template made by a newer version of Tessra asks you to update.
Download a workflow as a template
In the editor, ⋯ › Download as template saves the draft as a template file. Connections, folders, tags and fields become resources named after yours, so whoever adds it chooses their own; their ids never leave your instance. A file chosen in a step's File setting is left out. The file holds every step's settings, including text such as AI instructions, so read it before you share it.
The template format
A template is a JSON document:
{
"format": "tessra.workflow-template",
"version": 1,
"name": "Extract receipt details",
"description": "Fills in fields from receipts.",
"resources": [
{ "key": "ai", "type": "connection", "name": "AI connection" },
{ "key": "total", "type": "field", "name": "Total", "fieldKey": "total", "fieldType": "number" },
{ "key": "receipts", "type": "folder", "name": "Receipts" }
],
"definition": {
"schemaVersion": 1,
"kind": "library",
"trigger": { "type": "tessra.core.file-uploaded@1" },
"steps": [
{ "id": "move", "type": "tessra.core.move-to-folder@1", "settings": { "folder": { "resource": "receipts" } } }
],
"edges": [{ "from": "trigger", "to": "move" }]
}
}
definitionis an ordinary workflow definition, except that a connection, folder, tag or field setting holds{ "resource": "key" }instead of{ "id": "…" }. A template that holds an id is refused.resourceslists each key once, withtype(connection,folder,tagorfield) and thenameshown when adding it and used when creating it. Fields can addfieldKey,fieldType(text,long-text,number,date,boolean,choice,listorlink) andfieldOptionsfor choices. A connection's kind comes from the steps that use it.layoutis optional and holds the editor's step positions. Without it, the editor lays the steps out.idis only for templates a plugin provides; see Workflow templates.- A template is at most 384 KiB.
versionchanges only when the format changes in a way older versions can't read.