Hackathon Demo: Optimized for explainability, controlled autonomy, and a clear agent loop. Scenario: Self-healing support for a SaaS platform migrating merchants to headless architecture.
A migration to headless architecture has caused:
- Broken checkouts
- Webhook failures
- Deprecated API usage
- Frontend-backend mismatches
Support teams are overwhelmed. This Agent steps in to Observe, Reason, Decide, and Act.
- Backend: Python (FastAPI)
- Frontend: React + Vite (Dynamic Dashboard)
- Agent components:
- Orchestrator: State machine managing the
Observe -> Reason -> Decide -> Act -> Feedbackloop. - Observer: Ingests simulated signals (logs, webhooks).
- Reasoner: OpenAI-powered analysis (Chain of Thought).
- Guardrails: Risk-based permission system (High risk = Human-in-the-loop).
- Orchestrator: State machine managing the
- Data: In-memory vector store & state for demo speed.
- Simulation: JSON-based scenarios driving the agent.
self_healing/
├── src/
│ ├── agents/ # Orchestrator & Tool definitions
│ ├── engine/ # Observer, Reasoning (LLM), Guardrails
│ ├── data/ # Knowledge base & Vector store
│ └── state/ # In-memory persistence
├── simulations/ # JSON scenarios (e.g. Broken Checkout)
├── ui/ # React Dashboard & Trace Viewer
├── main.py # FastAPI Entry Point
└── README.md
- Install Dependencies:
pip install fastapi uvicorn openai(plus frontend deps) - Environment: Set
OPENAI_API_KEY. - Run:
python main.py(Starts Backend) &npm run dev(Starts Frontend).