Reusable Bobble Chat starter for new sites with configurable branding, Twilio SMS alerts, and live-agent reply links.
- on-site AI chat widget
- callback booking flow
- Twilio SMS notifications
- email notifications via Microsoft Graph
- CRM/webhook forwarding routes
- live-agent web page for replying to visitors from a link
- one central config file for branding and copy
Update lib/chatbot/config.ts first.
That file controls:
- business name
- bot name
- logo path
- avatar path
- phone number
- email and address
- welcome copy
- proactive prompts
- booking flow text
- live-agent labels
- default AI facts
- default SMS recipients
Copy .env.example to .env.local and set:
ANTHROPIC_API_KEYCRM_BASE_URLCRM_INGEST_TOKENAZURE_TENANT_IDAZURE_CLIENT_IDAZURE_CLIENT_SECRETOUTLOOK_FROM_EMAILWEBSITE_NOTIFY_EMAILTWILIO_ACCOUNT_SIDTWILIO_AUTH_TOKENTWILIO_FROM_NUMBERTWILIO_CALLBACK_RECIPIENTS
npm install
npm run devOpen http://localhost:3000.
components/chat/ChatWidget.tsxapp/api/chat/*app/api/lead/route.tsapp/api/book/route.tsapp/agent/chat/page.tsxlib/chatbot/config.tslib/chatbot/ai.tslib/chatbot/server.tslib/server/notifications.ts
- This starter still uses mortgage-oriented defaults in the AI and booking copy because that is what the original build used.
- Rebrand and adjust the compliance text in
lib/chatbot/config.tsbefore going live. - The live-agent flow assumes your CRM service keeps the existing chat session endpoints.