タイムアウト時間をクライアントに伝える方法をご紹介します。
実装方法
<template>
タグのtimeout
属性を使用して、タイムアウト時間をクライアントに伝えることができます。
xAIML
1 2 3 4 5 6 |
<category> <pattern>こんにちは</pattern> <template timeout="10"> こんにちは! </template> </category> |
実行結果(JSON)
1 2 3 4 5 6 7 8 |
{ "systemText":{ "expression":"こんにちは!", "utterance":"こんにちは!" }, "timeout":"10", ・・・ } |