Skip to content

htree255/LangGraph-Based-Customer-Ticket-Router

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 

Repository files navigation

AI-Powered Customer Support Router

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.

Key Features

  • 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.

Prerequisites

  • Python 3.10+
  • A Google Gemini API key.

Installation

  1. Clone the repository:

    git clone <your-repository-url>
    cd <your-repository-name>
  2. Create and activate a virtual environment:

    python -m venv venv
    source venv/bin/activate  # On macOS/Linux
    venv\Scripts\activate     # On Windows
  3. Install the dependencies:

    pip install -r requirements.txt

Setup

  1. Obtain a Google Gemini API key from the Google AI Studio.
  2. Create a file named .env in the project's root directory.
  3. Add your API key to the .env file like this:
    GOOGLE_API_KEY="your_api_key_here"
    

How to Run

After following the setup steps, run the agent from your terminal:

python agent.py

About

A LangGraph agent that takes a customer's support ticket description, classifies it into one of a few predefined categories using Google's Gemini LLM, and then provides a simple, category-specific response.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages