Docs

Documentation versions (currently viewingVaadin 25.4 (pre-release))

Prompt AI to Make Changes

Select a component, a layout, or a view, and tell Copilot’s AI what to change, in your own words.

Select something and say what you want changed, in your own words. Copilot’s AI changes the code, and the view updates. It’s good for changes that touch many components at once, or that you’d otherwise look up.

Note
Before You Start
The AI needs you to be logged in with a Vaadin account, and to allow Copilot to use AI.

Add an Icon to Every Field

Add an icon to every field
  1. Select what the change is about, here the whole form: click a field and press ← for its parent. The badge names the form layout.

  2. Click the AI button in the badge, say what you want, and send it. Here, an icon at the start of every field: the AI picks one for each, and the form updates.

Explain and Check a Field’s Format

Select the Phone field and ask for its format as a helper text, and for the field to accept only that. The field shows the format, and the AI adds a check that rejects other numbers.

Split a Form into Sections

Select the view and ask for a change to its structure: here, the form split in two, each part under its own heading.

The Answers Vary

The AI doesn’t answer the same request the same way twice. Check the result in the view and in the code, and ask again in other words when it’s not what you meant. The more specific the request, the closer the result.