Analyze customer service call transcripts with AI!
Get actionable feedback, agent scoring, and complaint type detection β all powered by LLMs via Ollama.
- π€ Agent Scoring: Rates empathy, problem-solving, and professionalism.
- π Complaint Type Detection: Identifies the main issue from a call.
- π£οΈ Speaker Feedback: Generates feedback for each unique speaker.
GET /health
Returns API health status.
POST /score
Request:
{
"transcript_id": "1"
}Response:
Score, feedback, and complaint type in JSON.
POST /GenerateReport
Request:
{
"transcript_id": "1"
}Response:
Speaker-wise feedback in JSON.
-
Install dependencies
pip install -r requirements.txt
-
Start Ollama (ensure
llama3model is available) -
Run the app
python app.py
Or with Docker:
docker build -t postcall-analyser . docker run -p 5000:5000 postcall-analyser
app.pyβ Flask API serverTranscriptAnalyzer.pyβ Transcript analysis logicrequirements.txtβ Python dependenciesDockerfileβ Containerization
curl -X POST http://localhost:5000/score -H "Content-Type: application/json" -d '{"transcript_id": "1"}'- Python 3.11+
- Flask
- Ollama Python client
- Ollama server with
llama3model
The project is licensed under the MIT License. See the LICENSE file for more details.
Made with β€οΈ for call center QA prototyping.