Skip to content
Agentic Workflowdocs
v0.8.2Install free

nodes / builtin / ai / aiagents

Basic LLM Chain

A simple chain to prompt a LLM and return the response

AI ExtensionWeb app

Send a prompt to a chat model and get its answer. The simplest way to use AI in a workflow.

workflow · explain-eli5.awf 4 steps

Explain Like I'm 5: a workflow with 4 steps, starting with Right-click a selection and ending with Show the explanation.

Open in AWFlow

Basic LLM Chain sends Prompt to the chat model connected to its Model slot and returns the reply as { response }. There are no tools, no memory and no document lookup: one prompt in, one answer out.

You must connect a chat model, for example OpenAI, Anthropic, Ollama or an on-device Web LLM model. Optionally connect an output parser to get structured data back instead of plain text.

  • Rewrite, translate, classify or summarise text from earlier nodes.
  • Draft an email, a reply or a title from page data.
  • Turn free text into fields, with a Structured Output Parser attached.

When the model must call tools or take actions, use Tools Agent. To answer from your own documents, use RAG Agent or Q&A Agent.

SettingTypeWhat it does
Prompt (required)Text
Options GroupThe options for the node.
Options › System message Long textThe system message to use.

Use expressions in Prompt to include data, for example Write a one-line summary of: {{ $input.text }}. Add a System message under Options to set tone or rules (“Answer in French”, “Reply in under 50 words”).

  • Output

Each output item has these fields:

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

response is the model’s reply: text, or the structured data your output parser produced.

SlotAcceptsConnections
Model (required)chat modelOne node.
Output Parser output parserOne node.

The node has no credential of its own. The connected model holds the API key or connection.

  1. Get Selected Text reads what you highlighted, with Output field name text.
  2. Basic LLM Chain with Prompt Explain this in plain words: {{ $input.text }}, and an OpenAI model connected to Model.
  3. Display Markdown shows {{ $input.response }}.
  • “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.
  • The reply is not in the shape you need. Attach a Structured Output Parser, or ask for the format in the System message.
Explain any highlighted text in plain words beginner · 4 min On-device Rewrite rough text in a professional tone beginner · 4 min On-device
Edit page

Last updated:

Was this page useful?
Ask Aria about Basic LLM Chain