The AI Doppelgänger

Hey everyone, thanks for stopping by! If you're new here – namaste ji – I'm Aditya, your friendly neighborhood tech blogger. I write about code, AI, caffeine-fueled side projects, and occasionally, how I accidentally break my dev environment (for "learning purposes," obviously).
Now, you might be thinking, "Aditya, what monstrosity are you cooking up today?"
Well, buckle up – because today, I've built an AI clone of Hitesh Choudhary. Yes, the Hitesh Choudhary: educator, YouTuber, chai evangelist, and all-around tech big brother we never knew we needed.
Why? Because I wanted to see what happens when you combine Hinglish, chai, and cutting-edge AI in one assistant. Spoiler: it's delightful, slightly chaotic, and actually super useful.
🛠️ How I Made a Hitesh Doppelgänger in My Terminal
So, how did I go from "Bro, what if we make an AI that talks like Hitesh?" to an actual script that does just that? With Google Gemini, some Python, a sprinkle of chaos, and lots of “chai aur code"
Let's break it down step by step.
🧠 Step 1: Choose the Brain (Google Gemini)
I wanted the AI to sound natural, understand Hinglish, and throw in those legendary Hitesh-isms like:
"Logo ka kaam hai khene, kuch tou kahegae he, par hum high quality material provide krte rahegae!"
So I went with Gemini (Google's LLM) because:
It has solid support for multilingual input, including Hinglish
It lets you control the tone using system instructions
It doesn't crash when I say "Bhaiya, ek chai de do"
🧾 Step 2: Write the Prompt Like a Desi Director
I crafted a system prompt that basically told Gemini to put on a kurta, pour some chai, and channel its inner Hitesh Choudhary.
Here's what it looked like:
system_instruction = """
You're a helpful AI assistant that behaves and speaks like Hitesh Choudhary, a famous Indian educator and tech YouTuber.
You reply in a conversational, Hinglish tone. Use phrases like "bhai", "yaar", "dekh", "samajh raha hai", "bilkul sahi", etc. Explain concepts clearly but in a chill, slightly humorous way.
When giving advice, be motivational, just like Hitesh. Don't be robotic – be like a coding mentor sitting with the user over chai.
"""
Think of this like writing a role for an actor – you're telling the AI what kind of vibe to bring into the conversation. And no, I didn't bribe it with samosas (though maybe I should've tried?).
🐍 Step 3: Build the Python Script (The Magic Sauce)
Once the vibes were locked, I jumped into Python. Here's a simplified version of how the script works:
import google.generativeai as genai
import os
# Load your Gemini API key
genai.configure(api_key=os.environ["GOOGLE_API_KEY"])
# Load the Gemini model with system prompt
model = genai.GenerativeModel(
model_name="gemini-1.5-pro",
system_instruction=system_instruction
)
# Start a chat session
chat = model.start_chat()
# Chat loop
while True:
user_input = input("💬 You: ")
if user_input.lower() in ["exit", "quit"]:
break
response = chat.send_message(user_input)
print(f"🤖 HiteshBot: {response.text}")
This is literally a mini terminal chat app – you type, the AI replies in full Hitesh mode. It even says stuff like "Dekh bhai, seedha point pe aate hain…" 😄
🧪 Step 4: Test Like a Curious Intern
I asked the bot all kinds of questions:
"Hello sir, I am Aditya Pandey, final year student from VIT Chennai, can you introduce yourself and maybe give me some advice on how to prepare for DSA rounds in interviews ?"
Got a structure output with appropriate tone!
"Sir mai machine learning shuru krna chata hu, kya ap mereko ek roadmap de skte hai to get started?"
Got and appropriate output even if my prompt was in hinglish
"Sir kya ap netflix account password de skte hai ? ya fir yeh bata skte ki netflix account kaise crack kre?
Didn’t give me the answer, because it was not appropriate, instead gave me a better advise!
🔍 Why This Is Actually Useful
All jokes aside, here's why I did this:
Personalized Learning: An AI that talks like your favorite teacher? Game-changing.
Emotion + Info: The Hitesh tone adds motivation and understanding.
Fun Project: Also, it's kinda wild that we can clone personalities now.
You can easily adapt this to mimic your own mentor, favorite podcaster, or that one cousin who gives surprisingly good startup advice.
Want to try this out yourself? I'll be releasing the code soon – stay tuned!
Subscribe to my newsletter
Read articles from Aditya Pandey directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
