Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entities needed down the conversation #131

Open
xavieramoros opened this issue Feb 2, 2017 · 0 comments
Open

Entities needed down the conversation #131

xavieramoros opened this issue Feb 2, 2017 · 0 comments

Comments

@xavieramoros
Copy link

xavieramoros commented Feb 2, 2017

I currently need some retrieved entities to be in the context to be used further down in the conversation, so exactly doing what "merge" used to do, merge entities into context, as seen in #103

I'm doing something wrong or is it expected that my code handles that situation?

Example: Asking for the weather of a location.
After message 1 I receive the date as an entity 'datetime'.
After message 3 I need that entity but it's gone from the context.

1-->User: What's the weather today?
      Entities: datetime = today
      Context: "Ask weather"

getWeather(context):

location & datetime missingLocation missingDatetime
Weather in {location} for {datetime} is {weather} Where? When?
                                                                 Bot: Where? <-2

3--> User: In Barcelona
         Entities: location = Barcelona
         Context: "Ask weather"

Jump to getWeather

                                   Bot: Weather is "Sunny with 20 degrees"<---4
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant