Workflow steps

file.save

type: "file.save"

Writes a file into an object storage. The step that turns something a chain produced into something that exists.

object storagepath requiredcontent or base64
Using Python?

Switch any code block to Python: the choice applies to every page. Python SDK guide and resource reference.

storagestringrequired

An object storage.

pathstringrequired

Where to write it.

contentany

Text content.

contentBase64string

Bytes. For anything that is not text.

One of content and contentBase64 is required.

{ id: "save", type: "file.save", config: {
    storage: "…", path: "digests/{{input.week}}.pdf",
    contentBase64: "{{steps.pdf.output.base64}}" } }
{"id": "save", "type": "file.save", "config": {
    "storage": "…", "path": "digests/{{input.week}}.pdf",
    "contentBase64": "{{steps.pdf.output.base64}}"}}

Binary goes in contentBase64

content is for text

A PDF or an image passed as content is written as the string it is not. The conversion step hands back base64 precisely so it can go straight into this field.

Output

{{steps.save.output.key}}
{{steps.save.output.size}}
{{steps.save.output.storage}}
"{{steps.save.output.key}}"
"{{steps.save.output.size}}"
"{{steps.save.output.storage}}"

It counts against the storage

A write past the ceiling is refused. On a scheduled chain that writes every run, that is a failure waiting for a date — worth a usage check now and then.

Against document.save

This writes a file. document.save writes it and indexes it, so semantic search can find it later.