A chatbot on a Notion site: not directly, and here is why
Written by the Allinaa team · Updated
The honest answer first: if your site is a page published straight from Notion, you cannot add a chat widget to it. Not Allinaa's, not anybody's. Notion renders the page itself and gives you no place to put a script tag, which is a deliberate design decision on their part rather than a gap. What you can do is one of three things, and they have real trade-offs.
Why it is not possible directly
A chat widget is a line of JavaScript that has to be present in the page the visitor loads. Notion's own publishing produces that page from its own templates, and there is no field in which a customer's script can be included. Any article that tells you to paste a script into a Notion block is describing an embed block, which puts content inside an iframe on the page - a sandboxed frame is not the page, so a floating chat bubble cannot escape it to sit in the corner, and a widget confined to a box in the middle of your text is not a chat widget in any useful sense.
Option 1: put a hosting layer in front of Notion
Several services take a Notion page and serve it on your own domain, adding the things Notion does not offer - a custom domain, better typography, and crucially a place for custom code in the page head or before the closing body tag. If you already use one of these, that is where the Allinaa line goes, and the installation is a single paste into the custom-code field of their site settings.
This keeps the thing you actually liked about Notion - editing content in Notion - and gives you a real web page. It is the route most people in this position end up taking. Check the service's own documentation for where custom code goes, and whether it is on the plan you are paying for.
Option 2: a one-page site beside your Notion content
If your Notion page is a knowledge base or documentation and the chat is really for sales enquiries, you may not need the chat on the Notion content at all. A small, plain page on your own domain - a single HTML file is enough - can carry the assistant, your contact details and a link into the Notion content. See installing on a plain HTML page, and GitHub Pages if you want it hosted free.
Honest trade-off: visitors reading your documentation cannot reach the assistant from there. If the questions arise while people are reading, this option does not solve your problem.
Option 3: move the public site off Notion
If the site is your business's public face rather than internal documentation, this is worth considering independently of the chat. Notion publishing has no control over page titles and descriptions at the level a public site usually wants, no proper analytics, and - as this page shows - no place for anything of your own. A straightforward site builder gives you all three, and the chat is then one paste. See the installation guides for the platforms covered.
What works today, whatever you decide
Three things do not depend on your website at all, and may be enough:
- Telegram. Connect your own bot and your customers can message the assistant there. It is live-verified and costs no platform fee. See Telegram.
- A link to the standalone chat page. Your assistant has its own page, so a link in your Notion content, your e-mail signature or your social profile sends somebody straight into a conversation without any script on your site.
- Your knowledge is portable. Anything you write now is the same knowledge every channel and every website uses later, so none of that work is wasted when you change hosting. See what to put in the knowledge.
Questions people ask about this
Could I embed the chat in a Notion embed block?
Technically something would render, but inside a sandboxed frame in the flow of your page. It cannot float, it cannot follow the reader down the page, and on a phone it is a small box in the middle of the text. It is not worth doing.
Does Allinaa have a Notion integration?
No, and this page is not a promise of one. The limitation is Notion's publishing model, and an integration on our side would not change it.
Which hosting layer should I pick?
Pick on the features you need beyond the chat - domain, speed, page titles - and check that custom code is available on the plan you choose. The chat is one line wherever it ends up.