saadtoorx/multi-agent-customer-support-automation
0
๐ 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
- Inquiry Resolution: Resolves user inquiry with research and clarity.
- QA Review: Reviews and polishes the initial response for final output.
๐ ๏ธ Tools Used
WebsiteSearchToolโ for general web searchesScrapeWebsiteToolโ 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
- Clone the repository
git clone https://github.com/saadtoorx/multi-agent-customer-support.git
cd multi-agent-customer-support- Install dependencies
pip install -r requirements.txt- Add your OpenAI API key
- Create a
.envfile:
OPENAI_API_KEY=your-api-key-hereโถ๏ธ Running the App
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
- Python 3.8+
- Streamlit
- CrewAI
- crewAI-tools
- OpenAI API
python-dotenv
๐ค Agent Summary
๐ฎ 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