CoolFace
Apppublic

saadtoorx/multi-agent-customer-support-automation

sourceHugging Faceupdated 1y agoView on Hugging Face
0likes
App README

๐Ÿ“ž Multi-Agent Customer Support Automation

An intelligent multi-agent customer support system powered by CrewAI and Streamlit. This application simulates how AI agents can collaboratively handle customer inquiries with high quality, empathy, and accuracy.

<div align="center"> <img src="images/demo_screenshot.png" width="80%" alt="App Demo Screenshot"> </div>


๐Ÿš€ Features

  • โ€”๐Ÿค– Multi-Agent Collaboration: AI agents perform specialized tasks such as resolving support inquiries and reviewing responses.
  • โ€”๐Ÿ” Web Scraping Integration: Automatically pulls info from trusted sources like CrewAI Docs.
  • โ€”๐Ÿ’ฌ Natural, Friendly Tone: Outputs are helpful, casual yet professional โ€” ideal for real-world support environments.
  • โ€”๐Ÿง  Memory-Enabled CrewAI: Agents can retain shared memory to improve task performance.
  • โ€”๐Ÿงฉ Modular Architecture: Easily extend or modify the system to include more agents or tools.

๐Ÿ—๏ธ Architecture Overview

๐Ÿง  Agents

  • โ€”Support Agent: Responds directly to customer queries with researched answers.
  • โ€”QA Agent: Reviews the support agentโ€™s reply to ensure tone, accuracy, and completeness.

๐Ÿ“‹ Tasks

  1. 1.Inquiry Resolution: Resolves user inquiry with research and clarity.
  2. 2.QA Review: Reviews and polishes the initial response for final output.

๐Ÿ› ๏ธ Tools Used

  • โ€”WebsiteSearchTool โ€“ for general web searches
  • โ€”ScrapeWebsiteTool โ€“ scrapes content from specific URLs
  • โ€”Preconfigured doc scraper for CrewAI docs

๐Ÿ“ Project Structure

multi-agent-customer-support/
โ”œโ”€โ”€ app.py                 # ๐Ÿš€ Streamlit app interface
โ”œโ”€โ”€ agents.py              # ๐Ÿค– Agent definitions (not shared yet)
โ”œโ”€โ”€ tasks.py               # ๐Ÿ“‹ Task definitions
โ”œโ”€โ”€ tools.py               # ๐Ÿ› ๏ธ Tool configurations
โ”œโ”€โ”€ utils.py               # ๐Ÿ”‘ API key handling
โ”œโ”€โ”€ requirements.txt       # ๐Ÿ“ฆ Dependencies
โ”œโ”€โ”€ README.md              # ๐Ÿ“– Documentation
โ””โ”€โ”€ images/
    โ””โ”€โ”€ demo_screenshot.png  # ๐Ÿ–ผ๏ธ App UI screenshot (optional)

๐Ÿ› ๏ธ Installation & Setup

  1. 1.Clone the repository
bash
git clone https://github.com/saadtoorx/multi-agent-customer-support.git
cd multi-agent-customer-support
  1. 1.Install dependencies
bash
pip install -r requirements.txt
  1. 1.Add your OpenAI API key
  2. 2.Create a .env file:
env
OPENAI_API_KEY=your-api-key-here

โ–ถ๏ธ Running the App

bash
streamlit run app.py
  • โ€”๐Ÿ“ App simulates a support inquiry from a fictional customer.
  • โ€”๐Ÿง  CrewAI kicks off task execution between agents.
  • โ€”๐Ÿ“‹ Final, polished response is displayed in Streamlit UI.

๐Ÿ“ฆ Tech Stack


๐Ÿค– Agent Summary

AgentResponsibility
Support AgentResearches and writes a helpful reply to customer inquiry.
QA AgentReviews the reply, improves tone, and ensures completeness.

๐Ÿ”ฎ Future Improvements

  • โ€”๐Ÿง  Add more agents (e.g., Sentiment Analyst, Follow-up Manager)
  • โ€”๐ŸŒ Use live customer chat input instead of static prompt
  • โ€”๐Ÿงพ Export final replies to email or ticketing system
  • โ€”๐Ÿงฉ Add memory visualization or trace logs

๐Ÿ“„ License

Licensed under the MIT License. See `LICENSE` for full terms.


โœจ Built By

Created with โค๏ธ by Saad Toor (@saadtoorx) Powered by CrewAI, Streamlit, and OpenAI