FredrikOseberg / react-chatbot-kit

MIT License
299 stars 139 forks source link

Does messageParser support async operations? #68

Open sendy34 opened 3 years ago

sendy34 commented 3 years ago

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!

derekfreed commented 1 year ago

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?