How to Teach AI Programming for Elementary Students? – A Case Study of AI Conversation Robot Programming at UEC Programming School Hiromitsu Yamaguchi, Hirofumi Abe, Toshiyuki Shimazaki, Kenzo Ozaki, Masayuki Numao Department of Communication Engineering and Informatics, The University of Electro-Communications Abstract Comparison with AIML In order to increase the number of human resources with pro- When you execute the following code, if the result of voice gramming thinking, programming education has become in- recognition is ”Hello”, you will say ”Nice to meet you!” If dispensable from elementary school students in Japan as well. ”Goodbye”, say ”See you again!” To utilize communication robots for programming education Developed a scripting language for communication robots Listing 3: Description example that even beginners can program I actually used it in a pro- 1 /speech-to-text gramming class. 2 /if/Hello/Nice to meet you! 3 /if/Goodbye/See you again! Basic syntax The script language developed this time supports speech The code below describes the same process in AIML recognition and speech synthesis. If you want to say some- (2001). AIML was developed by Carnegie Mellon Univer- thing, write it in natural language without any special gram- sity. It is a world-renowned rule-based language for chat- mar. Listing 1 is a example. bots. Listing 4: AIML Listing 1: Utterance example 1 1 Hello. 2 2 I am a robot. Nice to meet you. 3 Hello 4