This project is inspired by the classic Tamagotchi device, featuring a virtual character drawn with JavaScript. The character can be controlled through various buttons, or it can dynamically change based on interactions with an AI assistant.
Feel free to customize the project, or expand it for AI assistant interaction.
Call setAction
based on the AI model’s status or reactions. For example:
setAction('curious')
if the AI’s response includes a question.setAction('excited')
if the response shows excitement.setAction('speaking')
for general replies.Check the demo for more action details.