Edit custom visuals with AI

The Custom Visual AI panel in the Studio edits the visual beside you: it reads the code and the tile's data, writes and patches the files, sets options, and checks how the result renders before you apply anything. This page covers the operations it runs on a tile, their limits and what stops them. For the authoring flow from a first prompt, see Author a custom visual with AI; for what a custom visual is, Custom visuals and the visual library.

What the assistant can do

Each step appears as its own card under the reply; Building custom visuals with the assistant explains what the cards say.

How it edits the code

Patches to the same file apply in the order they are sent, and several files can change in one turn. What lands is a change you apply; the apply and save flow is on The custom visual Studio.

Roles, fields and options

Checks, previews and the repair loop

What stops an edit

Note

A refused or timed-out step never changes the visual: no part of it is applied, the tile keeps the code it had, and the conversation says why.

Questions, answered

Why did the assistant say the visual studio is not connected?

An edit travels from the conversation to the Studio tab that holds your tile, so it needs a live Studio connection. Open the tile in the Studio with the Custom Visual AI panel open and ask again.

Is there a limit to how much the assistant can change in one turn?

Yes. One turn can make at most 60 operations on one visual. When a turn reaches the limit, it asks you to continue in a new message, and the next turn has a fresh budget.

The assistant reported a timeout. Was anything changed?

No. The Studio must answer a step within about 20 seconds; a step that gets no answer fails and no part of it is applied. Ask again and it makes a fresh attempt.

I closed the Studio while the assistant was working. What happened to the change?

An operation that was in flight when the Studio closed is not applied. Open the tile's Studio again and ask for the change.

I stopped the assistant's turn. What happens to what it already did?

The step that was running when you stopped is not applied. Steps that finished earlier stay in the editor as unapplied edits, so review them before you apply.

The assistant asked me to drag a field onto the tile. Why can it not add it itself?

The assistant never changes the report's fields; it only binds the fields already in the tile's Data well to the visual's data roles. When the code needs another field, it names one from the fields the report offers and you drag it in; the assistant continues once the field is bound.

How much does one step return at once?

A check returns up to 40 findings by default and up to 200 when a fuller list is asked for, and the true total always comes with it. Field suggestions return up to 8 by default and up to 40. One result carries at most three preview pictures.

Why does the assistant keep colours out of the visual's options?

Options values hold no colour literals. The assistant stores a theme token name instead, such as accent or chart-3, and your code resolves it with the theme, so the visual follows the report's style. See Custom visual options, data and limits.

Why can the assistant not edit while I impersonate another user?

Custom visual authoring is refused while you act as another user: each step re-checks the two permissions and your edit access to the report, and impersonation fails that check. End the session and open the tile's Studio again. See Impersonate a user.