AI-powered chatbot widget for websites. Embed customizable AI chat on any site in minutes.
- Instant Setup - Add AI chat to your website with one script tag
- Fully Customizable - Colors, position, bot name, avatar, and system prompts
- Smart AI - Powered by Cloudflare Workers AI with web search capabilities
- Secure - API key authentication, rate limiting, and CORS protection
- Stripe Integration - Built-in subscription management
- Analytics - Track usage and performance
# Install
npm install && cd worker && npm install
# Set secrets
cd worker
wrangler secret put STRIPE_SECRET_KEY
wrangler secret put STRIPE_WEBHOOK_SECRET
wrangler secret put STRIPE_PRO_PRICE_ID
wrangler secret put TAVILY_API_KEYnpm run dev
# Access at http://localhost:8787npm run deploy
# Live at https://insertabot.iocd worker
wrangler delete
wrangler d1 delete insertabot-production
wrangler kv:namespace delete --namespace-id=YOUR_KV_NAMESPACE_ID
wrangler vectorize delete insertabot-embeddingsinsertabot_by_mistyk_media/
├── worker/ # Cloudflare Worker API
│ ├── src/ # TypeScript source files
│ │ ├── index.ts # Main request handler
│ │ ├── customer.ts # Customer management
│ │ ├── stripe.ts # Stripe integration
│ │ ├── rag.ts # RAG/embeddings
│ │ ├── search.ts # Web search
│ │ └── validation.ts # Input validation
│ ├── public/ # Static assets
│ └── wrangler.toml # Worker configuration
├── widget/ # Embeddable widget
│ ├── insertabot.js # Widget source
│ └── demo.html # Demo page
├── scripts/ # Utility scripts
│ ├── add-customer.js # Create new customer
│ └── test-api.js # API testing
├── docs/ # Documentation
└── schema.sql # Database schema
<script
src="https://insertabot.io/widget.js"
data-api-key="YOUR_API_KEY">
</script>POST /v1/chat/completions- OpenAI-compatible chat endpointGET /v1/widget/config- Get widget configurationPOST /v1/checkout- Create Stripe checkout sessionGET /health- Health check
See the docs/ folder for detailed documentation:
- Runtime: Cloudflare Workers
- Database: D1 (SQLite)
- Storage: KV (rate limiting)
- AI: Workers AI (Llama 3.1, Vision models)
- Search: Tavily API
- Payments: Stripe
- Vector DB: Vectorize (RAG)
GNU-v2
For issues or questions, please contact Mistyk Media at support@insertabot.io or admin@mistykmedia.io. Thank you!