When an artifact looks the way you want, send its changes to the agent so it writes them into your real code. The agent works on the page the artifact came from.
Before you start
An artifact made from a Portal, with changes, see Edit an artifact with the agent. If you picked a variant or changed a control, that is the version that gets built.
Steps
Select the artifact on the canvas and click Build in Codebase at the top of the design panel. Right-clicking the artifact gives the same item.

Build Mode opens on the Portal the artifact came from, at the same page and width. The artifact sits above the message field as a chip.
Type anything the agent should know, or leave the field empty. An empty send gives it the instruction "Build the artifact's changes into the product."
Send. The agent compares the artifact with the page it was made from and changes the code to match. The page on the stage reloads with the change.

From here it is a normal Build Mode change: check it on the stage, then open a pull request, see Create a pull request.
In Build Mode on the artifact itself, Build in Codebase also appears above the message field once the artifact has changes.
If it does not work
"This artifact has no changes to build yet": the artifact still matches the page it came from. Change it first.
"Add the app to this page to build into it": the canvas page has no Portal to build into. Add one, see Add a Portal to the canvas.
"This artifact is still importing its interactions": wait until the artifact is unlocked, then try again.
