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

1. Callback on user input 2. Dynamic value setting for step responses #26

Closed
pgerlich opened this issue Aug 21, 2017 · 0 comments
Closed

Comments

@pgerlich
Copy link
Contributor

So I'm looking at implementing this, and have gotten almost completely through doing what I want to do.

I do have two feature requests, the later of which I will open a PR for this week.

  1. You should be able to provide a callback such as 'onUserInput' which allows the parent component to know what the user is saying. This is necessary if you want your users to have a truly dynamic conversation. For now, I am using the 'validator' to store the value and kick off any actions which may be associated with the user input.

  2. Going off of the last point, it is crucial that you can update steps dynamically and that the chatBox accepts new steps and swaps them out for the steps it has in its state, assuming that the new steps pass a 'sanity check'. This would be the second piece in allowing dynamic conversations, thereby allowing the user to drive the discussion, rather than having a pre-planned interaction which has limited uses.

There is probably an alternative to the second case, but that seems like the best option right now. Bear in mind I just picked this code up today.

Thanks!

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