Why These Models Matter
The four data models work together to support your complete AI customer service workflow:Organization & Projects
Manage your company’ AI agents, team access, and billing.
Users, Conversations & Messages
Track customer identities and their interactions with your AI.
Channels, Deployments & Aliases
Deploy you AI agents across platforms and integrations in a versioned manner.
Guidances, Actions & Knowledge
Define how your AI behaves and what it knows to assist customers effectively.
Model 1: Organization & Projects
The Organization & Projects model defines how your company structure AI agents and manages team access.Overview
Visual Diagram
Organization: The Top-Level Container
Your Organization represents your company’s botBrains account. It’s the highest level in the hierarchy and handles company-wide concerns.What It Contains
All Projects - Ever AI agent you create Billing Information - Subscription plan, usage tracking, payment methods Team Members - People with access to manage your botBrains account Organization Settings - Default configurations and preferencesKey Characteristics
Single Organization Per Account - Each botBrains account has exactly one organization Centralized Billing - All projects roll up to organization-level billing Shared Resources - Team members can be granted access to multiple projects Organization-Level Roles - Admins can access all projects within the organizationWhen You Interact With It
You work at the organization level when:- Setting up billing and subscriptions
- Managing team members and permissions
- Viewing aggregate usage across all projects
- Configuring organization-wide settings
In the botBrains data model, “Organization” and “Account” are often used interchangeably. An account represents your company’s presence in botBrains.
Projects: Independen AI agents
Projects are where the real work happens. Each project is a completely independen AI agent with its own configuration, knowledge base, and deployments.What a Project Contains
Knowledge Sources - Data providers, snippets, and search tables specific to this AI Behavior Configuration - Profiles that control guidance, tools, and how the AI responds Deployments - Versioned releases of your AI configuration User Pools - Collections of users who interact with this project Integrations - Channels like website widgets, Zendesk, Salesforce, Slack Analytics - Metrics, topics, and insights for this specifi AI agentKey Characteristics
Complete Isolation - Projects don’t share knowledge or configurations by default Independent Deployments - Each project can be deployed to different channels Project-Scoped Permissions - Team members can have access to specific projects only Unique API Keys - Each project has its own authentication credentials Separate Analytics - Metrics and insights are tracked per projectWhen to Create Multiple Projects
Create separate projects for: Different Products or Brands Separate AI for each product line or brand identity. Each gets its own knowledge base and can have a distinct voice and behavior. Different Departments Sales, support, and technical teams often need different knowledge and different escalation workflows. Separate projects keep these concerns isolated. Development Stages Maintain separate development, staging, and production environments. Test changes in development before deploying to customers. Different Languages or Regions Region-specific deployments with localized knowledge and language support. Allows customization for different markets. Customer Segments Enterprise customers might need a different AI experience than self-service users. Separate projects enable distinct treatment.How They Relate: Organization Owns Projects
Why This Structure Matters
Billing Simplicity All projects under one organization share a single subscription. You don’t need separate accounts or payment methods for different AI agents. Team Management Grant organization-level access to admins who need to see everything, or project-level access to specialists who only need specifi AI agents. Clean Separation Projects are completely independent. Changes to on AI agent never affect another, preventing accidental cross-contamination of knowledge or settings. Easy Scaling Start with one project and add more as your needs grow. No need to restructure or migrate - just create new projects when you need them.Practical Example: E-Commerce Company
Organization: Acme Retail Inc Team Members:- Sarah (CEO) - Organization Admin
- Mike (Support Director) - Access to Customer Support project
- Jennifer (Sales VP) - Access to Sales project
- David (IT Manager) - Access to IT Helpdesk project
- Purpose: Answer order questions, shipping inquiries, returns
- Knowledge: Product catalog, shipping policies, return procedures, FAQs
- Deployments: Website widget (launcher mode), Zendesk integration
- User Pool: Customers who placed orders
- Analytics: Track CSAT, resolution rate, common topics
- Purpose: Help potential customers understand products and pricing
- Knowledge: Product features, pricing, comparisons, case studies
- Deployments: Website widget (different pages), Salesforce integration
- User Pool: Website visitors, potential customers
- Analytics: Track conversion influence, common questions
- Purpose: Help employees with IT issues and questions
- Knowledge: IT policies, software guides, troubleshooting docs
- Deployments: Slack bot
- User Pool: Employees
- Analytics: Track most common IT issues, time saved
- All three projects covered under single Enterprise plan
- Usage tracked separately per project but billed together
- One invoice, one payment method
Best Practices
Start Simple Begin with one project to validate you AI agent works well. Add more projects as your needs grow and you understand the platform better. Use Descriptive Names Name projects clearly: “Customer Support Bot”, “Sales Assistant”, “IT Helpdesk”. Avoid generic names like “Project 1” or “Bot A”. Plan for Isolation Don’t try to share knowledge across projects directly. If multiple projects need the same information, use data providers to sync from a single source. Organize by Function Group projects by their purpose (support, sales, internal) rather than by channel or deployment method. Manage Access Carefully Give team members access only to the projects they need. This prevents accidental changes and keeps analytics focused.Model 2: User, Conversation, Messages
The User model defines how customers and their conversations are tracked and organized. This model captures who your customers are, what they’re asking about, and the complete history of their interactions.Overview
Visual Diagram
Critical Design Note: User Owns Conversation
This design reflects reality in customer service: conversations are between one customer and your AI. It’s not a group chat where multiple people participate in the same conversation.Users: Customer Identity
Users represent the people who interact with you AI agent. Each user has a unique identity and maintains conversation history across all their interactions.What a User Contains
User Profile - Name, email, phone number, and identification Custom Attributes - Your own data fields for segmentation and personalization Preferences - Language, timezone, and other settings External IDs - Identifiers from your systems (CRM, support platform, database) Conversation History - All conversations this user has ever had Labels - Tags for organization and segmentationUser Properties
Standard user fields include:User Identification Methods
Email Address - Primary identifier, tracks verification status Phone Number - Mobile or phone numbers, especially for messaging integrations External ID - Your unique identifier from CRM, authentication, or database Anonymous Users - Users who haven’t provided information are tracked by device/sessionKey Characteristics
User Pools Scope Users - Users belong to a user pool, which belongs to a project’s organization Persistent Identity - Users maintain history across multiple conversations and channels Cross-Project Potential - User pools can be shared across projects if needed Secure Identification - Support for signed user data to prevent impersonationConversations: Interaction Sessions
Conversations are individual interaction sessions between a user and you AI agent. Each conversation belongs to exactly one user and contains a sequence of messages.What a Conversation Contains
Messages - The sequence of user questions and AI responses Metadata - Status, ratings, timestamps, channel information Context - Information about where the conversation happened Labels - Tags for organization and classification Analytics - Topic classification, sentiment, resolution statusConversation Properties
Important conversation fields include:Key Characteristics
User-Scoped - Each conversation belongs to exactly one user (1-to-many relationship) Time-Bound Sessions - Conversations capture a logical interaction period Rich Context - Includes channel, deployment, and environmental information Trackable Outcomes - Status, ratings, and resolution metricsConversation Status Lifecycle
Conversations typically flow through these states: Active - Ongoing conversation, user is engaged Resolved - Successfully answered, user satisfied Escalated - Handed off to human agent for complex issues Abandoned - User stopped responding, conversation inactiveMessages: Individual Exchanges
Messages are the individual exchanges within a conversation - each question from the user and each response from your AI.What a Message Contains
Message Text - The actual content of the message Role - Whether the message is from the user or assistant Metadata - Timestamps, language, source information Attachments - Files, images, or audio shared in the message Labels - Topic tags and classifications Translations - Messages in different languagesMessage Properties
Standard message fields include:Key Characteristics
Conversation-Scoped - Messages belong to a single conversation Ordered Sequence - Messages maintain chronological order Parent Linking - Each message links to previous message for context Immutable - Once created, messages typically aren’t edited Rich Content - Support for text, files, and multimediaMessage Types
Standard Message - Normal user question or AI response Comment - Internal note from team members (not visible to user) Note - System-generated annotation Summary - Condensed conversation recapHow They Relate: The Complete Flow
Why This Structure Matters
Complete Customer Context Every conversation is tied to a user, so you can see the complete support history for each customer. This enables personalized responses and better support over time. Persistent Identity Users maintain their identity across channels and time. Someone who chats on your website today and submits a Zendesk ticket tomorrow is recognized as the same person. Rich Analytics Track metrics by user segment, conversation outcome, and message content. Understand which customers need the most help and what topics drive inquiries. Personalization Opportunities Use user attributes and conversation history to customize AI responses. Enterprise customers can get different guidance than free tier users.Practical Example: SaaS Support
User: alex@startup.com Profile:- Name: Alex Martinez
- External ID: cust_789 (from your database)
- Subscription: Pro plan
- Signup Date: 2024-08-15
- Language: Spanish (es-ES)
- Labels: [“power-user”, “early-adopter”]
- Channel: Website widget
- Topic: Integration question
- Status: Resolved
- Rating: 5 stars
- Messages: 6 back-and-forth exchanges
- Channel: Zendesk ticket
- Topic: Billing inquiry
- Status: Resolved
- Rating: 4 stars
- Messages: 4 exchanges
- Channel: Slack
- Topic: Feature request
- Status: Active
- Messages: 3 so far, ongoing
- AI recognizes Alex as returning customer
- Can reference previous conversations
- Knows to respond in Spanish
- Understands Alex is a power user on Pro plan
- Can provide context-aware, personalized support
Best Practices
Identify Users When Possible Anonymous users are fine initially, but identification (email, phone, external ID) enables better support and analytics. Use your SDK to identify authenticated users. Use External Attributes Pass custom data from your systems to enrich user profiles. Include subscription tier, account status, or any data useful for personalization. Label Strategically Create labels that match your business processes: “vip-customer”, “churned-user”, “needs-followup”. Use labels to filter and segment users. Monitor Conversation Outcomes Track resolution rates, escalation patterns, and ratings to understand how well your AI serves different user segments. Maintain Data Quality Regularly review and clean user data. Merge duplicate profiles, correct invalid information, and update attributes as customers change.Model 3: Channel, Alias, Deployment (Version)
The Channel model defines how you deploy AI versions across different platforms and integrations. This model separates configuration development from production deployment, enabling safe updates and version control.Overview
Visual Diagram
Channels: User Interaction Points
Channels are the platforms where users interact with your AI. botBrains supports multiple channel types, each suited to different use cases.Available Channels
Website (Browser) Embed AI directly on your website using chat widgets. Three modes: launcher (chat bubble), inline (embedded in page), iframe (full screen). Zendesk Automate ticket responses in Zendesk. AI drafts or posts responses, predicts fields, and handles ticket workflows. Salesforce Service Cloud Integrate with Salesforce cases. AI responds to cases, populates fields, and manages case workflows. Slack Bring AI assistance into team communication. Users can DM the bot or mention it in channels. WhatsApp Reach customers on their preferred messaging platform (coming soon).Key Characteristics
Platform-Specific - Each channel type has unique configuration optionsConnected to Aliases - Channels connect to an alias, not directly to a version
Multiple Instances - You can have multiple channels of the same type (e.g., multiple website widgets)
Independent Configuration - Each channel instance has its own settings (appearance, behavior, etc.)
Channel Examples
Aliases: Version Pointers
Aliases are named pointers to specific deployment versions. They provide a stable reference point that channels can connect to, while allowing you to change which version is actually running.What an Alias Does
Think of an alias like a bookmark or shortcut:- Channels connect to the alias (e.g., “Production”)
- The alias points to a specific version (e.g., Version #5)
- You can change which version the alias points to
- All channels using that alias automatically use the new version
Alias Types
IMMUTABLE Aliases Once set, immutable aliases always point to the same version. Used for specific version references or rollback points. MUTABLE Aliases Can be updated to point to different versions. Most common type, used for “Production”, “Staging”, etc.Common Alias Patterns
Production Alias Points to the currently active version that customers interact with. All production channels connect here. Staging Alias Points to a test version for internal validation before going live. Testing channels connect here. Rollback Aliases Immutable aliases pointing to previous good versions, enabling quick rollback if needed.Key Characteristics
Named References - Aliases have descriptive names like “Production”, “Staging” Version Pointers - Each alias points to exactly one deployment version Channel Connections - Channels connect to aliases, not directly to versions Update Propagation - Changing alias target updates all connected channels immediatelyDeployments (Versions): Configuration Snapshots
Deployments, also called Versions, are numbered, immutable snapshots of your AI’s complete configuration at a specific point in time.What a Deployment Contains
Profile Configuration- Guidance instructions
- Tool configurations
- LLM settings
- Audience rules
- Escalation criteria
- All data provider content at build time
- Snippet collections
- Search table references
- Embeddings index
- Version number (#1, #2, #3…)
- Profile name (v0.0, v0.1, v0.2…)
- Creation timestamp
- Build description
Key Characteristics
Immutable - Once created, versions never change Numbered Sequentially - Automatically assigned numbers (#1, #2, #3…) Complete Snapshots - Include both configuration and knowledge at build time Versioned Knowledge - Changes to guidance or knowledge require a redeploy Rollback Ready - Previous versions remain available for rollbackThe Build Process
Creating a new deployment:- Make Changes - Edit guidance, add knowledge sources, configure tools
- Build Version - Navigate to Behavior → Review → Build Version
- Capture Snapshot - System captures current profile and knowledge state
- Create Deployment - New version created with incremented number
- Update Alias - (Optional) Set as active to point Production alias to new version
- Deploy to Channels - All channels using the alias switch to new version
Building creates an immutable deployment. Once built, versions cannot be modified - you must build a new version for any changes.
How They Relate: The Complete Architecture
Why This Structure Matters
Safe Updates Build and test new versions without affecting live channels. Only when you’re confident, update the Production alias to point to the new version. Version Control Every change creates a new numbered version. You have a complete audit trail of what changed and when. Easy Rollback If a deployment causes issues, simply point the Production alias back to a previous version. All channels switch back immediately. Consistent Deployment All channels connected to the same alias use the same version. Update once, deploy everywhere. Knowledge Versioning Knowledge is captured at build time. Changes to data providers don’t affect deployed versions until you rebuild and redeploy.Versioning and Knowledge Updates
The Knowledge Snapshot Process:- Data Provider Syncs - Your documentation, FAQs, etc. are synced from sources
- Knowledge Updated - New content is available in the knowledge base
- Staleness Indicator - Platform shows “Knowledge updated, rebuild needed”
- Build New Version - Creating a new version captures current knowledge state
- Deploy - Set new version as active for channels to use updated knowledge
- Deployed versions are stable - knowledge doesn’t change mid-conversation
- You control when knowledge updates go live
- You can test knowledge changes before deploying to customers
- Rollback includes both configuration AND knowledge state
Best Practices
Use Meaningful Alias Names Name aliases clearly: “Production”, “Staging”, “Testing”. Avoid generic names like “Alias 1”. Build Versions Strategically During active development, build often to test changes. For stable deployments, build less frequently - batch multiple small changes into one version. Test Before Production Use a Staging alias to test new versions before updating Production. Catch issues before customers see them. Monitor After Deployment Watch conversations closely for 24-48 hours after deploying a new version. Check metrics, read conversations, verify everything works as expected. Keep Version History Don’t delete old versions. They serve as rollback points and provide an audit trail of changes. Document Changes Keep notes on what changed in each version. This helps track improvements and troubleshoot issues. Regular Knowledge Rebuilds If you have frequently updating data providers, schedule regular builds (weekly/monthly) to incorporate latest knowledge.Advanced Pattern: Multiple Aliases
For advanced use cases, you can create multiple aliases for different purposes:- Test updates on one channel before deploying to all
- Different versions for internal vs. customer-facing channels
- Gradual rollout capability
- More complex to manage
- Risk of configuration drift
- Need to track multiple active versions
Model 4: Guidances, Actions & Knowledge
The Guidances, Actions, and Knowledge model defines how your AI behaves, what it can do, and what it knows. These three components work together within Profiles to create a complete AI configuration that gets versioned and deployed.Overview
Guidances: Behavioral Instructions
Guidances are the rules that control how your AI behaves in different situations. Each guidance is a self-contained instruction set with conditional logic for when it applies.What a Guidance Contains
Instructions - Natural language directions for the AI Tool Permissions - Which actions the AI can use (allowed_tools) Audience Rules - Conditions determining when this guidance applies Active/Draft State - Whether the guidance is live or being testedData Model Structure
How Guidances Work
1. Tool Mentioning When you write instructions, reference tools using backticks:- Detects tool mentions in your instructions
- Adds them to
allowed_tools - Warns if tools are mentioned but not enabled
- Warns if tools are enabled but not used
- Customer tier (VIP, Free, Enterprise)
- User attributes (region, language, subscription status)
- Conversation context (channel, time, labels)
- Active - Applied in deployed versions
- Draft - Saved but not applied until activated
Practical Example
Guidance: VIP Customer RefundsActions: What the AI Can Execute
Actions are the tools and capabilities your AI can use to accomplish tasks beyond answering questions. Actions are configured at the profile level and made available to guidances.Types of Actions
Built-in Tools- Web Search - Search the internet for real-time information
- Fetch Web Pages - Retrieve content from URLs
- Offer Handoff - Create email escalations to human support
- Escalate to Human - Immediately route to support agents
- Search Knowledge - Query your knowledge base
- Structured data uploaded to botBrains (CSV, JSON, JSONL)
- Queryable with filters, ranges, and multi-select
- Examples: Product catalogs, order histories, FAQ databases
- External integrations via Model Context Protocol
- Pre-built: Salesforce, HubSpot, Stripe, Shopify, Zapier
- Custom: Your own APIs and services
- Can expose multiple tools per server
- Automated actions when conditions are met
- Types: Block, Assign Label, Unassign Label
- Executed before AI responds (for security/routing)
Data Model Structure
How Actions Work
1. Tool Configuration Configure tools in Profile > Tools tabs:- General Tab - Built-in tools and search tables
- MCP Servers Tab - External integrations
- Toolboxes Tab - Custom tool collections
allowed_tools.
3. Approval Flow
For sensitive actions, require user approval:
- AI determines action is needed
- Presents action to user with explanation
- User approves or rejects
- If approved, action executes and results returned
ServerName::tool_name
Search table tools use simple names: search_products
Practical Example
E-commerce Support Bot Actions: Search Table: Orders Database- Tool name:
search_orders - Data: Order ID, customer email, status, date, amount
- Searchable fields: email, order ID, date range
- Server URL:
https://mcp.stripe.com - Tools:
Stripe::get_payment,Stripe::create_refund - Approval: Required for
create_refund, not required forget_payment
- Enabled for complex shipping issues
- Creates email draft for support team
- Event: User message received
- Condition: Message contains “refund”
- Action: Assign label “refund-request”
Knowledge: What the AI Knows
Knowledge is your AI’s information foundation - the sources it draws upon to provide accurate, grounded responses. Knowledge is versioned alongside your profile configuration.Knowledge Architecture
Data Providers - Sources of content (human, web crawler, Confluence) Sources - Individual documents/pages within providers Snapshots - Versioned states of provider content at build time Chunks - Indexed segments for retrieval Embeddings - Vector representations for semantic searchData Model Structure
How Knowledge Works
1. Knowledge Retrieval When a user asks a question:- System extracts concepts and intent
- Performs vector similarity search (semantic matching)
- Retrieves relevant chunks from sources
- Filters by audience rules
- Returns attributed sources to AI
- When you build a profile version, current knowledge is captured
- Deployed versions use the knowledge snapshot from build time
- Changes to data providers don’t affect deployed versions until rebuild
- This ensures stability - knowledge doesn’t change mid-conversation
- Sources Used - Cited in the response
- Available Sources - Retrieved but not used
- Users can view, link, and copy source references
- Web Crawler - Auto-syncs on schedule (daily/weekly)
- Human/Snippets - Manual creation and updates
- Confluence - Syncs from connected Confluence spaces
Data Provider Types
Human (Snippets)- Manually created content
- Perfect for policies, procedures, key information
- Created via UI or “Improve Answer” flow
- Automatically syncs website content
- Configurable crawl rules and schedules
- Tracks changes and updates
- Direct connection to Confluence spaces
- Syncs documentation automatically
Practical Example
SaaS Support Bot Knowledge: Data Provider 1: Help Documentation- Type: Web Crawler
- URL:
https://help.example.com - Schedule: Daily sync
- Sources: 120 help articles
- Audience: All users
- Type: Human (Snippets)
- Sources: 15 manually created snippets
- Topics: Advanced features, API docs, SSO setup
- Audience: Enterprise customers only
- Type: Confluence
- Space: Product Announcements
- Sources: 45 release notes and updates
- Audience: All users
- 180 total sources
- 2,450 chunks indexed
- 2,450 embedding vectors
- Captured when Profile v0.5 was built
How Guidances, Actions, and Knowledge Work Together
These three components form a complete system within each Profile.The Complete Workflow
Integration Points
Within Profiles A Profile bundles all three:- All guidance rules captured (current state)
- All knowledge sources and embeddings captured (snapshot)
- All action configurations captured
- Creates immutable deployment version
- Entire package (Guidance + Knowledge + Actions) goes live
- All connected channels use this version
- Changes require rebuilding and redeploying
User Interactions
In Conversations- User asks question
- Knowledge retrieval finds relevant sources
- Guidance rules evaluate based on audience
- AI uses allowed tools from matching guidance
- Response generated with source attributions
- Knowledge sidebar shows which sources were used
- Guidance Tab - Edit rules, preview responses
- Tools Tabs - Configure actions (MCP servers, tables)
- Knowledge - Managed in Data Providers section
- Build - Create new version with all three components
- Deploy - Publish to channels
- Open Knowledge Sidebar
- View sources used and available
- Add snippet to knowledge
- Edit guidance instructions
- Rebuild and redeploy
Why This Structure Matters
Complete AI Configuration Guidances, Actions, and Knowledge together define everything your AI needs: how to behave, what to do, and what to know. Versioned Together All three components are captured in each deployment version, ensuring consistency and enabling complete rollback. Separation of Concerns- Guidances = Behavior and instructions
- Actions = Capabilities and integrations
- Knowledge = Information and sources
- Guidances apply to specific user segments
- Actions can require different approvals per audience
- Knowledge can be filtered by audience
- Users identify gaps in responses
- Add knowledge (snippets)
- Adjust guidance (instructions)
- Enable actions (tools)
- Rebuild and deploy
Practical Example: E-commerce Support
Project: Acme Store Support Bot Guidances (3 rules): 1. VIP Order Support- Audience: customer_tier = “VIP”
- Instructions: Provide white-glove service, extended windows
- Tools: [search_orders, create_refund, assign_vip_agent]
- Audience: customer_tier = “Standard”
- Instructions: Follow standard policies, offer self-service
- Tools: [search_orders, offer_handoff]
- Audience: All customers
- Instructions: Troubleshoot, escalate if needed
- Tools: [search_knowledge, create_ticket, escalate_to_human]
- Orders Database (search_orders)
- Product Catalog (search_products)
- Stripe: Payment and refund tools
- Zendesk: Ticket creation and management
- Web Search (for tracking numbers)
- Offer Handoff (for complex cases)
- Auto-label “refund” messages
- Block spam users
- Type: Web Crawler
- 150 help articles
- Daily sync
- Audience: All
- Type: Human (Snippets)
- 20 VIP-specific policies
- Audience: VIP customers
- Type: Web Crawler
- Product pages and specs
- Weekly sync
- Audience: All
- Built as Profile v0.8
- Deployed to Production alias
- All channels (Website, Zendesk) use this version
- Version includes all guidance, actions, knowledge from Dec 1, 2025
Best Practices
For Guidances:- Write instructions as if training a team member
- Use specific, actionable language
- Reference tools naturally in instructions
- Test as draft before activating
- Order by priority (most specific first)
- Only enable tools AI genuinely needs
- Require approval for data-modifying actions
- Use triggers for security and moderation
- Test MCP connections before deploying
- Monitor tool usage and performance
- Use snippets for policies and precision content
- Keep crawler-based knowledge updated
- Monitor “Improve Answer” to find gaps
- Use audience filtering for segment-specific knowledge
- Always rebuild after knowledge changes
- Build versions when ready to test
- Use staging alias for validation
- Monitor metrics after deploying
- Keep version history for rollback
- Document changes between versions
Related Documentation
Guidance
Deep dive into writing effective guidance instructions
Actions
Complete guide to configuring tools and integrations
Knowledge
Managing data providers and knowledge sources
How the Four Models Work Together
The four data models combine to support your complete AI customer service workflow.Complete System View
Typical Workflow
1. Setup (Model 1: Organization)- Create organization account
- Set up billing
- Create first project
- Invite team members
- Add knowledge sources (Data Providers)
- Write guidance instructions
- Configure tools and actions (Search Tables, MCP Servers)
- Configure triggers for automation
- Build deployment version (captures Guidances, Actions, Knowledge)
- Create Production alias
- Set alias to point to version
- Configure channels (website, integrations)
- Connect channels to Production alias
- Customers interact via channels
- Users are created/identified automatically
- Conversations are tracked
- Messages are stored and analyzed
- Review analytics and conversations (Model 2)
- Make improvements to guidance/knowledge (Model 4)
- Build new version (Model 3)
- Update Production alias (Model 3)
- Monitor impact (Model 2)
Cross-Model Relationships
Projects tie everything together Projects contain deployments (Channel Model) and user pools (User Model) while being owned by organizations (Organization Model). Conversations link users and channels Each conversation belongs to a user (User Model) and references which alias/channel it came from (Channel Model). Analytics aggregate across models Project analytics combine data from users, conversations, messages (User Model) and segment by channel/version (Channel Model).Summary
botBrains uses four distinct data models to organize your AI customer service operations:Model 1: Organization & Projects
Organization - Your company’s account, managing billing and team access Projects - Independen AI agents with their own configuration and knowledge Why it matters: Clean separation, easy scaling, centralized billingModel 2: User, Conversation, Messages
User - A person who interacts with your AI (identified or anonymous) Conversation - A session of interaction, owned by exactly one user Messages - Individual exchanges within conversations Why it matters: Complete customer context, persistent identity, rich analyticsModel 3: Channel, Alias, Deployment
Channel - Where users interact (Website, Zendesk, Salesforce, Slack, WhatsApp) Alias - A pointer to a specific deployment version Deployment (Version) - Immutable snapshot of AI configuration and knowledge Why it matters: Safe updates, version control, easy rollback, consistent deploymentModel 4: Guidances, Actions & Knowledge
Guidances - Behavioral instructions that control how your AI responds Actions - Tools and capabilities the AI can execute (Search Tables, MCP Servers, Triggers) Knowledge - Information sources the AI draws upon (Data Providers, Sources, Embeddings) Why it matters: Complete AI configuration, versioned together, separation of concerns, audience-awareGetting Started
Day 1: Create a project (Model 1: Organization) Day 1: Add knowledge and guidance (Model 4: Guidances, Actions & Knowledge) Day 1: Build first deployment (Model 3: Channel) Day 1: Deploy to website widget (Model 3: Channel) Day 2+: Customers interact, users created (Model 2: User) Ongoing: Review analytics, improve, rebuild, redeploy (All Models)Related Documentation
Users
Deep dive into user management, identification, and segmentation
Deployments
Complete guide to building and managing deployment versions
Integration Channels
Connect your AI to website, Zendesk, Salesforce, Slack, and more
Versioning
Detailed information on version control and knowledge snapshots
Audiences
Create user segments for personalized AI responses
Topics
Understand automatic conversation classification and analytics