AI Assistant

How to create a layout from a screenshot or image

How to create a layout from a screenshot or image

To create a layout from a screenshot in TeleportHQ, open the AI Assistant, click Attach image next to the message box, and pick your image. Then ask, for example, Create this layout using my design system. The assistant builds the section on your page. You can attach up to 3 images per message.

Before you start

  • The AI Assistant uses AI tokens. Images make a message larger, so it costs more. See What uses AI tokens, and how much?.
  • Use a PNG, JPEG, GIF or WebP image up to 20 MB.
  • Recreate one section at a time for the best result: crop your screenshot to the hero, the pricing table or the footer, rather than a whole page.

Steps

  1. In the TeleportHQ editor, above the top right of the canvas, click AI Assistant.
  2. On the canvas, click the section you want to replace, or the place where the new section should go. It appears as a chip above the message box.
  3. Next to the message box, click Attach image, then pick your screenshot. You can also drag the image onto the chat (Drop image to attach). A thumbnail appears above the message box.

    The AI Assistant message box with the Attach image button highlighted
  4. In the message box, describe what you want. For example: Create the layout from this image, using my project's colors and fonts.
  5. Press Enter.

Check that it worked

The TeleportHQ AI Assistant shows an AI Edit card marked Applied, and the new layout appears on the canvas. Compare it with your image, then ask for fixes in the same chat, for example Make the cards three columns, like in the image.

Prompt ideas

  • Match your whole site to an image first: Based on the attached image, set up my design system: colors, heading and body text styles, spacing, borders, corner radius, shadows and animations. The assistant asks before changing the design system (Confirm design change). Later sections then reuse these values.
  • Then build section by section: Create the layout from the image based on the current design system.
  • Add details the image can't show: hover states, animations, what a button should do. For example: The cards should lift slightly on hover, and the button should open the contact page.
  • Put the picture itself on the page: Add the attached photo as the background of the hero section. The assistant saves it to your assets (Image uploaded: {name}).

Dictate instead of typing

Click the microphone (Dictate with your voice) next to the message box and speak your request. The microphone only shows in browsers that support speech recognition.

Troubleshooting

The image doesn't appear after I pick it The file was too big, the wrong type, or you already attached 3 images. Nothing is shown in that case. Use a PNG, JPEG, GIF or WebP file under 20 MB, and remove an image (Remove image) if you have 3.

"The attached image is too large. Please crop or compress the image and try again." Crop the image to the part you need, or save it at a smaller size, then attach it again.

The Attach image button is greyed out You have attached 3 images already (tooltip Maximum 3 images), the assistant is still working, or the chat has reached its memory limit. See Why does the AI Assistant say the chat is too long?.

"Microphone access denied. Enable it in your browser settings" Allow microphone access for TeleportHQ in your browser's site settings. Other voice messages: "No microphone found", "Voice input needs an internet connection", "No speech detected. Click to try again".

The result doesn't look like my image Ask for specific fixes in the same chat, one at a time. If the design is complex, crop it into smaller parts and recreate each part separately.

Good to know

  • The assistant rebuilds the layout with real, editable elements. It doesn't paste your screenshot as a picture unless you ask it to.
  • Images are resized before they are sent. Each image also takes up room in the chat's memory, so long chats with many images reach the limit sooner. See Why does the AI Assistant say the chat is too long?.
  • Only reuse designs you have the right to use.
  • To bring in a complete design from Figma instead, see How to turn a Figma design into a website.
Share

Related Articles

How to edit your website by chatting with the AI Assistant

In the TeleportHQ editor, click AI Assistant above the canvas, select the element you want to change, type what you want in plain words and press Enter, and the assistant applies the change to your page.

What can the TeleportHQ AI Assistant do?

The TeleportHQ AI Assistant is a chat in the editor that changes your pages, builds animations, scroll stories and page transitions, generates pages, images and scroll videos, manages your database, online store, bookings and blog settings, sets up SEO and project settings, builds workflows in web apps, publishes, and answers how-to questions from the help center.

How to point the AI Assistant at a specific element or page

To point the TeleportHQ AI Assistant at something, select that element on the canvas while the chat is open, and it is added as a chip above the message box, so your request applies to that element; with nothing selected, the assistant works with the whole visible page.

How to get better results from TeleportHQ's AI

Get better results from TeleportHQ's AI by giving a detailed business description, attaching your brief or brand guidelines, naming your brand colors and fonts, working one section at a time, selecting what you want changed, starting a new chat per task and saving standing instructions for the AI Assistant.

How to turn a Figma design into a website

In Figma, select your frames, run the TeleportHQ - Design to Code plugin and click Export as a new project to open them as a new TeleportHQ project, or click Copy Objects to Clipboard and paste into an existing project; use auto layout for the best result.