从 wit.ai 中提取的位置在 Facebook Messenger 中为空白

location extracted from wit.ai is blank in facebook messenger

我正在使用 Wit.ai 从句子中提取位置。当我在 Wit.ai 中执行机器人以反映它完美运行的位置时

how is the weather in California?

You asked about the weather in California

但是当我将 Wit.ai API 连接到我的节点 JS 应用程序(使用 "RunActions" 的简单、直接的应用程序)连接到 facebook messenger 时,我得到

how is the weather in California?

You asked about the weather in

有一个空白。有什么想法吗?

它将在控制台中运行,因为我们模拟了一个管理上下文的功能。但是你必须在你这边实现一个函数来 carry/update 上下文。我们删除了强制性 "merge" 但您可以使用甚至创建自己的合并函数来查看实体并最终在某些实体存在时更新上下文

查看此处的 fetchWeather 示例:https://wit-ai.github.io/witty-fiddle/?id=5a387f6ccb4be4a1f77f2113747a558a