1

Currently I have two stories. Something like this:

Story #1
User: How much is Widget X 2000?
Bot: It costs $30.

Story #2
User: Where can I buy Widget X 2000?
Bot: At your local Best Buy.

The problem: If a user triggers story #1, they still must explicitly say the name of the product (instead of it) to trigger story #2. This is what happens:

User: How much is Widget X 2000?
Bot: It costs $30.
User: Where can I buy it?
--error--

These answers should not be combined into one story because the order of the questions is never the same. Can Wit.Ai understand pronouns somehow?

  • 1
    Can you clarify a little more what you're trying to do? You can definitely create the story you've outlined above in Wit. – Giles Hunt Oct 19 '16 at 09:30

2 Answers2

1

Wit.ai doesn't provide automatic pronoun resolution at the moment.

Typically you should use the context to store the product the user is talking about, something like:

User: How much is Widget X 2000?
Bot-action: context.item = "Widget X 2000"
Bot-send: It costs $30.
User: Where can I buy it?
[here the next bot action will use context.item if no item entity is detected in the sentence]
Blacksad
  • 14,906
  • 15
  • 70
  • 81
0

The problem is that you are not using any context, so for the agent is not possible to associate "it" with "Widget X 2000".