Skip to content
QwryAI
Documentation
Pages

Widgets

AI Widget Builder

Generate Widgets from plain-language descriptions or ready-made templates with the AI builder.

The AI Widget Builder creates a complete, working Widget from a description. Describe what you want in plain English, and the AI writes the code, schema, default values and the functions and states behind them.

You don't need to write code. Describe your Widget, then refine it through the conversation.

Getting Started

Go to Build › Widgets, open the Create Widgets tab and click Custom Widget. The builder opens on the AI Builder tab.

Custom Widget opens an empty builder.

You have two ways to start:

  • Pick a template. Under What would you like to build?, click Pricing table, Order tracker, Product card or Contact form to generate a Widget for that common use.
  • Describe your own. Type what you want in the Describe a Widget... box, for example "a contact form with name, email and message fields".
Choose a template or describe your own.

Name the Widget by clicking its title at the top of the builder.

Click the title to name the Widget.
Describe the Widget in plain language and send it.

What the AI Generates

When you send a description or pick a template, the AI builds the whole Widget:

  • Code: the full layout, ready to render.
  • Schema: the data fields the Widget expects and their types.
  • Default: sample values, so you see the Widget working straight away.
  • Functions and states: what each button and form does, and which parts show when.

The AI's reply sums up what it built, and the preview on the right shows the result.

The AI's summary and the finished Widget in the preview.

Refining Your Widget

After the first version, send follow-up messages in the Ask for a change... box. The builder works as a conversation, so you can keep refining.

Examples of follow-up requests:

  • "Make the buttons blue"
  • "Add a phone number field"
  • "Change the heading to Welcome back"
  • "Remove the email check"

Each follow-up updates the Widget's code, schema and default values together. Click New conversation (+) above the chat to start a fresh conversation about the same Widget.

Add Images to Your Widget

You can upload images in the builder and use them in your Widget, such as logos, product photos and icons.

In Build › Widgets › AI Builder, click the Attach image button in the message box. Choose how you'll use the image before you pick the file:

  • Add image to Widget: uploads and hosts the image, so the Widget can show it.
  • Add design reference: gives the image to the AI as a guide for the look, without adding it to the Widget. Use this to build a Widget from an existing design.
  • Manage Widget images…: see your hosted images, upload new ones, copy an image's URL, insert it into the code, or delete it.
Choose how the image is used before picking the file.

Images in your messages are labeled In Widget or Reference, so you can tell hosted images from design references.

You can also open Widget images from the Code tab's toolbar to upload and insert images without the AI Builder. See Code Editor.

Image limits

  • Up to 5 hosted images per Widget.
  • Formats: PNG, JPEG, WebP and GIF.
  • Up to 5 MB per image.
  • Up to 3 images per message. The AI looks at the 4 most recent images in the conversation.

Undo

If a result isn't what you wanted, go back to an earlier point in the conversation. Hover over one of your messages and click Restore.

Restore appears beside each of your messages.

The builder asks you to confirm. Restoring puts the Widget back as it was at that message, and removes every later message and change.

Confirm to roll the Widget back.

Live Preview

The preview on the right shows the Widget as visitors will see it, and updates as soon as each generation finishes. Use the menu under the preview to switch between Chat Bubble and Center Stage, and the sun and moon buttons to check the light and dark themes.

Saving Your Widget

Click Create to save the Widget. The Widget successfully created dialog offers Add to an Action, so your agent can start showing it in conversations.

Attach the new Widget to an Action, or dismiss to keep editing.

Next steps

Explore the documentation