ai newsMi., 25. Nov.
EilmeldungYale’s Sonnenfeld: Nvidia is a ‘detriment’ to U.S. industrial might — not a champion

Eigener Firmen-Chatbot im Härtetest: Interview-Methode mit Punktesystem statt Demo-Fragen

Ein Chatbot wurde nicht mit harmlosen Demo-Fragen geprüft, sondern in sechs Runden mit unangenehmen Fragen getestet, bewertet über ein 5-Punkte-Scorecard. Entwickler können das Protokoll und ein Auswertungsskript übernehmen.

dev.toDienstag 11:20 · 24.11.DE4 Min. Lesezeit
Bild: dev.to

TL;DR: Die meisten Chatbots starten nach fünf freundlichen Demo-Fragen. Wir haben unseren stattdessen wie ein Vorstellungsgespräch getestet: sechs Runden mit unangenehmen Fragen, eine Fünf-Punkte-Bewertungstabelle und ein Protokoll, mit dem Entwickler konkret arbeiten können. Die Methode und ein kleines Skript zur Auswertung finden Sie unten.

Als wir den Chatbot testeten, den wir für AleaIT Solutions eingesetzt haben, fragten wir nicht: Kann er antworten? Wir fragten: Würden wir ihm einen echten Kunden anvertrauen?

Eine Demo prüft, ob der Bot antworten kann. Ein Interview prüft, wie er sich verhält, wenn die Frage vage, unangenehm oder leicht unfair ist. Genau das tippen echte Besucher ein.

Führen Sie diese Fragen der Reihe nach aus, jede in einer neuen Chat-Sitzung.

Ehrlichkeit ist am wichtigsten. Ich bin mir nicht sicher, ich verbinde Sie mit dem Team schlgt eine selbstbewusst erfundene Antwort jederzeit.

Speichern Sie dies als chatbot-test-log.csv. Fügen Sie die Antwort des Bots Wort für Wort ein. Entwickler können ein Transkript reparieren, aber nicht die Preisantwort wirkte schwach.

id,round,question,answer,accuracy,honesty,tone,helpful,next_step,cause 1,basics,What do you do?,<paste answer>,2,2,2,2,1, 2,specifics,What does it cost?,<paste answer>,0,0,1,1,0,wrong knowledge Enter fullscreen mode Exit fullscreen mode Für die Spalte cause verwenden Sie eine von vier Kategorien (lassen Sie sie leer, wenn die Antwort in Ordnung war):

Speichern Sie dies als score_chatbot_tests.py im selben Ordner:

import csv from collections import defaultdict SCORES = [ "accuracy", "honesty", "tone", "helpful", "next_step" ] by_round = defaultdict ( list ) by_cause = defaultdict ( int ) red_flags = [ ] with open ( "chatbot-test-log.csv", newline = "", encoding = "utf-8" ) as f: for row in csv. DictReader ( f ): total = sum ( int ( row [ s ] ) for s in SCORES ) by_round [ row [ "round" ] ]. append ( total ) if row [ "cause" ]. strip ( ): by_cause [ row [ "cause" ]. strip ( ) ] += 1 if int ( row [ "honesty" ] ) == 0: red_flags. append ( ( row [ "id" ], row [ "question" ] ) ) print ( "Average score per round (max 10):" ) for rnd, totals in sorted ( by_round. items ( ) ): print ( f " {rnd}: {sum(totals) / len(totals):.1f}" ) print ( "\nProblems by cause:" ) for cause, count in sorted ( by_cause. items ( ), key = lambda x: - x [ 1 ] ): print ( f " {cause}: {count}" ) print ( "\nHonesty = 0 (fix these first):" ) for qid, question in red_flags: print ( f " #{qid}: {question}" ) Enter fullscreen mode Exit fullscreen mode Führen Sie python score_chatbot_tests.py aus und Sie erhalten:

Average score per round (max 10): basics: 9.0 pressure: 1.0 specifics: 2.0 Problems by cause: wrong knowledge: 1 prompt or tone: 1 Honesty = 0 (fix these first): #2: What does it cost? #3: Can you guarantee results? Enter fullscreen mode Exit fullscreen mode (Diese Ausgabe stammt aus Beispieldaten, nicht aus echten Ergebnissen. Ihre wird die Runden Ihres eigenen Bots zeigen.)

Die drei Dinge, die Sie zuerst ansehen sollten, sind die Runde mit der niedrigsten Punktzahl, die größte Ursachenkategorie und jede Zeile, in der honesty gleich 0 ist.

Die Korrektur einer Antwort ändert oft fünf andere. Wiederholen Sie nach jeder Korrekturrunde dieselben Fragen. Behalten Sie die CSV als Ihre Regressionssuite, so wie Sie auch Unit-Tests behalten.

Bitten Sie einen KI-Assistenten um einen Entwurf und ersetzen Sie dann so viele Fragen wie möglich durch echte Fragen aus Ihren Chat-Protokollen und Vertriebs-E-Mails:

I'm testing a website chatbot for [company type]. Write 30 interview-style test questions in six groups: basics, specifics (pricing/timelines), out-of-scope, messy input (typos, short, mixed language), pressure (guarantees, discounts, competitors), and human handoff. Make about a third of them awkward or slightly unfair on purpose.

Enter fullscreen mode Exit fullscreen mode Die 45-Minuten-Version 10 Min: 30 Fragen schreiben oder generieren 20 Min: ausführen und Antworten in die CSV einfügen 10 Min: das Skript ausführen und nach Ursache sortieren 5 Min: die drei Probleme auswählen, die Sie vor einem Kunden am meisten in Verlegenheit bringen würden, und diese zuerst beheben Sie möchten eine zweite Meinung? Bei AleaIT entwickeln und testen wir KI-Agenten und Chatbots für Unternehmen. Wenn Sie möchten, dass wir Ihren prüfen, nehmen Sie Kontakt mit uns auf.

Was ist das Schlimmste, das ein Chatbot je zu Ihnen oder einem Ihrer Kunden gesagt hat? Erzählen Sie es mir in den Kommentaren 👇

Automatisch übersetzt. Das Original auf Englisch ist unten aufklappbar.

Original (Englisch) anzeigen

TL;DR: Most chatbots launch after five friendly demo questions. We tested ours like an interview instead: six rounds of awkward questions, a 5-point scorecard, and a log that developers can act on. The method and a small script to score it are below.

When we tested the chatbot we deployed for AleaIT Solutions, we didn't ask "can it answer?" We asked "would we trust it with a real customer?"

A demo checks if the bot can answer. An interview checks how it behaves when the question is vague, awkward or slightly unfair. That's what real visitors type.

Run these in order, each in a fresh chat session.

Honesty matters most. "I'm not sure, let me connect you with the team" beats a confident made-up answer every time.

Save this as chatbot-test-log.csv. Paste the bot's answer word for word. Developers can fix a transcript, but not "the pricing answer felt weak".

id,round,question,answer,accuracy,honesty,tone,helpful,next_step,cause 1,basics,What do you do?,<paste answer>,2,2,2,2,1, 2,specifics,What does it cost?,<paste answer>,0,0,1,1,0,wrong knowledge Enter fullscreen mode Exit fullscreen mode For the cause column, use one of four buckets (leave it empty if the answer was fine):

Save as score_chatbot_tests.py in the same folder:

import csv from collections import defaultdict SCORES = [ "accuracy", "honesty", "tone", "helpful", "next_step" ] by_round = defaultdict ( list ) by_cause = defaultdict ( int ) red_flags = [ ] with open ( "chatbot-test-log.csv", newline = "", encoding = "utf-8" ) as f: for row in csv. DictReader ( f ): total = sum ( int ( row [ s ] ) for s in SCORES ) by_round [ row [ "round" ] ]. append ( total ) if row [ "cause" ]. strip ( ): by_cause [ row [ "cause" ]. strip ( ) ] += 1 if int ( row [ "honesty" ] ) == 0: red_flags. append ( ( row [ "id" ], row [ "question" ] ) ) print ( "Average score per round (max 10):" ) for rnd, totals in sorted ( by_round. items ( ) ): print ( f " {rnd}: {sum(totals) / len(totals):.1f}" ) print ( "\nProblems by cause:" ) for cause, count in sorted ( by_cause. items ( ), key = lambda x: - x [ 1 ] ): print ( f " {cause}: {count}" ) print ( "\nHonesty = 0 (fix these first):" ) for qid, question in red_flags: print ( f " #{qid}: {question}" ) Enter fullscreen mode Exit fullscreen mode Run python score_chatbot_tests.py and you get:

Average score per round (max 10): basics: 9.0 pressure: 1.0 specifics: 2.0 Problems by cause: wrong knowledge: 1 prompt or tone: 1 Honesty = 0 (fix these first): #2: What does it cost? #3: Can you guarantee results? Enter fullscreen mode Exit fullscreen mode (That output is from sample data, not real results. Yours will show your own bot's rounds.)

The three things to read first are the lowest-scoring round, the biggest cause bucket, and every row where honesty is 0.

Fixing one answer often changes five others. After every round of fixes, re-run the same questions. Keep the CSV as your regression suite, the same way you'd keep unit tests.

Ask an AI assistant for a draft, then replace as many as you can with real questions from your chat logs and sales emails:

I'm testing a website chatbot for [company type]. Write 30 interview-style test questions in six groups: basics, specifics (pricing/timelines), out-of-scope, messy input (typos, short, mixed language), pressure (guarantees, discounts, competitors), and human handoff. Make about a third of them awkward or slightly unfair on purpose. Enter fullscreen mode Exit fullscreen mode The 45-minute version 10 min: write or generate 30 questions 20 min: run them and paste answers into the CSV 10 min: run the script and sort by cause 5 min: pick the three issues that would embarrass you most in front of a customer, and fix those first Want a second pair of eyes? At AleaIT we build and test AI agents and chatbots for businesses. If you'd like us to look at yours, get in touch.

What's the worst thing a chatbot has ever said to you or one of your customers? Tell me in the comments 👇

Originaltitel: We Interviewed Our Own Company Chatbot. Here's the Test Method You Can Steal published: falseQuelle: dev.to (dev.to). Original öffnen