Skip to content
This repository has been archived by the owner on Oct 23, 2023. It is now read-only.

Pass parameters to another context not working #331

Open
chinwaikeat opened this issue Jan 6, 2021 · 1 comment
Open

Pass parameters to another context not working #331

chinwaikeat opened this issue Jan 6, 2021 · 1 comment

Comments

@chinwaikeat
Copy link

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
Copy link

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants