Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

GenAI

Send a prompt to an AI model from a block, using variables from your project.

A GenAI block sends a prompt to an AI model and saves the response, so you can use a model as one step in a workflow. For example, you can summarize the results of an analysis, classify text, or extract fields from documents.

Settings

Setting
What it does

Model

The model to use. The list shows each model's name, provider and output type, such as text or image.

Max tokens

The longest response the model can write

Temperature

How varied the responses are. Lower values give more consistent results.

System prompt

Instructions the model follows for every prompt in the block

The models available depend on your organization's model settings.

Using variables in prompts

Prompts can include variables from the blocks connected before the GenAI block, so the model works with your data. For example, a Python block can calculate summary statistics, and the GenAI block can turn them into a written summary.

GenAI blocks and the agent

A GenAI block runs a single prompt as part of your workflow. For work that needs planning, code and multiple steps, use the agent instead.

Last updated

Was this helpful?