AI chatbot for Replit: how to add one to your app (2026)

Riellvriany Indriawan
Written by

Riellvriany Indriawan

Katelin Teen
Reviewed by

Katelin Teen

Last edited November 24, 2026

Expert Verified
Hand-drawn banner of a browser window with a Replit logo, a plus button adding a chat panel with a friendly bot, and two people sitting cross-legged with a laptop in front of an orange circle
TL;DR

If you want a support bot on a Replit app, don't build one: ask Replit Agent to load a hosted widget's script once in your app's root HTML document or shared layout, then republish. Build your own only when chat is a feature of your product. That route uses Replit AI Integrations, which needs the Core plan or higher and bills model calls at the provider's public API price from the same credits you build and publish with, and it leaves answering from your docs and handing off to a person for you to make. eesel's chat bubble is that one script: it answers from your site and help docs and hands the hard ones to you.

Build or embed: which AI chatbot does your Replit app need?

I'm Riell, and I work on eesel's support team. Most of what I do happens after a chatbot goes live: reading the questions it couldn't answer, finding the visitor who only wanted a person, fixing the answer that went stale. On Replit, Agent gets you a chat window in one prompt. The part that decides whether visitors trust it comes later.

"AI chatbot for Replit" covers two different jobs. One is an AI feature in your product, like an assistant that reads the user's own records or a Q&A screen over their uploads. That is a build, and Replit Agent is good at builds. The other is a support bot that answers visitors from your docs and passes what it can't answer to you. That is a script you add and then tune.

A hand-drawn comparison of two ways to put an AI chatbot in a Replit app: building it with Replit Agent, where the chat window and a model call through Replit AI Integrations come built but answers from your docs, handoff and testing are yours to build, and embedding a support widget, which is one script at the app root with docs answers, handoff and testing included
Agent builds the window and the model call. The rest of a support bot is still yours.

Replit lists "Conversational interfaces: Build chatbots and AI assistants" as a use case for its managed AI access, so building is a supported path. It just isn't the shortest path to a support bot. If a coding agent is doing your building, it can set up the widget route too: the eesel CLI creates the chat bubble and prints its snippet from a terminal, and connecting a helpdesk for handoff still needs an admin's approval.

How do you build an AI chatbot with Replit Agent?

You describe it, and Agent builds a full-stack web app: Replit's docs say web apps are "full-stack by default," with API routes and server-side logic as the app needs them. The model call comes through Replit AI Integrations, which gives you models from OpenAI, Anthropic, Google, Grok and OpenRouter with "no developer account setup, no API key management."

Replit's documentation page for Replit AI Integrations, explaining that it provides managed access to AI models from OpenAI, Anthropic, Google and OpenRouter, billed at the public API price to your Replit credits, with a note that it requires a paid plan
Managed model access needs a paid plan, as shown in Replit's own docs.

On a paid plan, Agent picks this up from your prompt. In a new app it shows "OpenAI (Replit managed)" or the equivalent for other providers. In an existing app it asks first, with an Approve or Dismiss prompt; Dismiss means you supply your own key instead.

Three things to know before you build:

  1. It needs Core or higher, and it spends your credits. On Starter, Replit AI Integrations "is disabled," so you'd bring your own key. On Core and up, Replit "bills you at the public API price," deducted from the same credits that pay for Agent's paid work, publishing and databases. Core is $20 a month ($18 billed yearly) with $20 toward more powerful models. On Pro and Enterprise, an organization admin has to switch it on first, since access "is disabled by default."
  2. Answering from your docs is a second feature. A model call alone answers from what the model already knows. To answer from your help center, you prompt in retrieval and then keep that content current yourself. My explainer on RAG for customer service covers what that layer does.
  3. Handoff and testing are yours. Who gets the chat the bot shouldn't answer, how, and with what context, is logic you design. So is checking the bot's answers before visitors see them. My piece on human handoff in chat lists what the person picking it up needs.

One Replit detail catches people at launch: "Secrets you set in the Project Editor do not automatically carry over to your published app." If you build with your own model key, add it again under Production app secrets in the Publishing pane, or the chatbot that worked in Preview will fail with errors about undefined values once it's live. Keep the key on the server side in Secrets, never in front-end code.

You'll also publish on Autoscale or Reserved VM, not Static. Replit's docs say Static Deployments "are not compatible with Replit Apps created using Agent," and secrets aren't available there either. Autoscale suits a chatbot with uneven traffic: it scales to zero when idle and you "pay while requests are being served."

How do you add a chatbot widget to a Replit app?

You ask Agent to load the vendor's script once at the root of your app, then republish. Unlike a builder with one fixed file layout, a Replit app can be any framework, so don't guess the file. Tidio's Replit guide, the only chat vendor's Replit install guide I found, says to "let Agent use your existing app structure rather than assume a fixed file path."

Tidio's help center article Install Tidio on Replit, updated November 20, 2026, saying Replit supports frameworks including Angular, Vue and Svelte so Agent should use the existing app structure, with steps from finding the public key to troubleshooting
The clearest Replit install guide is a vendor's, as taken from Tidio's help center.

Its instructions to Agent work for any vendor's script: put it "in the root HTML document or the root layout, so it loads once and stays loaded during client-side navigation. Do not add it to single pages or to a component that mounts more than once." Here's the prompt I'd paste, with your vendor's snippet under it:

Code
Add this chat widget script once at the root of the app: the root HTML
document before </body>, or the shared root layout if the framework has one.
Make sure the script actually executes (not inserted as an HTML string),
loads only in the browser, and is not added to any page or component.
Keep one copy only. Change nothing else, then tell me which file you edited.

Then make it stick. Tidio's guide says Agent reads replit.md at the project root "when processing requests," and suggests a line of standing project guidance there. I'd use it so a later request doesn't move or duplicate the widget. Something like: "Keep one chat widget script in the root HTML document or shared layout. Do not move it into a component."

A hand-drawn five-step flow for adding a support chatbot to a Replit app: copy the snippet from your chatbot, ask Agent to load it once in the root HTML or layout, add one line to replit.md so Agent keeps it, republish because the replit.dev preview is not your live app, and ask it a real question on the replit.app URL
Five steps, and the fourth is the one people skip.

The things that go wrong, in the order I'd check them:

  • You tested the preview. Replit calls the preview URL "private by default, temporary, and intended for development." Changes "do not automatically replace the live release," so select Republish and test the .replit.app URL.
  • The script never ran. A widget vendor, Common Ninja, explains the usual cause in a React app: "If you hand that whole thing to React as a string of HTML, the container appears and the script tag does not run." Load it once at the root.
  • Two widgets, or one that reloads on every page. The script ended up in a component that mounts more than once. Ask Agent to find every copy and keep the one at the root.
  • A Content Security Policy blocks it. Allow the vendor's script host. For eesel that is https://cdn.eesel.ai for scripts and connections; for Tidio, code.tidio.co.
  • You're on Starter. The widget works, but your one free published app "will automatically go down after 30 days" and carries the Made with Replit badge, so a support bot there has a short life.

Replit does have a built-in Feedback Widget you can switch on when you publish. It isn't a chatbot: visitors send feedback, screenshots and files to your Inbox, and you send them on to Agent. Nobody answers the visitor, so keep it for bug reports.

The options at a glance

I've limited this to the two routes above: building with Replit AI Integrations, and hosted widgets that go in as one script. Prices are from each vendor's pricing page on 23 Nov 2026.

OptionHow it goes inAnswers from your docsHandoff to a personEntry price
Replit AI IntegrationsBuilt by Agent, server routeYou build itYou build itCore $20/mo with $20 of credits, then public API prices
eesel chat bubbleOne script at the app rootYes: site, help center, Drive, Notion, helpdesk and moreHelpdesk ticket, email, or Zendesk Messenger or Freshchat7-day trial with 100 credits, then $299/mo for 500
TidioOne script, Replit guide from TidioYes (Lyro)Live chat in Tidio's inboxStarter $33/mo billed yearly, 50 conversations
ChatbaseOne scriptYesChatbase's helpdesk inbox$150/mo, or $120/mo billed yearly
CrispOne scriptYes, on paid plansCrisp's own inboxMini $45/mo with $5 of AI credits

Read the units before comparing prices. eesel counts a chat as 1 credit however many messages go back and forth, Tidio counts conversations handled by Lyro and your team together, Chatbase counts message credits, Crisp counts AI credits by usage, and Replit counts dollars of credits at each model's API price. My chatbot cost guide works through what each unit means for a real month.

Replit AI Integrations

Best for: an AI feature inside your product. Nothing else here sits as close to your own data and UI, and you choose the model from a long list across five providers. The cost is that everything a support bot needs beyond the window (retrieval, handoff, testing, keeping answers current) is yours too, and model calls come out of the credits you build with. See my Replit pricing guide for how those credits work.

Replit's pricing page with Core at $18 a month billed annually including $20 towards more powerful models and AI integrations, Pro at $90 a month billed annually with $100 towards the most powerful models, and Enterprise on custom pricing
The same credits pay for Agent's paid work, publishing and your app's AI, as shown on Replit's pricing page.

My take: build it when the chatbot is the product. For support, the detail I'd watch is the shared balance: a busy week of building with Agent uses the same credits your chatbot answers visitors with, so set a budget alert in Replit's billing settings before launch.

eesel chat bubble

Best for: a support bot that answers from what you already wrote and hands off to you. The chat bubble is one async script that loads from cdn.eesel.ai, and eesel's docs say it "works with any framework" and "reads nothing else from your site's code." It answers from your website, help center and whatever else you connect (Google Drive, Notion, Confluence, your helpdesk), and when it shouldn't answer it creates a helpdesk ticket, sends an email, or opens Zendesk Messenger or Freshchat with a summary.

An eesel chat bubble open on a demo store, with a welcome message, three starter questions and a Powered by eesel footer
One script, and the bubble answers from your own docs, as shown in eesel's documentation.

Two things suit a Replit builder. You say where the bubble shows in plain words in its instructions ("Show the chat bubble only on /help/* and product pages."), so there's nothing to code per page. And you can set it up from a coding agent: npx @eesel/cli init chat-bubble --site https://your-app.replit.app creates the bubble and prints the snippet, per the eesel CLI docs, so the same terminal session that builds your app can add its support.

My take: the right pick when the job is support and you want it tested and answering this week. Skip it for a bot that answers account-specific questions from the browser alone: the bubble treats a visitor's name or email passed from your page as unverified unless your site signs it, and signed visitors are set up by asking eesel. There's no always-free tier: the free plan is a 7-day trial.

Tidio

Best for: a small team that wants live chat and an AI agent in one inbox, with the most complete Replit install guide of any vendor, down to a documentation MCP server you can connect so Agent can read Tidio's help center. Lyro answers from your knowledge base, and your team picks up in the same place. The Tidio pricing page puts Starter at $33 a month billed yearly for 50 conversations, and Growth at $63 a month from 100.

My take: easy to install and easy to outgrow. Lyro's conversations and your team's count toward the same plan limit, so check the next tier's price before a busy month. My Tidio alternatives list covers the step up.

Chatbase

Best for: a bot trained on your own content, embedded by script, with its own helpdesk inbox for the chats it hands off. Chatbase pricing starts at $150 a month ($120 billed yearly) for 4,000 message credits, and removing "Powered by Chatbase" is another $99 a month.

My take: the entry price is high for a side project, and branding removal is an add-on. There's no Replit-specific guide, so use the prompt above. More in my Chatbase pricing breakdown.

Crisp

Best for: free live chat now, with AI when you pay. Crisp's free plan has no AI; Crisp pricing puts Mini at $45 a month with $5 of AI credits, which Crisp estimates at around 90 automated conversations, and Essentials at $95 with $25 (around 450).

My take: flat per-workspace pricing is easy to plan around, but the AI allowance on Mini is small. See my Crisp pricing notes.

Which chatbot route fits your Replit app?

By now you know the two routes. Pick the job your chatbot has and see where it lands.

What should the chatbot on your Replit app do?
Embed a hosted support widgetRetrieval from your docs, handoff to a person and answer testing come with it, and it doesn't spend your Replit credits. One script at the app root, a line in replit.md, then republish. eesel's chat bubble is 1 credit a chat and hands off by ticket or email; Tidio has a Replit-specific install guide.
Build it with Replit AI IntegrationsNo API key to manage and a long model list, on Core or higher. Budget for model calls at public API prices from the same credits you build with, add production secrets when you publish, and choose Autoscale or Reserved VM.
Build it, or use a widget that takes a server-signed identityAnything your page tells a widget in the browser can be faked, so account answers need your server to vouch for the user. Build the lookup in a server route that checks the caller, or use a widget that accepts an identity your server signs (eesel sets signed visitors up on request).
Start with free live chat, add AI laterCrisp's free plan gives you live chat with no AI; its AI starts on the $45 Mini plan. The install is the same one script at the app root, so moving to an AI widget later is a swap, not a rebuild.

Pick the job your chatbot has to do to see which route fits and why.

How do you add an AI support chatbot to Replit, step by step?

  1. Get the snippet. Create the bot with your vendor, connect your docs or help center, and copy the embed code. With eesel, npx @eesel/cli init chat-bubble --site https://your-app.replit.app creates the bubble and prints the snippet, or copy it from the Chat Bubble settings in the dashboard.
  2. Ask Agent to add it at the root. Paste the prompt above with your snippet. Check the file it names: one copy, in the root HTML document or shared layout, not in a page component.
  3. Add a line to replit.md saying where the script lives and that there is one copy.
  4. Allow it in your Content Security Policy, if your app sets one.
  5. Republish. The replit.dev preview is not your live app.
  6. Test on the published URL as a visitor. Ask the three questions your customers ask most, then one it shouldn't answer, and check where that one goes. My guide to chatbot escalation covers the handoff rules worth writing down.

Common mistakes

  • Pasting the embed into a page component. It renders as a string and never runs. Load it once at the root.
  • Leaving production secrets empty. A built chatbot that worked in Preview fails live when its key isn't in Production app secrets.
  • Launching without a test set. Before visitors see it, check the bot's answers against real questions. My notes on preventing hallucinations cover what to test.
  • Forgetting your other builders. If part of your product lives elsewhere, the same one-script approach works on Lovable, and my Next.js guide covers a hand-written app.

Try eesel on your Replit app

If your Replit app needs a support bot rather than a chat feature, Try eesel. The chat bubble is one script at your app root, it answers visitors from your site, help center and the docs you connect, and it hands the questions it shouldn't answer to you as a helpdesk ticket or an email, without touching your Replit credits. You decide what it may do for an anonymous visitor versus your own team, and anything set to ask first waits for a yes. A chat is 1 credit however many messages go back and forth, the free plan is 100 credits for 7 days, and plans start at $299 a month for 500 credits.

The eesel chat interface showing a conversation with the agent
eesel answers in chat from the sources you connect.

Frequently Asked Questions

Can Replit build an AI chatbot?

Yes. Describe the chatbot to Replit Agent and it builds a full-stack web app with a chat screen and a server route that calls the model. On Core, Pro and Enterprise it uses Replit AI Integrations, so you don't need your own OpenAI or Anthropic key. Answering from your help docs and handing a chat to a person are still parts you design. My overview of Replit AI covers what Agent does well.

How do I add a chat widget to my Replit app?

Ask Agent to load the vendor's script once in the app's root HTML document or shared layout, not in a single page or component, and to tell you which file it edited. Then republish and test on your published .replit.app URL, because the replit.dev preview is not your live app. My guide to an AI chatbot for your website covers the same step on other platforms.

Why does my chatbot work in Replit's preview but not in the published app?

Usually because you haven't republished, or because a secret is missing in production. Changes in the Project Editor don't replace the live release until you republish, and Replit's docs say secrets you set in the Project Editor do not automatically carry over to the published app: add them under Production app secrets in the Publishing pane. My notes on AI chat bubbles show what a working widget looks like.

How much does an AI chatbot on Replit cost?

A chatbot built with Replit AI Integrations is billed at the model provider's public API price and deducted from your Replit credits, alongside building and publishing. Core is $20 a month ($18 billed yearly) with $20 of credits for paid models. Hosted widgets bill on their own: eesel is $299 a month for 500 credits at 1 credit a chat, Crisp's AI starts on its $45 Mini plan, and Chatbase starts at $150 a month. My chatbot cost breakdown compares the units.

Can I build an AI chatbot on Replit's free plan?

Only with your own API key. Replit AI Integrations is disabled on the Starter plan, and the one free published app expires after 30 days and carries a Made with Replit badge. A hosted widget works on any plan because it is a single script. My list of free AI chatbots has more options.

Is Replit's Feedback Widget a chatbot?

No. It lets visitors to your published app send feedback, screenshots and files, which land in your Inbox in the Project Editor for you to send to Agent. Nobody answers the visitor. It is useful for collecting bug reports, not for support. See my Replit guide for its other built-in tools.

Should I build a chatbot in Replit or use a support widget?

Build it when chat is a feature of your product, such as an assistant over the user's own data. Use a support widget when the job is answering visitors from your docs and passing hard questions to a person, because retrieval, handoff and testing come with it. My roundup of AI chatbots for customer service compares the widgets.

Share this article