Skip to main content

Visualizations

Visualizations let a model draw interactive charts, diagrams, calculators and explainers directly in the chat.

Paste a table and ask for a chart, ask for a diagram of a process or a timeline, a small calculator with fields you can change, or an interactive explainer with a slider. Use it whenever a picture or something you can click explains the answer better than plain text. Admins and model owners turn it on per model.

How It Works​

The model writes a small piece of HTML, SVG and JavaScript through the render_visualization built-in tool, and the chat shows the result under a short title. Charts can use Chart.js. A model that has the tool uses it when a visual helps more than plain text.

Turn It On​

Visualizations are off by default. Turn them on per model in the model editor, under Builtin Tools > Visualizations. Open the editor for a base model in Settings > Models (admin section) or for your own model in Workspace > Models. The tool needs native function calling and the model's Builtin Tools capability.

Change the Instructions​

The instructions the model receives for the tool decide when and how it draws. Admins can rewrite them in Settings > Interface > Visualization Prompt (admin section) or with VISUALIZATION_PROMPT_TEMPLATE. An empty value uses the default.

Isolation and Security​

A visualization renders in an isolated frame. Two controls decide what it can do:

When a visualization wants to send a message to the chat, the user must confirm it first.

This content is for informational purposes only and does not constitute a warranty, guarantee, or contractual commitment. Open WebUI is provided "as is." See your license for applicable terms.