You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Jul 17, 2023. It is now read-only.
I would like to add a feature that allows already mounted chat to add new steps.
Brief
Once steps props is set and Chatbot mounted, I could not find a way to update its internal state.steps by injecting bunch of new steps which one could then trigger.
Proposed feature will extend current capability of pre-scripted chat steps to receive new steps dynamically. With this one can hook it up with a "bot server" that can respond with suggested step(s). This step(s) gets injected into current state.steps which can then be triggered.
Solution
add new method addNewSteps(newStepData: Array){ .. }
process will be similar to instantiating steps onComponentWillMount.
it will parse incoming newStepsData into local var newSteps which then gets merged with
this.state.steps
thoughts?
Cheers.
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Hey Lucas,
I would like to add a feature that allows already mounted chat to add new steps.
Brief
Once steps props is set and Chatbot mounted, I could not find a way to update its internal state.steps by injecting bunch of new steps which one could then trigger.
Proposed feature will extend current capability of pre-scripted chat steps to receive new steps dynamically. With this one can hook it up with a "bot server" that can respond with suggested step(s). This step(s) gets injected into current state.steps which can then be triggered.
Solution
add new method addNewSteps(newStepData: Array){ .. }
process will be similar to instantiating steps onComponentWillMount.
it will parse incoming newStepsData into local var newSteps which then gets merged with
this.state.steps
thoughts?
Cheers.
The text was updated successfully, but these errors were encountered: