هل تعلم بوت Libre كما يوفر مجانا استضافت تتبع القضية على موقع الويب الخاص بك أو الهاتف المحمول التطبيق ؟
Help

Getting my bot to ask a series of questions

قبل davidgurr نشر Apr 13 2016, 11:43

Based on an initial user question, I need to have my bot ask a series of questions, and get answers, rather than the other way round ...

I'm struggling to see how to train it to ask questions rather than answer them.

For example, if the user starts with "I need to report problem type X", for each problem type my bot needs to then ask:

What's the address?

What's the size?

What's the reference number?

(etc.)

and then respond with a summary of the info provided and ask the user to confirm it's correct.

Can anyone point me at any useful resources?

 

Cheers


by admin posted Apr 13 2016, 11:55
Using a script would be the easiest way to do this.

You can either use Self, or AIML.

There is an example here in our script library,

https://www.botlibre.com/script?id=11694448

It is used by the Turing bot,
https://www.botlibre.com/browse?id=11694422

For Self syntax see,
https://www.botlibre.com/forum-post?id=705860

Basically you want to record a variable on the conversation to track the current state.
You could also use topics.

For AIML see,
https://www.botlibre.com/forum-post?id=705870

In AIML I think you may be able to use topics for this.

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 1660, today: 2, week: 3, month: 16

معرف: 12546649
نشر: Apr 13 2016, 11:43
الردود: 1
الآراء: 1772, اليوم: 4, الأسبوع: 4, الشهر: 21
0 0 0.0/5