Why a built-in phrase library — the deterministic fast lane
The Knocket AI Agent uses a two-layer intent stack. The outer layer is the phrase library described on this page — a curated set of exact and near-exact triggers that transfer the chat immediately, without ever calling the model. The inner layer is the LLM's own intent classifier, which handles long-tail, emotional, or multi-turn "give up and escalate" cases that the phrase library intentionally does not cover.
This split is deliberate: when a user has already typed the exact words "transfer to human", we don't want to burn a model call, add latency, and risk a wrong classification. The phrase library is the safety net that guarantees the obvious cases always route correctly.
Knocket ships 218+ phrases across 50 languages. Match one → the chat transfers to a human. No setup, no prompt tuning, no extra tokens.
One trigger tier — explicit transfer only
The phrase library is intentionally strict: it contains only explicit transfer phrases — messages where the user unambiguously asks to reach a real person. When a message matches, the transfer fires in the same turn without ever calling the model.
Loose or ambiguous wording — bare nouns like "agent" or "customer service", role titles, or vague phrases like "find someone" — is deliberately kept out of the library, because it too easily fires on harmless questions ("do you have customer service?"). Those cases are left to the LLM's intent classifier downstream.
Explicit Transfer
Unambiguous "please connect me to a human" phrasing. Firing action:
action: transfer_immediately The model is not consulted. The AI Agent stops answering and the chat is placed in the human queue in the same turn.
talk to a human🇬🇧转人工🇨🇳parler à un humain🇫🇷オペレーターに繋いで🇯🇵상담원 연결🇰🇷соединить с оператором🇷🇺
How the matching engine actually works
The library is not a fuzzy search — it's a deterministic four-step pipeline. Same input, same match, every time.
- Normalize. User input and every phrase in the library are passed through the same normalizer: Unicode NFKC, lowercase (for cased scripts), strip punctuation and emoji, collapse whitespace. For CJK text, all whitespace is also removed so
转 人 工and转人工both match. - Match by script. Word-delimited languages (English, Spanish, French, Arabic, Hindi, and 39 more) use token-boundary matching — the phrase must sit on word boundaries, so
agentdoes not falsely fire onurgent, andhumandoes not match insidehumanity. Non-delimited languages (Chinese, Japanese, Korean, Thai) use substring containment instead, because those scripts don't use spaces between words. - Match & fire. Every phrase in the library is an Explicit Transfer trigger. Any hit →
transfer_immediately, and the chat is routed to a human in the same turn. No second tier, no scoring — one match is enough. - Language scoping. If the session language is known, only that language's list is checked (fewer false positives, faster match). English is always included as a fallback — mixing English words like "human" or "agent" into any language is extremely common.
If nothing matches, the message is passed downstream to the LLM's intent classifier, which handles nuance the phrase library can't cover.
Language coverage — 50 out of the box
Every language ships with a curated set of explicit-transfer triggers. The table below summarizes coverage; jump straight to the full library in the next section.
The full phrase library
Every language below is what actually ships in the AI Agent runtime — no dummy rows, no placeholders. Expand a language to see both tiers side-by-side.
zh-CN 简体中文 Chinese (Simplified) Substring 7
转人工转接人工转人工客服要人工客服要转人工转真人转人工服务
zh-TW 繁體中文 Chinese (Traditional) Substring 5
轉人工轉真人轉接專人轉接人工轉真人客服
en English English Token boundary 10
transfer to humantransfer to a humantalk to a humanspeak to a humantalk to a real personspeak to a real personconnect me to an agentconnect me to a humantalk to a live agentspeak to a live agent
ja 日本語 Japanese Substring 5
オペレーターに繋いでオペレーターにつないで人に代わって担当者に代わって有人対応をお願い
ko 한국어 Korean Token boundary 5
상담원 연결상담사 연결사람 연결상담원에게 연결상담원 바꿔주세요
es Español Spanish Token boundary 5
hablar con un humanohablar con una persona realpasar con un agentequiero hablar con un agenteconectarme con un agente
pt Português Portuguese Token boundary 5
falar com um humanofalar com uma pessoa realtransferir para atendentefalar com um atendentequero falar com um atendente
fr Français French Token boundary 5
parler à un humainparler à une personne réellepasser à un agentparler à un agentje veux parler à un conseiller
de Deutsch German Token boundary 5
mit einem menschen sprechenmit einem echten menschen sprechenzu einem mitarbeitermit einem mitarbeiter sprechenzu einem echten menschen
it Italiano Italian Token boundary 5
parlare con un umanoparlare con una persona realepassare a un operatoreparlare con un operatorevoglio parlare con un operatore
nl Nederlands Dutch Token boundary 4
met een mens pratenmet een echt persoon pratendoorverbinden met medewerkermet een medewerker praten
pl Polski Polish Token boundary 5
połącz z konsultantemrozmowa z człowiekiemchcę rozmawiać z człowiekiempołącz z prawdziwą osobąchcę rozmawiać z konsultantem
tr Türkçe Turkish Token boundary 4
insanla görüşmek istiyorumtemsilciye bağlagerçek biriyle görüşmek istiyorummüşteri temsilcisine bağla
ru Русский Russian Token boundary 5
соединить с операторомпозвать человекасвязаться с операторомсоедините с живым человекомхочу поговорить с оператором
uk Українська Ukrainian Token boundary 5
з'єднати з операторомпокликати людинузв'язатися з операторомз'єднайте з живою людиноюхочу поговорити з оператором
ar العربية Arabic Token boundary 5
التحدث مع موظفتحويل لموظفأريد شخصا حقيقياأريد التحدث مع موظفحولني إلى موظف خدمة العملاء
fa فارسی Persian Token boundary 4
صحبت با اپراتوروصل به کارشناسمیخواهم با یک انسان واقعی صحبت کنموصلم کن به اپراتور
ur اردو Urdu Token boundary 4
کسی انسان سے بات کرنی ہےنمائندے سے رابطہ کرائیںاصلی شخص سے بات کرنی ہےمجھے کسی نمائندے سے بات کرنی ہے
he עברית Hebrew Token boundary 4
לדבר עם נציגלהעביר לנציגרוצה לדבר עם בן אדם אמיתיתעביר אותי לנציג
hi हिन्दी Hindi Token boundary 4
किसी इंसान से बात करनी हैएजेंट से जोड़ेंअसली व्यक्ति से बात करनी हैमुझे एजेंट से बात करनी है
bn বাংলা Bengali Token boundary 3
একজন মানুষের সাথে কথা বলতে চাইএজেন্টের সাথে সংযোগ করুনসত্যিকারের মানুষের সাথে কথা বলতে চাই
id Bahasa Indonesia Indonesian Token boundary 5
bicara dengan manusiabicara dengan orang aslihubungkan ke agensaya mau bicara dengan agensambungkan ke petugas
ms Bahasa Melayu Malay Token boundary 5
bercakap dengan manusiabercakap dengan orang sebenarsambung ke ejensaya mahu bercakap dengan ejensambungkan ke pegawai
tl Filipino Filipino Token boundary 4
makausap ang totoong taoikonekta sa ahentegusto kong makausap ang ahenteikonekta mo ako sa tao
th ไทย Thai Substring 5
ติดต่อเจ้าหน้าที่คุยกับคนจริงขอคุยกับเจ้าหน้าที่ขอคุยกับพนักงานต่อสายเจ้าหน้าที่
vi Tiếng Việt Vietnamese Token boundary 5
gặp người thậtchuyển cho nhân viênnói chuyện với nhân viêntôi muốn gặp nhân viênkết nối với tổng đài viên
cs Čeština Czech Token boundary 4
mluvit s člověkempřepojte na operátorachci mluvit se skutečným člověkemchci mluvit s operátorem
ro Română Romanian Token boundary 4
vreau să vorbesc cu un omtransferați la un agentvreau să vorbesc cu cineva realconectați-mă cu un operator
sv Svenska Swedish Token boundary 4
prata med en människakoppla mig till en handläggarejag vill prata med en riktig personkoppla mig till en agent
da Dansk Danish Token boundary 4
tale med et menneskeforbind mig med en medarbejderjeg vil tale med en rigtig personstil mig om til en medarbejder
fi Suomi Finnish Token boundary 4
puhua ihmisen kanssayhdistä minut asiakaspalvelijaanhaluan puhua oikean ihmisen kanssayhdistä minut ihmiselle
nb Norsk bokmål Norwegian Token boundary 4
snakke med et menneskekoble meg til en ansattjeg vil snakke med en ekte personsett meg over til en medarbeider
hu Magyar Hungarian Token boundary 4
beszélni akarok egy emberrelkapcsoljon élő ügyintézőhözszeretnék egy igazi emberrel beszélnikapcsoljon egy ügyintézőhöz
el Ελληνικά Greek Token boundary 4
θέλω να μιλήσω με άνθρωποσυνδέστε με έναν εκπρόσωποθέλω να μιλήσω με αληθινό άνθρωποσυνδέστε με με έναν εκπρόσωπο
sk Slovenčina Slovak Token boundary 4
hovoriť s človekomprepojte ma na operátorachcem hovoriť so skutočným človekomchcem hovoriť s operátorom
bg Български Bulgarian Token boundary 4
свържете ме с човекискам да говоря с операторискам да говоря с истински човексвържете ме с оператор
sr Srpski Serbian Token boundary 4
želim da pričam sa čovekompoveži me sa agentomželim da pričam sa pravom osobompoveži me sa operaterom
hr Hrvatski Croatian Token boundary 4
želim razgovarati s čovjekompovežite me s agentomželim razgovarati s pravom osobompovežite me s operaterom
ca Català Catalan Token boundary 4
parlar amb un humàtransferir a un agentvull parlar amb una persona realconnecteu-me amb un agent
ta தமிழ் Tamil Token boundary 3
ஒரு மனிதனிடம் பேச வேண்டும்ஏஜென்ட்டுடன் இணைக்கவும்உண்மையான நபரிடம் பேச வேண்டும்
te తెలుగు Telugu Token boundary 3
ఒక మనిషితో మాట్లాడాలిఏజెంట్కు కనెక్ట్ చేయండినిజమైన వ్యక్తితో మాట్లాడాలి
sw Kiswahili Swahili Token boundary 4
nataka kuongea na mtu halisiunganisha na wakalanataka kuongea na mtuniunganishe na wakala
lt Lietuvių Lithuanian Token boundary 4
noriu kalbėti su žmogumisujunkite su operatoriuminoriu kalbėti su tikru žmogumisujunkite mane su operatoriumi
lv Latviešu Latvian Token boundary 4
gribu runāt ar cilvēkusavienojiet ar operatorugribu runāt ar īstu cilvēkusavienojiet mani ar operatoru
sl Slovenščina Slovenian Token boundary 4
želim govoriti s človekompovežite me z agentomželim govoriti s pravim človekompovežite me z operaterjem
et Eesti Estonian Token boundary 4
tahan rääkida inimesegaühendage mind operaatorigatahan rääkida päris inimesegaühendage mind töötajaga
mr मराठी Marathi Token boundary 3
एका माणसाशी बोलायचे आहेएजंटशी कनेक्ट कराखऱ्या व्यक्तीशी बोलायचे आहे
ml മലയാളം Malayalam Token boundary 3
ഒരു മനുഷ്യനോട് സംസാരിക്കണംഏജന്റിലേക്ക് കണക്റ്റ് ചെയ്യൂയഥാർത്ഥ വ്യക്തിയോട് സംസാരിക്കണം
gu ગુજરાતી Gujarati Token boundary 3
કોઈ માણસ સાથે વાત કરવી છેએજન્ટ સાથે કનેક્ટ કરોસાચી વ્યક્તિ સાથે વાત કરવી છે
ne नेपाली Nepali Token boundary 3
मानिससँग कुरा गर्नु छएजेन्टमा जोड्नुहोस्साँचो मानिससँग कुरा गर्नु छ
Add your own phrases
The built-in library is the floor, not the ceiling. If your product uses domain-specific vocabulary — "escalate to billing", "get me a specialist", "刀哥来一下" — you can add your own explicit-transfer triggers from the AI Agent console.
- Open the AI Agent tab in the Knocket console.
- Scroll to Handoff Rules → Phrase Library.
- Click Add phrase, pick the language, then type or paste the trigger.
- Save. New phrases take effect on the next incoming message — no redeploy required.
Deleted a built-in phrase by mistake? Every entry on this page can be re-added; the reference above is stable and versioned.
See how the phrase library fits inside the wider AI Agent setup — persona, tools, knowledge, and human handoff policy.