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.
- Manual Mode: Click on the buttons to perform actions.
- AI-Controlled Mode: Connect this with an AI assistant to automatically update the character.
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.