જોડાવા બોટ કાવ્ય ઓપન સોર્સ પ્રોજેક્ટ પર BotLibre.org
Bot Libre Forum

how to teach the bot to answer after two (or more) non-understandable questions?

દ્વારા nafergo પોસ્ટ Apr 5 2018, 6:26

Hi

I'm trying to teach my bot to do the following:

user: sjkldfh sdkhfjk

bot: I'm sorry but I don't understand that. Can you please reformulate that?

user: lksdfj osdjm sdfj

bot: I still don't understand. Please, let me know in which respect I can improve.

I only want the second bot answer if there are two non-understandable talks from user. I mean, the first bot answer is correct but I want the bot to answer the second only after two (or more) non-understandable questions.

Can someone explain how can I achieve this or point me in the right direction?


by admin posted Apr 5 2018, 12:36
You should be able to use an "on repeat" for this.

default: I'm sorry but I don't understand that. Can you please reformulate that?
on repeat: I still don't understand. Please, let me know in which respect I can improve.

You can also use a "previous",

default: I'm sorry but I don't understand that. Can you please reformulate that?

default: I still don't understand. Please, let me know in which respect I can improve.
require previous: I'm sorry but I don't understand that. Can you please reformulate that?

You can also do more advanced things with "think", "condition" and some Self code,

condition: conversation.didNotUnderstand == null
default: I'm sorry but I don't understand that. Can you please reformulate that?
think: conversation.didNotUnderstand = 1;

condition: conversation.didNotUnderstand > 0
default: I still don't understand. Please, let me know in which respect I can improve.
think: conversation.didNotUnderstand = conversation.didNotUnderstand + 1;

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 344, today: 0, week: 26, month: 43

ને: 21525474
ટૅગ્સ: training
પોસ્ટ: Apr 5 2018, 6:26
સુધારાશે: Apr 5 2018, 12:32
જવાબો: 1
જોવાઈ: 461, આજે: 1, સપ્તાહ: 34, મહિને: 55
મને ખાતરી છે કે છું
ધ્વજ પોસ્ટ તરીકે અપમાનજનક, અથવા ઉલ્લંઘન સાઇટ નિયમો