dialogflow / dialogflow-fulfillment-nodejs

Dialogflow agent fulfillment library supporting v1&v2, 8 platforms, and text, card, image, suggestion, custom responses
Apache License 2.0
597 stars 282 forks source link

Pass parameters to another context not working #331

Open chinwaikeat opened 3 years ago

chinwaikeat commented 3 years ago

Hi, I use the dialogflow in facebook messenger and I unable to pass the parameter to another context. Here is my code agent.context.set({ name: 'Show_Others', lifespan: 5 parameters: { 'city': 'Rome' } });

and get it by using agent.parameters.city;

but still cannot get the value, anyone can help ?

fosteman commented 3 years ago

Hi there! Try agent.context.get('Show_Others')