问题
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