Make an artifact from the part of your app you want to redesign, so you can change it with the agent before anything touches your code. See What is an artifact.
Before you start
A canvas with a Portal whose app has started, see Add a Portal to the canvas.
Artifacts turned on for your organization. Without them the Portal toolbar has no Interactive artifact button.
From an element of a Portal
Select the Portal. The Portal toolbar appears above it.
Click Interactive artifact.

Click the element you want, for example a row of a list. The toast reads "Artifact created, adding interactions".
The artifact lands next to the Portal, sized to the element. While the agent copies the element's behavior, the artifact has a dashed outline and the label Building, and you cannot edit it yet.

Other ways to make one
A whole page: right-click the Portal and pick Create artifact, or Create artifact with interactions to have the agent copy the page's behavior too.
From Build Mode: open Capture next to the address bar and pick Interactive artifact, or press
⌘ O. Click the element on the stage.An empty one: press
O, or click Artifact in the canvas toolbar, then click the canvas. It takes its styles from a Portal on the page.By asking: in the Agent tab, select a frame and ask for "a clickable prototype of this frame". The agent places an artifact next to it. See Chat with the agent.
If it does not work
"Open a portal first: an empty artifact takes its styles from a live page": the page has no Portal. Add one, then place the artifact.
"The portal is still loading: try again once it shows your page": wait until the Portal shows your app.
"Artifact added, but its interactions couldn't be imported": the artifact is there but does not respond to clicks. Ask the agent to add the behavior you need.
