Author a custom visual with AI

The Studio for a custom visual tile has an assistant column that writes and edits the visual's code for you. Use it to start a visual from a description, rework code you already have, or fix something a check has flagged; every change it makes lands in the editor for you to review first. If you are new to custom visuals, start with Custom visuals and the visual library.

Ask the assistant to write the code

  1. Open the tile's Studio from Edit code. The assistant column sits on the right; it is open by default when you may use it, and the Studio remembers whether you keep it open. While it loads, the column reads Loading assistant.
  2. Describe what the visual should do: the fields to show, the way it should look, and anything to avoid. The assistant reads the tile before it writes, so it starts from its code, fields and data.
  3. Read the reply and the steps it took. How each step appears is explained in Building custom visuals with the assistant.
  4. Review the change in the editor, then choose Apply or press Ctrl+Enter. Apply puts the code on the tile; saving the report shares it.

What the assistant can do

Review before the tile changes

Previews the assistant can run

What the checks look for

Limits while it works

Start from a chart you already have

When a native chart is converted into a custom visual, the assistant's first turn comes seeded: it receives the chart's configuration, the fields it used, and, when the chart could be captured, a picture of how it renders today. Ask it to improve the visual from there. The conversion itself is described in Convert a chart to a custom visual.

Questions, answered

Who can use the assistant while building a custom visual?

You need the DataPrism Custom Visual Author permission, which also brings Use DataPrism AI, and edit access to the report. Without it the assistant column is not available; ask an administrator to add the permission to your role. See Who can do what in DataPrism.

Do the assistant's changes go straight onto the tile?

No. Every change lands in the editor as an unapplied edit, and the tile changes only when you choose Apply. See The custom visual Studio for the apply and save flow.

Why can I not edit the code while the assistant is working?

A turn is running, so the code is locked: the editor is read-only and shows AI is editing - the editor is read-only until the turn finishes. Apply, undo and redo also wait for the turn to finish. Let it finish, then review what changed.

The banner says the AI works from the applied code. What does that mean?

The assistant reads the code applied to the tile, not edits still sitting in the editor. With unapplied edits you see You have unapplied edits; the AI works from the applied code. Apply your edits first if you want the assistant to build on them.

Can the assistant bind fields and set options for me?

Yes. It can declare the visual's data roles and bind the tile's fields to them, change the visual's options, and change interactions such as selection and link opening. New options it writes are added to the options schema, so they appear as controls in the options panel.

Can the assistant preview the visual on my real data before I apply?

Yes. It can render the visual at tile, wide or narrow size against up to 200 of your live rows, and it can attach a small picture of the render to the conversation.

What is a hostile data preview for?

It replaces your rows with awkward values: long text, odd numbers, empty values and text that looks like code. It shows how the visual copes with messy data that tidy demo rows hide. Ask for a hostile preview when you want to stress the code.

How much of my data does the assistant read?

The tile's code and settings, the fields bound to it, and a profile of those fields that keeps up to three sample values per field. Previews draw at most 200 rows. It works on the tile open in the Studio.

How do I tell which code the assistant wrote?

Assistant code is tagged as AI-made. In the Studio's version history, a version whose code the assistant wrote carries the Mind origin chip; your own edits read You, and a restored earlier version reads Restored.

Does the assistant rewrite the whole file for a small fix?

No. It can work in small strokes: it can replace the whole source, patch one passage by search and replace, or replace a range of lines. Ask for a small change and only that part is written.