A sophisticated AI-powered customer support platform that uses a specialized multi-Assistant architecture to handle complex workflows with precision, context-awareness, and seamless user experience.This system employs a specialized ensemble of AI models, each engineered for optimal performance in specific tasks:
Assistant Specialization Purpose
🤖 Intent Classifier Natural Language Understanding Analyzes user queries to determine intent and route to appropriate specialist
✂️ Cancellation Agent Transaction Execution Handles complete cancellation workflows with parameter validation
🔄 Rescheduling Agent Logistics & Scheduling Manages date/time extraction and booking modifications
❓ Context-Aware Q&A Knowledge Retrieval Answers general questions from custom knowledge baseMulti-Assistant Architecture: Specialized models for intent classification, cancellation, and rescheduling processes
Intelligent Parameter Validation: Extracts and validates all required parameters before executing API calls
Context-Aware Conversations: Asks targeted clarifying questions when parameters are missing
Pre-Flight Checks: Ensures all data is confirmed before irreversible actions (e.g., cancellations)
Seamless User Experience: Maintains conversation flow through intelligent state management- AI Orchestration OpenAI Assistants API with specialized agents
- Backend Framework Python + Flask
- Data Persistence: Firebase Firestore for conversation state management
- Validation: Custom validation layers with parameter verification
- Deployment: Google Cloud Functions, Google Cloud Scheduler
- Authentication: Firebase Auth
Navigate to
http://127.0.0.1:5000https://peps.python.org/pep-0008/The system follows a rigorous validation workflow:
-
Intent Classification: User message is analyzed to determine purpose
-
Specialist Routing: Conversation is routed to appropriate Assistant
-
Parameter Extraction: Required parameters are identified and extracted
-
Validation Check: All parameters are validated before proceeding
-
Targeted Clarification: Missing parameters trigger specific questions
-
Action Execution: API calls are made only after full validation
-
Confirmation: User receives confirmation of completed action
-
Install Python 3.11.7:
-
Clone the repository:
git clone <repository-url> cd <project-directory>
-
Create and activate a virtual environment (recommended):
python -m venv venv # On Windows: .\venv\Scripts\activate # On Unix or MacOS: source venv/bin/activate
-
Install dependencies:
pip install -r requirements.txt
-
Set up environment variables: Create a
.envfile based on the provided example and add your API keys:- OpenAI API Key
- Google Service Account JSON credentials
- Social Media Platform API tokens
Run the development server:
flask run