← All templates

AI Chatbot Builder

Operations & IoT · React + Node (Express) · 23 @molecule/* packages

Botpress-like chatbot builder with conversation flows, intents, training data, and deployment — including a built-in subscription tier (Free / Pro / Team) backed by Stripe

Open in Molecule

What is inside

  • auth
  • search
  • ai
  • rag
  • embeddings
  • conversation-flows
  • subscriptions

Screens (14)

  • Dashboard / (signed in)
  • BotsList /bots (signed in)
  • BotEditor /bots/:id/editor (signed in)
  • BotAnalytics /bots/:id/analytics (signed in)
  • BotSettings /bots/:id/settings (signed in)
  • BotDeploy /bots/:id/deploy (signed in)
  • Integrations /integrations (signed in)
  • KnowledgeBase /knowledge-base (signed in)
  • TestChat /test-chat (signed in)
  • Settings /settings (signed in)
  • Login /login
  • Signup /signup
  • ForgotPassword /forgot-password
  • ResetPassword /reset-password

Data model (11 tables)

  • bots — id, owner_id, name, description, system_prompt, model, temperature, max_tokens, …
  • conversations — id, bot_id, visitor_name, status, message_count, created_at, updated_at, updatedAt
  • devices — id, createdAt, updatedAt, userId, name, pushPlatform, pushSubscription, hasPushSubscription
  • intents — id, bot_id, name, description, response_template, created_at, updated_at, updatedAt
  • knowledge_documents — id, bot_id, title, content, source_url, status, created_at, updated_at, …
  • messages — id, conversation_id, bot_id, role, content, tokens_used, created_at, updatedAt
  • thread_messages — id, threadId, userId, body, editedAt, createdAt, updatedAt
  • thread_read_status — threadId, userId, lastReadMessageId, updatedAt
  • threads — id, title, creatorId, resourceType, resourceId, closed, createdAt, updatedAt
  • training_examples — id, intent_id, text, created_at, updatedAt
  • notifications — id, user_id, owner_id, createdAt, kind, title, body, link, …

API (6 handlers)

  • bots api/src/handlers/bots.ts
  • conversations api/src/handlers/conversations.ts
  • intents api/src/handlers/intents.ts
  • notifications api/src/handlers/notifications.ts
  • profile api/src/handlers/profile.ts
  • training api/src/handlers/training.ts

Subscription tiers

free / pro / team — gated by: maxBots, maxAiMessagesPerMonth, maxIntents, maxConversationsRetained, maxTrainingDocsMb, customModelsAllowed, integrations, sentiment, multilingual, advancedAnalytics

Built from 23 @molecule/* packages

Browse all @molecule/* packages →

Required secrets

  • DATABASE_URL PostgreSQL connection string
  • ANTHROPIC_API_KEY Anthropic API key
  • OPENAI_API_KEY OpenAI API key for embeddings
  • MEILISEARCH_API_KEY MeiliSearch API key

The @molecule/* packages are Apache-2.0. The app you build from this template is yours to export and self-host. Licensing