1

my Question is if I can get my Wit.ai-Bot to respond with a random response from an Array of responses?

For example:

User: Search for Cats

Bot: Ok. I'll search for that real quick.

...

User: Search for Cat Images

Bot: Sure. I'll look for it!

Unkn0wnCat
  • 13
  • 1
  • 6

1 Answers1

0

Wit.ai handles the NLP. Once it knows what the user wants to do, you can use one of your defined 'Actions' to return a random response to the user.

Bcf Ant
  • 1,639
  • 1
  • 16
  • 26
  • Is there some kind of example of this in the docs or somewhere, so I can look into that? – Unkn0wnCat Sep 25 '16 at 10:51
  • The quick start example should help. https://wit.ai/docs/quickstart You'll need something like the getforecast action but instead of getting the forecast it would contain your random responses. – Bcf Ant Sep 25 '16 at 11:29