Open chinwaikeat opened 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 ?
Hi there! Try agent.context.get('Show_Others')
agent.context.get('Show_Others')
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 ?