How to write a good prompt for ChatGPT or Gemini: method + 15 examples
Google's method (persona, task, context, format), OpenAI's official tips and 15 copy-ready prompts in English, French, Arabic and Tunisian derja for daily use.
In 30 seconds
- According to Google, a good prompt combines 4 elements: persona, task, context, format. You don't need all four every time, but a few help.
- OpenAI adds: give a few examples, structure with headings or tags, and supply the relevant data. Then iterate and check.
- In Arabic or derja, state the reply language and register. 15 copy-ready prompts for study, work, shops and images.
Contents 8
To write a good prompt for ChatGPT, Gemini or Claude, tell the AI who it is, what to do, in what context and in what form you want the answer. That is the four-part method (persona, task, context, format) from Google's prompting guide for Gemini in Workspace, which notes that during the beta the most successful prompts averaged around 21 words. OpenAI also recommends giving examples, structuring the request and supplying the relevant data. Below: the method, what changes in Arabic and derja, and 15 copy-ready prompts.
The 4-part method (persona, task, context, format)
- 1Persona
Who answers: “You are an accountant at a Tunisian SME”
- 2Task
The precise verb: summarise, draft, compare, correct
- 3Context
For whom, why, under what constraints
- 4Format
Table, list, 150 words, formal tone, in Arabic
Google says you don't need all four every time, but using a few will help. Compare:
❌ Write an email to a customer.
✅ You are the sales manager of a furniture shop in Sousse (persona).
Write an email (task) to a customer whose delivery is 5 days late;
they are unhappy and paid a deposit (context). 120 words maximum,
polite and reassuring tone, offer free delivery (format).Google's guide adds several practical tips:
- Split complex requests into several successive prompts.
- Set constraints: length, number of options, language level.
- Assign a role to the AI.
- Invite it to ask questions before answering.
- Match the tone to your audience.
- Iterate: rephrase if the first answer misses.
- Review the output for accuracy.
OpenAI's official tips: examples, structure, context
OpenAI's prompt-engineering guide is aimed mainly at developers, but its principles apply to everyone:
- High-level rules first: what the AI must always follow (tone, language, no-gos).
- A handful of varied examples of input and expected output (“few-shot”): often more effective than a long explanation.
- Clear structure: separate parts with Markdown headings (
# Instructions,# Examples) or XML tags (<document>…</document>). - Relevant context: paste the text, figures or document the AI should work on.
OpenAI suggests the order identity → instructions → examples → context, and putting reusable parts first to benefit from prompt caching in the API.
| Google (Gemini) | OpenAI (ChatGPT) | |
|---|---|---|
| Structure | Persona, task, context, format | Identity, instructions, examples, context |
| Examples | Not stated in our sources | A handful of varied examples |
| Formatting | Length and tone constraints | Markdown headings, XML tags |
| Approach | Split, iterate, review | Rules first, data after |
Gemini for Workspace guide (via 9to5Google); OpenAI prompt engineering guide
Writing in Arabic or derja: what works
Chatbots understand Modern Standard Arabic and often derja, but a few habits make answers much better:
- State the reply language: “answer in Modern Standard Arabic” or “answer in Tunisian derja written in Arabic script”. Otherwise the AI picks, often badly.
- Give a style example: two sentences of derja the way you want it written. That is OpenAI's examples principle applied to language.
- Avoid unwanted mixing: if you write in Arabizi (derja in Latin letters and numbers), say so, or write the instruction in English or French and ask for a reply in derja.
- Technical terms: keep software names and trade terms in French or English.
On how well ChatGPT and Gemini really understand derja, see our test can AI understand Tunisian derja?.
15 copy-ready prompts (study, work, shop, images)
Replace the brackets with your details.
Study
1. You are a high-school [subject] teacher. Explain [concept] to a bac
student in 5 simple steps, with an example from daily life in Tunisia.
End with 3 questions to check I understood.2. Here is my thesis outline: [paste]. Act as a demanding supervisor:
list 5 weaknesses and suggest one improvement for each.
Do not write the thesis for me.3. أنت أستاذ رياضيات. اشرح لي حلّ هذا التمرين خطوة بخطوة دون أن تعطيني
النتيجة النهائية مباشرة، واسألني في كل خطوة: [نصّ التمرين]Work
4. You are a recruiter in Tunisia. Improve this CV for a [role] position:
[paste CV]. First give 5 corrections as a list, then the new version
of the "Experience" section.5. Summarise these meeting notes as a table: decision, owner, deadline.
Then draft a 100-word follow-up email. [paste text]6. أنت مساعد إداري. حرّر رسالة رسمية بالعربية الفصحى إلى [الجهة]
لطلب [الطلب]، في 150 كلمة كحدّ أقصى، بأسلوب مهذّب ومختصر.7. First ask me 5 questions about my business, then propose
a 4-week LinkedIn posting plan as a table.For CVs and cover letters, see also our job-search prompts.
Shop
8. You are the community manager of a [product] shop in Tunis.
Write 3 Instagram captions in Tunisian derja (Arabic script), 2 lines
each, with a call to order by DM. Style example:
"جديد عنا! الكمية محدودة، ابعثلنا ميساج."9. اكتب رد مهذّب بالدارجة التونسية على حريف يسأل على السوم والتوصيل
لـ[المنتج]. السوم [السعر] دينار، التوصيل [المدة]. ما تزيدش على 3 جمل.10. Here are 10 customer reviews: [paste]. Sort them into positive /
negative / neutral in a table, then give the 3 most frequent problems.11. Write a product sheet for [product] in French and Arabic, with:
title, 3 benefits, specifications, and one line on the warranty.
Format: two columns, one per language.Images
12. Realistic product photo of [product] on a light wooden table,
soft morning daylight, blurred background, catalogue style,
square format, high definition, no text on the image.13. صورة بورتريه احترافية لصفحة LinkedIn، بخلفية رمادية فاتحة، إضاءة
ناعمة من الجانب، لباس رسمي، ملامح طبيعية، دقّة عالية.For free image generators, see our comparison.
Teachers
14. You are a [subject] teacher for [level]. Create a 20-minute
exercise on [topic], with 3 difficulty levels and the answer key
separately at the end.15. Create a marking rubric for a 10-minute oral presentation:
4 criteria, 4 levels each, as a table. Add a criterion
"can explain without reading".How to adapt these templates. Keep the structure and change the details: the role (teacher, recruiter, shop owner), the exact task, your real context (city, audience, budget) and the format you need. If the answer is close but not right, don't start over: say what to change in one short follow-up message.
For thousands more ideas, the open prompts.chat library is the largest of its kind.
Iterate: a prompt takes three rounds
The first prompt rarely gives the perfect answer, and that's normal: Google explicitly advises iterating. A simple routine:
- Round one: your persona-task-context-format prompt.
- Round two: fix exactly what's wrong (“shorter”, “less formal”, “add a worked example”, “answer in derja”).
- Round three: ask the AI to review its own answer (“check for mistakes and doubtful claims”), then check the important facts yourself.
When a prompt works well, save it in a note: that's your personal library.
Mistakes that lead to bad answers
- Too vague: “tell me about marketing” gets a generic answer. Add the task and context.
- Everything in one prompt: split it. Outline first, then each part.
- No format: without length or structure, the AI writes too much.
- Not supplying the text: the AI can't summarise a document it doesn't have.
- Trusting the first answer: as Google says, always review for accuracy, especially figures, laws and references.
- Pasting sensitive data: card numbers, passwords or customers' personal data don't belong in a chatbot.
FAQ
What is a prompt?
It's the instruction you write to an AI such as ChatGPT or Gemini. The more precise it is, the better the answer.
How long should a good prompt be?
There's no fixed rule. Google says that during its beta the most successful prompts averaged around 21 words, about one or two precise sentences.
Can I write a prompt in Arabic or derja?
Yes. State the expected reply language and register, and give a short style example for derja.
Do the same prompts work on ChatGPT, Gemini and Claude?
Broadly yes: the principles (role, task, context, format, examples) are the same. Results vary by model, so test on the one you use.
Where can I find ready-made prompts?
The open prompts.chat library on GitHub (178,476 stars as of 25 November 2026) collects thousands, mostly in English: adapt them to your language and context.
HexaLab's take
“Prompt engineering” isn't magic: it's knowing how to make a clear request, the way you'd brief a colleague. Google's 21 words are a reminder that a good prompt is precise rather than long. The real gain in Tunisia comes from two habits: say which language you want the answer in, and always check what comes back.
Verified sources
- 9to5Google — Google's Gemini for Workspace prompting guide (persona/task/context/format, ~21 words) 9to5google.com
- OpenAI — Prompt engineering guide developers.openai.com
- GitHub — f/prompts.chat (ex Awesome ChatGPT Prompts) github.com
- GitHub — dair-ai/Prompt-Engineering-Guide github.com
Written and checked by HexaLab from the sources listed.