alfredfrancis / ai-chatbot-framework

A python chatbot framework with Natural Language Understanding and Artificial Intelligence.
MIT License
1.97k stars 712 forks source link

Handle inner story #69

Open hadifar opened 6 years ago

hadifar commented 6 years ago

First of all, thanks for your library. I really enjoy working with that. I have a question regarding to Story. I think it would be useful to handle inner story (like what IBM-Watson does) How can I handle inner story to support long conversation?

alfredfrancis commented 6 years ago

There is no dialogue flow feature as of now. But we have a plan to add it soon.

hadifar commented 6 years ago

Thanks for your answer... Can you give me some hint to handle this? or could you please tell when you plan to add this feature?

alfredfrancis commented 6 years ago

You need to maintain some kind of state machine to handle inner stories/dialogue flows. The idea is to build the state machine as part of the training process ( A UI to define the state diagram). Then use NLU to trigger and jump between states. Currently, I'm working on the same and hope to add this feature soon.

karthikeyanm21 commented 6 years ago

Hi, Can you tell inner stories and dialog flows are done it. I am exactly looking that one. either could you give me some hints for handle this code?

And Currently, UI have an option to create Entity but there is no option to link into the intent. How to use that one ?

alfredfrancis commented 6 years ago

For handling inner stories you can follow above-mentioned method ,

You need to maintain some kind of state machine to handle inner stories/dialogue flows. The idea is to build the state machine as part of the training process ( A UI to define the state diagram). Then use NLU to trigger and jump between states.

Entities are avilable inside intents as parameters. You can link then using same name (for both entity and parameter).

alfredfrancis commented 6 years ago

Accessing states from other intents is being done in this branch

karthikeyanm21 commented 6 years ago

Thanks buddy... I am also tried something like that.. Let me check it and confirm you....

danielriddell21 commented 4 years ago

Is this still being worked on?