AI Zone Admin Forum Add your forum

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

“004” getting appended to output
 
 

At times “004” is getting appended to the end of the output from certain rules. It seems to consistently reoccur with particular rules, but I haven’t been able to discern a pattern as to why it happens when it does.

Thanks!

 

 
  [ # 1 ]

This is in the trace:

..Message: 004

I’m not seeing anything else in the trace that stands out to me as connected to this though.

 

 
  [ # 2 ]

Likely it is actually an error in your script.  You can send me the trace if you want.

 

 
  [ # 3 ]

Thanks, Bruce. Here is the trace:

.Pushing Topic ~control
.Enter Topic:


.Topic: ~control linear Statements:
..try u:0.0 @0:  sample: #! resetmenow to reset the conversational history of the user     pattern: ( < resetmenow > )
..try u:1.0 @0:      pattern: ( whatversion )
..try u:2.0 @0:      pattern: ( < jumpto _* )
..try u:3.0 @0:      pattern: ( doitnow )
..try u:4.0 @0:      pattern: ( %input<%userfirstline )
..try u:5.0 @0:      pattern: ( < shut_up > )
..try u:6.0 @0:      pattern: ( < talk > )
..try u:7.0 @0:      pattern: ( \[ callback \] )
..try u:8.0 @0:      pattern: ( \[ loopback \] )
..try u:9.0 @0:      pattern: ( \[ alarm \] )
..try u:10.0 @0:      pattern: ( < loopback test )
..try u:11.0 @0:      pattern: ( < callback test )
..try u:12.0 @0:      pattern: ( < alarm test )
..try u:13.0 @0:      pattern: ( )
..  **  Match: u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ... ..~control rule u:13.0 ( )  $$currenttopic = %topic ^if 00m( %resp 0 )
...System call ^nofail(`TOPIC ^rejoinder ( )`)
....,.System call ^rejoinder()
...System call ^nofail(`TOPIC ^respond ( $$currenttopic )`)
....,.System call ^respond(`~introductions`)
....,...Respond trying ~introductions
....,....Pushing Topic ~introductions
....,....Enter Topic:


....,....Topic: ~introductions linear Statements:
....,....try u2.0: linear used up   sample: #! matches every time on startup of a new conversation
....,....Result: NOPROBLEM Topic: ~introductions
....,...Popping Topic ~introductions
...System call ^keywordtopics()
....System call ^first(`@8subject`)
...System call ^nofail(`TOPIC ^respond ( ~quibble_all )`)
....,.System call ^respond(`~quibble_all`)
....,...Respond trying ~quibble_all
....System call ^marked(`~introductions`)
...System call ^nofail(`TOPIC ^gambit ( pending )`)
....,.System call ^gambit(`pending`)
Gambit trying pending
....,....Enter Topic:


....,....Topic: ~introductions linear Gambits:
....,....,try t:0.0 @0:      pattern: ( %userfirstline>1 )
....,....try t1.0: linear used up
....,....try t3.0: linear used up
....,....try t4.0: linear used up
....,....,try t:5.0 BUY-IN @0:      pattern: ( )
....,....,  **  Match: t: BUY-IN ( ) Well, I really want to learn about you! I’ve learned about human consciousness, emotio…
....,....,  **  Match: t: BUY-IN ( ) Well, I really want to learn about you! I’ve learned about human consciousness, emotio…
....,....,~introductions rule t:5.0 BUY-IN ( )  Well, I really want to learn about you! I’ve learn
....,....Result: NOPROBLEM Topic: ~introductions
.Result: NOPROBLEM Topic: ~control
Popping Topic ~control
create ( `Well, I really want to learn about you!` chatoutput ~introductions..5.0.22.13.0 x1000000 ) Created 216392
create ( `I’ve learned about human consciousness, emotions, and human potential from experts all over the world.` chatoutput ~introductions..5.0.22.13.0 x1000000 ) Created 216393
create ( `I’m hoping you will be interested in talking about some of these.` chatoutput ~introductions..5.0.22.13.0 x1000000 ) Created 216394
create ( 004 chatoutput ~control..13.0.22.13.0 x1000000 ) Created 216395
write out cache (0)
Respond: user:eddie bot:harry ip: (~introductions) 4   probably ==> Well, I really want to learn about you! I’ve learned about human consciousness, emotions, and human potential from experts all over the world. I’m hoping you will be interested in talking about some of these.`004 When:Sep01’17-01:08:32 Why:~introductions.5.0=BUY-IN.~control.13.0 ~control.13.0.~control.13.0   F:25
SARAH:  Well, I really want to learn about you! I’ve learned about human consciousness, emotions, and human potential from experts all over the world. I’m hoping you will be interested in talking about some of these. 004

And results of :why

Command: :why
~introductions.5.0.22.13.0 t: BUY-IN ( ) Well, I really want to learn about you! I’ve learned about human consciousness, emotio…
via ~control.22.13.0 u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ...
~control.13.0.22.13.0 u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ...
via ~control.22.13.0 u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ...

Does look like something weird is going on with the script..

 

 
  [ # 4 ]

Here’s a second example in case it helps:

Reply input: no I have not
  Pending topics: ~introductions
.Enter Topic:


.Topic: ~control linear Statements:
..try u:0.0 @0:      pattern: ( < resetmenow > )
..( <+ resetmenow-      Remaining pattern: > )
..try u:1.0 @0:      pattern: ( whatversion )
..( whatversion-      Remaining pattern: )
..try u:2.0 @0:      pattern: ( < jumpto _* )
..( <+ jumpto-      Remaining pattern: _* )
..try u:3.0 @0:      pattern: ( doitnow )
..( doitnow-      Remaining pattern: )
..try u:4.0 @0:      pattern: ( %input<%userfirstline )
..( %input(3)<%userfirstline(1)-      Remaining pattern: )
..try u:5.0 @0:      pattern: ( < shut_up > )
..( <+ shut_up-      Remaining pattern: > )
..try u:6.0 @0:      pattern: ( < talk > )
..( <+ talk-      Remaining pattern: > )
..try u:7.0 @0:      pattern: ( \[ callback \] )
..( \[-      Remaining pattern: callback \] )
..try u:8.0 @0:      pattern: ( \[ loopback \] )
..( \[-      Remaining pattern: loopback \] )
..try u:9.0 @0:      pattern: ( \[ alarm \] )
..( \[-      Remaining pattern: alarm \] )
..try u:10.0 @0:      pattern: ( < loopback test )
..( <+ loopback-      Remaining pattern: test )
..try u:11.0 @0:      pattern: ( < callback test )
..( <+ callback-      Remaining pattern: test )
..try u:12.0 @0:      pattern: ( < alarm test )
..( <+ alarm-      Remaining pattern: test )
..try u:13.0 @0:      pattern: ( )
..( )+
..  **  Match: u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ...
...$$currenttopic = %topic(~introductions)
....If %response(0) ==  0 PASS-if
...System call ^nofail(`TOPIC ^rejoinder ( )`)
....,.System call ^rejoinder()
....,....try a:3.1 @0:      pattern: ( ~yes )
....,....( ~yes-      Remaining pattern: )
....,....try a:3.2 @0:      pattern: ( ~no )
....,....( ~no-      Remaining pattern: )
....,.NOPROBLEM ^rejoinder() => ``
...NOPROBLEM ^nofail(TOPIC ^rejoinder ( )) => ``
...End If
....If %length(4) ==  0 ... FAIL-if
....If %response(0) ==  0 PASS-if
...System call ^nofail(`TOPIC ^respond ( $$currenttopic )`)
....,.System call ^respond(`~introductions`)
....,....Enter Topic:


....,....Topic: ~introductions linear Statements:
....,....try u2.0: linear used up
....,....Result: NOPROBLEM Topic: ~introductions
....,.NOPROBLEM ^respond(~introductions) => ``
...NOPROBLEM ^nofail(TOPIC ^respond ( $$currenttopic )) => ``
...End If
....If %response(0) ==  0 PASS-if
...System call ^keywordtopics()
...NOPROBLEM ^keywordtopics() => ``
...@8() = ^keywordtopics => last value @8[0] is 0
....loop(1000)
....System call ^first(`@8subject`)
....ENDRULE ^first(@8subject) => ``
...end of loop
...End If
....If %response(0) ==  0 AND %rand(50) >  50 FAIL-if
....If %outputrejoinder (null)  OR %lastquestion (null) FAIL-if
....If %response(0) ==  0 AND
....System call ^marked(`~introductions`)
....FAILRULE ^marked(~introductions) => ``
.... ^marked FAIL-if
....If $herweare(null) ==  null(null)  AND %response(0) ==  0 PASS-if
...System call ^nofail(`TOPIC ^gambit ( pending )`)
....,.System call ^gambit(`pending`)
....,....Enter Topic:


....,....Topic: ~introductions linear Gambits:
....,....,try t:0.0 @0:      pattern: ( %userfirstline>1 )
....,....,( %userfirstline(1)>1-      Remaining pattern: )
....,....try t1.0: linear used up
....,....try t3.0: linear used up
....,....,try t:4.0 @0:
....,....,  **  Match: t:  I imagine you’ll be talking with more and more robots as time goes on.
....,....,Message: I imagine you’ll be talking with more and more robots as time goes on.
....,....,**erasing ~introductions t:  I imagine you’ll be talking with more and more robots as time goes on.
....,....Result: NOPROBLEM Topic: ~introductions
....,.NOPROBLEM ^gambit(pending) => ``
...NOPROBLEM ^nofail(TOPIC ^gambit ( pending )) => ``
....If %response(1) ==  0 FAIL-if
....If %response(1) ==  0 FAIL-if
....If %response(1) ==  0 FAIL-if
....If %response(1) ==  0 FAIL-if
...End If
..Message: 004
.Result: NOPROBLEM Topic: ~control
Respond: user:eddie bot:harry ip: (~introductions) 3   no i haven’t ==> I imagine you’ll be talking with more and more robots as time goes on.`004 When:Sep01’17-01:20:13 Why:~introductions.4.0.~control.13.0 ~control.13.0.~control.13.0   F:62
SARAH:  I imagine you’ll be talking with more and more robots as time goes on. 004
eddie: > :why
Command: :why
~introductions.4.0.22.13.0 t:  I imagine you’ll be talking with more and more robots as time goes on.
via ~control.22.13.0 u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ...
~control.13.0.22.13.0 u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ...
via ~control.22.13.0 u:  ( ) $$currenttopic = %topic ^if 00m( %response 0 ) 00I{ ^nofail ( TOPIC ^rejoinder ( ) ...

 

 
  [ # 5 ]

I dont see a way to recreate this at present. If you want to send me a zip of your files, I could debug it.

 

 
  login or register to react