AI agent and chat blocks

The surfaces an AI product works through: an assistant thread that shows its research, agents that run work and stop to ask, the tools and sources behind an answer, and workflows people build and watch. The model behind them stays yours.

4 families, 41 blocks#

What these are for#

An AI chat block is the interface between a person and a model: the composer they type or speak into, the reply that comes back, and the actions around it. Orvain's AI blocks cover the assistant thread, the assistant with voice, the assistant home screen, the prompt library, and rewriting a selection from a card, from a toolbar, or in place.

An assistant is an editor with a second author, and the states are what make it trustworthy. Each block carries them: a thinking state that says what it is doing, a reply that streams so the wait reads as work, numbered sources beside every claim, and a rewrite that is shown before it replaces anything a person wrote.

Agents need more than a thread. The Agents family covers a run as it happens, with each step, the app it touches and the approval it waits on, plus plans, checkpoints, parallel attempts, fleets, queues, traces and an inbox for what needs a person. The AI tools family covers the parts around a single answer: web search, tool calls, a code review, file parsing, image generation, context, memory and cost. The Workflow canvas covers automations people draw themselves and then run.

The blocks are the surface, not the model. They take a stream of text and a list of sources from whatever you run, an API, an agent framework or your own server, so switching providers never means rebuilding the interface. With the Orvain MCP connected, an AI coding tool can build any of them into your product from one line.

Choosing between them#

A full assistant thread or rewrite on a selection?

Use a thread when people come to ask questions: the assistant answers from your content and shows where each answer came from. Use rewrite on a selection when people are already writing and want help with a sentence they chose. Rewriting is lighter, stays inside the text, and never takes the page away from the person writing it.

An assistant, an agent, or a workflow?

Use an assistant thread when a person asks and reads the answer. Use the agent blocks when the model takes several steps on its own in other apps and someone has to see what it is doing and approve the risky parts. Use a workflow canvas when the steps are known ahead of time and a person designs them, so each run follows the drawing rather than the model's judgement.

When is a voice mode worth adding?

When people use the product away from a keyboard, on a phone, while doing something else, or for long questions that are quicker to say than to type. The voice block keeps the transcript on screen as it listens, so a misheard word can be fixed before it is sent rather than after the answer comes back.

Questions#

Which AI models do the chat blocks work with?

Any. The blocks render a reply as it streams, its numbered sources and the actions under it; they do not call a model themselves. Connect them to OpenAI, Anthropic, an open-source model or your own agent, and swap providers later without touching the interface.

How do the agent blocks handle approvals?

Do the AI chat blocks stream replies?

The other categories#