Newcomers

This is a forum for newcomers to the Personality Forge. Many questions can be answered by reading the Book of AI and the FAQ under the "My Bots" link in the upper corner.

Posts 7,774 - 7,785 of 8,130
Many questions are answered in the FAQ.


4 years ago #7774
I created key phrase for using saying "hi" or "hello" because xHello works only when my bot starts conversation. But, given the stupid pre-settings which cannot be changed, the bot often adds xNone after answering with seek I gave him, combining those two together. It often results in sentences like: "Hello. Try something else."

How can I fix this?

4 years ago #7775
use the no compound; script.

4 years ago #7776
chatbot workshop, your bot, settings, uncheck compound sentances.

4 years ago #7777
Thank you.

4 years ago #7778
Can someone please explain me how does {rem (postkey) as } exactly works? It seems to remember everything that user types as long as I don't make seek like "*". This is ok when I use keywords, because here the user is forced to type e. g.: "rating 9", but when I want to make it as xemote, or xnone "what is your rating", the user simply won't type "rating *", instead he expects to type just 1,2,...etc.

4 years ago #7779
you can use goto in xnone

4 years ago #7780
I'm not really sure what you're going for Pala. (postkey) is what the user types after your keyphrase, e.g.:
keyphrase - "i like to eat",
user says - "I like to eat bacon sandwiches on sunday",
the (postkey) is "bacon sandwiches on sunday".
You can use that as "Why do you like to eat (postkey)?" or remember the postkey for later with {rem (postkey) as _}.

If you only want a seek to look for numbers, you could try:
([0-9,.]+)

4 years ago #7781
goto doesn't seem to work neither.

Wolf, no I want to store any information not only numbers. Still, thank you for your answer.

Does anyone has any idea how to fix this? Given in this case user only answers question without needing to write signal phrase first.

4 years ago #7782
Typically for this situation you need two different seeks. One looks like this:

+ my rating is *
response "wow, that's a nice rating"
rem (postkey) as only "rating"

+xnomatch
response "that's a great rating"
rem (key1) as only "rating"

The first seek catches statements of the form "my rating is X", and only remembers X. The second catches statements where they just give you a value without context.

If your rating is always a set of well-defined numbers, you could also use a plugin to catch numbers, like this:

+(p:numbers)
that's a great rating
rem (key1) as only "rating"

Then use
+xnomatch
I don't think that's a real rating

To catch answers that don't make sense.

4 years ago #7783
Hmm, it still doesn't work properly. Should I add rem (key1) as only "rating" into key-phrase script or into seek script?

Also why (key1) and not just (key) or (key2)?

4 years ago #7784
you can use seeks to reset scripts.something like rem "blank" as only "rating"

4 years ago #7785
@palacinkyman

It should be in the seek script below your bot's response.

You can have multiple keys in a phrase that get assigned 1,2,3, etc. Basically for compound statements with multiple terms that can be picked up. "I * to the * and found a *" would use key1, key2 and postkey for the three *s. key1 is just the first one it uses.


Posts 7,774 - 7,785 of 8,130

» More new posts: Doghead's Cosmic Bar