Skip to main content

Summarize it

Stepsummarizeaideprecated

Replaced by an AI agent step. Give the agent the instruction "Write a short summary of the document".

At a glance​

PropertyValue
Step namesummarize
ResourceClusterStep (lumen.ai/v1alpha1)
Palette group, categoryai, ai
Credits0.5 credits each time it succeeds
Side effectsno
Installation must providenothing

Inputs​

PropertyValue
Needstext
Producesfields
Works onitem one document at a time

Needs and Produces are data types (file, text, fields, email). The editor offers a step only where what it needs is already on the path. See Documents and data.

Outputs​

No named outputs. Later nodes still see everything produced earlier on the path, and this step passes the documents on unchanged.

Settings​

Set under config: on the flow node. Text settings may contain {nodeId.field} placeholders.

SettingTypeDefaultDescription
filesobject-
files.modestring"attach"Mode is attach (the model reads each file whole when it can, its text otherwise), text (only the text read out of each file) or none (no file at all). Unset is attach. ifNoText attaches them only when the document has no text, and sends none otherwise.one of attach, text, none, ifNoText
files.maxFilesinteger10MaxFiles is the most files one document may bring; the rest are skipped. Unset is 10.minimum 1; maximum 100
files.maxPagesinteger100MaxPages is the most PDF pages across all files together; a PDF that crosses it is read up to the pages left. Unset is 100.minimum 1; maximum 1000
files.maxBytesinteger20971520MaxBytes is the most bytes, all files together. Unset is 20 MB.minimum 1; maximum 104857600

The full JSON Schema of these settings: summarize.schema.json.

Use it in a flow​

A node that runs summarize goes under spec.nodes of a Flow. Give it any id, and list the next node ids in next.

flow.yaml
apiVersion: lumen.ai/v1alpha1
kind: Flow
metadata:
name: summarize-example
namespace: tenant-acme
spec:
displayName: "Summarize it"
triggers:
- id: start
ref: {name: manual-run}
next: [summarize]
nodes:
- id: summarize
stepRef: {name: summarize}