Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

8 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“ž PostCallTranscriptionAnalyser

Analyze customer service call transcripts with AI!
Get actionable feedback, agent scoring, and complaint type detection β€” all powered by LLMs via Ollama.


πŸš€ Features

  • πŸ€– 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.

πŸ› οΈ API Endpoints

βœ… Health Check

GET /health
Returns API health status.


πŸ… Score Transcript and Extract Complaint

POST /score

Request:

{
  "transcript_id": "1"
}

Response:
Score, feedback, and complaint type in JSON.


πŸ“‹ Generate Call Report

POST /GenerateReport

Request:

{
  "transcript_id": "1"
}

Response:
Speaker-wise feedback in JSON.


⚑ Quickstart

  1. Install dependencies

    pip install -r requirements.txt
  2. Start Ollama (ensure llama3 model is available)

  3. Run the app

    python app.py

    Or with Docker:

    docker build -t postcall-analyser .
    docker run -p 5000:5000 postcall-analyser

πŸ“‚ Project Structure

  • app.py β€” Flask API server
  • TranscriptAnalyzer.py β€” Transcript analysis logic
  • requirements.txt β€” Python dependencies
  • Dockerfile β€” Containerization

πŸ’‘ Example Usage

curl -X POST http://localhost:5000/score -H "Content-Type: application/json" -d '{"transcript_id": "1"}'

πŸ§‘β€πŸ’» Requirements

  • Python 3.11+
  • Flask
  • Ollama Python client
  • Ollama server with llama3 model

πŸ“„ License

The project is licensed under the MIT License. See the LICENSE file for more details.


Made with ❀️ for call center QA prototyping.

About

πŸ“žπŸ€– PostCallTranscriptionAnalyser is a Flask-based API that uses large language models (LLMs) via Ollama to analyze customer service call transcripts. It provides πŸ… automated agent scoring, πŸ“ complaint type detection, and πŸ—£οΈ detailed speaker feedback to help improve call center quality assurance. With simple API endpoints and a built-in mock tr

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages