跳转到内容
Agentic Workflowdocs
v0.8.2免费安装

节点 / builtin / ai / aiagents

Basic LLM Chain

A simple chain to prompt a LLM and return the response

AI 扩展程序网页应用

此内容尚不支持你的语言。

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

工作流 · explain-eli5.awf 4 个步骤

Explain Like I'm 5:包含 4 个步骤的工作流,从 Right-click a selection 开始,到 Show the explanation 结束。

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.

设置项类型作用
Prompt (必填)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:

Field类型What 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 (必填)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 入门 · 4 分钟 设备端 Rewrite rough text in a professional tone 入门 · 4 分钟 设备端
编辑此页

最近更新:

Was this page useful?
向 Aria 询问“Basic LLM Chain”