Build with AI

References with @

Type @ in the chat to point Lyna AI at a component, a block or a site template of Lyna's library, or at a person or an agent, with a picture and a live preview of each item before you pick it.

Type @ in the message box to add an item of Lyna's library to your message: a component, a block or a site template. Lyna AI then builds with that exact item, for example "make a pricing page with @Pricing three tiers and @Card". The same menu also mentions a person of the project or gives a task to an agent.

What you can do

  • Pick a component, a block or a site template with @, with a picture of each one.
  • See a live preview of the highlighted item in your project's colors and fonts before you pick it.
  • Mention a person of the project, or give a task to one of your agents, from the same menu.
  • Add up to six references to one message, each shown as a chip in your sentence and a small card above the message box.
  • Open a reference of a sent message again, on a desktop or a phone screen, and reference it again in one click.

Pick an item

  1. Type @

    In the message box, type @. The menu opens above the message box, on All. It lists, in this order:

    • Recent: the last three items you referenced in this project.
    • The best matches of each kind: People, Agents, Components, Blocks and Templates. A kind with more matches ends with a row such as See all blocks, with the number of matches.
    • Files, folders and links, which opens the file list. See Mentions and context.
  2. Narrow the list

    Type a word after the @, such as @pricing or @card. Each kind keeps only the items that match. A word with a / or a ., such as @src/routes or @button.tsx, is a file path: it opens the file list instead.

    Use ← and → to switch between All, People, Agents, Components, Blocks, Templates and Files.

  3. Look before you pick

    Move through the rows with ↑ and ↓. For a component, a block or a template, a preview card shows the item: its picture at once, then a live preview in your project's theme when you stay on the row. It also says one fact about the item:

    KindWhat the preview card adds
    ComponentIn your project, or Not in your project yet: Lyna installs it first.
    BlockUses, with the components the block is made of.
    TemplateIts number of pages. On a plan without Pro, a template marked Pro says On your plan, Lyna reads this template's pages and sections, not its code.
  4. Add it

    Press Enter or Tab, or click the row. The item joins your message. Enter never sends the message here. Press Esc to close the menu: what you typed stays.

When nothing matches, the menu says Nothing matches with your word, and Describe it in your own words, Lyna builds it. In one kind, Search every kind takes your word back to All. When you are offline, components and blocks still show; templates need a connection.

What each kind does

KindWhat it isWhat Lyna AI does with it
ComponentsA component of the Components tab, such as Card or Tabs.Installs it first when your project does not have it, then uses it in your page.
BlocksA ready-made section of the block library, such as a pricing table or a FAQ.Adds the block to your project as a component of its own, then places it in the page and adapts it. The step reads Adding a block.
TemplatesA site template of the Templates tab.Reads its pages and sections, shown as Reading a site template, and follows that structure in your own design.
PeopleA member of the project.They get a notification that opens the chat at your message.
AgentsOne of your agents, a saved team (marked Team) or a built-in role (marked Built-in).Gives that agent the task. See Agent teams.

A reference is something to build with, never a change of brand: Lyna AI keeps your colors, fonts and components. Adding a block, installing a component and following a template happen in Build. In Ask and Plan, Lyna AI reads your references and names them in its answer or its plan, and changes nothing.

References in the message box

A reference shows twice: as a chip where it sits in your sentence, with the icon of its kind, and as a small card above the message box with its picture, its name and its category.

  • Point at a card, or move the focus to it, to see a larger picture with the full name. Its chips in the sentence light up.
  • Remove a card with its remove button: its chips leave the sentence too, in one step you can undo.
  • Delete the last chip of a reference, and its card goes too. A chip goes away whole with one press of Backspace.
  • Pick the same item again to add one more chip to the same card: it stays one reference.
  • Only a pick makes a reference. @Card typed by hand stays plain text.

A message holds up to six references. At six, the menu says Up to 6 references per message and Remove one to add another., and the other library rows cannot be picked until you remove one. An item already in your message shows Added in the menu.

References in a sent message

Your message in the chat keeps its chips, and the cards line up under it. Click a card to open the item's preview.

The preview opens beside the page on a desktop, and as a sheet on a phone. It holds:

  • a live preview in your project's theme. For a block, switch between Desktop and Phone. A template shows its picture.
  • the details: Category, Uses for a block, Import from for a component, Pages and Sections for a template.
  • Reference again, which adds the item to your next message.
  • Open in Components, Open in the block library or Open in Templates, which opens the tab that holds the item.

An item that left Lyna's library keeps its card, with a line that says it is out of the library, and opens nothing.

On a phone

The same menu opens above the keyboard, with taller rows and no preview card. The keyboard stays open the whole time, so you keep typing your sentence.

Need help?

Ask the team, read what changed, or learn from the blog.