How We Built a Telegram AI Companion That Paints, Talks, and Listens
A quick note to our readers:
Dear readers,
I owe you an apology—and a heartfelt thank you. These past two weeks, I’ve been quietly recovering from pneumonia, a humbling reminder that even the most driven among us are gloriously human. If there’s one thing I hope you take from this: guard your health fiercely. It’s the only codebase you can’t refactor.
But here’s the silver lining: While resting, I realized how much we all need tools that nurture and adapt to us. Which brings me to today’s post…
Meet Nova—the Telegram companion we built to listen, create, and grow with you. Think of it as an AI that doesn’t just answer questions, but cares how you’re asking them.
Grateful to be back,
Angelina
We Created an AI Best Friend - And You Can Too
Imagine having a best friend who's always available to chat, can paint you pictures on demand, and talks to you out loud. Now imagine that friend lives inside your phone and on your favorite messenger app, ready to engage 24/7.
We've built exactly that - an AI companion that seamlessly integrates into your Telegram messaging app (of course other platforms like Whatsapp would work too!). And the best part? You can create one too.
But why build yet another chatbot in a world already teeming with AI assistants? Well, this one you can tailor the persona to your vibe, and it’s private.
We created Nova bot - a philosophical companion on telegram available to chat on anything anytime.
We Built It From Scratch - Here's How You Can Too
The project was inspired by a similar project that used WhatsApp as its base, but we decided to build our own version from the ground up using Telegram. Why? As Mehdi puts it, "Telegram is better than WhatsApp and it offers a lot more features, more secure and all that."
But more importantly, we wanted to strip away unnecessary complexities and dependencies. "Let's implement this chatbot without all of those fuss and adding unnecessary complexities," As Mehdi puts it, "Essentially, you can do the very same thing without doing any of that or using any of those dependencies."
The Secret Sauce: A Powerful Yet Flexible Architecture
The magic behind this AI companion lies in its thoughtfully designed system architecture. Here's a breakdown of the key components:
Telegram API: This is how users interact with the bot through their familiar Telegram interface.
FastAPI Backend: A robust, high-performance web framework for Python that handles the core logic.
Conversation Manager: This crucial component processes messages and decides what actions to take next.
OpenAI GPT-4: The language model powering the bot's conversational abilities.
DALL-E & Midjourney: Two powerful image generation APIs for creating custom visuals.
Kokoro-onnx: An open-source text-to-speech system for giving the bot a voice.
Groq: Speech-to-text system.
Curious to learn more?
Check it out! 🤓:
👇
Before we go on…a quick announcement -
🚀 Join Our New YouTube Membership Community!
For many of you following us on YouTube. thank you so much for your support! 🦄
In addition to our regular updates, I’m excited to announce the launch of our membership community! Whether you’re looking to master Retrieval-Augmented Generation (RAG), AI Agents, or dive deep into advanced AI projects and tutorials through AI Unbound, there’s something for everyone passionate about AI.
By joining, you’ll gain exclusive content, stay ahead of the curve, and reduce AI FOMO while building real-world skills. Ready to take your AI journey to the next level?
Let’s build, learn, and innovate together!
🛠️✨ Happy practicing and happy building! 🚀🌟
Thanks for reading our newsletter. You can follow us here: Angelina Linkedin or Twitter and Mehdi Linkedin or Twitter.
🌈 Our RAG course: https://maven.com/angelina-yang/mastering-rag-systems-a-hands-on-guide-to-production-ready-ai
📚 Also if you'd like to learn more about RAG systems, check out our book on the RAG system: You can download for free on the course site:
https://maven.com/angelina-yang/mastering-rag-systems-a-hands-on-guide-to-production-ready-ai
🦄 Any specific contents you wish to learn from us? Sign up here: https://noteforms.com/forms/twosetai-youtube-content-sqezrz
🧰 Our video editing tool is this one!: https://get.descript.com/nf5cum9nj1m8
📽️ Our RAG videos: https://www.youtube.com/@TwoSetAI
📬 Don't miss out on the latest updates - Subscribe to our newsletter: