AI tools in the editor

How to restyle generated login, blog or store components with "Refine"

How to restyle generated login, blog or store components with "Refine"

When you turn on a TeleportHQ feature such as the blog or the online store, what it adds (for example an article card, a product card or a cart line) starts from a standard template. To make a component match your site, open it and click Refine. The AI restyles it with your colors, fonts, spacing and screen sizes. Its content, data and interactions stay exactly the same, and you can undo it.

Before you start

  • Refining uses AI tokens. The Refine window shows the cost before you confirm. See What uses AI tokens, and how much?.
  • You need permission to edit components.
  • Refine works on components that a feature created: the blog's article card, the store's product cards and their loading placeholders, cart lines and review cards, and the AI chat window.

Refine one component

  1. In the TeleportHQ editor, open the component, for example the store's product card. You can open it from the Components list in the left sidebar.
  2. Above the canvas, next to Ask AI, click Refine (tooltip, for example, Restyle this E-Commerce component to match your project's design).
The Refine button above a TeleportHQ store component, next to Ask AI
  1. Read the Refine "{name}" with AI? window. It explains that only the styling and layout change. If the component has a loading placeholder, the window says it's refined with it, so the two keep matching. The last line shows the cost: "This uses your workspace tokens: about {n} to refine this component."
  2. Click Refine component (~{n} tokens), or Cancel.
The TeleportHQ Refine with AI window for a component, with its cost line and the Refine component button highlighted

Refine a feature's new pages

In a project made with the AI Website Builder, TeleportHQ can offer to restyle what a feature added right after you turn it on, for example the sign-in and sign-up pages of Authentication. The window is titled like Refine the new Authentication pages?

  1. In the list, tick the pages or components you want restyled. Rows marked needs more tokens don't fit your balance.
  2. Click Refine {n} pages (~{x} tokens).

Check that it worked

While it works, the canvas shows Refining this component’s design… (or Refining this page’s design…) and "Its content stays exactly as it is — only the layout changes." Items still waiting show Waiting to refine this component… on the canvas. In the Components list, the item shows (Refining) or (Queued) after its name. When it finishes, the component or page uses your site's design. To go back, click Undo above the canvas (Ctrl/Cmd+Z). Each refined component or page is undone in one step.

Troubleshooting

"Refining this component costs about {n} tokens, and your balance is {m}. You need about {k} more." The Refine component button stays greyed out until your balance covers it. Buy tokens, then try again. See How to buy more AI tokens.

"You need about 1,500 tokens to refine a page. Add more tokens to use this." Shown in the window for a feature's new pages when your balance can't cover any of them. Buy tokens, then try again.

"Your balance covers about {k} of these {n} pages (roughly 1,500 tokens each). Pick the ones that matter most, or add more tokens." Untick the pages that matter least, or add tokens. If you pick more than your balance covers, the window warns that "The extra ones will be skipped."

"This component has already been refined once. Running it again starts from how it looks now, and is charged again." You can refine again, but it starts from the current look and costs tokens again.

I don't see the Refine button The component wasn't created by a feature, another generation or refinement is running, or your role can't edit components. For other components and sections, ask the AI Assistant to restyle them.

Good to know

  • Refine changes only styling and layout. Texts, data connections and what happens on click stay as they are.
  • If you close the window for a feature's new pages, you can still refine each component later with Refine.
Share

Related Articles

How to generate a new section with AI

In TeleportHQ, generate a section with AI from the Sections tab (Generate using AI, then Generate Section), with the AI Section element, or with Generate with AI on an empty component, and the section is built in your site's design.

How to add a blog to your site

In TeleportHQ, click Plugins in the editor's left sidebar, click Blog, switch on Blog enabled and confirm in the Activate Blog window; TeleportHQ builds a blog listing at /blog and a page for every post, and asks first if a Presentation Website has to become a web app.

How to create an online store with TeleportHQ

You can create an online store in TeleportHQ in two ways, by letting AI build a complete store (or starting from a store template) from the E-commerce card in New Project, or by switching on E-commerce in an existing project from Plugins, and then you connect a payment provider such as Stripe or PayPal, add products and publish.

How to add an AI chatbot to your web app

In TeleportHQ, you add an AI chatbot for your visitors from Plugins → AI assistant chat in the left sidebar: switch it on, pick a database, add your OpenAI API key, choose a model (GPT-4o mini is recommended) and what the chatbot should know; the chat answers visitors on your published web app.

How to undo changes made by the AI Assistant

In TeleportHQ, undo an AI Assistant request with the Undo button above the canvas or Ctrl/Cmd+Z (one request is one Undo step), restore bigger changes from a project backup, and roll back a publish from your deployments; database changes, store refunds or cancellations, and booking actions or refunds made by AI can't be undone.