[{"data":1,"prerenderedAt":912,"buildId":913},["ShallowReactive",2],{"\u002Fautomations\u002Freference\u002Fsteps":3,"\u002Fautomations\u002Freference\u002Fsteps-surround":831,"navigation":844},{"id":4,"title":5,"body":6,"description":822,"extension":823,"meta":824,"navigation":825,"path":827,"seo":828,"stem":829,"__hash__":830},"docs\u002F2.automations\u002F11.reference\u002F1.steps.md","Step reference",{"type":7,"value":8,"toc":780},"minimark",[9,40,47,52,57,68,79,83,88,113,119,123,128,137,146,150,160,184,196,200,204,219,254,262,266,272,299,307,311,315,330,337,341,354,360,364,371,377,381,405,411,415,420,424,428,445,455,458,468,472,475,537,546,549,552,558,562,565,569,575,579,582,593,599,603,606,623,629,633,636,654,660,664,667,676,682,686,690,697,710,715,719,723,726,747,751,754,762,766],[10,11,12,13,17,18,21,22,25,26,29,30,35,36,39],"p",{},"Settings marked ",[14,15,16],"strong",{},"required"," must be set before the workflow can be published. Settings that accept values from the run can be ",[14,19,20],{},"Fixed",", ",[14,23,24],{},"From a step"," or ",[14,27,28],{},"Text","; see ",[31,32,34],"a",{"href":33},"\u002Fautomations\u002Fvalues","Values and templates",". Settings under ",[14,37,38],{},"Advanced"," are collapsed in the editor.",[10,41,42,43,46],{},"Most steps that change a file have a ",[14,44,45],{},"File"," setting under Advanced. It's the run's file unless you choose another, such as the file a Save file step produced.",[48,49,51],"h2",{"id":50},"triggers","Triggers",[53,54,56],"h3",{"id":55},"run-manually","Run manually",[10,58,59,63,64,67],{},[60,61,62],"em",{},"Library workflows."," Runs when you start it from Files: select files, then ",[14,65,66],{},"More actions › Run automation",". Up to 100 files at a time.",[10,69,70,73,74,78],{},[14,71,72],{},"Produces:"," ",[75,76,77],"code",{},"file",".",[53,80,82],{"id":81},"file-uploaded","File uploaded",[10,84,85,87],{},[60,86,62],{}," Runs when a file is saved to your library, before thumbnails and other processing.",[89,90,91,106],"field-group",{},[92,93,96],"field",{"name":94,"type":95},"File types","list of text",[10,97,98,99,25,102,105],{},"MIME types such as ",[75,100,101],{},"image\u002Fpng",[75,103,104],{},"image\u002F*",". Empty means every file.",[92,107,110],{"name":108,"type":109},"Folder","folder",[10,111,112],{},"Only files uploaded into this folder.",[10,114,115,73,117,78],{},[14,116,72],{},[75,118,77],{},[53,120,122],{"id":121},"tag-added","Tag added",[10,124,125,127],{},[60,126,62],{}," Runs when a tag is added to a file, by you or by another workflow.",[89,129,130],{},[92,131,134],{"name":132,"type":133},"Tags","tags",[10,135,136],{},"Runs when any of these tags is added. Empty means any tag.",[10,138,139,73,141,21,143,78],{},[14,140,72],{},[75,142,77],{},[75,144,145],{},"tag",[53,147,149],{"id":148},"file-received","File received",[10,151,152,155,156,78],{},[60,153,154],{},"Intake workflows."," Runs when an upload arrives, before it's saved. See ",[31,157,159],{"href":158},"\u002Fautomations\u002Fintake","Upload intake",[89,161,162,170,177],{},[92,163,164],{"name":94,"type":95},[10,165,98,166,25,168,105],{},[75,167,101],{},[75,169,104],{},[92,171,174],{"name":172,"type":173},"Largest size (MB)","number",[10,175,176],{},"Larger uploads don't match. Empty means any size.",[92,178,181],{"name":179,"type":180},"Tokens","tokens",[10,182,183],{},"Only uploads made with these API tokens, when the workflow is picked automatically. Empty means any upload.",[10,185,186,73,188,191,192,195],{},[14,187,72],{},[75,189,190],{},"content"," (the received upload), ",[75,193,194],{},"source"," (web or API, and which token).",[48,197,199],{"id":198},"logic","Logic",[53,201,203],{"id":202},"condition","Condition",[10,205,206,207,210,211,214,215,78],{},"Continues on ",[14,208,209],{},"True"," when its rules match, otherwise on ",[14,212,213],{},"False",". See ",[31,216,218],{"href":217},"\u002Fautomations\u002Fbranching#condition","Conditions and branching",[89,220,221,244],{},[92,222,226],{"name":223,"type":224,":required":225},"Rules","list","true",[10,227,228,229,232,233,236,237,240,241,78],{},"Up to 20 rules, each with a ",[14,230,231],{},"Value",", an ",[14,234,235],{},"Operator",", a value to ",[14,238,239],{},"Compare with"," and, under Advanced, ",[14,242,243],{},"Case-sensitive",[92,245,248],{"name":246,"type":247},"Match","All rules | Any rule",[10,249,250,251,78],{},"Default ",[60,252,253],{},"All rules",[10,255,256,73,258,261],{},[14,257,72],{},[75,259,260],{},"result"," (true or false).",[53,263,265],{"id":264},"switch","Switch",[10,267,268,269,78],{},"Continues on the output of the first case the value equals, otherwise on ",[14,270,271],{},"Otherwise",[89,273,274,280,293],{},[92,275,277],{"name":231,"type":276},"any",[10,278,279],{},"The value to compare.",[92,281,283],{"name":282,"type":224,":required":225},"Cases",[10,284,285,286,289,290,78],{},"Up to 20 cases, each with an ",[14,287,288],{},"Output"," name (lowercase letters, digits and dashes) and the value it ",[14,291,292],{},"Equals",[92,294,296],{"name":243,"type":295},"yes or no",[10,297,298],{},"Advanced. Off by default.",[10,300,301,73,303,306],{},[14,302,72],{},[75,304,305],{},"case"," (the output it took).",[48,308,310],{"id":309},"organize","Organize",[53,312,314],{"id":313},"rename","Rename",[89,316,317,324],{},[92,318,321],{"name":319,"type":320,":required":225},"New name","text",[10,322,323],{},"Up to 255 characters.",[92,325,327],{"name":326,"type":295},"Keep the extension",[10,328,329],{},"On by default: the file keeps its current extension.",[10,331,332,73,334,78],{},[14,333,72],{},[75,335,336],{},"name",[53,338,340],{"id":339},"add-tags","Add tags",[89,342,343,348],{},[92,344,345],{"name":132,"type":133},[10,346,347],{},"Existing tags to add.",[92,349,351],{"name":350,"type":95},"Tag names",[10,352,353],{},"Tags with these names are created when they don't exist.",[10,355,356,73,358,78],{},[14,357,72],{},[75,359,133],{},[53,361,363],{"id":362},"remove-tags","Remove tags",[89,365,366],{},[92,367,368],{"name":132,"type":133,":required":225},[10,369,370],{},"Tags to take off the file.",[10,372,373,73,375,78],{},[14,374,72],{},[75,376,133],{},[53,378,380],{"id":379},"move-to-folder","Move to folder",[89,382,383,391],{},[92,384,385],{"name":108,"type":109},[10,386,387,388,78],{},"Leave empty for ",[60,389,390],{},"All files",[92,392,394],{"name":393,"type":320},"Subfolders",[10,395,396,397,400,401,404],{},"Folders to create inside it, such as ",[75,398,399],{},"{{ trigger.file.createdAt | date: 'yyyy\u002FMM' }}",". Up to 8 levels; ",[75,402,403],{},".."," and empty segments aren't allowed.",[10,406,407,73,409,78],{},[14,408,72],{},[75,410,109],{},[53,412,414],{"id":413},"move-to-trash","Move to trash",[10,416,417,418,78],{},"Moves the file to Trash and turns off its links. No settings besides ",[14,419,45],{},[48,421,423],{"id":422},"share-and-notify","Share and notify",[53,425,427],{"id":426},"create-share-link","Create share link",[89,429,430],{},[92,431,434],{"name":432,"type":433},"Expires after","duration",[10,435,436,437,440,441,444],{},"An ISO 8601 duration such as ",[75,438,439],{},"P7D"," (7 days) or ",[75,442,443],{},"PT12H"," (12 hours). Empty means never.",[10,446,447,73,449,21,452,78],{},[14,448,72],{},[75,450,451],{},"url",[75,453,454],{},"expiresAt",[48,456,457],{"id":190},"Content",[10,459,460,461,463,464,467],{},"Content steps work on ",[14,462,190],{},": the upload in an intake workflow, or a saved file's content after ",[14,465,466],{},"Load content",". Each one makes a new working copy and never changes its input, so two branches can start from the same content. The image steps read PNG, JPEG, WebP and GIF (the first frame, saved as PNG), up to 100 megapixels. They turn images upright from their EXIF orientation and never write metadata.",[53,469,471],{"id":470},"save-file","Save file",[10,473,474],{},"Saves content to your library.",[89,476,477,486,492,498,505,512,516,520,526,532],{},[92,478,479],{"name":457,"type":190,":required":225},[10,480,481,482,78],{},"What to save. Check it reads the last content step; see ",[31,483,485],{"href":484},"\u002Fautomations\u002Fguides\u002Fcompress-uploads#check-what-save-file-reads","Check what Save file reads",[92,487,489],{"name":488,"type":295},"Save as the upload",[10,490,491],{},"Intake workflows only. Commits this content as the uploaded file, so its reserved links start working. Off: saves a new, separate file.",[92,493,495],{"name":494,"type":320},"Name",[10,496,497],{},"Leave empty to keep the content's name.",[92,499,500],{"name":108,"type":109},[10,501,502,503,78],{},"Leave empty to keep the upload's folder (when saving the upload) or for ",[60,504,390],{},[92,506,507],{"name":393,"type":320},[10,508,396,509,78],{},[75,510,511],{},"{{ trigger.content.receivedAt | date: 'yyyy-MM' }}",[92,513,514],{"name":132,"type":133},[10,515,347],{},[92,517,518],{"name":350,"type":95},[10,519,353],{},[92,521,523],{"name":522,"type":295},"Create a share link",[10,524,525],{},"Off by default. An upload that already asked for a link keeps it.",[92,527,529],{"name":528,"type":433},"Link expires after",[10,530,531],{},"Advanced. Leave empty for a link that doesn't expire.",[92,533,534],{"name":326,"type":295},[10,535,536],{},"Advanced. On by default.",[10,538,539,73,541,21,543,78],{},[14,540,72],{},[75,542,77],{},[75,544,545],{},"shareUrl",[53,547,466],{"id":548},"load-content",[10,550,551],{},"Reads a saved file's content so content steps can work on it, in a library workflow. The file itself never changes; save the result with Save file as a new file.",[10,553,554,73,556,78],{},[14,555,72],{},[75,557,190],{},[53,559,561],{"id":560},"strip-metadata","Strip metadata",[10,563,564],{},"Removes EXIF, location and other metadata from an image, turning it upright first.",[89,566,567],{},[92,568],{"name":457,"type":190,":required":225},[10,570,571,73,573,78],{},[14,572,72],{},[75,574,190],{},[53,576,578],{"id":577},"auto-crop","Auto-crop",[10,580,581],{},"Trims a solid border, such as the empty space around a screenshot. The border color is taken from the top-left pixel.",[89,583,584,586],{},[92,585],{"name":457,"type":190,":required":225},[92,587,590],{"name":588,"type":589},"Tolerance","0 to 255",[10,591,592],{},"Advanced. How far a pixel may differ from the border color and still be trimmed. Default 8.",[10,594,595,73,597,78],{},[14,596,72],{},[75,598,190],{},[53,600,602],{"id":601},"resize","Resize",[10,604,605],{},"Scales an image to fit within a width and height, keeping its proportions. Set at least one of the two.",[89,607,608,610,614,617],{},[92,609],{"name":457,"type":190,":required":225},[92,611],{"name":612,"type":613},"Max width","1 to 20000",[92,615],{"name":616,"type":613},"Max height",[92,618,620],{"name":619,"type":295},"Enlarge smaller images",[10,621,622],{},"Advanced. Off by default, so images that already fit pass through unchanged.",[10,624,625,73,627,78],{},[14,626,72],{},[75,628,190],{},[53,630,632],{"id":631},"convert-image","Convert image",[10,634,635],{},"Saves an image as PNG, JPEG or WebP. The name's extension changes to match.",[89,637,638,640,647],{},[92,639],{"name":457,"type":190,":required":225},[92,641,644],{"name":642,"type":643},"Format","PNG | JPEG | WebP",[10,645,646],{},"Default WebP.",[92,648,651],{"name":649,"type":650},"Quality","1 to 100",[10,652,653],{},"For JPEG and WebP. Default 90.",[10,655,656,73,658,78],{},[14,657,72],{},[75,659,190],{},[53,661,663],{"id":662},"compress-image","Compress image",[10,665,666],{},"Makes an image smaller in the same format. Keeps the input when compressing doesn't help.",[89,668,669,671],{},[92,670],{"name":457,"type":190,":required":225},[92,672,673],{"name":649,"type":650},[10,674,675],{},"For JPEG and WebP. PNG is compressed without loss. Default 80.",[10,677,678,73,680,78],{},[14,679,72],{},[75,681,190],{},[48,683,685],{"id":684},"data","Data",[53,687,689],{"id":688},"set-values","Set values",[10,691,692,693,696],{},"Names values so later steps can use them as ",[75,694,695],{},"steps.\u003Cid>.\u003Cname>",". Handy for building a name once and using it in several places.",[89,698,699],{},[92,700,702],{"name":701,"type":224,":required":225},"Values",[10,703,704,705,707,708,78],{},"Up to 20, each with a ",[14,706,494],{}," (letters, digits and underscores, starting with a letter) and a ",[14,709,231],{},[10,711,712,714],{},[14,713,72],{}," one value per name.",[48,716,718],{"id":717},"flow","Flow",[53,720,722],{"id":721},"wait","Wait",[10,724,725],{},"Pauses the run for a while or until a time. A waiting run holds nothing, even across restarts.",[89,727,728,740],{},[92,729,731],{"name":730,"type":433},"Wait for",[10,732,733,734,25,737,78],{},"An ISO 8601 duration, such as ",[75,735,736],{},"PT10M",[75,738,739],{},"P1D",[92,741,744],{"name":742,"type":743},"Wait until","date",[10,745,746],{},"A time to wait until. A time in the past continues at once.",[53,748,750],{"id":749},"stop","Stop",[10,752,753],{},"Ends the run here and skips the remaining steps.",[89,755,756],{},[92,757,759],{"name":758,"type":320},"Reason",[10,760,761],{},"Shown in the run's history.",[48,763,765],{"id":764},"coming-later","Coming later",[10,767,768,769,21,772,775,776,779],{},"Fields and attachments on files, connections to outside services, webhooks, Discord, OCR and AI steps are planned next. Triggers for ",[60,770,771],{},"File ready",[60,773,774],{},"Field changed"," and ",[60,777,778],{},"Moved into folder",", and schedules, come after that.",{"title":781,"searchDepth":782,"depth":783,"links":784},"",2,3,[785,791,795,802,805,814,817,821],{"id":50,"depth":782,"text":51,"children":786},[787,788,789,790],{"id":55,"depth":783,"text":56},{"id":81,"depth":783,"text":82},{"id":121,"depth":783,"text":122},{"id":148,"depth":783,"text":149},{"id":198,"depth":782,"text":199,"children":792},[793,794],{"id":202,"depth":783,"text":203},{"id":264,"depth":783,"text":265},{"id":309,"depth":782,"text":310,"children":796},[797,798,799,800,801],{"id":313,"depth":783,"text":314},{"id":339,"depth":783,"text":340},{"id":362,"depth":783,"text":363},{"id":379,"depth":783,"text":380},{"id":413,"depth":783,"text":414},{"id":422,"depth":782,"text":423,"children":803},[804],{"id":426,"depth":783,"text":427},{"id":190,"depth":782,"text":457,"children":806},[807,808,809,810,811,812,813],{"id":470,"depth":783,"text":471},{"id":548,"depth":783,"text":466},{"id":560,"depth":783,"text":561},{"id":577,"depth":783,"text":578},{"id":601,"depth":783,"text":602},{"id":631,"depth":783,"text":632},{"id":662,"depth":783,"text":663},{"id":684,"depth":782,"text":685,"children":815},[816],{"id":688,"depth":783,"text":689},{"id":717,"depth":782,"text":718,"children":818},[819,820],{"id":721,"depth":783,"text":722},{"id":749,"depth":783,"text":750},{"id":764,"depth":782,"text":765},"Every trigger and step available today, with its settings and the values it produces.","md",{},{"icon":826},"i-lucide-blocks","\u002Fautomations\u002Freference\u002Fsteps",{"title":5,"description":822},"2.automations\u002F11.reference\u002F1.steps","4zkMGp6XylHpv-8xu34Aai9K7szeUI2xdOplnY1lgtQ",[832,838],{"title":833,"path":834,"stem":835,"description":836,"icon":837,"children":-1},"Compress and resize uploads","\u002Fautomations\u002Fguides\u002Fcompress-uploads","2.automations\u002F10.guides\u002F1.compress-uploads","An intake workflow that strips metadata, scales down and compresses images before saving them to your library.","i-lucide-file-image",{"title":839,"path":840,"stem":841,"description":842,"icon":843,"children":-1},"Limits and errors","\u002Fautomations\u002Freference\u002Flimits","2.automations\u002F11.reference\u002F2.limits","Default limits, the settings administrators can change, and what common error codes mean.","i-lucide-gauge",[845,854],{"title":846,"path":847,"stem":848,"children":849,"icon":853},"Getting started","\u002Fgetting-started","1.getting-started\u002F1.index",[850],{"title":851,"path":847,"stem":848,"icon":852},"Introduction","i-lucide-house",false,{"title":855,"path":856,"stem":857,"children":858,"icon":853},"Automations","\u002Fautomations","2.automations\u002F01.index",[859,862,867,872,875,879,884,887,892,897,904],{"title":860,"path":856,"stem":857,"icon":861},"Overview","i-lucide-workflow",{"title":863,"path":864,"stem":865,"icon":866},"Your first workflow","\u002Fautomations\u002Ffirst-workflow","2.automations\u002F02.first-workflow","i-lucide-rocket",{"title":868,"path":869,"stem":870,"icon":871},"The editor","\u002Fautomations\u002Feditor","2.automations\u002F03.editor","i-lucide-mouse-pointer-2",{"title":34,"path":33,"stem":873,"icon":874},"2.automations\u002F04.values","i-lucide-braces",{"title":218,"path":876,"stem":877,"icon":878},"\u002Fautomations\u002Fbranching","2.automations\u002F05.branching","i-lucide-split",{"title":880,"path":881,"stem":882,"icon":883},"Testing","\u002Fautomations\u002Ftesting","2.automations\u002F06.testing","i-lucide-flask-conical",{"title":159,"path":158,"stem":885,"icon":886},"2.automations\u002F07.intake","i-lucide-inbox",{"title":888,"path":889,"stem":890,"icon":891},"Quarantine and failures","\u002Fautomations\u002Fquarantine","2.automations\u002F08.quarantine","i-lucide-shield-alert",{"title":893,"path":894,"stem":895,"icon":896},"Runs and history","\u002Fautomations\u002Fruns","2.automations\u002F09.runs","i-lucide-history",{"title":898,"icon":899,"path":900,"stem":901,"children":902,"page":853},"Guides","i-lucide-book-open","\u002Fautomations\u002Fguides","2.automations\u002F10.guides",[903],{"title":833,"path":834,"stem":835,"icon":837},{"title":905,"icon":906,"path":907,"stem":908,"children":909,"page":853},"Reference","i-lucide-library","\u002Fautomations\u002Freference","2.automations\u002F11.reference",[910,911],{"title":5,"path":827,"stem":829,"icon":826},{"title":839,"path":840,"stem":841,"icon":843},1796146074619,"7701d6d7-f1dc-48af-abe7-a8319dcc587e"]