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
- 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. - 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.
- 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
- 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 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.appand 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.
Is it a fit?
- Good fit: you want a chatbot live today without creating an account, you build with an AI tool and test on preview URLs, or you'd rather pay per conversation than per credit.
- MVPs and side projects: there's no account to create or cancel later, it works on preview URLs before you have a domain, and 100 free conversations show whether visitors use it at all.
- Poor fit: you need a staffed reply inbox or ticketing, chat in messaging apps or on the phone, or answers from uploaded files. OneLineChat does one job, answering visitors from your public pages, and sends leads to your email.
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.