AI Growth Documentation

Lovable

Integrate your Lovable project with the AI Growth Platform to power your blog using automated, SEO-optimized workflows.

Integrations

There are two ways to get your AI Growth articles onto a Lovable site. Both publish new articles automatically once they are set up, and both connect through your publishing setup.

#Option 1: One prompt

Your blog lives on your own domain at yoursite.com/blog, in your own design. Lovable builds it for you from a single prompt. No coding, but you do paste one prompt and one API key.

#Option 2: Blog Hosting

We host your blog at blog.yoursite.com and handle everything. You add one DNS record and never touch your Lovable project. Use consistent canonical URLs and internal links.


#Option 1: Add the blog with one prompt

Lovable does the whole build. You paste one prompt, then paste your API key when Lovable asks for it.

Then paste it into your Lovable project chat.

#What Lovable builds for you

  • A /blog page listing all your articles, and a page for every article, styled to match your existing site.
  • A copy of your articles inside your own project, refreshed every hour, so new articles appear on your site without you doing anything.
  • Full SEO setup: page titles, meta descriptions, canonical URLs, social preview images, schema markup, sitemap and robots.txt. On older single-page projects the sitemap is static; ask Lovable to refresh it after new articles publish.
  • A "Blog" link added to your site navigation.

#Step by step

  1. Get your API key. In AI Growth, open Settings → Publishing, click the Lovable card, then Generate API Key and copy it. The card walks you through these same steps.
  2. Copy the prompt with the button above.
  3. Paste it into the Lovable chat of the project you want the blog on, and send it.
  4. Paste your API key when Lovable asks. Lovable opens a secure secret field for it. Paste it there, never into the normal chat box.
  5. Let it finish, then publish. Lovable builds the pages and pulls in your articles. When it is done, open /blog on your site to check, then hit Publish.

The first import takes a few minutes

Our API is rate limited, so your articles arrive in batches of 20, and the import keeps running in the background on its own. No extra Lovable messages, no credits. If your blog looks short at first, wait a few minutes and refresh.

#Before you start

  • The prompt works on both kinds of Lovable projects: newer server-rendered ones and older single-page ones. Lovable detects which it has and adapts.
  • Your project needs Lovable Cloud enabled. If it is not, the prompt tells Lovable to turn it on.
  • You need at least one generated article in your AI Growth account, otherwise there is nothing to import yet.

How articles look on your site

Formatting and mobile-friendliness depend on your website's theme and CSS. We deliver semantic content; your theme controls the styling. Learn more

#Troubleshooting

Lovable says the key is invalid (401)

Generate a fresh key in Settings → Publishing → Lovable, then tell Lovable: "update the AI Growth\API\KEY secret" and paste the new key into the secure field.

Your website has one API key, shared by the API, Duda, Lovable, Framer and Next.js Blog. Regenerating it stops the old key working in all of them, so update each place that uses it.

The blog page is empty

The import keeps running in the background, so give it a few minutes and refresh before doing anything. If it is still empty after that, check that articles exist in your AI Growth dashboard, then ask Lovable to "run AI Growth-sync and show me what it returns".

New articles are not showing up

The sync runs hourly. Ask Lovable to "check the AI Growth-sync scheduled job is enabled and run it now". Remember to publish your Lovable project after changes.

The articles do not match my site's design

Tell Lovable what to change in plain language, for example "make the blog post typography match the rest of the site and widen the content area". The articles are stored in your project, so restyling them does not re-import anything.

Read the full prompt

Prompt

Copy the exact connection details from your authenticated publishing setup. Keep private keys and connection URLs out of public code.


#Option 2: Let us host your blog

If you would rather not touch your Lovable project at all, we host the blog for you at blog.yoursite.com. You add one DNS record and we handle publishing, styling, server-side rendering, caching and the sitemap. A subdomain has its own URL structure; link it clearly from your main website.

View Blog Hosting Setup Guide