How rcarubbi/carubbi.chatbotstudio works
Carubbi.ChatbotStudio is a Blockly-based platform for designing, managing, and running Microsoft Bot Framework chatbots. A user authors a bot in the editor; its configuration is managed and versioned by the backend, then published to the runtime, where incoming messages are handled and bot state persisted. The tree also shows a Direct Line connector and configurable speech, NLP, maps, FAQ, and image-classification services. Some capability links are documented rather than source-verified; those are marked dashed, and unsampled internals are represented at their exact enclosing directories.
Main entry points: MessagesController.cs Message handling · BotService.cs Bot lifecycle · App.js Studio UI · BotRuntimeController.cs Runtime API
Components 25
Bot authoring
- Studio UI
carubbi-boteditor/src/App.js - Blockly editor
Carubbi.BotEditor.UI/Scripts/blockly/JsonBotDefinition/JsonBotDefinitionBlocks.js - Flow visualization
Carubbi.BotEditor.UI/Scripts/flowchart/flowchart.js - Bot definition
Carubbi.BotEditor.Config/BotConfig.cs
Management backend
- Accounts and access
Carubbi.BotEditor.Backend.Api/Controllers/AccountController.cs - Management API
Carubbi.BotEditor.Backend.Api/Controllers/BotController.cs - Bot lifecycle
Carubbi.BotEditor.Backend.Domain/Services/BotService.cs - Bot records
Carubbi.BotEditor.Backend.Domain/Entities/Bot.cs - SQL repositories
Carubbi.BotEditor.Backend.DataAccess/Repositories - Runtime client
Carubbi.BotEditor.Backend.Api/Integrations/BotRuntimeServiceClient.cs - Channel registration
Carubbi.BotEditor.Backend.Api/Integrations/ChannelRegistrationServiceClient.cs
Bot runtime
- Runtime API
Carubbi.BotEditor.Api/Controllers/BotRuntimeController.cs - Tenant configuration
Carubbi.BotEditor.Api/TenantManager.cs - Message handling
Carubbi.BotEditor.Api/Controllers/MessagesController.cs - Conversation steps
Carubbi.BotEditor.Api/Dialogs - Form-step runtime
Carubbi.BotEditor.Api/Forms/FormStepService.cs - Direct Line connector
carubbi-botconnector/src/directline/bridge.js
Bot integrations
- External capability services
Carubbi.BotEditor.Services - Speech synthesis
Carubbi.BotEditor.Services/SpeechSysthesizer/SpeechSynthesizerManager.cs
State and persistence
- Conversation state
Carubbi.BotEditor.Api/State/StateManager.cs - Bot data store
Carubbi.BotEditor.Api/BotOverrides/Autofac/BotDataStoreModule.cs - Activity logging
Carubbi.BotEditor.Api/State/SqlActivityLogger.cs
Other components
- Bot author
- Channel service
- Chat participant
Connections 24
- Bot author → Studio UI: authors in
README.md - Studio UI → Blockly editor: edits flows
README.md - Blockly editor → Bot definition: generates definition
README.md - Studio UI → Management API: manages bots
README.md - Management API → Bot lifecycle: delegates lifecycle
- Bot lifecycle → Bot records: creates versions
Carubbi.BotEditor.Backend.Domain/Services/BotService.cs - Bot lifecycle → SQL repositories: uses repository
Carubbi.BotEditor.Backend.Domain/Services/BotService.cs - Bot lifecycle → Runtime client: publishes runtime
Carubbi.BotEditor.Backend.Domain/Services/BotService.cs - Bot lifecycle → Channel registration: registers channels
Carubbi.BotEditor.Backend.Domain/Services/BotService.cs - Channel registration → Channel service: calls registration
- Runtime client → Runtime API: calls runtime
- Runtime API → Form-step runtime: builds forms
Carubbi.BotEditor.Api/Controllers/BotRuntimeController.cs - Runtime API → Tenant configuration: configures tenant
Carubbi.BotEditor.Api/Controllers/BotRuntimeController.cs - Chat participant → Message handling: sends activity
README.md - Message handling → Conversation steps: dispatches dialogue
Carubbi.BotEditor.Api/Controllers/MessagesController.cs - Message handling → Bot definition: loads bot config
Carubbi.BotEditor.Api/Controllers/MessagesController.cs - Message handling → Bot data store: uses bot store
Carubbi.BotEditor.Api/Controllers/MessagesController.cs - Tenant configuration → Bot data store: registers tenant store
Carubbi.BotEditor.Api/TenantManager.cs - Message handling → Activity logging: records activity
- Direct Line connector → Message handling: bridges messages
- Conversation steps → External capability services: uses configured services
README.md - Message handling → Speech synthesis: resolves recognition
Carubbi.BotEditor.Api/Controllers/MessagesController.cs - Speech synthesis → External capability services: synthesizes speech
Carubbi.BotEditor.Services/SpeechSysthesizer/SpeechSynthesizerManager.cs - Message handling → Conversation state: clears dialog state
Carubbi.BotEditor.Api/Controllers/MessagesController.cs