AIVA – Affine Intelligent Virtual Assistant
🚀 Inspiration
Customer service email handling is often slow, inconsistent, and manually intensive. We envisioned an AI-powered solution that could revolutionize email automation—eliminating delays, enhancing response accuracy, and reducing operational costs. AIVA was born to be the ultimate AI-driven virtual assistant, capable of processing, understanding, and intelligently responding to customer queries in real-time.
🔥 What it does
AIVA is a next-gen multi-agent AI system that revolutionizes customer service email responses by:
- Intelligent Content Analysis: Reviews user emails to check for responsible AI markers, classifies queries, and extracts essential information.
- User Authentication: Verifies user identity to ensure secure interactions.
- Multimodal Processing: Analyzes attached images—helping to swiftly process refund claims, recommendations, and other visual cues.
- Dynamic Data Integration: Connects to multiple data sources—databases, search indexes, and more—using a multi-agent framework to gather and verify relevant information.
- Human-Centric Email Design: Uses an email formatting agent to craft natural, engaging, and human-like responses.
- Final Compliance Check: Applies responsible AI guidelines to review and finalize every generated response before delivery.
🏗️ How we built it
AIVA is built on a multi-agent AI framework that combines cutting-edge technologies and platforms. The system integrates Power Automate for email handling, Azure OpenAI for agent intelligence, and AI Foundry PromptFlow for orchestrating the multi-agent deployment. GitHub Copilot played a key role in accelerating development by assisting with prompt engineering, generating optimized code structures, and streamlining the integration of various components. Here’s an overview of our approach:
Email Handling
- Uses Power Automate to pull incoming emails.
REST API Integration:
- Sends email content from Power Automate via a REST API to the multi-agent deployment in PromptFlow.
Multi-Agent Deployment in PromptFlow: Specialized agents interact to construct the final response.
- User Check Agent: Verifies if the sender's email is registered in the database.
- Responsible AI Agent: Ensures the email content adheres to responsible AI standards.
- Question Extraction Agent: Extracts and classifies the main query from the email.
- Intellitag Agent: Analyzes attached images and integrates visual data for better context.
- Unified Agent: Acts as the central coordinator and delegates tasks to specialized sub-agents:
- Routing Agent: Directs the query to the appropriate sub-agent for data retrieval.
- Quin Agent: Constructs SQL queries to fetch relevant data from the database.
- Quin Critic Agent: Monitors and provides feedback on the Quin Agent's output.
- Eryl Agent: Performs text-to-vector searches in a search index to obtain product-related information.
- Eryl Critic Agent: Evaluates the Eryl Agent’s performance and offers feedback.
- Insight Agent: Aggregates outputs from all agents to form the final answer.
- Email Agent: Formats the final response into a natural, human-like email.
Response Delivery:
- Power Automate receives the final REST API response and sends the reply back to the user.
💡 Challenges we ran into
- Handling Complex Email Variability: Customers write emails in different styles and tones, requiring the AI to adapt dynamically to various formats and contexts.
- Prompt Engineering: Crafting effective prompts to ensure AI agents can handle diverse and evolving scenarios while maintaining accuracy.
- Seamless Data System Integration: Connecting AIVA to both SQL Server and a search index while ensuring efficient data retrieval and processing.
- Ensuring AI Response Compliance: Implementing business rules, security policies, and responsible AI checks without compromising response quality.
- Optimizing Multi-Agent Coordination: Ensuring smooth collaboration between multiple AI agents to prevent conflicts and inefficiencies.
- Multimodal Processing: Processing both text and image attachments effectively to generate comprehensive and accurate responses.
🏆 Accomplishments that we're proud of
- End-to-End AI-Powered Email Automation: Fully functional pipeline from email ingestion to AI-driven response.
- Multi-Agent Collaboration: Successfully designed an ecosystem where specialized AI agents work together efficiently.
- Scalability & Extensibility: AIVA is ready to integrate with more enterprise solutions like Salesforce and SAP for data retrieval.
- Human-Like Personalized Responses: AI doesn’t just automate—it understands and crafts natural, helpful responses.
🎓 What we learned
- AI Specialization Boosts Efficiency: Dividing tasks among dedicated agents significantly improved accuracy and performance.
- Contextual Data Retrieval is Essential: Leveraging real-time data from databases and search indexes ensures accurate and up-to-date responses.
- Legacy System Integration is Crucial: Business adoption relies on seamless compatibility with existing infrastructure.
- Continuous Iteration Wins: Testing, refining, and optimizing AIVA’s workflow through real-world scenarios helped enhance system performance.
🚀 What's next for AIVA
- Expanding to Multiple Channels: Enhancing AIVA to handle customer queries not just through email but also via chat, social media, and other support platforms.
- Enhancing NLP Capabilities: Improving AI's ability to understand context and nuances by leveraging more sophisticated language models.
- Human-in-the-Loop Validation: Introducing human oversight to review and validate AI-generated responses for improved accuracy and trust.
- Automated Learning & Continuous Improvement: Implementing a feedback loop where AI refines its responses based on real-world interactions and customer feedback.
- Strengthening Security & Compliance: Enforcing stricter data privacy measures and business rule validations to ensure safe and compliant automation.
AIVA is not just another chatbot—it’s a next-gen intelligent virtual assistant redefining how businesses interact with customers. 🌟
Built With
- aifoundry
- azureaisearch
- azureaivision
- azureblob
- azurecontentsafety
- azureopenai
- azuresqldatabase
- powerautomate
- promptflow
- python
- restapi
Log in or sign up for Devpost to join the conversation.