2
如何使用网络的挂钩后端Node.js的做槽分配在api.ai,你可以请任何一个让我们知道这个过程。以下是我为创建示例webhook所做的示例回应。如何使用,使网络挂接的空位填充在Api.ai后端节点JS
return res.json({
speech: "here is the sample one.",
displayText: "here is the sample one ",
data: {...},
contextOut: [{"name":"weather", "lifespan":2, "parameters":
{"city":"Rome"}}],
source: "from API"
});
但你在哪里做slotfilling? Slotfilling反映了你正在用webhook中的某个值填充参数。 –
是的,当最终用户询问您酒店中还有多少房间时,我做了一个酒店房间预订的示例用例,然后我们需要触发后端API并需要填充插槽,在那里我使用插槽灌装,最后我已经完成了那个和平,谢谢。 –