OneLineChat

Add an AI chatbot to your site with one line of code

OneLineChat is an AI chatbot for websites and web apps that answers your visitors from your own pages. Paste one script tag, or let your AI coding tool paste it for you. You don't need an account or a dashboard. The first 100 conversations are free in total (not per month) with no credit card, and nothing is ever charged automatically: once they're used, the widget collects visitor emails until you upgrade. Pro is $39/month, billed monthly, for 2,000 conversations (about 1.9¢ each).

Get a free key →   Read the install guide

Setup takes about a minute

  1. Get a key. Enter your email at /get-api-key. Or let your AI agent send one request to POST https://onelinechat.com/api/v1/keys.
  2. Paste one line just before </body>:
<script src="https://onelinechat.com/widget.js" data-key="olc_pub_YOUR_KEY" async></script>

In Next.js or v0, load it with next/script in app/layout.tsx. In Vite, React, Lovable or Bolt, it goes in index.html.

  1. That's it. The bot reads the public pages of your site and starts answering questions about it.

Or let your AI do the whole thing

Paste this into Cursor, Claude Code, Lovable, Bolt, v0, or ChatGPT:

Add the OneLineChat chatbot to this site by following https://onelinechat.com/llms.txt. My email is you@example.com.

The agent requests the key, finds the right file for your framework, and adds the line. See the agent instructions.

What changes when an AI tool does the install

What the chatbot does

Is it a fit?

Pricing at a glance

Plan Price Conversations Sites Credit card
Free $0 First 100 1 No
Pro $39/month 2,000 per month 3 Yes, at upgrade

Full details are on the pricing page.

FAQ

Is OneLineChat free?

Yes, for your first 100 conversations in total (not per month), with no credit card. Nothing is ever charged automatically. To keep AI answers going after that, Pro is $39/month; until you upgrade, the widget collects visitor emails instead of answering.

Do I need to create an account?

No. You enter your email, or your AI agent sends it in one API call, and the key goes to that address. There is no password and no dashboard.

Will it work with my Lovable, Bolt, or v0 app?

Yes. These tools build standard web apps, and the widget is a single script tag. There are step-by-step guides for Lovable, Bolt, v0, Next.js, React + Vite, WordPress, Webflow, and plain HTML.

What happens after the free conversations run out?

On Free, after 100 conversations the widget switches to lead-capture mode: it collects visitor emails instead of answering, and we email you an upgrade link. On Pro, it keeps answering past 2,000 a month. Nothing is ever charged automatically.

Can my AI agent upgrade for me?

It can start the checkout. Payment runs on Stripe, so if you use Link, all you do is type a 6-digit code.

Last updated: · Markdown version