Add Comments to Your Lovable App

Comments, Reactions, and Ratings With a Single Prompt

You built your app by describing it. Add comments the same way. Paste one prompt into Lovable, and your blog posts or pages get a comment section with replies, spam filtering, and moderation.

Installation guide About 5 minutes

Steps to Add Comments to a Lovable App

Lovable apps are built with React, so the AI can add the Hyvor Talk React component for you. You only need a website ID.

  1. Sign up at the Hyvor Talk Console and add a website with your app's published domain. Copy the website ID from Settings → Website.

  2. To see the comments in the Lovable preview too, add the preview's domain (from its URL) at Settings → Website → Allowed Domains.

  3. Paste this prompt into the Lovable chat, with your website ID in place of YOUR_WEBSITE_ID. Change "blog post page" to the page where you want comments.

    Add a comment section to the bottom of each blog post page using Hyvor Talk.
    
    - Install the npm package @hyvor/hyvor-talk-react.
    - Render its Comments component after the post content:
      <Comments website-id={YOUR_WEBSITE_ID} page-id={post.slug} />
    - Use the post's slug (or another ID that never changes) as page-id.
    - Don't build a custom comment system or create database tables for comments.
  4. Open a post in the preview. You should see the comment section under the content. Then publish your app.

Prefer to edit the code yourself?

If you've connected your project to GitHub or use Dev Mode, install @hyvor/hyvor-talk-react and add the component to your post page:

import { Comments } from '@hyvor/hyvor-talk-react';

export default function BlogPost({ post }) {
    return (
        <article>
            <h1>{post.title}</h1>
            <div>{post.content}</div>

            <Comments website-id={YOUR_WEBSITE_ID} page-id={post.slug} />
        </article>
    );
}

That's it. AI builders don't always follow a prompt exactly, so check that the page uses the Comments component from @hyvor/hyvor-talk-react. From the Console, you can change the look and set up moderation.

Frequently asked questions

It can try, but then you own the result: database tables, spam, notifications, moderation, and abuse. Asking Lovable to use Hyvor Talk gets you a finished comment section in one prompt, and you don't maintain any of it.

Lovable builds React apps. Naming @hyvor/hyvor-talk-react points the AI to a ready-made component, so it doesn't invent its own code. See our React guide for everything the component can do.

Hyvor Talk only loads on domains you've allowed. Copy the domain from your preview URL and add it at Settings → Website → Allowed Domains in the Console, next to your published domain.

No. Comments, users, and moderation are stored by Hyvor Talk. Your Lovable app only renders the component.

Yes, with stateless SSO. The user data must be signed on a server, so ask Lovable to do it in a backend function, like a Supabase Edge Function, and pass the result to the component. SSO is part of the Business plan.

Threaded replies, reactions, star ratings, reply emails, spam filtering, and moderation tools. The colors and texts can be changed in the Console to match your app.

Start the 14-day free trial. You don't need a credit card. See pricing for plans.

Start your 14-day free trial now!

14-day free trial
No credit card required
Cancel anytime