This study aims to develop AI mathematics teaching and learning materials for high school students using interactive AI (ChatGPT). The selected topics include text representation, classification, and prediction related to natural language processing, which are key contents of the 'AI Mathematics' curriculum. Python programming language and ChatGPT are employed as educational tools, with Python being accessible through Google Colab. The developed teaching and learning materials are structured into six block sessions, designed to leverage ChatGPT's language proficiency, information provision, creativity, and programming capabilities. Specifically, students sequentially experience code inspection, improvement, explanation, and generation using ChatGPT's programming abilities, culminating in creating their own chatbot program code. The application of these teaching and learning materials resulted in the participating high school sophomores understanding the principles of chatbots using natural language processing and the mathematical aspects within AI technology. The students exhibited positive responses toward using ChatGPT and Python. This suggests that classes utilizing ChatGPT can enhance students' interest and engagement in AI technology, mathematics, and related tools.