FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
FOCUSCurrently working on ScheduleSomething and LayerdEvents algorithmsLearn More
MetapilotArchitecture
AI Chatbot Architecture
DocsmetapilotArchitectureAI Chatbot Architecture
GitHub Live Sync

AI Chatbot Architecture

Live technical documentation fetched from GitHub repository omghante/metapilot/docs/architecture/ai-chatbot.md

AI Chatbot & Vision Pipeline Architecture

MetaPilot incorporates dual AI engines integrated via OpenRouter:
  1. Platform Assistant (
    chatbot
    module)
    : Interactively assists operators in the dashboard.
  2. WhatsApp AI Auto-Responder (
    wa_chatbot
    module)
    : Automatically processes incoming WhatsApp customer text & media messages.

AI Processing Pipeline

Rendering diagram...

Model Configuration & Environment Overrides

Setting KeyEnvironment VariableDefault ModelPurpose
WA_CHATBOT_TEXT_MODEL
WA_CHATBOT_TEXT_MODEL
stepfun/step-3.5-flash
Fast, cost-efficient 196B MoE LLM for text responses
WA_CHATBOT_VISION_MODEL
WA_CHATBOT_VISION_MODEL
openai/gpt-4o
Multimodal vision analysis for customer image attachments
WA_CHATBOT_MAX_HISTORY
WA_CHATBOT_MAX_HISTORY
15
Maximum conversation message turn memory
WA_CHATBOT_FALLBACK_MESSAGE
WA_CHATBOT_FALLBACK_MESSAGE
"Thank you! Our team will get back to you shortly."Fallback when context is missing or API times out