Chatbase is a complete no-code platform for building, deploying, and optimizing AI support agents over your own data. Trusted by over 9,000 businesses across 140+ countries, Chatbase empowers teams to deliver actionable customer experiences — swiftly, securely, and intelligently.






NEXT_PUBLIC_CHATBOT_ID
This value is automatically added to your Vercel project and identifies the chatbot you created in Chatbase.You can copy this script into your Vercel project to display your chatbot on your website.
<Script>{`(function(){if(!window.chatbase||window.chatbase("getState")!=="initialized"){window.chatbase=(...arguments)=>{if(!window.chatbase.q){window.chatbase.q=[]}window.chatbase.q.push(arguments)};window.chatbase=new Proxy(window.chatbase,{get(target,prop){if(prop==="q"){return target.q}return(...args)=>target(prop,...args)}})}const onLoad=function(){const script=document.createElement("script");script.src="www.chatbase.co/embed.min.js";script.id="${process.env.NEXT_PUBLIC_CHATBOT_ID}";script.domain="www.chatbase.co";document.body.appendChild(script)};if(document.readyState==="complete"){onLoad()}else{window.addEventListener("load",onLoad)}})();`}</Script>