AI blocks use the models, vector fields and agents you set up under AI. See AI in flows and Agents. This page documents 7 blocks. For how flows work, see Flows and the flow editor. Values in settings can use templates such as {{ input.id }} and {{ steps.load.output.email }}; see Block reference overview.

Run an agent

Key: ai.agent Hands a job to an agent and continues with its answer. Continues to: next

Answer from my data

Key: ai.answer Answers a question from your own records: searches by meaning, then has a model answer from what it found. Continues to: next

Ask a model

Key: ai.chat Asks a chat model and returns its answer. Continues to: next

Embed text

Key: ai.embed Turns text into vectors. Continues to: next

Add to a knowledge base

Key: ai.knowledge.add Adds text to a knowledge base. The same source added again replaces what was there. Continues to: next

Search a knowledge base

Key: ai.knowledge.search Finds the passages in a knowledge base that best answer a question. Continues to: next

Search by meaning

Key: ai.search Finds the records closest in meaning to some text (or a vector). Continues to: next