Skip to main content

5 Lovable SEO Prompts (Copy and Paste Into Chat)

Five prompts for Lovable chat that add unique titles, a sitemap, Open Graph tags and correct 404s. Each comes with a check so you can confirm it worked.

By Kaivalya Deshpande, Founder, RankBrain AI·Published ·5 min read·2 sources cited

These five prompts cover the most common SEO gaps on Lovable sites: unique page titles and descriptions, HTML content that crawlers can read, a sitemap and robots.txt, real 404 responses, and per-page Open Graph tags. Each prompt comes with a check so you can confirm it worked before you move on. Run the AI Crawler Checker first to see your starting point.

The five prompts and the check that goes with each:

The five Lovable SEO prompts and how to check each one
PromptFixFirst check
Prompt 1Unique title and description for each pageCtrl+U on each page and read the title tag
Prompt 2Check that page content is in the HTMLCtrl+U on your main page and look for headings and text in the body
Prompt 3Sitemap.xml and a robots.txt Sitemap lineOpen /sitemap.xml and /robots.txt after publishing
Prompt 4Real 404 page and status for unknown URLsVisit /this-page-does-not-exist-123 and read the status in the Network tab
Prompt 5Per-page Open Graph tags and structured dataCtrl+U and search for og:title, og:description and og:image

Before You Paste

Lovable has two app types, and the prompts work differently on each.

Apps created from 13 May 2026 (or 22 June 2026 on Enterprise plans) use TanStack Start with server-side rendering Lovable SEO & AI Search docs. Every request returns fully rendered HTML. These apps support per-page metadata, a different title and description for each page.

Older apps use React + Vite. They send the full HTML only to verified crawlers, such as search engines and AI search crawlers. Regular visitors see the single-page app. React + Vite apps carry one set of metadata for the whole site Lovable SEO & AI Search docs Lovable site metadata docs.

Run the AI Crawler Checker on your site before you start. It shows which HTML your site currently delivers to crawlers.

These prompts are starting points. Read Lovable's response before accepting any change.

Prompt 1: Unique Title and Description for Each Page

Many Lovable sites launch with either no metadata or the same title on every page. If the browser tab reads "Lovable App" or the description reads "Lovable Generated Project", that is the default template text. Asking Lovable to replace it takes one prompt Lovable site metadata docs.

Paste into Lovable chat
My site at example.com currently shows "Lovable App" in the browser tab and "Lovable Generated Project" as the meta description.

I need unique titles and descriptions for each important page. Please update:
- Homepage title: replace with a short phrase describing what the site does (60 characters or under)
- Homepage description: replace with a sentence summarising what a visitor gets on the homepage (about 150 characters)
- Repeat for each important page: list the page name and URL, then the title and description for that page

Each title should describe that specific page. Each description should summarise what a visitor gets on that page.

How to verify:

  1. After Lovable makes the change, press Ctrl+U on each updated page and search for the <title> tag.
  2. Each page should show a different, descriptive title.

Prompt 2: Check That Page Content Is in the HTML

If your app is React + Vite, your page content may be built by JavaScript after the page loads. Search engines and AI crawlers that read only the initial HTML will see very little. Upgrading to TanStack Start moves your content into server-rendered HTML. Ask Lovable to explain the upgrade before you decide, do not ask it to run the upgrade without first reviewing the plan Lovable SEO & AI Search docs.

Paste into Lovable chat
Can you tell me which app type this project uses: TanStack Start or React + Vite?

If it uses React + Vite, please describe what upgrading to TanStack Start would involve for this project: which files would change, what would move, and whether any existing features could be affected. I want to review the plan before deciding whether to proceed.

How to verify:

  1. Lovable's answer will name the app type.
  2. If it is TanStack Start, press Ctrl+U on your main page and confirm that your headings and body text appear inside the <body> tag.
  3. If it is React + Vite, review the upgrade plan Lovable provides before accepting any changes.

Prompt 3: Sitemap.xml and robots.txt With a Sitemap Line

Lovable creates a robots.txt with every new project, but does not always create a sitemap Lovable SEO & AI Search docs. Google uses the sitemap to find all your pages. The robots.txt should include a Sitemap line pointing to it. Publish your site before submitting the sitemap to Google, because Google reads it from the live URL.

Paste into Lovable chat
Please check whether this project has a sitemap.xml. If it does not, create one that lists all published pages of the site.

Also check the robots.txt file. It should include a line in this format:
Sitemap: https://example.com/sitemap.xml

Replace example.com with the actual domain. If that line is missing, please add it.

How to verify:

  1. After publishing, open your-site-url/sitemap.xml in a browser. It should load an XML file with your page URLs listed.
  2. Open your-site-url/robots.txt and confirm the Sitemap line is present.
  3. Submit the sitemap URL to Google Search Console.

Prompt 4: Real 404 Page and Status for Unknown URLs

If your site returns a 200 status and your homepage content for URLs that do not exist, Google treats every guessed URL as a valid page. A proper 404 response tells Google those URLs are not real pages and stops them entering the index.

Paste into Lovable chat
When a visitor goes to a URL that does not exist on this site (for example example.com/this-page-does-not-exist-123), the server should return an HTTP 404 status and show a custom 404 page.

Please check whether the site currently does this. If it returns a 200 status or redirects to the homepage for unknown URLs, please fix it so that:
1. Unknown URLs return HTTP status 404.
2. A simple 404 page is shown with a link back to the homepage.

How to verify:

  1. After the change, visit your-site-url/this-page-does-not-exist-123 in a browser.
  2. The page should show a 404 message.
  3. Open the browser developer tools, go to the Network tab, reload the page, and confirm the status code shown is 404.

Prompt 5: Per-Page Open Graph Tags and Structured Data

Open Graph tags control how your pages appear when shared on social networks. Each page needs its own og:title, og:description and og:image. Structured data gives search engines context about the page, such as article or FAQ, and has to match what the page says Lovable SEO & AI Search docs.

Paste into Lovable chat
Please add Open Graph tags to the head section of each important page. Each page should have:
- og:title matching the page title tag
- og:description matching the page meta description
- og:image pointing to the share image for that page
- og:url with the canonical URL of the page

Also add structured data (JSON-LD) where it fits the page content:
- WebSite and Organization on the homepage
- Article on blog posts
- FAQPage on pages with a questions and answers section
- Product on product or pricing pages

Use the Schema.org vocabulary for all structured data.

How to verify:

  1. Press Ctrl+U on the updated page and search the source for og:title, og:description, og:image and og:url.
  2. Check that each value describes that page, and that any JSON-LD block matches the page.

Use Lovable's Built-In SEO Review

Lovable includes a free SEO & AI search review for every project. It checks your sitemap, robots.txt, metadata, structured data, canonical tags and Open Graph tags, and explains each finding. Most issues can be fixed in one click from that panel Lovable SEO & AI Search docs.

To find it: open your project, go to More, then Analytics, then the SEO & AI tab. Look for "Your SEO & AI search review".

Run this review first to handle the in-app fixes. After that, run RankBrain AI on your live published URL. It reads the live site and shows before-and-after for each remaining issue, so you see the state of the page visitors reach.

More reading: SEO for Lovable · SEO for vibe-coded sites · Bolt.new SEO

Step-by-step fix instructions are in the Lovable SEO fix guide.

Check my site free

One plan, 3-day free trial, then $5 a month, cancel anytime. Rankings are never guaranteed.

Frequently asked questions

Can I fix Lovable SEO with prompts alone?

Prompts handle most common gaps: titles, sitemap, robots.txt, 404s and Open Graph tags. For the full picture, including what AI crawlers receive from your live site, combine prompts with Lovable's built-in SEO review and the AI Crawler Checker.

How do I check that a prompt worked?

Each prompt above includes a verification step. The main checks are: press Ctrl+U and look for the change in the HTML source; visit your-domain.com/sitemap.xml to confirm it loads; and use the AI Crawler Checker to see what a crawler receives after the change.

Why does my Lovable tab say "Lovable App"?

That is the default template text Lovable ships with. It means the title was never replaced. The tab text, meta description, favicon and share image are all changed by asking in the project chat. Prompt 1 above gives the exact wording to use Lovable site metadata docs.

Does Lovable create a sitemap?

Lovable creates a robots.txt with every new project, but does not always create a sitemap Lovable SEO & AI Search docs. The built-in SEO & AI search review can create or repair a missing one. Prompt 3 above asks Lovable to check for a sitemap and create it if it is missing.

Does Lovable create robots.txt?

Yes. Lovable creates a robots.txt file with every new project Lovable SEO & AI Search docs. Check that it also includes a Sitemap line pointing to your sitemap.xml. Prompt 3 above asks Lovable to add that line if it is missing.

Sources

Every figure on this page traces to one of these. Dates are when we last read each page: prices and features change, so check anything older than a few months.

  1. [1]
    Optimize your app for SEO and AI search

    Lovable Documentation · docs.lovable.dev · Official documentation · read 2026-11-19

  2. [2]
    Change your site title, favicon, and social preview

    Lovable Documentation · docs.lovable.dev · Official documentation · read 2026-11-19

Keep reading

These five prompts cover the most common SEO gaps on Lovable sites: unique page titles and descriptions, HTML content that crawlers can read, a sitemap and robots.txt, real 404 responses, and per-pag…

This site is not a part of the Facebook website or Meta Platforms, Inc. Additionally, this site is not endorsed by Meta in any way. Facebook and Instagram are trademarks of Meta Platforms, Inc. This site is also not a part of Google LLC and is not endorsed by Google in any way. Google and YouTube are trademarks of Google LLC. Maitreya Labs runs this site and its offers on its own.