Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
当某个意图是 matchef 时,我想从 js 文件执行操作;例如,如果用户说“给我看 levis 牛仔裤”,我想从我的文件中调用一个搜索函数,它会返回一个结果。如果这不可行,请解释如何从代理本身进行 api 调用。
是的,您可以使用 webhook 功能执行此操作。
在您配置意图的页面上,向下到最底部并单击实现,然后选中“使用 webhook”。
现在转到履行页面并配置您的 webhook。
这里有更多信息。