This project is a foundational AI agent designed to automate the initial stage of a customer support process. It uses a Large Language Model (LLM) to classify incoming customer queries and route them to a specific handler for a tailored response.
- LLM-Powered Classification: Intelligently categorizes customer queries into predefined categories like "Technical Support" or "Billing Inquiry."
- Conditional Routing: Directs the query to the correct processing node based on the classification.
- Automated Responses: Generates a category-specific response using the LLM.
- Orchestration: The entire workflow is managed by LangGraph.
- Python 3.10+
- A Google Gemini API key.
-
Clone the repository:
git clone <your-repository-url> cd <your-repository-name>
-
Create and activate a virtual environment:
python -m venv venv source venv/bin/activate # On macOS/Linux venv\Scripts\activate # On Windows
-
Install the dependencies:
pip install -r requirements.txt
- Obtain a Google Gemini API key from the Google AI Studio.
- Create a file named
.envin the project's root directory. - Add your API key to the
.envfile like this:GOOGLE_API_KEY="your_api_key_here"
After following the setup steps, run the agent from your terminal:
python agent.py