Files
swarm-master/swarm-common/obsidian-vault/will/will-shared-zap/Infrastructure/Architecture - Automation Flow.md
T
William Valentin 9fdd29f7b7 feat: add Docker health-state HTTP endpoint for Swarm Health Watchdog
- Python HTTP server on 0.0.0.0:18809
- GET /health -> all monitored containers (JSON)
- GET /health/<name> -> single container
- Monitors: brave-search, kokoro-tts, litellm, litellm-db, n8n-agent, searxng, whisper-server
- Returns status, health, restart count via docker inspect
- systemd user service for auto-start

Task: t_461f71fe
2026-05-13 14:29:25 -07:00

2.3 KiB


Architecture - Automation Flow

Flow-oriented view of how messages, memory, automations, and storage move through the system.

flowchart TB
    subgraph Inputs[Inputs]
        direction LR
        Discord[Discord]
        Telegram[Telegram]
        Webchat[Web chat]
    end

    subgraph OpenClaw[OpenClaw orchestration]
        direction TB
        Routing[Session and message routing]
        Agents[Main agent and subagents]
        Memory[Memory search and note handling]
        Cron[OpenClaw cron]
        Scripts[Workspace scripts]
    end

    subgraph Services[Execution services]
        direction LR
        SearchNet[Search backends]
        GoogleWS[Google Workspace]
        LLM[Local Gemma]
        Embeddings[Ollama embeddings]
        Voice[Whisper and Kokoro]
        N8N[n8n-agent]
    end

    subgraph Knowledge[Knowledge and storage]
        direction LR
        Daily[memory daily notes]
        Longterm[MEMORY.md]
        Vault[Obsidian shared vault]
        Backup[MinIO backups]
        Repo[Gitea repo]
    end

    Discord --> Routing
    Telegram --> Routing
    Webchat --> Routing

    Routing --> Agents
    Agents --> Memory
    Agents --> SearchNet
    Agents --> GoogleWS
    Agents --> LLM
    Agents --> Voice
    Agents --> N8N

    Memory --> Embeddings
    Memory --> Daily
    Memory --> Longterm
    Agents --> Vault

    Cron --> Agents
    Cron --> Scripts
    Scripts --> Backup
    Scripts --> Repo
    N8N --> GoogleWS
    N8N --> Vault

    classDef input fill:#dcecff,stroke:#4a78b8,color:#17365d;
    classDef core fill:#e8f5e9,stroke:#4f8a5b,color:#1f4d2d;
    classDef svc fill:#eef3ff,stroke:#6a7fb8,color:#25324a;
    classDef store fill:#f7e8ff,stroke:#8b62b3,color:#44235e;

    class Discord,Telegram,Webchat input;
    class Routing,Agents,Memory,Cron,Scripts core;
    class SearchNet,GoogleWS,LLM,Embeddings,Voice,N8N svc;
    class Daily,Longterm,Vault,Backup,Repo store;