TommyAi
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v4View latest version
A simple, interactive chat bot built on Val Town. This chat bot features:
- Clean, modern user interface
- Persistent conversation history
- Basic rule-based responses
- Mobile-friendly design
/index.ts
- Main HTTP endpoint and chat logic/frontend/index.html
- User interface for the chat bot
- Real-time messaging with typing indicators
- Conversation history stored between sessions
- Ability to start new conversations
- Responsive design that works on mobile and desktop
- Responds to basic greetings and questions
- Maintains context within conversations
- Simple rule-based response system
- Uses Val Town's blob storage to maintain conversation history
- Each conversation is stored with a unique ID
- Built with vanilla JavaScript, HTML, and CSS
- Uses Twind for styling
- Includes error catching for debugging
- Built with Hono for routing
- Simple rule-based response generation
- Conversation context tracking
Potential enhancements for this chat bot:
- Integration with an LLM API for more sophisticated responses
- Adding more conversation topics and capabilities
- User authentication for personalized experiences
- Ability to upload and reference files or images
- Multi-language support
Simply visit the Val Town URL for this project to start chatting with the bot. You can ask basic questions, exchange greetings, and have simple conversations.
To start a new conversation, click the "Start New Chat" link at the bottom of the interface.