react-chatbot-kit icon indicating copy to clipboard operation
react-chatbot-kit copied to clipboard

Does messageParser support async operations?

Open sendy34 opened this issue 3 years ago • 1 comments

Thanks for this amazing Library 👍

Wanted to know if messageParser would support async operations. For example, if we wanted to use a server to parse messages using NLP and then decide the action.

One workaround could be to use ActionProvider for async parsing, and messageParser for static parsing without Server. So, messageParser could trigger defaultAction, and defaultAction would try to resolve the message using Server.

Should this be the right approach?

Thanks!

sendy34 avatar Jul 01 '21 21:07 sendy34

I'm also curious about this as I'd like to see if I can integrate openAI. @sendy34 were you able to get the async parsing working?

derekfreed avatar May 10 '23 15:05 derekfreed