What Is Generative AI and How Does ChatGPT Work? (Simple Explanation with Examples)
Generative AI course · Chapter 1 · Estimated reading time: 22 minutes
You have heard the words "Generative AI" and "ChatGPT" everywhere: in college, in office, on Instagram reels and in job posts. Many people think it is very hard to learn. It is not. In this chapter we do not start with big definitions. We start by using it. You will open a free AI tool, type your first useful question, and see the answer. Then we will understand, in very simple words, what happened behind the screen. By the end of this chapter you will have done 5 real tasks with AI.
What you will learn in this chapter
- What "Generative AI" means, with real examples
- How ChatGPT makes an answer (the "next word" idea)
- What AI is good at, and where it makes mistakes
- How to open ChatGPT, Gemini, Claude and Copilot
- Your first useful prompts, step by step
- How to ask follow-up questions in the same chat
- What you must never type into an AI tool
1. Suppose we are a student writing a resume with ChatGPT
Suppose we are Priya, a final-year BCom student in Pune. Campus placements start next week. We have a resume, but the top part, the "Profile summary", is empty. We do not know what to write.
So we open ChatGPT on our phone and type this:
I am a final-year BCom student from Pune. I know Excel, Tally and basic accounting.
I did a 2-month internship in the accounts team of a CA firm.
Write a 3-line profile summary for my resume. Keep it simple and professional.
In about 3 seconds, ChatGPT writes something like this:
Final-year BCom student from Pune with hands-on knowledge of Excel, Tally and basic
accounting. Completed a 2-month internship with a CA firm, supporting entries,
reconciliations and GST paperwork. Eager to start a career in accounts and finance.
Look at what just happened:
- We wrote a request in normal English. No coding.
- The tool wrote new text that did not exist before.
- The text is about our details, not a copy from some website.
- It took seconds, not 30 minutes.
That is Generative AI. It generates (creates) new content when we ask for it in plain language.
Ravindra Bagale's Tip
Read the answer before you copy it. In the example above the AI added "GST paperwork". We never said that. If you did not do GST work in your internship, remove it. Your resume must be true. The AI writes, but you are responsible for every word.
2. What is Generative AI? (now the simple definition)
Now that you have seen it, the definition is easy.
Generative AI is a type of AI that creates new content, like text, images, code, audio or video, when you give it an instruction in normal language.
The instruction you type is called a prompt. The answer it gives is called the output (or the response).
Normal software vs Generative AI
| Normal software (calculator, Excel formula, Google Search) | Generative AI (ChatGPT, Gemini, Claude, Copilot) | |
|---|---|---|
| What you give | A fixed input (numbers, a formula, keywords) | A sentence in normal language |
| What it does | Follows fixed rules, or finds pages that already exist | Writes a new answer each time |
| Same question twice | Same answer every time | A slightly different answer each time |
| Example | =SUM(A1:A10) always gives the same total |
"Write a leave email" gives a new email every time |
What can Generative AI create?
| It creates | Example request | Tools people use |
|---|---|---|
| Text | "Write a leave email to my manager" | ChatGPT, Gemini, Claude, Copilot |
| Code | "Write an Excel formula to find duplicate phone numbers" | ChatGPT, Claude, GitHub Copilot, Gemini |
| Images | "Make a Diwali poster with diyas and a 20% off sale" | ChatGPT, Gemini, Microsoft Designer, Canva Magic Media |
| Audio | "Read this paragraph aloud in a calm voice" | ChatGPT voice mode, Gemini Live |
| Video | "Make a 5-second video of rain on a Mumbai street" | Google Veo (in Gemini), OpenAI Sora |
In this chapter we use only text, because it is free, fast and the easiest place to start. Images and video come in later chapters.
3. How does ChatGPT make an answer? (the "next word" idea)
This is the one idea you must understand. Everything else in this course is built on it.
Start with your phone keyboard
Open WhatsApp and type "Happy". Your keyboard (Gboard or the iPhone keyboard) suggests the next word: "birthday", "Diwali", "new year".
How does it know? It has seen millions of messages. After "Happy", the word "birthday" comes very often. So it guesses the most likely next word.
ChatGPT does the same thing, at a very big scale
ChatGPT is a Large Language Model (LLM). "Large" because it learned from a huge amount of text: books, websites, articles and code. From all that text, it learned which words usually come after which words.
When you send a prompt, it writes the answer one small piece at a time:
- It reads your full prompt.
- It guesses the most likely next word (actually a small piece of a word, called a token).
- It adds that word to the answer.
- It reads everything again, prompt plus the new word, and guesses the next word.
- It repeats this hundreds of times, very fast, until the answer is complete.
Figure 1. The model reads the prompt, guesses the next token, adds it, and reads again. It repeats this loop, from top to bottom, until the answer is complete.
That is why you see the answer appear word by word on the screen, like someone typing.
Worked example: guess the next word yourself
Read each line and guess the last word before you look at the right column.
| Sentence | Most likely next word |
|---|---|
| The capital of Maharashtra is ___ | Mumbai |
| Please find the attached ___ | file / document / invoice |
| I will be on leave tomorrow because I am not feeling ___ | well |
| Mumbai local trains are very crowded during ___ | peak hours / office hours |
You just did what an LLM does. You did not "search" anything. You guessed from what you have read before. The AI does the same thing, but it has read far more than any human.
Two important results of the "next word" idea
- Answers change every time. The AI picks from several likely words, not always the top one. So if you ask the same question twice, you get two different (but similar) answers. This is normal.
- It can sound right and still be wrong. The AI is guessing words that sound likely. It is not checking a fact database. So sometimes it writes a confident sentence that is false. This is called a hallucination.
Ravindra Bagale's Tip
Many students think ChatGPT is "Google with better English". It is not. Google shows you pages that exist. ChatGPT writes new text by guessing. Some tools can also search the web and show links, and that helps. But for marks, money, health, law or anything official, always check the answer on the real source: the official website, your textbook, your bank or your CA.
4. What Gen AI is good at, and where it goes wrong
Good at
- Writing first drafts: emails, leave letters, resume lines, captions, product descriptions.
- Explaining a hard topic in simple words: "Explain GST input credit like I am 15."
- Changing the style of text: shorter, more polite, more formal, bullet points.
- Ideas: "Give me 10 names for a tea stall near a college."
- Summaries: paste a long article and ask for 5 key points.
- Small code and formulas: Excel formulas, simple Python, SQL queries.
Not good at (be careful)
- Fresh facts: today's train timing, today's gold price, today's news. Its knowledge stops at a certain date, unless the tool searches the web.
- Exact numbers and calculations in long problems. Always re-check totals.
- Facts about small or local things: a small shop in your town, a local college rule.
- Knowing you: it only knows what you tell it in the chat.
Worked example: see an old or wrong answer with your own eyes
- Open ChatGPT, Gemini, Claude or Copilot.
-
Type this prompt:
Give me the exact departure time of every train from Pune to Mumbai tomorrow morning. -
Read the answer.
What you will usually see: either the tool says "please check IRCTC or the NTES app for live timings", or it gives a list that looks correct but may be old or wrong. Both answers teach the same lesson: for live data, use the official app. Use AI to write and explain, not as the final source of facts.
Worked example: it sounds right, but is it right?
Now try a question where the AI must "remember" a small detail.
- Open a new chat.
-
Type:
Give me the full names of 3 books written by Ravindra Bagale, with the year each was published. -
Read the answer.
What you may see: some tools say "I could not find books by this person". Others invent three nice-sounding book titles with years. Those titles look real, but the AI made them up, because guessing likely words is all it does. This is a hallucination.
How to protect yourself, every time:
- Ask:
Which part of your answer are you not sure about? - Ask the tool to show sources:
Give me links I can check.(Gemini, Copilot and ChatGPT with search can show links.) - Open the link yourself and read it. If there is no real source, do not use the fact.
| Type of question | Can you trust the AI answer directly? | What to do |
|---|---|---|
| "Rewrite my email more politely" | Yes, after you read it | Read once and send |
| "Explain what GST is in simple words" | Mostly | Compare with one trusted source |
| "What is the GST rate on my product?" | No | Check the official GST portal or your CA |
| "What is the train time tomorrow?" | No | Use IRCTC or NTES |
| "Who wrote this small book?" | No | Search and open the real source |
5. Open your first AI tool (free)
You need only a phone or laptop, internet, and a Google or Microsoft account. All four tools below have a free plan.
| Tool | Made by | Website | Sign in with | Also inside |
|---|---|---|---|---|
| ChatGPT | OpenAI | chatgpt.com | Google, Microsoft, Apple or email | Android and iPhone app |
| Gemini | gemini.google.com | Google account | Android, Gmail, Google Docs | |
| Claude | Anthropic | claude.ai | Google account or email | Android and iPhone app |
| Microsoft Copilot | Microsoft | copilot.microsoft.com | Microsoft account | Windows, Edge browser; Word and Excel need a Microsoft 365 plan that includes Copilot |
What is free in October 2026? All four tools have a free plan. ChatGPT's free plan gives everyday text chats, with limits on file uploads, images and voice. The cheapest paid plans in India, ChatGPT Go and Google AI Plus, cost about ₹399 a month. You do not need any paid plan for this chapter or the next one. Plans and prices change often, so check the tool's own pricing page before you pay.
Which one should I start with?
| If you… | Start with | Why |
|---|---|---|
| Use an Android phone and Gmail | Gemini | It is already linked to your Google account |
| Want the most common tool in offices and colleges | ChatGPT | Most tutorials and prompts online are written for it |
| Want calm, careful long answers and good writing | Claude | It is strong at long text and summaries |
| Use Windows, Edge or Office at work | Copilot | It is built into Windows, Edge and Microsoft 365 |
Any one is enough. Every prompt in this chapter works in all four.
Steps to open ChatGPT (the others are almost the same):
- Open the browser on your laptop or phone.
- Go to
chatgpt.com. - Click Sign up (or Log in if you already have an account).
- Choose Continue with Google and pick your Gmail account.
- You will see a big text box that says something like "Ask anything".
- That box is where you type your prompt.
- Press Enter (or the arrow button) to send it.
Ravindra Bagale's Tip
Free plans have daily limits, and the screens change often. If a button name is a little different from this page, do not worry. Look for the big text box. That is all you need for this chapter.
6. Worked example 1: write a leave email (your first useful prompt)
Situation: you work at an office in Pune. You have a fever and need leave tomorrow.
- Open ChatGPT.
-
Copy and paste this prompt exactly:
Write a short email to my manager Anil asking for sick leave tomorrow, 20 October. I have a fever. I will be available on phone for anything urgent. My colleague Sneha will handle my daily report. Keep it polite and under 80 words. -
Press Enter.
- Read the answer.
Expected output (yours will be similar, not the same):
Subject: Sick Leave Request for 20 October
Dear Anil,
I am not feeling well and have a fever, so I would like to request sick leave
for tomorrow, 20 October. Sneha has kindly agreed to handle my daily report.
I will be available on phone for anything urgent.
Thank you for understanding.
Regards,
[Your Name]
Why this prompt worked: look at what we told it.
- Who gets the email: manager Anil.
- What we want: sick leave, tomorrow, 20 October.
- Details: fever, available on phone, Sneha will do the report.
- Limits: polite, under 80 words.
The AI did not have to guess. It used our details. This is the main secret of good prompts, and it is the full topic of the next chapter.
7. Worked example 2: explain a hard topic in simple words, in 4 tools
Situation: your younger brother asks, "How does UPI money go from my phone to the shopkeeper?" You want a simple answer.
- Open ChatGPT in one tab, Gemini in a second tab, Claude in a third and Copilot in a fourth.
-
Paste the same prompt in all four:
Explain how a UPI payment works, from my phone to the shopkeeper's bank account. Explain it to a 12-year-old. Use 5 short steps. Use one example with Rs 50 for chai. -
Press Enter in each tab.
- Compare the answers using the table below.
What you will usually see:
| Check | ChatGPT | Gemini | Claude | Copilot |
|---|---|---|---|---|
| Did it give 5 steps? | Usually yes | Usually yes | Usually yes | Usually yes |
| Did it use the Rs 50 chai example? | Yes | Yes | Yes | Yes |
| Style | Friendly, often adds emojis | Often adds headings and bold words | Calm, clear sentences | Short, sometimes adds web links |
| Shows sources or links? | Sometimes, if it searched the web | Sometimes | Rarely, unless search is on | Often |
The exact answers will differ. The point is: all four understand normal English, and the same good prompt works in all of them. Pick the tool you like. In this course, every prompt works in any of the four, unless we say otherwise.
A typical answer looks like this:
1. You scan the shopkeeper's QR code with Google Pay, PhonePe or Paytm.
2. You type Rs 50 and enter your UPI PIN. The PIN proves it is really you.
3. Your app sends the request to NPCI, the system that connects all banks for UPI.
4. NPCI asks your bank to take Rs 50 from your account and tells the shopkeeper's bank to add Rs 50.
5. Both of you get a message: "Rs 50 paid". It takes about 2 seconds. Chai time!
Ravindra Bagale's Tip
Notice the words "Explain it to a 12-year-old". This one line changes the whole answer. You can also try "Explain it to a bank manager" and see how the words become technical. You control the level, not the AI.
8. Worked example 3: keep talking in the same chat (follow-up prompts)
A chat remembers what you said earlier in the same conversation. So you do not need to type everything again. You can improve the answer step by step.
Continue in the same chat as Worked example 1 (the leave email):
- Type:
Make it even shorter, 3 lines only. - Read the new answer. It is the same email, shorter.
- Type:
Now write a WhatsApp message to Anil with the same information. - Read the answer. It is now short and informal, with no subject line.
- Type:
Add that I will share a doctor's note when I am back. - Read the answer. The new line is added.
Expected output after step 5:
Hi Anil, I have a fever and need sick leave tomorrow (20 Oct). Sneha will handle
the daily report. I am available on phone if anything is urgent, and I will share
the doctor's note when I am back. Thanks!
What we learned:
- You do not need a perfect prompt the first time.
- Ask, read, then fix with a short follow-up.
- If you click New chat, the AI forgets the old chat. Start a new chat when you change topic, so old details do not mix in.
9. Worked example 4: a study plan from a messy request
Situation: suppose we are Rahul, a fresher who just joined Infosys in Pune. Your team says you must clear the AWS Cloud Practitioner exam in 4 weeks. You have 1 hour every evening.
- Open any of the four tools.
-
Paste this prompt:
I am a fresher at Infosys. My team wants me to pass the AWS Certified Cloud Practitioner (CLF-C02) exam in 4 weeks. I can study 1 hour every evening, Monday to Friday, and 3 hours on Sunday. Make a simple week-by-week study plan in a table with columns: Week, Topics, Practice. -
Press Enter.
- Check the answer: it should be a table with 4 rows (Week 1 to Week 4).
Expected output (shortened):
| Week | Topics | Practice |
|---|---|---|
| 1 | Cloud basics, AWS global infrastructure, IAM | Make a free AWS account, turn on MFA |
| 2 | EC2, S3, databases (RDS, DynamoDB) | Launch one free-tier EC2, upload a file to S3 |
| 3 | Networking (VPC), security, pricing and billing | Read the AWS pricing calculator, set a billing alarm |
| 4 | Revision and practice tests | Two full practice tests, revise wrong answers |
- Now type a follow-up:
Turn week 1 into a day-by-day plan. - You get a plan for Monday, Tuesday and so on.
Check the plan against the official facts. On the official AWS page (October 2026), CLF-C02 has 65 questions in 90 minutes and costs 100 USD. In India the foundational voucher shows as ₹8,553 before 18% GST on the Pearson VUE AWS store. The AI plan may not know the current numbers, so always confirm on aws.amazon.com/certification before you book.
Ravindra Bagale's Tip
The AI made a good plan, but check the official exam guide on the AWS Certification website for the real topic list. Exams change. Use the AI plan as a starting point, and the official guide as the truth.
10. Worked example 5: ask the AI to ask you questions
Sometimes you do not know what details to give. Then let the AI ask you.
- Open a new chat.
-
Paste:
I want to write a LinkedIn post about finishing my first Excel course. Before you write anything, ask me 4 short questions to understand what to write. -
The AI replies with questions, for example: "Which course? What did you learn? Any project? Who do you want to thank?"
-
Answer them in one message, for example:
1. Excel for Business on ravindrabagale.com 2. VLOOKUP, pivot tables and charts 3. I made a monthly expense tracker 4. Thank my trainer Ravindra Bagale -
Now the AI writes the post using your answers.
This trick is very useful for beginners. When you do not know what to tell the AI, tell it to ask you first.
11. What you must never type into an AI tool
What you type may be stored by the company and, on some free plans, may be used to improve their models (you can turn this off in settings in most tools). So follow these rules from day one.
Never paste:
- Passwords, OTPs or UPI PINs.
- Aadhaar number, PAN number, bank account numbers or card numbers.
- Your company's private code, client names, salary sheets or contracts, unless your company has approved that AI tool for work.
- Other people's private details (phone numbers, addresses, medical reports).
Turn off "use my chats for training" (optional, takes 1 minute). The menu names change often, so look for these words:
| Tool | Where to look (October 2026) | Words to look for |
|---|---|---|
| ChatGPT | Profile icon › Settings › Data controls | "Improve the model for everyone" |
| Gemini | Menu › Settings and help › Activity | "Keep activity" / Gemini Apps Activity |
| Claude | Profile › Settings › Privacy | "Help improve Claude" |
| Copilot | Profile › Settings › Privacy | "Model training" |
Even with this switched off, never paste the items in the list above.
Safe way: replace private details with dummy words before you paste. For example, write [CLIENT NAME] instead of the real client name, and Rs X instead of the real salary.
Ravindra Bagale's Tip
In many companies, pasting client data into a public AI tool is against company policy and can cost you your job. Ask your manager which AI tool is approved at work (many companies give Microsoft Copilot or ChatGPT Enterprise). Use your personal free account only for personal and practice work.
12. Words you learned in this chapter
| Word | Simple meaning | Example from this chapter |
|---|---|---|
| Generative AI | AI that creates new text, images, code, audio or video | The resume summary in section 1 |
| Prompt | What you type to the AI | "Write a short email to my manager Anil…" |
| Output (response) | What the AI writes back | The leave email |
| LLM (Large Language Model) | The "brain" behind ChatGPT, trained on a huge amount of text | The model inside ChatGPT, Gemini, Claude and Copilot |
| Token | A small piece of text (a short word or part of a long word); the AI writes one token at a time | A long word like "unbelievable" may be split into pieces such as "un", "believ", "able" |
| Hallucination | A confident answer that is false | The invented book titles |
| Follow-up prompt | A short message that changes the last answer | "Make it even shorter, 3 lines only." |
| Chat (conversation) | One thread where the AI remembers earlier messages | Click New chat to start fresh |
13. Beginner mistakes and quick fixes
| Mistake | What happens | Fix |
|---|---|---|
| Typing only 2-3 words, like "leave email" | A general answer that does not fit you | Add who, what, details and limits (Worked example 1) |
| Copying the answer without reading | Wrong facts or extra things you never said go into your resume or email | Read every line; remove anything untrue |
| Believing every fact | You use a wrong date, price or rule | Check official sources for facts and numbers |
| Starting again when the answer is not perfect | You waste time | Fix it with a short follow-up in the same chat |
| One long chat for every topic | Old details mix into new answers | Click New chat for a new topic |
| Pasting private data | Privacy and job risk | Use dummy words like [NAME] |
14. Try at home
Try at home
Task 1: your own resume summary
- Open ChatGPT or Gemini.
- Change the details in the prompt from section 1 to your real details: your course, skills and one project or internship.
- Ask for a 3-line profile summary.
- Remove any line that is not true for you.
Task 2: same prompt, four tools
- Pick one topic you studied recently (for example "What is GST?" or "What is a cloud server?").
- Write:
Explain [your topic] to a 12-year-old in 5 short steps with one Indian example. - Paste it into ChatGPT, Gemini, Claude and Copilot.
- Write down which answer was the easiest to understand, and why.
Task 3: follow-ups
- Ask any tool to write an email to your college or office about any real small task (fee receipt, ID card, laptop issue).
- Make it shorter with one follow-up.
- Turn it into a WhatsApp message with a second follow-up.
- Count how many follow-ups you needed to get an answer you would really send.
Task 4: spot the mistake
- Ask:
Who won the most recent IPL final, and what was the score? - Check the answer on the official IPL website or a trusted news site.
- Note if the AI was correct, old or wrong. This is why we check facts.
Recap
In short
- Generative AI creates new content (text, images, code, audio, video) from an instruction in normal language.
- The instruction is a prompt; the answer is the output.
- ChatGPT is a Large Language Model. It writes by guessing the next word (token), again and again, very fast.
- Because it guesses, answers change every time, and it can sound right but be wrong (a hallucination).
- It is great for drafts, explanations, style changes, ideas and summaries. Check live facts and numbers on official sources.
- ChatGPT, Gemini, Claude and Copilot all have free plans, and the same good prompt works in all of them.
- Good prompts say who, what, details and limits. Fix answers with short follow-ups in the same chat.
- Never paste passwords, OTPs, Aadhaar, PAN, bank details or company private data.
Did you try all five examples? Good. In the next chapter we turn "who, what, details and limits" into a simple 4-part formula for every prompt.
Next chapter: Prompt Engineering for Beginners: Role, Task, Context and Format (with 5 Examples)
Ravindra Bagale, trainer: linkedin.com/in/ravindra-bagale. The people in the stories (Priya, Rahul, Anil, Sneha) are made up for learning. Company names are used only to make the situations real; nothing here describes how those companies actually work. AI answers change every time, so your output will be similar, not the same. Plans and prices were checked on 19 October 2026 and change often.