Coaching ChatBot

Inspiration/start: 2014-07-06-AiAssistedCoaching

Orig: Played with AIML for an MVP....

Then ELIZA, then Inside-Out Markov Chain...

vs Low-Tech Ways of Nudging Myself?

Jun'2018 web-app launched

  • May08 had added simple string-match for 6 strings: in each cases it responds with a link to a specific page in this WikiLog plus a random choice out of 1-3 possible text responses to that keyword.
  • so a single user entry could result in 1-3 lines of response
    • the keyword-match response line, if there is one
    • an ELIZA response: if user-entry matches an ELIZA sentence pattern, it gives a specific-mirroring response; else it gives a generic response.
    • if the ELIZA response is specific, it uses a piece of the user-entry in its mirroring; in this case that user-piece gets fed to the Inside-Out Markov Chain, which returns a response.


Sept28'2019 crashing

File "./", line 57, in respond
  File "./", line 165, in generate_sentence1
    return ' '.join(message).capitalize()
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 7: ordinal not in range(128)
  • probably have to convert corpus from unicode to ascii
    • Aug03'2020 finally took the BarkingFeelingGood.txt file and converted to ASCII using BBEdit's "Zap Gremlins" menu item.

Jul19'2022 - export body of this wikiweb to make the corpus.

  • have to be careful about eliminating any double-line-breaks, and doing Zap Gremlins (and save as unix line endings)
  • 16MB, 123k lines, 2.7M words

Conclusion: probably need to pick a need and design a more-structured hero's journey with chatbot as 1 component.

Edited:    |       |    Search Twitter for discussion