Corpis
Загрузка

A chat bot on your website: three actions, one line of code

Updated: 2026-07-24

To add a chat bot to a website you do not need a developer: you create an agent in Corpis, enable its widget and paste one <script> line into your HTML. A floating bubble then appears in the corner of the page, a click opens a chat, and visitors write to the agent with no sign-up. The same agent also answers in your personal chat and in Telegram — the widget just puts it on your site. You can start on the free tier.

Step by step

  1. Create an agent. Open agent creation and fill in the name, personality and greeting — or describe what you need in words and the AI assistant will fill the form.

  2. Open the "Widget" tab and turn on publishing. In the agent settings go to "Widget" and flip the publish toggle — without it the widget will not open on your site.

  3. Copy the script line. Click "Copy snippet" — the ready line <script src="https://corpis.tech/widget.js" data-key="YOUR_KEY" async></script> with your key goes to the clipboard.

  4. Paste the line into your site. Paste the snippet into the page HTML before the closing </body> tag (in a builder or CMS — into the custom footer-code field).

  5. Set the appearance and test. Set the title, greeting, accent color and corner; add allowed domains if needed. Open the site — a chat button appears in the corner; click it and write to the bot.

What you need to add the bot

Where to paste the script line

The ready snippet looks like this: <script src="https://corpis.tech/widget.js" data-key="YOUR_KEY" async></script>. Each agent has its own key — the platform fills it into the snippet automatically.

Paste this line into the page HTML right before the closing </body> tag. Most builders and CMSs have a "custom code" or "footer code" field for exactly this — you add the line once and the widget appears on every page.

The key exists but the bot stays silent — turn on publishing

The snippet and the widget key are created ahead of time, before the bot starts replying: the key on its own launches nothing. A separate step is the publish toggle on the "Widget" tab. While it is off, the widget will not open on the site even if the script line is already in place.

This is on purpose: you get to paste the code and set the appearance first, and switch the bot on when you are ready to take visitors.

It will not break your CSS, and domains can be restricted

The widget renders inside an isolated container (Shadow DOM): its styling does not affect the site, and the site styles do not leak into the widget. That is why it is safe to drop onto someone else’s template or builder without touching their CSS.

In the widget settings you set the title, the bot greeting, an accent color and the corner (right or left). Separately there is an allowed-domains list: if someone copies your script line, the bot will not run on a foreign site. An empty list means "any domain".

The bot answers from your facts and captures leads

The widget needs no separate behavior setup — it uses the same personality, the same knowledge base and the same brain as your personal chat and Telegram. Upload a price list or FAQ to the knowledge base, and the bot on your site answers from them instead of making things up.

When a visitor leaves a contact, the agent captures a lead and passes it to you — as a push notification and a webhook into your CRM. Dialogs are tied to the browser session, so a returning visitor continues the conversation instead of starting over.

FAQ

Can I add an AI chat bot to my website for free?

Yes. Creating an agent, enabling the widget and pasting the script line all work on the free tier, and no card is needed to start. Brain usage is counted in credits and limits are shown in the billing section — on the free tier you can launch and test the bot on a live site.

Do I need to code to add a chat bot to a website?

No. The agent is built with a form, and one ready <script> line goes onto the site. You write no code — you only need the ability to add that tag to your page HTML, which every builder and CMS supports.

Will the widget break my site’s layout or styles?

No. The widget lives in an isolated container (Shadow DOM): its styles do not affect the page, and the page styles do not affect the widget. That is exactly why it can be placed on third-party templates and builders without editing their CSS.

Does a visitor need to register to message the bot?

No. The visitor is an anonymous chatter: they do not create an account or see the Corpis panel, they just type in the chat. Their dialog is tied to the browser session, while you see the messages and leads in your account.

Related articles

Create an agent for your site