Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / ai / aiagents

Summarization

Summarize a text using a LLM

AI ExtensionWeb app

Turn a long text into a short summary with a chat model.

workflow · summarize-this-page.awf 4 steps

Summarize This Page: a workflow with 4 steps, starting with Run now and ending with Show the summary.

Open in AWFlow

Summarization sends Text to the chat model connected to Model, asking for a concise summary that keeps the key points. The reply comes back in summary.

Max words and Style are added to the model’s instructions. They guide the model; they do not cut the text afterwards, so a summary can run a little over Max words.

The whole text is sent in one request, so it must fit the model’s context window.

  • Summarise an article or a long page before you read it.
  • Shorten a transcript, an email thread or a report before you save or send it.
  • Make compact context for another AI step.

To summarise on-device without a model node, use Summarize. For any other kind of rewrite, use Basic LLM Chain.

SettingTypeWhat it does
Text (required)Long textThe text to summarize.
Options GroupThe options for the node.
Options › Max words NumberThe approximate maximum number of words the summary should contain.
Options › Style TextThe style of the summary, e.g. "bullet points", "one paragraph", "formal".
Options › System message Long textThe system message to use.

Fill Text with an expression such as {{ $input.text }}. Style is free text: bullet points, one paragraph, formal, for a ten-year-old. Use System message for other rules, such as Write in French.

  • Output

Each output item has these fields:

FieldTypeWhat it holds
summary AnyThe model reply; the parsed result when an output parser is connected
Shape of an output item
{
"summary": null
}

summary is the summary as text. This node has no output parser slot. Use it downstream with {{ $input.summary }}.

SlotAcceptsConnections
Model (required)chat modelOne node.

Connect a chat model such as Chat OpenAI, Chat Anthropic or an on-device Web LLM. The model node holds the API key; Summarization has no credential of its own.

  1. Get All Text reads the current page, with Output field name text and Visible text only on.
  2. Summarization with Text {{ $input.text }}, Max words 120 and Style bullet points, with an Chat OpenAI model on Model.
  3. Display Markdown with Content {{ $input.summary }}.
  • The summary is longer than Max words. The limit is an instruction, not a hard cut. Lower it, or add Never exceed the word limit. in System message.
  • The model fails on a very long page. The text is larger than the model’s context window. Use a model with a larger window, or shorten the text first (for example with a DOM Selector in Get All Text).
  • “Dependency model is required”. Connect a chat model to the Model slot.
  • “Model not found”. The connected model node is not set up: open it and choose a model and its credential.
Summarize the page you're reading, on your device beginner · 5 min On-device
Edit page

Last updated:

Was this page useful?
Ask Aria about Summarization