superscriptjs / superscript

A dialogue engine for creating chat bots
http://superscriptjs.com
MIT License
1.65k stars 209 forks source link

Issue while conversation #359

Closed meghasoni closed 7 years ago

meghasoni commented 7 years ago

Hi, During the conversation with the bot, if the bot has to reply to previous question we use % in the Gambit. But once the bot replies to last reply and if the user ask some other questions it's replying the last reply again and again. For example,

User: hi Bot:hello User: can you provide me details about mobile Bot: enter mobile name User:Samsung Bot: good mobile to use User:thanks Bot:good mobile to use.

So if you see above after replying to previous question, the further questions are followed by same answer.

My ss file looks like below:

In the custom function just return 'good to use' Help is appreciated.

silentrob commented 7 years ago

Please use triple ticks '``' to show your code and avoid the auto-formatting. I think you might need to add a{clear}` to the reply and force the conversation to reset.

bensalilijames commented 7 years ago

Closing as I believe issue was solved. If not, please re-open. 👍