Custom AI Chatbot
LLM-powered support & sales agents
RAG Pipeline Architecture
pgvector · document retrieval · FastAPI
Full-Stack Web App
React · FastAPI · PostgreSQL · AWS
AI Integration & LLM Consulting
Embed AI into existing products
Performance & SEO
Core Web Vitals · Technical SEO
Cloud Infrastructure
AWS · S3 · EC2 · Route53 · Lambda
This guide shows you exactly how to build and launch your custom AI chatbot into your website.
First things first, you need to create your account and tell us about your business.
Adding the chatbot to your website is as simple as copying and pasting a single snippet of code.
If your site sends a Content-Security-Policy header, you need to whitelist Sapybase so the widget script can load and the embedded chat iframe can connect to our servers. Without these additions the widget will be silently blocked by the browser.
Most static HTML sites do not set a CSP header and can skip this section entirely. You only need this if you already have a Content-Security-Policy header in your server config or a <meta http-equiv> tag.
Add these to your existing CSP — do not replace your current policy, only extend it:
Content-Security-Policy:
script-src 'self' https://www.sapybase.com;
frame-src https://www.sapybase.com;
connect-src 'self' https://www.sapybase.com;
img-src 'self' data: blob: https://www.sapybase.com;// next.config.mjs
async headers() {
return [
{
source: '/:path*',
headers: [
{
key: 'Content-Security-Policy',
value: [
"default-src 'self'",
"script-src 'self' 'unsafe-inline' https://www.sapybase.com",
"frame-src https://www.sapybase.com",
"connect-src 'self' https://www.sapybase.com",
"img-src 'self' data: blob: https://www.sapybase.com",
].join('; '),
},
],
},
];
}add_header Content-Security-Policy
"default-src 'self'; script-src 'self' https://www.sapybase.com; frame-src https://www.sapybase.com; connect-src 'self' https://www.sapybase.com; img-src 'self' data: blob: https://www.sapybase.com"
always;Header always set Content-Security-Policy "default-src 'self'; script-src 'self' https://www.sapybase.com; frame-src https://www.sapybase.com; connect-src 'self' https://www.sapybase.com; img-src 'self' data: blob: https://www.sapybase.com"Why connect-src needs Sapybase
The loader and the AI backend are both served through www.sapybase.com. This domain must be whitelisted for the chat to function.
Every change you make in the dashboard updates your website instantly.
Deleting a "knowledge chunk" means the AI will forget that specific piece of information forever.
Screen Recording: Managing the Knowledge Base, reviewing chunks, and deleting outdated information.
Our Pro plan lets you create and switch between entirely separate bots from a single dashboard.

If you get stuck or just want a human to talk you through it, our team is always just a message away.
Message Support