Human-AI Feedback Loop

Human-in-the-Loop AI ยท 2025

Human-AI Feedback Loop

A full-stack customer-support platform implementing a practical Human-in-the-Loop (HITL) system. Combines Rasa NLU automation with real-time human agent escalation and structured feedback capture for continuous model retraining.

The Challenge

Customer support bots often fail abruptly when encountering queries outside their training distribution. Users needed an uninterrupted transition to live human agents without losing conversation context, while engineering teams needed structured resolution data to prevent repeated errors.

Architecture & Services

Rasa Server

Intent and entity parsing with dialogue state execution on port 5005.

Action Server

Custom actions handling confidence scoring, escalation triggers, and SQLite persistence.

Flask API

REST endpoints orchestrating pending queues, agent messaging, and feedback analytics.

React Frontend

User-facing chatbot widget paired with an administrative agent escalation dashboard.

Human-in-the-loop escalation workflow and support dashboard.
Human-in-the-loop escalation workflow and support dashboard.
Click to expand

Escalation & Retraining Loop

When intent confidence falls below the predefined threshold or the user explicitly asks for human help, the conversation state is persisted to SQLite. The agent dashboard polls the Flask API, enabling human agents to intervene live, resolve the issue, and categorize the resolution with problem tags โ€” directly feeding future Rasa retraining pipelines.

100%

Context preserved during escalation

4services

Decoupled full-stack architecture

0loss

SQLite resolution history capture

Previous Project
Previous
Portfolio
All Work
Next Project
Next