Keeping data between intents from WebHook in Dialogflow

孤人 提交于 2019-12-13 04:05:27

问题


I'm trying to build a movie bot, and I need to save the ID from a movie which I got via my webhook, and keep it in a place where can be access by the follow up intents in that context.

Right now I'm using the payload in fulfillment to pass data to the first intent, but in the follow up intents that data is lost.


回答1:


You should probably include the data you want remembered across intents in a context. You should set the lifespan to be long enough for all the intents that will need the info.



来源:https://stackoverflow.com/questions/50721641/keeping-data-between-intents-from-webhook-in-dialogflow

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!