المضيف الخاص بك بوت منصة مع بوت ليبر المؤسسة بوت منصة
Chat Logs

keywords to a default response

قبل bobred نشر Apr 17 2017, 8:04

How would i add keywords to a default response?


by admin posted Apr 17 2017, 8:37
A default response is only used when the bot has no better response, so it does not make sense to have keywords.

If you want a response that will be used for keywords just add it as a normal response.

i.e.
phone
Our phone number is +16131245678
keywords: phone

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 478, today: 1, week: 3, month: 15

by bobred posted Apr 17 2017, 15:41

It makes sense if you want the chatbot to say "I do not understand your question" or "I do not understand your statement" for your default response.

It would identify the punctation in the default response as a keyword.


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 428, today: 0, week: 0, month: 8

by admin posted Apr 17 2017, 16:27
You could probably use a template as your default response for this.

Something like,

Template("I do not understand your {if (sentence.includes("?")) { "question" } else { "statement" }}.")

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 450, today: 0, week: 2, month: 12

by bobred posted Apr 17 2017, 20:13

my sources code x.txt


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 424, today: 0, week: 3, month: 12

by bobred posted Apr 17 2017, 22:41

Did you click on my text?


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 472, today: 1, week: 2, month: 13

by admin posted Apr 18 2017, 13:30
Your code does not make sense.
Use,

Template("I do not understand your {if (sentence.includes("?")) { "question" } else { "statement" }}.")

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 495, today: 1, week: 2, month: 16

by bobred posted Apr 18 2017, 15:13

I am new at this.where do i access the code for the chatbot?And where would i put this piece of code in the code for the chatbot?


Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 502, today: 1, week: 2, month: 13

by admin posted Apr 19 2017, 8:58
You would set this as a default response from your bot's Training & Chat Logs page, or import it as a response list.

default: Template("I do not understand your {if (sentence.includes("?")) { "question" } else { "statement" }}.")

See,
https://www.botlibre.com/forum-post?id=483549

Thumbs up: 0, thumbs down: 0, stars: 0.0
Views: 512, today: 1, week: 3, month: 13

by bobred posted Apr 20 2017, 1:00

Okay i think i get it now.


Thumbs up: 1, thumbs down: 0, stars: 5.0
Views: 520, today: 1, week: 2, month: 15

معرف: 16716451
نشر: Apr 17 2017, 8:04
الردود: 9
الآراء: 555, اليوم: 1, الأسبوع: 2, الشهر: 12
أنا متأكد
العلم بعد اعتداء أو انتهاك قوانين الموقع