Skip to content

Step reference

Every trigger and step available today, with its settings and the values it produces.

Settings marked required must be set before the workflow can be published. Settings that accept values from the run can be a Fixed value, From a step or a Template; see Values and templates. Settings under Advanced, and optional sections you haven't used, are collapsed in the editor.

Most steps that change a file have a File setting under Advanced. It's the run's file unless you choose another, such as the file a Save file step produced.

Triggers

Run manually

Library workflows. Runs when you start it from Files: select files, then More actions › Run automation. Up to 100 files at a time.

Produces: file.

File uploaded

Library workflows. Runs when a file is saved to your library, before thumbnails and other processing.

File types
list of text
MIME types such as image/png or image/*. Empty means every file.
Folder
folder
Only files uploaded into this folder.

Produces: file.

Tag added

Library workflows. Runs when a tag is added to a file, by you or by another workflow.

Tags
tags
Runs when any of these tags is added. Empty means any tag.

Produces: file, tag.

Field changed

Library workflows. Runs when a field's value on a file is set, changed or cleared, by you, the API or another workflow. Setting a field to the value it already has doesn't count.

Fields
fields
Runs when any of these fields changes. Empty means any field.
Only when set
yes or no
On by default: clearing a field doesn't start a run.

Produces: file, fieldId, value, previous.

File received

Intake workflows. Runs when an upload arrives, before it's saved. See Upload intake.

File types
list of text
MIME types such as image/png or image/*. Empty means every file.
Largest size (MB)
number
Larger uploads don't match. Empty means any size.
Tokens
tokens
Only uploads made with these API tokens, when the workflow is picked automatically. Empty means any upload.

Produces: content (the received upload), source (web or API, and which token).

Logic

Condition

Continues on True when its rules match, otherwise on False. The inspector shows its rules as a summary; edit them in the larger editor. See Conditions and branching.

Rules
list required
Up to 20 rules, each with a Value, an Operator, a value to Compare with and, under Advanced, Case-sensitive.
Match
All rules | Any rule
Default All rules.

Produces: result (true or false).

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Switch

Continues on the output of the first case the value equals, otherwise on Otherwise. Set it up in the larger editor.

Value
any
The value to compare.
Cases
list required
Up to 20 cases, each with an Output name (lowercase letters, digits and dashes) and the value it Equals.
Case-sensitive
yes or no
Advanced. Off by default.

Produces: case (the output it took).

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Organize

Rename

New name
text required
Up to 255 characters.
Keep the extension
yes or no
On by default: the file keeps its current extension.

Produces: name.

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Add tags

Tags
tags
Existing tags to add. Can take the tags output of AI suggest tags.
Tag names
list of text
Tags with these names are created when they don't exist.

Produces: tags.

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Remove tags

Tags
tags required
Tags to take off the file.

Produces: tags.

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Move to folder

Folder
folder
Leave empty for All files.
Subfolders
text
Folders to create inside it, such as {{ trigger.file.createdAt | date: 'yyyy/MM' }}. Up to 8 levels; .. and empty segments aren't allowed.

Produces: folder.

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Move to trash

Moves the file to Trash and turns off its links. No settings besides File.

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Share and notify

Expires after
duration
An ISO 8601 duration such as P7D (7 days) or PT12H (12 hours). Empty means never.

Produces: url, expiresAt.

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Send notification

Posts a short message through a connection, such as a Discord webhook. It isn't retried automatically after a failure that leaves it unclear whether the message was posted; the run asks you instead.

Connection
connection required
A connection that sends notifications, such as a Discord webhook.
Message
text required
Text or a template, such as Uploaded {{ subject.name }}. Up to 4,000 characters. With a connection that shows Markdown, such as Discord, it's formatted text: bold, lists, links and so on. Discord messages never ping @everyone, @here, users or roles, even when the text names them. It's always sent whole: if the service takes less, the step fails and says how to fit it. Discord takes 2,000 characters, or 4,096 when the message has a title.
File
content
Under Attachment. A file to attach, such as content from Load content. Only for connections that take attachments.
Title
text
Under More message options. Shown above the message.
Link
text
Under More message options. An http or https address the title links to, such as a share link.

Produces: messageId.

Works in
Library and intake workflows
Changes
Something outside Avenvail
Needs
A notification connection, such as a Discord webhook
Sends out
Text
Retries
Not retried once it started sending; the run asks you
Time limit
1 minute per attempt

Send webhook

Sends JSON or a file to the address of a webhook connection. The address and headers stay in the connection, so they never appear in the workflow. Every request carries Avenvail-Delivery and Avenvail-Attempt headers. Whatever the method, it counts as an outside change: automatic retries after an unclear failure happen only when the connection's receiver ignores repeated deliveries. Set it up in the larger editor.

Connection
connection required
A webhook connection.
Body
any
Sent as JSON. A fixed value, a value from a step, or a template. Text that is a JSON object or array, such as a rendered template, is sent as that JSON.
File
content
Advanced. Sends this content as the body instead of JSON, with its own type. Up to 25 MiB.
Method
POST | PUT | PATCH | DELETE | GET
Advanced. Default POST. GET sends no body.
Path
text
Advanced. Added to the connection's address, such as /files. Up to 500 characters.
Headers
list
Advanced. Up to 10 extra headers, each with a Name and a Value. They can't replace the connection's headers, Authorization, Cookie, Avenvail- headers or headers the transport sets.

Produces: status (the HTTP status), response (the response, parsed when it says it's JSON, up to 16 KiB) and deliveryId (the Avenvail-Delivery value).

Works in
Library and intake workflows
Changes
Something outside Avenvail
Needs
A webhook connection
Sends out
File details and values you choose
Retries
Retried only when the receiver ignores repeated deliveries
Time limit
1 minute per attempt

Content

Content steps work on content: the upload in an intake workflow, or a saved file's content after 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.

Save file

Saves content to your library. The inspector shows a summary; Configure step opens the larger editor with the content and Save as first, then Destination, Tags, Fields, Attachments and Sharing.

Content
content required
What to save. Check it reads the last content step; see Check what Save file reads.
Save as
The upload | An additional file
An additional file (default) saves a new, separate file. The upload commits this content as the uploaded file, so its reserved links start working; it's only offered in intake workflows.

Destination

Name
text
Empty keeps the content's name.
Keep the extension
yes or no
Advanced. On by default.
Folder
folder
When saving the upload, empty keeps the folder the upload was sent to (Keep the upload's folder). For an additional file, empty saves to the top of your library (All files).
Subfolders
text
Folders to create inside the folder, such as {{ trigger.content.receivedAt | date: 'yyyy-MM' }}.

Tags, fields, attachments and sharing

Tags
tags
One editor for both: pick existing tags, or type a new name and choose Create to add a tag that's created when the step runs. Add tag names from a step takes a list of names from an earlier step instead. Up to 20 of each.
Fields
list
Up to 20 fields to set on the saved file, each with a Field, a Value and If it already has a value, as in Set field. The value's input matches the field's type.
Attachments
list
Up to 10 attachments to add to the saved file, each with a Name, Text, Kind and If the name is taken, as in Add attachment.
Create a share link
yes or no
Off by default. An upload that already asked for a link keeps it.
Link expires after
duration
Shown when Create a share link is on. Empty means the link never expires.

Produces: file (the saved file), shareUrl (only when a share link was created).

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Load content

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.

Produces: content.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Strip metadata

Removes EXIF, location and other metadata from an image, turning it upright first.

Content
content required

Produces: content.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Auto-crop

Trims a solid border, such as the empty space around a screenshot. The border color is taken from the top-left pixel.

Content
content required
Tolerance
0 to 255
Advanced. How far a pixel may differ from the border color and still be trimmed. Default 8.

Produces: content.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Resize

Scales an image to fit within a width and height, keeping its proportions. Set at least one of the two.

Content
content required
Max width
1 to 20000
Max height
1 to 20000
Enlarge smaller images
yes or no
Advanced. Off by default, so images that already fit pass through unchanged.

Produces: content.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Convert image

Saves an image as PNG, JPEG or WebP. The name's extension changes to match.

Content
content required
Format
PNG | JPEG | WebP
Default WebP.
Quality
1 to 100
For JPEG and WebP. Default 90.

Produces: content.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Compress image

Makes an image smaller in the same format. Keeps the input when compressing doesn't help.

Content
content required
Quality
1 to 100
For JPEG and WebP. PNG is compressed without loss. Default 80.

Produces: content.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Data

Set values

Names values so later steps can use them as steps.<id>.<name>. Handy for building a name once and using it in several places.

Values
list required
Up to 20, each with a Name (letters, digits and underscores, starting with a letter) and a Value.

Produces: one value per name.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Set field

Sets one of your fields on the file. The value is converted to the field's type where it reads as one (the text 42 for a number field), and the step fails with field_value_invalid when it doesn't.

Field
field required
Picked from your fields and saved by id, so renaming the field never breaks the workflow.
Value
any
Fixed, from a step, or a text template. Leave empty to clear the field.
If it already has a value
choice
Advanced. Leave empty to use the workflow's Fields a person set setting (Keep them unless changed). Keep values a person set only replaces values a workflow or the API set. Replace always writes. Only if empty leaves any value alone. Add to the list adds new items to a list field. Fail stops with field_already_set.

Produces: value (the field's value afterwards) and written (whether this step changed it).

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Add attachment

Stores text with the file as an attachment. Text and Markdown attachments are searchable.

Name
text required
Up to 100 characters.
Text
text or attachment required
Fixed text, a template, or an attachment from an earlier step, such as one Add attachment made. Up to 20,000 characters when typed.
Kind
choice
Text (default), Markdown or JSON. JSON must be valid.
If the name is taken
choice
Advanced. Replace it (default), Keep the existing one, Add with a new name or Fail.

Produces: attachment.

Works in
Library and intake workflows
Changes
Your library
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Flow

Wait

Pauses the run for a while or until a time. A waiting run holds nothing, even across restarts.

Wait for
duration
An ISO 8601 duration, such as PT10M or P1D.
Wait until
date
A time to wait until. A time in the past continues at once.
Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

Stop

Ends the run here and skips the remaining steps.

Reason
text
Shown in the run's history.
Works in
Library and intake workflows
Changes
Nothing; it only produces values
Retries
Up to 3 attempts
Time limit
2 minutes per attempt

AI

AI classify

Chooses the best matching category for an image or text, through an AI connection. Settings and examples: AI classify and extract.

Produces: category, label, matched, confidence, reason, ai.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
An AI connection
Sends out
The file's content
Cost
The provider may charge for each request
Retries
Up to 3 attempts
Time limit
8 minutes per attempt

AI extract

Reads typed values, such as a receipt's total and date, from an image or text. Values it can't find stay empty and are listed in missing; nothing is guessed. Settings and examples: AI classify and extract.

Produces: one output per value, missing, ai.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
An AI connection
Sends out
The file's content
Cost
The provider may charge for each request
Retries
Up to 3 attempts
Time limit
8 minutes per attempt

AI detect

Answers a yes-or-no question about an image or text, and continues on Yes, No or Unsure. Answers less certain than Minimum confidence take Unsure. Settings and examples: AI detect and suggest tags.

Produces: answer, confidence, probability, reason, ai.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
An AI connection
Sends out
The file's content
Cost
The provider may charge for each request
Retries
Up to 3 attempts
Time limit
8 minutes per attempt

AI suggest tags

Picks fitting tags from yours for an image or text, and can suggest new ones when none fit. It never creates tags: give its outputs to Add tags. Settings and examples: AI detect and suggest tags.

Produces: tags, tagNames, newTags, matched, probabilities, ai.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
An AI connection
Sends out
The file's content
Cost
The provider may charge for each request
Retries
Up to 3 attempts
Time limit
8 minutes per attempt

AI describe image

Writes a description or alt text for an image. Settings: AI describe, summarize and write.

Produces: description, ai.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
An AI connection
Sends out
The file's content
Cost
The provider may charge for each request
Retries
Up to 3 attempts
Time limit
8 minutes per attempt

AI summarize

Summarizes text or an image in a sentence, a paragraph or bullet points. Settings: AI describe, summarize and write.

Produces: summary, ai.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
An AI connection
Sends out
The file's content
Cost
The provider may charge for each request
Retries
Up to 3 attempts
Time limit
8 minutes per attempt

AI generate text

Writes what you ask for, optionally about a text or an image. Settings: AI describe, summarize and write.

Produces: text, ai.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
An AI connection
Sends out
The file's content
Cost
The provider may charge for each request
Retries
Up to 3 attempts
Time limit
8 minutes per attempt

OCR

Extract text

Reads the text in an image through an OCR connection, with a preset for screenshots, documents or sparse text. Continues on Next with the text, or on No text found when the image has none. Settings and outputs: Text recognition.

Produces: text, preview, hasText, confidence, words, ocr.

Works in
Library and intake workflows
Changes
Nothing; it only produces values
Needs
A connection
Sends out
The file's content
Retries
Up to 3 attempts
Time limit
5 minutes per attempt

Coming later

Triggers for File ready and Moved into folder, and schedules.