// Initial Self programmed state machine for Comprehension // This state machine is used by the bot to program itself. state Self { case input goto sentenceState for each #word of sentence; pattern "I am a *" template Template("I did not know you were a {star}"); pattern "my name is *" template Template("Pleased to meet you {star}"); learn ( {pattern:"hello", template:"how are you" } ); state sentenceState { } }