Francis,
I’m not sure what your application is, but here is a way I captured exact user input to a $$temp string for logging. You might be able to use something similar for your application. In this setting, $$usertyped holds whatever the user typed for that one particular input:
In simplecontrol.top:
Near line 21, I changed:
# main per-sentence processing
u: ()
to u: (_*) $$usertyped = ‘_0
and added
^log(FILE TMP/noanswer.txt $$usertyped \n)
around line 104, just before it finishes the final loop and says “I don’t know”.
This will give you a log file called noanswer.txt in your TMP directory. It will list, one per line, every user input that exhausts the simplecontrol.top script and forces the bot to respond with “I don’t know”. You can then use this information to create or update your topics, gambits, KB, etc.