SCCapstone / CognitoFormsDev

MIT License
0 stars 0 forks source link

Find ways to minimize the use of the Invocation phrase "[ask | tell ] cognito" #39

Closed tjcocklin closed 5 years ago

jmeisten commented 5 years ago

There are a few ways of doing this.

  1. set 'shouldEndSession' to false should keep the session open and listening for more utterances, just need to see exactly where to put it,

  2. Set intents to require other intents to fulfill, this could cause an issue where they can get stuck in a loop and seems to be an outdated method method 1 is recommended

*EDIT

  1. Use the '.tell' instead of '.ask' emits could also work

the shouldEndSession flag seems to be the way to go, also the .ask flags are also just as well it seems but I cannot seem to find more information on that method

tjcocklin commented 5 years ago

@jmeisten, finally got a chance to follow up on the '.ask', thing and it works nicely, good job.

tjcocklin commented 5 years ago

closing #39 solution found by @jmeisten