ELIZA is an early natural language processing computer program created from 1964 to 1966 at the MIT Artificial Intelligence Laboratory by Joseph Weizenbaum or in short is an early ChatBot.
https://en.wikipedia.org/wiki/ELIZA
I found a Javascript implementation here : http://www.masswerk.at/elizabot/ and made a plugin for fun. It's maybe possible to alter this ELIZA implementation to make your own ChatBot, more in the link above. I didn't tried it.
It has two actions 'input' and 'reset' and and three expression 'output', getInitial and getFinal. With getInitial you got an Initial message, with getFinal you can force an end message that you also got if you type in one of theis key words: bye, goodbye, done, exit, quit.
There is an example capx in the zip, that should be self explaining. Eliza is a plugin and should be put in the plugin folder (Construct 2\exporters\html5\plugins).
Edit: I implemented getInitial and getFinal and updated the example capx.
https://drive.google.com/uc?export=down ... Xg-uku5htu