A Go-based ticket classification system that uses Google's Gemini AI model to automatically classify tickets based on their content.
- Automatic ticket classification using Google's Gemini AI
- Structured output with severity and component information
- Easy integration with existing systems
- Go 1.24.1 or higher
- Google Gemini API key
- Clone the repository:
git clone https://github.com/yourusername/genkit-parser.git
cd genkit-parser
- Install dependencies:
go mod download
- Create a
.env
file in the root directory and add your Gemini API key:
GEMINI_API_KEY=your_api_key_here
The application processes ticket descriptions and classifies them into structured data with severity levels (LOW, NORMAL, HIGH) and component information.
Example usage:
var result Ticket
err := classify.Exact(classify.ExactOptions{
Model: classify.GoogleGemini,
APIKey: os.Getenv("GEMINI_API_KEY"),
Input: "The login system is down",
Output: &result,
})
genkit-parser/
├── classify/ # Classification logic
├── main.go # Main application entry point
├── go.mod # Go module definition
├── go.sum # Go dependencies checksum
└── .env # Environment variables