OneLineChat

How to add an AI chatbot to a Bolt app

Bolt usually generates a Vite project, so the chatbot goes in index.html, just before </body>. Ask Bolt to do it. Get a key at /get-api-key first.

Paste this into the Bolt chat

Add this script tag to index.html right before . The data-key is a public key, so keep it inline: <script src="https://onelinechat.com/widget.js" data-key="olc_pub_YOUR_KEY" async></script>

Notes

Last updated: · Markdown version