Logo: Conversation Evaluator

Conversation Evaluator

Organisatioun
Happy-Technologies-LLC
conversation-evaluator

Evaluate virtual agent conversations for quality including coherence, accuracy, slot filling, intent matching, and hallucination detection

Iwwersiicht

EditeurHappy-Technologies-LLC
Repositoryhappy-platform-skills
Skill-Nummconversation-evaluator
Stären
41
Forks
14
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzApache-2.0
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    Happy-Technologies-LLC huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Conversation Evaluator an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/Happy-Technologies-LLC/happy-platform-skills/tree/main/skills/genai/conversation-evaluator
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/Happy-Technologies-LLC/happy-platform-skills.git /tmp/happy-platform-skills
mkdir -p .claude/skills
cp -r /tmp/happy-platform-skills/skills/genai/conversation-evaluator .claude/skills/conversation-evaluator
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Conversation Evaluator an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Conversation Evaluator automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Conversation Evaluator net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Conversation Evaluator

Overview

This skill evaluates virtual agent conversations across multiple quality dimensions to ensure accurate, coherent, and helpful interactions. It identifies issues with conversational AI performance and provides actionable improvement recommendations.

  • Assess conversation coherence: logical flow, context retention, and topic continuity
  • Validate accuracy: are responses factually correct and aligned with knowledge base content
  • Evaluate slot filling: completeness and correctness of captured user inputs
  • Score intent matching: did the virtual agent select the correct topic and actions
  • Detect hallucination: identify fabricated information not grounded in ServiceNow data
  • Generate quality scorecards with per-dimension ratings and aggregate scores

When to use: When auditing virtual agent performance, investigating user complaints about bot interactions, or running periodic quality assessments on conversational AI deployments.

Prerequisites

  • Roles: admin, va_admin, or conversation_designer
  • Plugins: com.glide.cs.chatbot (Virtual Agent), com.glide.cs.designer (Conversation Designer)
  • Access: Read on sys_cs_topic, sys_cs_conversation, sys_cb_topic, sys_cb_action, sys_cs_message
  • Knowledge: Understanding of your Virtual Agent topic designs and expected conversation flows
  • Data: Active virtual agent deployment with conversation history

Procedure

Step 1: Retrieve Conversations for Evaluation

Query recent virtual agent conversations, optionally filtered by topic or outcome.

Using MCP (Claude Code/Desktop):

Tool: SN-Query-Table
Parameters:
  table_name: sys_cs_conversation
  query: state=closed^sys_created_onONLast 7 days@javascript:gs.daysAgoStart(7)@javascript:gs.daysAgoEnd(0)
  fields: sys_id,number,topic,state,channel,opened_at,closed_at,close_reason,user,queue_time,handle_time
  limit: 50

Using REST API:

bash
GET /api/now/table/sys_cs_conversation?sysparm_query=state=closed^sys_created_onONLast 7 days@javascript:gs.daysAgoStart(7)@javascript:gs.daysAgoEnd(0)&sysparm_fields=sys_id,number,topic,state,channel,opened_at,closed_at,close_reason,user,queue_time,handle_time&sysparm_limit=50

Step 2: Extract Conversation Messages

Retrieve the full message history for each conversation being evaluated.

Using MCP:

Tool: SN-Query-Table
Parameters:
  table_name: sys_cs_message
  query: conversation=[conversation_sys_id]^ORDERBYsys_created_on
  fields: sys_id,conversation,body,type,sender_type,sys_created_on,is_hidden
  limit: 100

Using REST API:

bash
GET /api/now/table/sys_cs_message?sysparm_query=conversation=[conversation_sys_id]^ORDERBYsys_created_on&sysparm_fields=sys_id,conversation,body,type,sender_type,sys_created_on,is_hidden&sysparm_limit=100

Step 3: Retrieve Topic and Action Definitions

Get the designed topic flow to compare against actual conversation behavior.

Using MCP:

Tool: SN-Query-Table
Parameters:
  table_name: sys_cb_topic
  query: sys_id=[topic_sys_id]
  fields: sys_id,name,description,goal,utterances,active
  limit: 1

Using REST API:

bash
GET /api/now/table/sys_cb_topic?sysparm_query=sys_id=[topic_sys_id]&sysparm_fields=sys_id,name,description,goal,utterances,active&sysparm_limit=1

Retrieve the expected actions for this topic:

Using MCP:

Tool: SN-Query-Table
Parameters:
  table_name: sys_cb_action
  query: topic=[topic_sys_id]^ORDERBYorder
  fields: sys_id,name,type,topic,order,script,table,field,mandatory
  limit: 50

Using REST API:

bash
GET /api/now/table/sys_cb_action?sysparm_query=topic=[topic_sys_id]^ORDERBYorder&sysparm_fields=sys_id,name,type,topic,order,script,table,field,mandatory&sysparm_limit=50

Step 4: Evaluate Coherence (Score 0-10)

Assess the logical flow and context management of the conversation:

CriterionPointsDescription
Logical flow0-3Responses follow a logical sequence without non-sequiturs
Context retention0-2Bot remembers earlier user inputs throughout conversation
Topic continuity0-2Conversation stays on-topic without unexplained jumps
Greeting/closing0-1Appropriate opening and closing messages
Recovery from confusion0-2Bot handles misunderstandings gracefully

Red flags:

  • Bot repeats the same question after user already answered
  • Bot references information the user never provided
  • Conversation jumps to unrelated topic without transition
  • Bot fails to acknowledge user corrections

Step 5: Evaluate Accuracy (Score 0-10)

Verify responses against ServiceNow data sources:

Using MCP:

Tool: SN-Query-Table
Parameters:
  table_name: sys_cs_context_entry
  query: conversation=[conversation_sys_id]
  fields: sys_id,name,value,source,conversation
  limit: 50
CriterionPointsDescription
Factual correctness0-3Responses match ServiceNow records and KB articles
Data freshness0-2Information is current, not outdated
Source attribution0-2Bot references correct records/articles
No contradictions0-2Bot does not contradict itself within conversation
Appropriate uncertainty0-1Bot expresses uncertainty when data is ambiguous

Step 6: Evaluate Slot Filling (Score 0-10)

Check if required user inputs were correctly captured:

CriterionPointsDescription
Required slots captured0-3All mandatory fields collected from user
Slot validation0-2Inputs validated (e.g., email format, date range)
Slot confirmation0-2Bot confirms critical inputs back to user
Graceful re-prompting0-2Bot handles invalid inputs with clear guidance
Slot carryover0-1Previously provided info reused, not re-asked

Cross-reference captured slots with sys_cb_action definitions where mandatory=true.

Step 7: Evaluate Intent Matching (Score 0-10)

Determine if the virtual agent selected the correct topic for the user's request:

Using MCP:

Tool: SN-Query-Table
Parameters:
  table_name: sys_cs_topic
  query: active=true
  fields: sys_id,name,description,utterances
  limit: 100
CriterionPointsDescription
Correct topic selected0-4Initial intent classification matches user request
Disambiguation quality0-2When ambiguous, bot offers relevant topic choices
Topic switching0-2Handles mid-conversation topic changes appropriately
Fallback behavior0-2Graceful degradation when no topic matches

Step 8: Detect Hallucinations

Identify fabricated content not grounded in ServiceNow data:

Hallucination categories:

TypeDescriptionSeverity
Fabricated recordBot cites an incident/KB number that does not existCritical
Invented procedureBot describes steps not in any KB article or playbookHigh
False statusBot states incorrect ticket status or assignmentHigh
Made-up policyBot references a policy that does not existMedium
Incorrect attributionBot attributes information to wrong sourceMedium

For each bot response containing specific claims, verify against the source table:

Using MCP:

Tool: SN-Query-Table
Parameters:
  table_name: kb_knowledge
  query: number=[cited_kb_number]
  fields: sys_id,number,short_description,workflow_state
  limit: 1

Step 9: Generate Quality Scorecard

Compile evaluation results into a structured scorecard:

=== VIRTUAL AGENT CONVERSATION QUALITY SCORECARD ===
Conversation: CS0045678
Topic: Password Reset
Date: 2026-03-19
Evaluator: AI Quality Evaluator v1.0

Dimension Scores:
  Coherence:      8/10  - Minor context loss at turn 5
  Accuracy:       9/10  - All references verified correct
  Slot Filling:   7/10  - Did not confirm email address
  Intent Match:   10/10 - Correct topic on first utterance
  Hallucination:  10/10 - No fabricated content detected

Aggregate Score: 44/50 (88%) - GOOD

Issues Found:
  1. [MEDIUM] Turn 5: Bot asked for department after user already provided it
  2. [LOW] Turn 8: Bot did not confirm email address before sending reset link

Recommendations:
  1. Add context check for department slot before re-prompting
  2. Add confirmation step for email address in password reset topic

Step 10: Track Quality Trends

Aggregate scores across conversations to identify systemic issues:

Using MCP:

Tool: SN-Query-Table
Parameters:
  table_name: sys_cs_conversation
  query: state=closed^close_reason=escalated^sys_created_onONLast 30 days@javascript:gs.daysAgoStart(30)@javascript:gs.daysAgoEnd(0)
  fields: sys_id,topic,close_reason,handle_time
  limit: 200

Key quality metrics:

  • Average score per topic: Identifies worst-performing conversation flows
  • Escalation rate: Percentage of conversations escalated to human agents
  • Hallucination frequency: How often fabricated content appears
  • Slot completion rate: Percentage of required slots successfully captured

Tool Usage

ToolPurposeWhen to Use
SN-Query-TableRetrieve conversations, messages, topics, actionsCore evaluation data gathering
SN-Natural-Language-SearchFind conversations by natural language criteriaTargeted investigation
SN-Update-RecordFlag conversations with quality issuesMarking for review
SN-Add-Work-NotesDocument evaluation findingsAudit trail
SN-Get-Table-SchemaExplore conversation-related table structuresSetup and discovery

Best Practices

  1. Sample strategically -- evaluate across all topics, not just high-volume ones
  2. Include escalated conversations -- escalations reveal the most significant quality gaps
  3. Evaluate in batches -- assess 20-50 conversations per evaluation cycle for statistical validity
  4. Separate dimensions -- a high coherence score does not compensate for hallucinations
  5. Track over time -- single-point evaluations miss trends; run evaluations weekly
  6. Involve topic designers -- share findings with the team that built the conversation flows
  7. Weight severity -- hallucinations and accuracy issues should weigh more than minor coherence gaps
  8. Benchmark against human agents -- compare VA scores with human agent CSAT for context

Troubleshooting

"No messages found for conversation"

Cause: Messages may be stored in a different table or the conversation was very short Solution: Check sys_cs_message and also sys_journal_field for related entries. Very short conversations (1-2 turns) may only have system messages.

"Topic sys_id does not match any sys_cb_topic"

Cause: The conversation used a legacy or custom topic framework Solution: Check sys_cs_topic in addition to sys_cb_topic. Some deployments use the newer Conversation Designer tables.

"Cannot determine if response is a hallucination"

Cause: The response is vague enough that it cannot be verified against specific records Solution: Flag as "unverifiable" rather than hallucination. Focus on responses with specific claims (ticket numbers, KB references, dates, names).

"Scores vary widely for the same topic"

Cause: Topic flow has conditional branches that behave differently based on user input Solution: Segment evaluations by conversation path (e.g., successful resolution vs. escalation path) for more meaningful comparisons.

Examples

Example 1: High-Quality Password Reset Conversation

Conversation: CS0045678 - User requests password reset

Evaluation:

  • Coherence: 9/10 -- smooth flow, context maintained throughout
  • Accuracy: 10/10 -- correctly referenced KB0012345 for self-service reset
  • Slot Filling: 9/10 -- captured username, verified email, confirmed identity
  • Intent Match: 10/10 -- matched "password reset" topic immediately
  • Hallucination: 10/10 -- no fabricated content

Score: 48/50 (96%) - EXCELLENT

Example 2: Poor VPN Troubleshooting Conversation

Conversation: CS0045679 - User reports VPN issues

Evaluation:

  • Coherence: 5/10 -- asked for OS twice, lost context of error message
  • Accuracy: 4/10 -- referenced KB0099999 which does not exist (hallucination)
  • Slot Filling: 6/10 -- missed mandatory field: VPN client version
  • Intent Match: 7/10 -- initially matched "network issues" before correcting to VPN
  • Hallucination: 2/10 -- fabricated KB article number and invented resolution steps

Score: 24/50 (48%) - POOR. Requires immediate topic redesign.

Example 3: Ambiguous Intent Handling

Conversation: CS0045680 - User says "it's broken"

Evaluation:

  • Coherence: 8/10 -- bot asked clarifying questions methodically
  • Accuracy: 9/10 -- once topic identified, responses were correct
  • Slot Filling: 7/10 -- took 4 turns to capture enough detail
  • Intent Match: 6/10 -- disambiguation menu was too broad (8 options)
  • Hallucination: 10/10 -- no fabricated content

Score: 40/50 (80%) - GOOD. Recommendation: reduce disambiguation options to top 4.

Related Skills

  • genai/chat-summarization-va - Summarize conversations after evaluation
  • genai/now-assist-qa - Quality assurance for Now Assist features
  • genai/playbook-generation - Build improved conversation flows
  • itsm/incident-triage - Handle incidents escalated from virtual agent
  • knowledge/content-recommendation - Verify KB article references

Heefeg gestallte Froen

Wat mécht de KI-Skill Conversation Evaluator?

Evaluate virtual agent conversations for quality including coherence, accuracy, slot filling, intent matching, and hallucination detection

Firwat Conversation Evaluator op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Conversation Evaluator besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Conversation Evaluator an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/Happy-Technologies-LLC/happy-platform-skills/tree/main/skills/genai/conversation-evaluator an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Conversation Evaluator benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Conversation Evaluator benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Conversation Evaluator domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Conversation Evaluator gratis?

Jo. Happy-Technologies-LLC huet de Skill ënner der Lizenz Apache-2.0 op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇