我的應用程序有一堆的對話,其中呼叫者被要求選擇並從列表中選擇的:「你要哪一種賬戶信息,賬戶變更,要求的文件,說話的代表。」建立VXML/GRXML對話框來識別基於呼叫者說「那一個」而不是項目?
僞代碼,這裏是如何它會出現:
<prompt>
Which would you like? Account Information, Account Changes, Request Documents, Speak to a Representative.
</prompt>
<grammar>
"Account Information": goto Account Info logic
"Account Changes": goto Account Change logic
"Request Documents": goto Documents logic
"Representative": goto Call Transfer logic
</grammar>
現在,這種語法不佔地方呼叫者說的情況「這一個!」在聽到其中一個選項之後。這將被認爲是語法錯誤,並且是一個錯誤情況。我可以解決這個打破的對話框中爲四個提示,並具有冗餘語法中的每個:
<prompt>
Which would you like?
</prompt>
<prompt>
Account Information
</prompt>
<grammar>
"That one": goto Account Info logic
"Account Information": goto Account Info logic
"Account Changes": goto Account Change logic
"Request Documents": goto Documents logic
"Representative": goto Call Transfer logic
</grammar>
<prompt>
Account Changes
</prompt>
<grammar>
"That one": goto Account Change logic
"Account Information": goto Account Info logic
"Account Changes": goto Account Change logic
"Request Documents": goto Documents logic
"Representative": goto Call Transfer logic
</grammar>
<prompt>
Request Documents
</prompt>
<grammar>
"That one": goto Documents logic
"Account Information": goto Account Info logic
"Account Changes": goto Account Change logic
"Request Documents": goto Documents logic
"Representative": goto Call Transfer logic
</grammar>
<prompt>
"Request Documents": goto Documents logicSpeak to a Representative.
</prompt>
<grammar>
"That one": goto Call Transfer logic
"Account Information": goto Account Info logic
"Account Changes": goto Account Change logic
"Request Documents": goto Documents logic
"Representative": goto Call Transfer logic
</grammar>
但是,這是這樣做的「正確」的方式?有沒有辦法用一個對話框來做到這一點?
感謝,
IVR復仇者
我們的IVR說「您想要:計費,故障還是銷售」您會驚訝於聽到他們想要的選項時說「是」的人數。您需要非常小心如何短語提示或您需要處理這種情況。 – 2014-08-15 08:39:43
是的。更好的措辭是:「選擇以下選項之一:計費...故障...或銷售」 – gawi 2014-08-18 13:13:50