Basically I want to achieve this:
1.user: I want apple.
bot: You want apple right?
2.user: I also want banana.
bot: You want apple and banana right?
Here apple and banana are all parameters
of the same fruit
entity. In my webook backend I want to receive [apple, banana]
when the user entered 2nd sentence, so the bot needs to remember all the fruit (parameters) users gave during the conversation.
I was playing around with dialogflow context
. I know it could pass parameters between different intents. But at here I'm using the same intent buyFruit
, so the output context only has the new fruit
parameters user entered in a new sentence:
1.user: I want apple. -> outputContext.parameters = [apple]
2.user: I also want banana. -> outputContext.parameters = [banana]
I couldn't find a way to get the fruit
parameters user said in previous sentences. In another word, I want outputContext.parameters = [apple, banana]
in the second webhook request. Does anyone know how to achieve this?