# 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, and the first 100 conversations are free with no credit card. After that, Pro is $39/month.

[Get a free key →](/get-api-key) &nbsp; [Read the install guide](/install)

## Setup takes about a minute

1. **Get a key.** Enter your email at [/get-api-key](/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>`:

```html
<script src="https://onelinechat.com/widget.js" data-key="olc_pub_YOUR_KEY" async></script>
```

3. **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](/for-ai-agents).

## What changes when an AI tool does the install

- **Email-only key.** Many chatbot tools ask you to sign up, confirm your email, and find an embed code in a dashboard. Here, your email is the only thing you need for a key.
- **An AI agent can finish the install on its own.** One HTTP call returns the key, and one line installs it. The [install guide](/install.md) is short enough for an agent to follow without help.
- **Priced per conversation, not per credit.** A conversation is one visitor's chat session, however many messages it has. There are no model multipliers to work out.
- **Preview-safe hosts.** localhost, `*.lovable.app`, `*.vercel.app`, `*.netlify.app` and Bolt previews are allowed automatically, so you can test before you publish.
- **Settings live in your code.** Color, greeting and position are attributes on the script tag, so your AI tool can change them the same way it changes everything else.
- **$39/month** covers 2,000 conversations a month on up to 3 sites.

## What the chatbot does

- Replies in whatever language the visitor uses, using only what your public pages say.
- If your pages don't cover a question, it tells the visitor that and asks where you can reach them (**lead-capture mode**).
- Sends you one email a day listing the questions it had no page for (the **daily gaps email**). Each one is a page you could write.

## Scope

One job: answering visitors on the site you registered. By design there is no dashboard and no reply inbox, and leads go to your email. It doesn't run in messaging apps or on the phone. If you need a staffed support desk, a helpdesk product is the better 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](/pricing).

## FAQ

### Is OneLineChat free?

Yes, for your first 100 conversations, with no credit card. After that, payment is required: the Pro plan costs $39/month.

### 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](/install/lovable), [Bolt](/install/bolt), [v0](/install/v0), [Next.js](/install/nextjs), [React + Vite](/install/react-vite), [WordPress](/install/wordpress), [Webflow](/install/webflow), and [plain HTML](/install/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.

---
Source: https://onelinechat.com/ · Last updated: 2026-11-20 · All docs: https://onelinechat.com/llms.txt
