> ## Documentation Index
> Fetch the complete documentation index at: https://docs.runchat.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Chat

> Use chat to interact with AI models, run tools, search the web and create nodes on the canvas

Chat is the primary way to interact with AI in Runchat. The chat widget appears at the bottom of the editor and gives you access to an AI agent that can use your tools, run generative models, search the web and create nodes directly on the canvas.

<iframe width="100%" height="400" src="https://www.youtube.com/embed/LC8jLYWNiLA" title="The Runchat chat agent in action" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen />

<Frame>
  <img src="https://mintcdn.com/runchat/J8Y8DQ43swL1M50L/images/agents/chat-hero.webp?fit=max&auto=format&n=J8Y8DQ43swL1M50L&q=85&s=bdde24c1e8cd76972768a11ad1d43ed7" alt="The Runchat chat widget at the bottom of the editor with an active conversation" width="481" height="494" data-path="images/agents/chat-hero.webp" />
</Frame>

## What you can do

Chat is particularly well suited for:

* **Research**: Ask the agent to search the web, summarize findings and compile results
* **Design exploration**: Describe a concept and iterate on it through conversation, generating images and variations as you go
* **Workflow creation**: Describe what you want to build and let the agent set up nodes on the canvas
* **Code generation**: Ask the agent to write HTML pages, React components, or scripts for CAD plugins
* **Quick generation**: Generate a single image, text or other output without building a full workflow

## Creating a chat

To start a new chat, click on the chat input at the bottom of the editor and start typing. You can ask questions, give instructions, or describe what you want to create. The chat agent will respond and can take actions on your behalf using the tools available in your libraries.

<Info>
  You can also run a tool loop or single turn of a conversation from the Agent
  node. This is useful for automating agents within workflows, and for using
  multiple sub-agents from Chat.
</Info>

## Permission levels

By default, the chat agent can read and edit nodes on your canvas.
Click the Edit button in the chat input to view the chat settings.
The chat agent operates in one of three permission levels, which you can switch from the settings area in the chat input:

* **View**: The agent can browse and inspect the canvas, discover models, and answer questions, but cannot create or modify anything.
* **Edit** (default): The agent can create, connect, organize and update nodes on the canvas. It cannot run or execute nodes, it will present the completed workflow for you to run.
* **Run**: Full access. The agent can create, connect, organize, and also execute workflows on your behalf.

For the full list of tools available at each permission level, see [Agent Capabilities](/concepts/agents/capabilities).

<Frame>
  <img src="https://mintcdn.com/runchat/J8Y8DQ43swL1M50L/images/agents/chat-settings.webp?fit=max&auto=format&n=J8Y8DQ43swL1M50L&q=85&s=6b4f52f9e57729eb74931da90b630553" alt="The chat settings panel showing the permission toggle, budget, and reasoning controls" width="490" height="453" data-path="images/agents/chat-settings.webp" />
</Frame>

## Chat settings

### Chat budgets

By default, the agent can use unlimited tokens in its responses. If you want to limit the number of tokens (and credits) the agent uses in each response, set a budget. Once the agent reaches this budget it will immediately return its response and stop continuing to reason, search or use other tools.

### Reasoning effort

By default, the chat agent uses the minimum reasoning level for your selected model in order to act as quickly as possible.
For more complex requests you should consider increasing the reasoning effort for each response as this can improve the quality of the response.

## Model selection

Click the model name in the chat input to open the model selection panel. You can choose from any text model you have installed. The selected model persists within the current chat session. When you restore a previous chat, the model used in that session is automatically restored.

## Learning about Runchat

The chat agent knows about your canvas and the Runchat interface and can help teach you how to use Runchat.
You can try explaining what you want to do and have the agent walk through how to do it, or even build workflows for you.
If you're unsure what a node does or why it works in a particular way, try selecting it and then asking the agent to explain its behaviour.

## Running generative models

From chat you can ask the agent to generate images, videos, 3D models and other media or perform any other task you might take on the canvas.
The agent will automatically select the appropriate generative model based on your request and create nodes on the canvas using this model.
You can then modify the node in any way (e.g. change the prompt or generative model), and press play on the node to run it like any other node.

The agent selects from the models you have installed. You can install any model from Fal and use it with the Agent.
You can also be specific about which model to use by naming it in your message.

## Using custom tools

The chat agent can search for and use any tool you have installed in your [libraries](/concepts/publishing/libraries), as well as any tool that has been published and approved by the Runchat admins.
The agent can inspect the context of the tool workflow to learn from it and make changes (for instance to adapt an example to your specific design task), as well as execute the tool directly if given run permissions.

## Attaching images and context

You can provide visual context to the chat agent in several ways:

* **From your computer**: Copy paste an image into the text input in the chat.
* **From the canvas**: Select image nodes on the canvas, their images automatically appear as thumbnails in the chat input and are sent with your next message.

Selected images are cleared after each message is sent.

<Frame>
  <img src="https://mintcdn.com/runchat/J8Y8DQ43swL1M50L/images/agents/chat-with-selected-nodes.webp?fit=max&auto=format&n=J8Y8DQ43swL1M50L&q=85&s=f3a30140c1773bfe612f4579a5fd335c" alt="The chat input with selected canvas image nodes attached as thumbnails" width="1002" height="398" data-path="images/agents/chat-with-selected-nodes.webp" />
</Frame>

## Web search

Runchat has several custom tools that are installed for every user that perform web searches. The agent can use these to look up information, find reference images, and research topics. See [Agent Capabilities → Web Search](/concepts/agents/capabilities#web-search) for patterns that work well, or the [Search node reference](/node-reference/tools/search/tavily-search) for setup.

<Info>
  Search tool calls cost 10 credits each. You can link Tavily, Brave, Exa or
  Puremd API keys to use your own billing accounts (including free tiers)
  instead of using Runchat credits.
</Info>

## Creating nodes on the canvas

One of the most powerful features of chat is the ability to create and configure nodes directly on your canvas. You can describe what you want to build and the agent will create the appropriate nodes and configure their inputs and settings.
Some things that work particularly well:

* Asking the agent to generate custom nodes with a specific interface (e.g. a tool for drawing sketches or adjusting image colours)
* Asking the agent to generate websites and portfolios
* Asking the agent to create interactive charts and visualisations
* Asking the agent to create variations on all of the above as multiple nodes

For the underlying tools the agent uses to read, create, connect, and run nodes, see [Agent Capabilities](/concepts/agents/capabilities).

## Debugging with chat

If a node errors, select it and ask the agent to take a look. The agent can read the error, inspect upstream inputs, and in many cases apply a fix directly. See [Running and Debugging → Ask the Chat Agent](/concepts/editor/running-and-debugging#ask-the-chat-agent).

## Skills

The chat agent can load domain-specific skills to get specialized knowledge before creating code nodes. Available skills include guidelines for Rhino Python, Blender Python, Revit C#, HTML and JavaScript. The agent loads these automatically when creating code for these environments.

## Restoring chats

All of your previous chats are saved and can be restored at any time. Click the chat history icon in the left icon rail to view your chat history for the current workflow or across all workflows. Clicking on a previous chat will restore all messages, tools and the model from that conversation.

See [Editor Overview → Chats](/concepts/editor/overview#chats) for the chat history panel.

## Next steps

* [Agent Capabilities](/concepts/agents/capabilities): the full tool palette the agent has access to
* [Agent node](/node-reference/nodes/agent): run agent loops as part of a workflow
