PF News

For discussion of the latest upgrades and changes posted in the News, including questions, details, or any related bugs.

812 - 827 of 827


NEW 1 month ago #812

You could try using "okay", or use "yes" which should trigger with "ok". Or you may wish to use "raw" in your ai script if you're specifically looking for just "ok"


NEW 1 month ago #813

Raw? That would probably help. Thank you?


NEW 1 month ago #814

It worked. Thank you again.


NEW 1 month ago #815

Now, could someone please try to explain me how can I add command to store or require memory for certain action?


NEW 1 month ago #816

go to the build menu then click on chatbot workshop.select the name of your chatbot from the list.then click on settings.then go down to AIscript initialization then put this in.
default "blank" as "typeoffood";
then go down to update then click it.


then select your chatbot again then click on language center.then put this in.
keyphrase=i like mexican food
response=mexican food is tasty.
click on more then put this in the AIscript
remember "mexican" as only "typeoffood";


keyphrase=i like italian food
response=i love italian food.
click on more then put this in the AIscript
remember "italian" as only "typeoffood";


keyphrase=i like asian food

response= do not like asian food
click on more then put this in the AIscript
remember "asian" as only "typeoffood";

one keyphrase can have many responses

keyphrase=i am hungry
response=would you like some mexican food.
click on more then put this in the AIscript
if (mem-typeoffood) is "mexican"

response=would you like some italian food
click on more then put this in the AIscript
if (mem-typeoffood) is "italian"

response=would you like some asian food
click on more then put this in the AIscript
if (mem-typeoffood) is "asian"

i hope you understand my mini tutorial for long term memory.


NEW 1 month ago #817

I think this will do. Thank you!


NEW 1 month ago #818

for temporary memory you do not put in a default type script in AIscript
initialization in settings.


NEW 1 month ago #819

It's good practice to always initialize your memories to defaults. Stops odd situations where responses get skipped due to unset memories.


NEW 1 month ago #820

my chatbots have long term and short term memory like humans do.
it is useful.


NEW 1 month ago #821

I have a problem. When I put something alse then intro inside xinitialize, the bot will say that thing as first sentence when someone engages chat.


NEW 1 month ago #822

Also for some reason content xintroduce is not shown when the chat starts. Perhaps I am using this two keywords wrong?


NEW 1 month ago #823

Did I understand properly that I should put type of memory into xinitiate?


NEW 1 month ago #824

xintroduce is your bot's greeting to a brand new user.
xinitiate is your bot's greeting to a user they have met before. Unfortunately, this includes you and the debugger, so it is very difficult to test anything that happens in xintroduce. If I'm doing anything complicated with xintroduce, I open a private window in my browser and that seems to let you test it properly.


NEW 1 month ago #825

Thx for explanation.

I also just found out that I was supposed to put type of memory into settings and not into language center. I need to read more carefully.


NEW 1 month ago #826

How can I remember something that user types? Like for example his name?


NEW 1 month ago #827

look at the example scripts in the book of ai in the build menu.
that should answer your question.



(Log in or create an account to post messages.)

LOG IN
Forgot your password?
CREATE ACCOUNT
Create a free account to be able to make your own AI chatbots, post in forums, and chat with other botmasters.

Create Account

» More new posts: Chat Bot API