[{"data":1,"prerenderedAt":694,"buildId":695},["ShallowReactive",2],{"\u002Fautomations":3,"\u002Fautomations-surround":426,"navigation":435},{"id":4,"title":5,"body":6,"description":417,"extension":418,"meta":419,"navigation":420,"path":422,"seo":423,"stem":424,"__hash__":425},"docs\u002F3.automations\u002F01.index.md","How automations work",{"type":7,"value":8,"toc":403},"minimark",[9,18,25,30,39,101,104,109,133,140,175,179,182,206,210,273,280,284,295,320,326,330,333,349,352,356,382,386],[10,11,12,13,17],"p",{},"An automation is a ",[14,15,16],"strong",{},"workflow",": a trigger followed by steps. The trigger decides when the workflow runs and what it starts with. Each step does one thing, such as resizing an image, adding a tag or saving a file, and passes its results on to later steps.",[10,19,20,21,24],{},"You'll find automations under ",[14,22,23],{},"Automations"," in the sidebar. Every user can create workflows for their own files, and a workflow always acts as the person who owns it.",[26,27,29],"h2",{"id":28},"finding-your-way","Finding your way",[10,31,32,34,35,38],{},[14,33,23],{}," in the sidebar opens a group with three pages. Clicking it goes to ",[14,36,37],{},"Workflows",", and the group stays open while you're on any of its pages, including inside a workflow.",[40,41,42,55],"table",{},[43,44,45],"thead",{},[46,47,48,52],"tr",{},[49,50,51],"th",{},"Page",[49,53,54],{},"What's there",[56,57,58,74,87],"tbody",{},[46,59,60,65],{},[61,62,63],"td",{},[14,64,37],{},[61,66,67,68,73],{},"Every workflow, with its trigger, last run and Active switch. Opening one shows the ",[69,70,72],"a",{"href":71},"\u002Fautomations\u002Feditor","editor",".",[46,75,76,81],{},[61,77,78],{},[14,79,80],{},"Connections",[61,82,83,84,73],{},"The outside services your steps use, such as AI providers and webhooks. See ",[69,85,80],{"href":86},"\u002Fconnections",[46,88,89,94],{},[61,90,91],{},[14,92,93],{},"Quarantine",[61,95,96,97,73],{},"Uploads whose intake workflow failed. A count shows next to it in the sidebar while anything is waiting. See ",[69,98,100],{"href":99},"\u002Fautomations\u002Fquarantine","Quarantine and failures",[10,102,103],{},"You don't have to set up connections first: a step's connection picker can create one in place, without leaving the editor.",[105,106,108],"h3",{"id":107},"the-workflows-page","The Workflows page",[10,110,111,112,115,116,120,121,124,125,128,129,132],{},"Each row shows the workflow's name, its ",[14,113,114],{},"Trigger"," (an intake workflow shows ",[117,118,119],"em",{},"File received","), when it last ran and its ",[14,122,123],{},"Enabled"," switch. Under the name, muted text shows ",[117,126,127],{},"Not published"," or ",[117,130,131],{},"Unpublished changes"," when that applies, and a red note counts recent failed runs; click it to open the workflow's runs filtered to failures.",[134,135],"screenshot",{"alt":136,"caption":108,"height":137,"name":138,"width":139},"The Workflows page listing six workflows with their triggers, last runs and Enabled switches",600,"workflows",1216,[10,141,142,143,146,147,146,150,146,152,128,154,157,158,161,162,165,166,170,171,174],{},"Search by name or trigger, and filter by status: ",[117,144,145],{},"Active",", ",[117,148,149],{},"Inactive",[117,151,127],{},[117,153,131],{},[117,155,156],{},"Recent failures",". The ",[14,159,160],{},"⋯"," menu on a row opens the editor, the run history or the workflow's settings, turns it on or off, or deletes it. ",[14,163,164],{},"New workflow"," starts an empty workflow or one from a ",[69,167,169],{"href":168},"\u002Fautomations\u002Ftemplates","template",", and ",[14,172,173],{},"Import"," adds a template from a file.",[26,176,178],{"id":177},"two-kinds-of-workflow","Two kinds of workflow",[10,180,181],{},"When you create a workflow you choose its kind. It can't be changed later.",[183,184,185,194],"card-group",{},[186,187,191],"card",{"icon":188,"title":189,"to":190},"i-lucide-library","Library workflow","\u002Fautomations\u002Ffirst-workflow",[10,192,193],{},"Runs on files that are already in your library: when a file is uploaded, when a tag is added, or when you start it yourself from Files. Use it to rename, tag, move, share or trash files.",[186,195,199],{"icon":196,"title":197,"to":198},"i-lucide-inbox","Upload intake","\u002Fautomations\u002Fintake",[10,200,201,202,205],{},"Runs on an upload ",[14,203,204],{},"before"," it's saved. Steps can strip metadata, crop, resize, convert or compress the image, then a Save file step puts the result in your library. If the run fails, the upload goes to a private quarantine instead.",[26,207,209],{"id":208},"the-parts-of-a-workflow","The parts of a workflow",[40,211,212,222],{},[43,213,214],{},[46,215,216,219],{},[49,217,218],{},"Part",[49,220,221],{},"What it is",[56,223,224,237,245,253,265],{},[46,225,226,228],{},[61,227,114],{},[61,229,230,231,128,234,236],{},"The first step. It decides which events start a run, such as ",[117,232,233],{},"File uploaded",[117,235,119],{},", and can filter by file type, folder, tag or token.",[46,238,239,242],{},[61,240,241],{},"Step",[61,243,244],{},"One use of a step type, with its own settings. Steps are joined by connections.",[46,246,247,250],{},[61,248,249],{},"Connection",[61,251,252],{},"A line from one step's output to the next step. A step with branches, like Condition, has one output per branch.",[46,254,255,258],{},[61,256,257],{},"Value",[61,259,260,261,73],{},"A setting can be a fixed value, a value from an earlier step, or text with values in it. See ",[69,262,264],{"href":263},"\u002Fautomations\u002Fvalues","Values and templates",[46,266,267,270],{},[61,268,269],{},"Run",[61,271,272],{},"One execution of the workflow for one file. Each run has a step-by-step history.",[10,274,275,276,73],{},"A workflow is a graph, not just a list: a Condition step can send files down different branches, and branches can join again later. See ",[69,277,279],{"href":278},"\u002Fautomations\u002Fbranching","Conditions and branching",[26,281,283],{"id":282},"drafts-publishing-and-the-active-switch","Drafts, publishing and the Active switch",[10,285,286,287,290,291,73],{},"Each workflow has one ",[14,288,289],{},"draft",", which the editor saves as you work. A draft can be incomplete or have problems, and it never runs on its own except when you ",[69,292,294],{"href":293},"\u002Fautomations\u002Ftesting","test it",[296,297,298,305,310],"ol",{},[299,300,301,304],"li",{},[14,302,303],{},"Publish"," checks the draft and saves it as a new numbered version. Publishing is refused while the Problems list shows errors.",[299,306,307,309],{},[14,308,145],{}," (the switch at the top of the editor) turns the workflow on. An active workflow always runs its latest published version.",[299,311,312,313,315,316,319],{},"Changing the draft after publishing shows ",[117,314,131],{},". Runs keep using the published version until you publish again. ",[14,317,318],{},"Discard changes"," in the editor's more-actions menu resets the draft to the published version.",[321,322,323],"note",{},[10,324,325],{},"A run always finishes on the version it started with. Publishing a new version doesn't change runs that are already going.",[26,327,329],{"id":328},"what-a-run-does","What a run does",[10,331,332],{},"Each step runs as its own background job. That means:",[334,335,336,339,342],"ul",{},[299,337,338],{},"A step that fails retries on its own (up to 3 attempts for most steps) without repeating the steps before it.",[299,340,341],{},"A slow or broken step never blocks uploads or the rest of the server.",[299,343,344,345,348],{},"Every run keeps a history you can open from the workflow's ",[14,346,347],{},"Runs"," tab: which steps ran, which branch each condition took, what each step produced and how long it took.",[10,350,351],{},"Steps that change your library are safe to repeat. If the server restarts in the middle of a run, the run picks up where it left off and a step that already saved a file or created a link doesn't do it twice.",[26,353,355],{"id":354},"safety-rails","Safety rails",[334,357,358,364,370,376],{},[299,359,360,363],{},[14,361,362],{},"No code."," Workflows never run scripts or expressions. Values are fixed values, references to earlier steps, or text templates with simple filters.",[299,365,366,369],{},[14,367,368],{},"No loops."," A workflow never starts itself again, directly or through other workflows, and chains of workflows starting each other stop after 3 levels.",[299,371,372,375],{},[14,373,374],{},"Your originals stay intact."," A saved file's content is never changed in place. Content steps make new working copies, and only Save file stores one in your library.",[299,377,378,381],{},[14,379,380],{},"Unprocessed uploads aren't served."," In an intake workflow, the upload's links show a processing page until the workflow saves it. If it never does, the links stay unavailable and the upload goes to quarantine.",[26,383,385],{"id":384},"where-to-go-next","Where to go next",[183,387,388,395],{},[186,389,392],{"icon":390,"title":391,"to":190},"i-lucide-rocket","Your first workflow",[10,393,394],{},"Build a library workflow that renames and tags large images.",[186,396,400],{"icon":397,"title":398,"to":399},"i-lucide-file-image","Compress and resize uploads","\u002Fguides\u002Fcompress-uploads",[10,401,402],{},"Build an intake workflow that shrinks screenshots before saving them.",{"title":404,"searchDepth":405,"depth":406,"links":407},"",2,3,[408,411,412,413,414,415,416],{"id":28,"depth":405,"text":29,"children":409},[410],{"id":107,"depth":406,"text":108},{"id":177,"depth":405,"text":178},{"id":208,"depth":405,"text":209},{"id":282,"depth":405,"text":283},{"id":328,"depth":405,"text":329},{"id":354,"depth":405,"text":355},{"id":384,"depth":405,"text":385},"Workflows, triggers and steps, the two kinds of workflow, and how a draft becomes something that runs.","md",{},{"title":421},"Overview","\u002Fautomations",{"title":5,"description":417},"3.automations\u002F01.index","hNV1DvNGsUl6s2CpKQ7wXiOUtNFkGeLBlaBcs7QQ4Qg",[427,432],{"title":428,"path":429,"stem":430,"description":431,"children":-1},"Trash and recovery","\u002Flibrary\u002Ftrash","2.library\u002F8.trash","How deleted files are kept, restored, and deleted for good.",{"title":391,"path":190,"stem":433,"description":434,"children":-1},"3.automations\u002F02.first-workflow","Build a library workflow that tags large images and files everything else away, then run it from Files.",[436,455,491,517,526,545,556,599,633,646,662],{"title":437,"path":438,"stem":439,"children":440,"icon":390},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[441,443,447,451],{"title":442,"path":438,"stem":439},"Introduction",{"title":444,"path":445,"stem":446},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation",{"title":448,"path":449,"stem":450},"Configure ShareX","\u002Fgetting-started\u002Fsharex","1.getting-started\u002F3.sharex",{"title":452,"path":453,"stem":454},"Updating Tessra","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating",{"title":456,"icon":457,"path":458,"stem":459,"children":460,"page":490},"Library","i-lucide-folder","\u002Flibrary","2.library",[461,465,469,473,477,481,485,489],{"title":462,"path":463,"stem":464},"Uploading files","\u002Flibrary\u002Fuploading","2.library\u002F1.uploading",{"title":466,"path":467,"stem":468},"Files and folders","\u002Flibrary\u002Ffiles-and-folders","2.library\u002F2.files-and-folders",{"title":470,"path":471,"stem":472},"Sharing files","\u002Flibrary\u002Fsharing","2.library\u002F3.sharing",{"title":474,"path":475,"stem":476},"Tags","\u002Flibrary\u002Ftags","2.library\u002F4.tags",{"title":478,"path":479,"stem":480},"Fields","\u002Flibrary\u002Ffields","2.library\u002F5.fields",{"title":482,"path":483,"stem":484},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F6.attachments",{"title":486,"path":487,"stem":488},"Search","\u002Flibrary\u002Fsearch","2.library\u002F7.search",{"title":428,"path":429,"stem":430},false,{"title":23,"path":422,"stem":424,"children":492,"icon":516},[493,494,495,498,500,502,504,507,511,513],{"title":421,"path":422,"stem":424},{"title":391,"path":190,"stem":433},{"title":496,"path":71,"stem":497},"The editor","3.automations\u002F03.editor",{"title":264,"path":263,"stem":499},"3.automations\u002F04.values",{"title":279,"path":278,"stem":501},"3.automations\u002F05.branching",{"title":197,"path":198,"stem":503},"3.automations\u002F06.intake",{"title":505,"path":293,"stem":506},"Testing","3.automations\u002F07.testing",{"title":508,"path":509,"stem":510},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F08.runs",{"title":100,"path":99,"stem":512},"3.automations\u002F09.quarantine",{"title":514,"path":168,"stem":515},"Workflow templates","3.automations\u002F10.templates","i-lucide-workflow",{"title":80,"path":86,"stem":518,"children":519,"icon":525},"4.connections\u002F1.index",[520,521],{"title":421,"path":86,"stem":518},{"title":522,"path":523,"stem":524},"AI providers","\u002Fconnections\u002Fai-providers","4.connections\u002F2.ai-providers","i-lucide-plug",{"title":527,"path":528,"stem":529,"children":530,"icon":544},"AI","\u002Fai","5.ai\u002F1.index",[531,532,536,540],{"title":421,"path":528,"stem":529},{"title":533,"path":534,"stem":535},"AI classify and extract","\u002Fai\u002Fclassify-and-extract","5.ai\u002F2.classify-and-extract",{"title":537,"path":538,"stem":539},"AI describe, summarize and write","\u002Fai\u002Fdescribe-and-write","5.ai\u002F3.describe-and-write",{"title":541,"path":542,"stem":543},"AI detect and suggest tags","\u002Fai\u002Fdetect-and-tag","5.ai\u002F4.detect-and-tag","i-lucide-sparkles",{"title":546,"path":547,"stem":548,"children":549,"icon":555},"OCR","\u002Focr","5.ocr\u002F1.index",[550,551],{"title":421,"path":547,"stem":548},{"title":552,"path":553,"stem":554},"Setup","\u002Focr\u002Fsetup","5.ocr\u002F2.setup","i-lucide-scan-text",{"title":557,"path":558,"stem":559,"children":560,"icon":598},"Self-hosting","\u002Fself-hosting","6.self-hosting\u002F1.index",[561,562,566,570,574,578,582,586,590,594],{"title":421,"path":558,"stem":559},{"title":563,"path":564,"stem":565},"Troubleshooting","\u002Fself-hosting\u002Ftroubleshooting","6.self-hosting\u002F10.troubleshooting",{"title":567,"path":568,"stem":569},"Configuration","\u002Fself-hosting\u002Fconfiguration","6.self-hosting\u002F2.configuration",{"title":571,"path":572,"stem":573},"Reverse proxies and HTTPS","\u002Fself-hosting\u002Freverse-proxy","6.self-hosting\u002F3.reverse-proxy",{"title":575,"path":576,"stem":577},"DigitalOcean","\u002Fself-hosting\u002Fdigitalocean","6.self-hosting\u002F4.digitalocean",{"title":579,"path":580,"stem":581},"Backups and restoration","\u002Fself-hosting\u002Fbackups","6.self-hosting\u002F5.backups",{"title":583,"path":584,"stem":585},"Users and roles","\u002Fself-hosting\u002Fusers","6.self-hosting\u002F6.users",{"title":587,"path":588,"stem":589},"Single sign-on","\u002Fself-hosting\u002Fsingle-sign-on","6.self-hosting\u002F7.single-sign-on",{"title":591,"path":592,"stem":593},"Two-factor and passkeys","\u002Fself-hosting\u002Ftwo-factor-and-passkeys","6.self-hosting\u002F8.two-factor-and-passkeys",{"title":595,"path":596,"stem":597},"Importing","\u002Fself-hosting\u002Fimporting","6.self-hosting\u002F9.importing","i-lucide-server",{"title":600,"path":601,"stem":602,"children":603,"icon":632},"Guides","\u002Fguides","7.guides\u002F1.index",[604,605,608,612,616,620,624,628],{"title":421,"path":601,"stem":602},{"title":606,"path":399,"stem":607},"Optimize ShareX uploads","7.guides\u002F2.compress-uploads",{"title":609,"path":610,"stem":611},"Send Discord notifications","\u002Fguides\u002Fdiscord-notifications","7.guides\u002F3.discord-notifications",{"title":613,"path":614,"stem":615},"Organize screenshots with AI","\u002Fguides\u002Fcategorize-screenshots","7.guides\u002F4.categorize-screenshots",{"title":617,"path":618,"stem":619},"Extract receipts with AI","\u002Fguides\u002Fextract-receipts","7.guides\u002F5.extract-receipts",{"title":621,"path":622,"stem":623},"Name screenshots with AI","\u002Fguides\u002Fai-file-names","7.guides\u002F6.ai-file-names",{"title":625,"path":626,"stem":627},"Run AI locally with Ollama","\u002Fguides\u002Flocal-ai-ollama","7.guides\u002F7.local-ai-ollama",{"title":629,"path":630,"stem":631},"Make screenshots searchable","\u002Fguides\u002Fsearchable-screenshots","7.guides\u002F8.searchable-screenshots","i-lucide-book-open",{"title":634,"icon":188,"path":635,"stem":636,"children":637,"page":490},"Reference","\u002Freference","8.reference",[638,642],{"title":639,"path":640,"stem":641},"Step reference","\u002Freference\u002Fsteps","8.reference\u002F1.steps",{"title":643,"path":644,"stem":645},"Limits and errors","\u002Freference\u002Flimits","8.reference\u002F2.limits",{"title":647,"path":648,"stem":649,"children":650,"icon":661},"Development","\u002Fdevelopment","9.development\u002F1.index",[651,653,657],{"title":652,"path":648,"stem":649},"Local development",{"title":654,"path":655,"stem":656},"Plugin development","\u002Fdevelopment\u002Fplugins","9.development\u002F2.plugins",{"title":658,"path":659,"stem":660},"Writing documentation","\u002Fdevelopment\u002Fdocumentation","9.development\u002F3.documentation","i-lucide-code",{"title":663,"path":664,"stem":665,"children":666,"icon":693},"Comparisons","\u002Fcomparisons","99.comparisons\u002F1.index",[667,669,673,677,681,685,689],{"title":668,"path":664,"stem":665},"Comparing Tessra",{"title":670,"path":671,"stem":672},"Tessra and Zipline","\u002Fcomparisons\u002Fzipline","99.comparisons\u002F2.zipline",{"title":674,"path":675,"stem":676},"Tessra and XBackBone","\u002Fcomparisons\u002Fxbackbone","99.comparisons\u002F3.xbackbone",{"title":678,"path":679,"stem":680},"Tessra and chibisafe","\u002Fcomparisons\u002Fchibisafe","99.comparisons\u002F4.chibisafe",{"title":682,"path":683,"stem":684},"Tessra and Slink","\u002Fcomparisons\u002Fslink","99.comparisons\u002F5.slink",{"title":686,"path":687,"stem":688},"Tessra and Pingvin Share","\u002Fcomparisons\u002Fpingvin-share","99.comparisons\u002F6.pingvin-share",{"title":690,"path":691,"stem":692},"Tessra and PicoShare","\u002Fcomparisons\u002Fpicoshare","99.comparisons\u002F7.picoshare","i-lucide-scale",1796301179647,"7456fe0d-763d-4d83-b714-ffd4ca3197d2"]