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
Posts 7,774 - 7,785 of 8,130
Many questions are answered in the FAQ.
palacinkyman
4 years ago
4 years ago
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?
How can I fix this?
palacinkyman
4 years ago
4 years ago
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.
Zeig Wolf
4 years ago
4 years ago
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,.]+)
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,.]+)
palacinkyman
4 years ago
4 years ago
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.
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.
Emily Jones
4 years ago
4 years ago
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.
+ 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.
palacinkyman
4 years ago
4 years ago
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)?
Also why (key1) and not just (key) or (key2)?
Emily Jones
4 years ago
4 years ago
@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.
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.
» More new posts: Doghead's Cosmic Bar