๐ Inspiration Have you ever wished you could ask your future self for guidance? We were inspired by the concept of a time capsuleโbut instead of leaving messages for your future self, what if your wiser, future self could speak back to you? With TimeMachine GPT, weโve created a bridge across timeโwhere your aspirations, fears, and goals become the context for heartfelt advice, powered by AI.
๐ What it does TimeMachine GPT allows users to:
Input their name, age, goals, values, fears, and a question.
Receive an AI-generated motivational response as if from their future self.
Hear the response in a natural voice using speech synthesis.
Choose different tones: motivational, poetic, humorous, or professional.
Toggle voice output on/off and experience a scrollable animated text view.
๐ ๏ธ How we built it Frontend:
Built using HTML, CSS, and Vanilla JavaScript.
Includes speech synthesis for voice output and a clean UI for input.
Mute/unmute toggle and tone selector integrated into UI.
Backend:
Flask API handles POST requests to /chat.
Uses transformers (HuggingFace) with google/flan-t5-base for prompt-based response generation.
Prompts dynamically constructed based on user input and selected tone.
Folder Structure: future-self-chatbot/ โโโ backend/ โ โโโ app.py โ โโโ requirements.txt โโโ frontend/ โโโ index.html โโโ app.js โโโ style.css ๐งโโ๏ธ Challenges we ran into Ensuring the model's response felt emotionally resonant and contextually aware.
Integrating natural voice output and syncing it with generated text.
Prompt engineering to generate high-quality responses across different tones.
Hosting issues and CORS configuration during testing phase.
๐ Accomplishments that we're proud of Built a fully functional AI-powered motivational chatbot in under 48 hours.
Achieved smooth interaction between frontend and backend without external libraries.
Created a meaningful and emotional user experience using voice and text.
๐ What we learned The power of well-engineered prompts in shaping AI responses.
How to bridge frontend speech APIs with backend NLP systems.
Best practices in rapid prototyping with Flask and Transformers.
Empathy-driven design can significantly improve engagement and impact.
๐ฎ What's next for TimeMachine GPT ๐ค Add custom voice avatars using ElevenLabs or PlayHT.
๐พ Allow users to save and revisit past conversations.
๐ฑ Launch a mobile-friendly version or PWA.
๐จ Introduce animations or visual avatars for future-you.
๐ Deploy on Vercel (frontend) and Render or Hugging Face Spaces (backend).
Built With
- css
- html
- hugginface
- javascript
- llm
- python



Log in or sign up for Devpost to join the conversation.