Dialogflow 'conv.followup()' 未从 webhook 发送到后续意图
Dialogflow 'conv.followup()' not sending to followup intent from webhooks
我的 "Default Welcome Intent" 将用户发送到名为 "Main Intent"
的后续意图
app.intent('Default Welcome Intent', async (conv) => {
conv.followup('Main Intent', {})
});
然而,当我在 Google 模拟器上的 Actions 上测试它时,我总是被送回 "Default Fallback Intent"
为了确保 "Main Intent" 是否被触发,我添加了一个简单的响应:
但是我从来没有收到回复"Main Intent executed!"
这些是我的意图:
conv.followup()
的参数不应是您要触发的 Intent 的 名称。它应该是一个 事件 ,您有一个要响应的 Intent 集。所以你说你想触发 "Main Intent" 事件,你可能没有为此事件设置 Intent。
但是... followup()
的实际用途很少。如果您想根据某些条件发回 Intent 中的不同回复 - 只需从您的 fulfillment webhook 发回那些不同的回复。无需重定向到不同的 Intent 来处理它。
我的 "Default Welcome Intent" 将用户发送到名为 "Main Intent"
的后续意图app.intent('Default Welcome Intent', async (conv) => {
conv.followup('Main Intent', {})
});
然而,当我在 Google 模拟器上的 Actions 上测试它时,我总是被送回 "Default Fallback Intent"
为了确保 "Main Intent" 是否被触发,我添加了一个简单的响应:
但是我从来没有收到回复"Main Intent executed!"
这些是我的意图:
conv.followup()
的参数不应是您要触发的 Intent 的 名称。它应该是一个 事件 ,您有一个要响应的 Intent 集。所以你说你想触发 "Main Intent" 事件,你可能没有为此事件设置 Intent。
但是... followup()
的实际用途很少。如果您想根据某些条件发回 Intent 中的不同回复 - 只需从您的 fulfillment webhook 发回那些不同的回复。无需重定向到不同的 Intent 来处理它。