AI Zone Admin Forum Add your forum

NEWS: survey on 3000 US and UK consumers shows it is time for chatbot integration in customer service!read more..

when gambits in a topic are exhausted…

I was asked via email this question:

Looking at in RAWDATA and from test chats, it looks like when the user has ‘activated’ a current topic and the gambits are exhausted, the chatbot will resort to saying ‘I don’t know what to say’. Is there a way to make it so that in the event that when all the gambits in the particular topic are exhausted, it would search and output a random gambit from another topic?

Also, when my testbot has no more gambits, it says ‘Hey, sorry. What were we talking about?’ instead of the default phrase in (‘I don’t know what to say’). I can’t find this phrase anywhere in in the Where is the code for this bit?

———- my answer is:

I’m not sure what you are saying… The simplecontrols has this:

if (%response == 0)
@8 = ^GambitTopics() # all topics with gambits (excluding system topics)
$$topic = pick(@8)
nofail(TOPIC ^Gambit($$topic)) # try a topic at random
if (%response != 0)
which finds gambits from ANYWHERE.

What were we talking about comes from the engine itself, as a response of last resort if no response has been generated.


  [ # 1 ]

Hey Bruce,
Just testing with the default (which includes ~introductions and ~childhood), I get this interaction:

HARRY: Welcome to Chatscript
Lillian: Hey Harry
HARRY: Have you been here before?
Lillian: Yes, I have
HARRY: I don’t know what to say

I assumed (looking at the code for that since the topic ~childhood still had gambits, Harry would output a random gambit from there (i.e. Did you run away from home when you were little?, What scared you as a kid?) as oppose to ‘I don’t know what to say’ which seems to only execute when there are no gambits from ANY topic.

I hope this clarifies my previous question


  login or register to react