[{"data":1,"prerenderedAt":756,"buildId":757},["ShallowReactive",2],{"\u002Fautomations\u002Feditor":3,"\u002Fautomations\u002Feditor-surround":654,"navigation":665},{"id":4,"title":5,"body":6,"description":645,"extension":646,"meta":647,"navigation":648,"path":650,"seo":651,"stem":652,"__hash__":653},"docs\u002F3.automations\u002F03.editor.md","The editor",{"type":7,"value":8,"toc":627},"minimark",[9,34,49,54,65,68,133,146,151,154,221,225,228,265,297,301,308,322,325,329,332,335,342,346,353,356,382,401,405,413,455,461,465,468,488,495,499,502,614,617,621],[10,11,12,13,17,18,21,22,25,26,29,30,33],"p",{},"Opening a workflow shows the editor. The header has the workflow's name and status, the ",[14,15,16],"strong",{},"Active"," switch, ",[14,19,20],{},"Test",", ",[14,23,24],{},"Publish",", workflow settings and a more-actions menu. Below it are the ",[14,27,28],{},"Editor"," and ",[14,31,32],{},"Runs"," tabs.",[10,35,36,37,21,41,44,45,48],{},"The editor saves your draft as you work; the header shows ",[38,39,40],"em",{},"Saving…",[38,42,43],{},"Draft saved"," or ",[38,46,47],{},"Not saved",".",[50,51,53],"h2",{"id":52},"canvas-and-outline","Canvas and outline",[10,55,56,57,60,61,64],{},"The ",[14,58,59],{},"Canvas"," shows the workflow as a graph that reads left to right, starting from the trigger. The ",[14,62,63],{},"Outline"," shows the same workflow as an indented list, which works well with a keyboard, a screen reader or a small screen. Switch between them with the buttons in the toolbar.",[10,66,67],{},"On the canvas:",[69,70,71,78,92,102,108],"ul",{},[72,73,74,77],"li",{},[14,75,76],{},"Select"," a step to open its settings. Click empty space to clear the selection.",[72,79,80,83,84,87,88,91],{},[14,81,82],{},"Pan"," by dragging the background, and ",[14,85,86],{},"zoom"," with the scroll wheel or the zoom controls. ",[38,89,90],{},"Fit to screen"," shows the whole workflow.",[72,93,94,97,98,101],{},[14,95,96],{},"Move"," a step by dragging it. Positions are saved with the draft but aren't part of what runs. ",[14,99,100],{},"Tidy up"," (in the right-click menu) lays everything out again.",[72,103,104,107],{},[14,105,106],{},"Connect"," two steps by dragging from one step's output to another step. A step's outputs are on its right edge; steps with branches have one per branch. A connection that would lead back to an earlier step is refused.",[72,109,110,113,114,21,117,29,120,123,124,127,128,29,131,48],{},[14,111,112],{},"Right-click"," a step for ",[38,115,116],{},"Add step after",[38,118,119],{},"Duplicate step",[38,121,122],{},"Delete step",", a connection for ",[38,125,126],{},"Remove connection",", or the background for ",[38,129,130],{},"Add step",[38,132,100],{},[10,134,135,136,44,139,142,143,48],{},"Each step shows its name, icon and a one-line summary of its settings, such as ",[38,137,138],{},"Max width 1920",[38,140,141],{},"To Screenshots",". A step that still needs required settings shows ",[38,144,145],{},"Not configured",[147,148,150],"h3",{"id":149},"undo-and-redo","Undo and redo",[10,152,153],{},"Every change to the draft can be undone with the toolbar buttons or the keyboard:",[155,156,157,170],"table",{},[158,159,160],"thead",{},[161,162,163,167],"tr",{},[164,165,166],"th",{},"Action",[164,168,169],{},"Keys",[171,172,173,189,208],"tbody",{},[161,174,175,179],{},[176,177,178],"td",{},"Undo",[176,180,181,185,186],{},[182,183],"kbd",{"value":184},"meta"," ",[182,187],{"value":188},"Z",[161,190,191,194],{},[176,192,193],{},"Redo",[176,195,196,185,198,185,201,44,203,185,205],{},[182,197],{"value":184},[182,199],{"value":200},"shift",[182,202],{"value":188},[182,204],{"value":184},[182,206],{"value":207},"Y",[161,209,210,213],{},[176,211,212],{},"Delete the selected step or connection",[176,214,215,44,218],{},[182,216],{"value":217},"delete",[182,219],{"value":220},"backspace",[50,222,224],{"id":223},"adding-steps","Adding steps",[10,226,227],{},"There are three ways to add a step:",[69,229,230,243,256],{},[72,231,232,235,236,239,240,242],{},[14,233,234],{},"After a step",": select it and click the ",[14,237,238],{},"+"," beside it, or the ",[14,241,238],{}," beside one of its branch outputs. The new step is connected to that output.",[72,244,245,248,249,251,252,255],{},[14,246,247],{},"Between two steps",": hover a connection and click the ",[14,250,238],{}," in its middle (",[38,253,254],{},"Add a step here","). The new step goes in between: the connection now runs from the earlier step to the new one, and from the new one to the later one.",[72,257,258,261,262,264],{},[14,259,260],{},"Anywhere",": click ",[14,263,130],{}," in the toolbar, or right-click the background. The step is added after the selected step, or unconnected if it's not clear where it belongs.",[10,266,267,268,21,271,21,274,21,277,21,280,21,283,21,286,29,289,292,293,296],{},"The step picker groups steps by what they do: ",[14,269,270],{},"Triggers",[14,272,273],{},"Logic",[14,275,276],{},"Organize",[14,278,279],{},"Content",[14,281,282],{},"Data",[14,284,285],{},"Share and notify",[14,287,288],{},"AI and text",[14,290,291],{},"Flow",". Type to search names, descriptions and keywords (searching ",[38,294,295],{},"exif"," finds Strip metadata). Steps from plugins show which plugin provides them.",[147,298,300],{"id":299},"suggested-values","Suggested values",[10,302,303,304,307],{},"When you add a step, its required inputs are filled in with the nearest value that fits, and marked ",[14,305,306],{},"Suggested",":",[69,309,310,316],{},[72,311,312,313,315],{},"A ",[14,314,279],{}," input gets the content from the closest earlier step that produces content, or from the trigger.",[72,317,312,318,321],{},[14,319,320],{},"File"," input gets the run's file.",[10,323,324],{},"Suggestions are ordinary values. Change or clear them like any other setting; the badge disappears once you do.",[147,326,328],{"id":327},"inserting-a-content-step","Inserting a content step",[10,330,331],{},"When you insert a content step (Resize, Compress image and the like) on a connection, the editor also updates the step right after it. Any of that step's content inputs that read the same content as the new step now read the new step's output instead. So inserting Resize between Strip metadata and Save file makes Save file save the resized image.",[10,333,334],{},"Only the step directly after the inserted one changes, and only when you insert on a connection. Adding a step at the end, connecting steps by hand, or deleting a step doesn't repoint anything.",[336,337,339],"warning",{"to":338},"\u002Fautomations\u002Fguides\u002Fcompress-uploads#check-what-save-file-reads",[10,340,341],{},"If a Save file step reads content that an earlier step on its path has already changed (Save file reads the upload, but Resize before it made a resized copy of that upload), the Problems list warns you and names the step to read from instead. Left as it is, Save file stores the unchanged version and the resize is lost. The warning doesn't block publishing.",[50,343,345],{"id":344},"step-settings","Step settings",[10,347,348,349,352],{},"The panel on the right shows the selected step's settings. Required settings come first, then optional ones, then an ",[14,350,351],{},"Advanced"," section that's collapsed by default. Drag the panel's edge to resize it, or hide it with the toolbar button.",[10,354,355],{},"At the top of the panel:",[69,357,358,364],{},[72,359,360,363],{},[14,361,362],{},"Step name",": a label shown on the canvas. Use the step menu to rename it.",[72,365,366,369,370,44,374,377,378,381],{},[14,367,368],{},"Step id",": a short, permanent id such as ",[371,372,373],"code",{},"resize",[371,375,376],{},"save-2",". Later steps refer to this step's values as ",[371,379,380],{},"steps.\u003Cid>",", so it never changes, even if you rename the step.",[10,383,384,385,21,388,44,391,394,395,400],{},"Settings that accept values from the run have a mode switch: ",[14,386,387],{},"Fixed",[14,389,390],{},"From a step",[14,392,393],{},"Text",". See ",[396,397,399],"a",{"href":398},"\u002Fautomations\u002Fvalues","Values and templates"," for how each works.",[147,402,404],{"id":403},"if-this-step-fails","If this step fails",[10,406,407,408,410,411,307],{},"Under ",[14,409,351],{},", every step except the trigger has ",[14,412,404],{},[155,414,415,425],{},[158,416,417],{},[161,418,419,422],{},[164,420,421],{},"Option",[164,423,424],{},"What happens",[171,426,427,435,443],{},[161,428,429,432],{},[176,430,431],{},"Stop the run (default)",[176,433,434],{},"The run fails and later steps don't run. An intake run then applies the workflow's failure policy.",[161,436,437,440],{},[176,438,439],{},"Continue",[176,441,442],{},"Later steps run; this step's values are missing. Only for steps with a single output.",[161,444,445,448],{},[176,446,447],{},"Take the error path",[176,449,450,451,454],{},"Adds an ",[14,452,453],{},"Error"," output. Connect steps to it to handle the failure; they can read the error's code and message.",[10,456,457,458,48],{},"A run that continues past a failed step finishes as ",[38,459,460],{},"Completed with errors",[50,462,464],{"id":463},"problems","Problems",[10,466,467],{},"The Problems list under the canvas shows everything that stops the workflow from being published. Click an item to jump to its step and field.",[69,469,470,476,482],{},[72,471,472,475],{},[14,473,474],{},"Needs setup"," means a required setting is empty. These stay quiet on the fields themselves until you touch the field, test or publish.",[72,477,478,481],{},[14,479,480],{},"Errors"," are settings that can't work as they are: a value from a step that isn't earlier in the workflow, a folder that was deleted, two steps that would both save the upload. They're always shown.",[72,483,484,487],{},[14,485,486],{},"Warnings"," are worth a look but don't block publishing. For example, a Save file step that reads content an earlier step already changed.",[10,489,490,29,492,494],{},[14,491,24],{},[14,493,20],{}," are refused while there are errors, with a pointer to the list.",[50,496,498],{"id":497},"workflow-settings","Workflow settings",[10,500,501],{},"The gear button in the header opens workflow settings:",[155,503,504,514],{},[158,505,506],{},[161,507,508,511],{},[164,509,510],{},"Setting",[164,512,513],{},"What it does",[171,515,516,524,531,539,558,585,593],{},[161,517,518,521],{},[176,519,520],{},"Name",[176,522,523],{},"The workflow's name in lists and in Files.",[161,525,526,528],{},[176,527,16],{},[176,529,530],{},"The same switch as in the header. Runs the latest published version when the trigger fires.",[161,532,533,536],{},[176,534,535],{},"Runs at the same time",[176,537,538],{},"How many runs of this workflow may be working at once, from 1 to 20. Default 4. Extra runs wait their turn.",[161,540,541,544],{},[176,542,543],{},"Run history",[176,545,546,549,550,553,554,557],{},[38,547,548],{},"Everything"," (states, timing, outputs and logs), ",[38,551,552],{},"Minimal"," (states, timing and error codes only) or ",[38,555,556],{},"Details for failures"," (outputs and logs only for failed steps).",[161,559,560,563],{},[176,561,562],{},"Fields a person set",[176,564,565,566,570,571,574,575,21,578,44,581,584],{},"What ",[396,567,569],{"href":568},"\u002Fautomations\u002Freference\u002Fsteps#set-field","Set field"," and Save file do when a field already has a value: ",[38,572,573],{},"Keep them"," (default; only values a workflow or the API set are replaced), ",[38,576,577],{},"Replace them",[38,579,580],{},"Only fill empty fields",[38,582,583],{},"Fail the step",". A step can choose otherwise.",[161,586,587,590],{},[176,588,589],{},"Time zone",[176,591,592],{},"Used when text templates format dates. Default UTC.",[161,594,595,598],{},[176,596,597],{},"When a run fails",[176,599,600,601,21,604,44,607,394,610,48],{},"Intake workflows only. ",[38,602,603],{},"Quarantine",[38,605,606],{},"Discard",[38,608,609],{},"Save as received",[396,611,613],{"href":612},"\u002Fautomations\u002Fquarantine","Quarantine and failures",[10,615,616],{},"Run options are part of the draft, so they take effect when you publish.",[50,618,620],{"id":619},"deleting-a-workflow","Deleting a workflow",[10,622,623,626],{},[14,624,625],{},"Delete workflow"," in the more-actions menu cancels runs that haven't finished. Past runs stay in history until they expire.",{"title":628,"searchDepth":629,"depth":630,"links":631},"",2,3,[632,635,639,642,643,644],{"id":52,"depth":629,"text":53,"children":633},[634],{"id":149,"depth":630,"text":150},{"id":223,"depth":629,"text":224,"children":636},[637,638],{"id":299,"depth":630,"text":300},{"id":327,"depth":630,"text":328},{"id":344,"depth":629,"text":345,"children":640},[641],{"id":403,"depth":630,"text":404},{"id":463,"depth":629,"text":464},{"id":497,"depth":629,"text":498},{"id":619,"depth":629,"text":620},"The canvas, the outline, the step picker, step settings, the Problems list and workflow settings.","md",{},{"icon":649},"i-lucide-mouse-pointer-2","\u002Fautomations\u002Feditor",{"title":5,"description":645},"3.automations\u002F03.editor","OEwmPC2YqVXITDQJWIhsXGyqjHEn3EPbDOGpm_Hurf4",[655,661],{"title":656,"path":657,"stem":658,"description":659,"icon":660,"children":-1},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","3.automations\u002F02.first-workflow","Build a library workflow that tags large images and files everything else away, then run it from Files.","i-lucide-rocket",{"title":399,"path":398,"stem":662,"description":663,"icon":664,"children":-1},"3.automations\u002F04.values","Fixed values, values from earlier steps, text templates, and what happens when a value is missing.","i-lucide-braces",[666,675,695],{"title":667,"path":668,"stem":669,"children":670,"icon":674},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[671],{"title":672,"path":668,"stem":669,"icon":673},"Introduction","i-lucide-house",false,{"title":676,"icon":674,"path":677,"stem":678,"children":679,"page":674},"Library","\u002Flibrary","2.library",[680,685,690],{"title":681,"path":682,"stem":683,"icon":684},"Fields","\u002Flibrary\u002Ffields","2.library\u002F1.fields","i-lucide-text-cursor-input",{"title":686,"path":687,"stem":688,"icon":689},"Attachments","\u002Flibrary\u002Fattachments","2.library\u002F2.attachments","i-lucide-paperclip",{"title":691,"path":692,"stem":693,"icon":694},"Search","\u002Flibrary\u002Fsearch","2.library\u002F3.search","i-lucide-search",{"title":696,"path":697,"stem":698,"children":699,"icon":674},"Automations","\u002Fautomations","3.automations\u002F01.index",[700,703,704,705,706,711,716,721,724,729,740],{"title":701,"path":697,"stem":698,"icon":702},"Overview","i-lucide-workflow",{"title":656,"path":657,"stem":658,"icon":660},{"title":5,"path":650,"stem":652,"icon":649},{"title":399,"path":398,"stem":662,"icon":664},{"title":707,"path":708,"stem":709,"icon":710},"Conditions and branching","\u002Fautomations\u002Fbranching","3.automations\u002F05.branching","i-lucide-split",{"title":712,"path":713,"stem":714,"icon":715},"Testing","\u002Fautomations\u002Ftesting","3.automations\u002F06.testing","i-lucide-flask-conical",{"title":717,"path":718,"stem":719,"icon":720},"Upload intake","\u002Fautomations\u002Fintake","3.automations\u002F07.intake","i-lucide-inbox",{"title":613,"path":612,"stem":722,"icon":723},"3.automations\u002F08.quarantine","i-lucide-shield-alert",{"title":725,"path":726,"stem":727,"icon":728},"Runs and history","\u002Fautomations\u002Fruns","3.automations\u002F09.runs","i-lucide-history",{"title":730,"icon":731,"path":732,"stem":733,"children":734,"page":674},"Guides","i-lucide-book-open","\u002Fautomations\u002Fguides","3.automations\u002F10.guides",[735],{"title":736,"path":737,"stem":738,"icon":739},"Compress and resize uploads","\u002Fautomations\u002Fguides\u002Fcompress-uploads","3.automations\u002F10.guides\u002F1.compress-uploads","i-lucide-file-image",{"title":741,"icon":742,"path":743,"stem":744,"children":745,"page":674},"Reference","i-lucide-library","\u002Fautomations\u002Freference","3.automations\u002F11.reference",[746,751],{"title":747,"path":748,"stem":749,"icon":750},"Step reference","\u002Fautomations\u002Freference\u002Fsteps","3.automations\u002F11.reference\u002F1.steps","i-lucide-blocks",{"title":752,"path":753,"stem":754,"icon":755},"Limits and errors","\u002Fautomations\u002Freference\u002Flimits","3.automations\u002F11.reference\u002F2.limits","i-lucide-gauge",1796147277606,"6b28aab5-1860-4b98-b972-637aef5edbec"]