How to write effective prompts for Gemini
Learn how to write a Gemini prompt with a clear role, task, context and format, then tighten the reply with a follow-up message that adds one more constraint.

Quick answer
Open Gemini, click the prompt box and write one message that states a role, a task, the context and the format you want. Send it, read the reply, then send a follow-up that adds a single constraint, such as a shorter word limit, to refine the result without starting over.
Steps at a glance
- Click the prompt box.
- Type a prompt with role, task, context and format.
- Send the prompt.
- Read the response and click the prompt box again.
- Type a follow-up that adds a constraint.
- Send the follow-up and check the revised response.
Interactive demo
Summary
A good Gemini prompt tells the model who it is, what to do, what situation it is in and what the answer should look like. Gemini keeps the conversation, so you can refine the reply with a short follow-up instead of rewriting everything.
Step-by-step guide
Step 1
Click the prompt box
Open Gemini and click the box labelled "Enter a prompt for Gemini" under the heading "Where should we start?". Everything you ask starts here.
Step 2
Type a prompt with role, task, context and format
Write one message that names a role, the task, the context and the format. For example: You are a customer support lead. Write a reply to a customer whose order arrived late. Keep it under 80 words, friendly, and end with a discount code placeholder.
Step 3
Send the prompt
Click "Send message" to submit the prompt. Gemini starts writing its answer below your message.
Step 4
Read the response, then click the prompt box
Wait for the reply to finish. It appears under "Gemini said". Check it against your role, length and format, then click the prompt box at the bottom to continue the same conversation.
Step 5
Add a constraint in a follow-up
Type a short follow-up that changes one thing, such as: Rewrite it in under 50 words and add one concrete apology. Gemini remembers the earlier reply, so you do not repeat the full prompt.
Step 6
Send the follow-up
Click "Send message" again. Your follow-up appears in the conversation and Gemini writes a revised version.
Step 7
Check the revised response
Read the new reply and confirm it follows the added constraint. If it does not, send another short follow-up. The "Copy" button under the reply copies the text.
Why this matters
You need a customer reply that sounds friendly, stays short and includes a discount placeholder, and your first vague attempts keep coming back too long. A structured prompt plus one follow-up gets you a usable draft in two messages.
Frequently asked questions
What should a good Gemini prompt include?
A role, a task, the context and the format. In this example that was a customer support lead, a late-order reply, a friendly tone, an 80-word limit and a discount code placeholder.
Do I need to start a new chat to change the answer?
No. Send a follow-up in the same conversation that adds one constraint, and Gemini revises its earlier reply.
Related guides
Continue with more step-by-step guides for getting work done.
How to use Gemini for writingLearn how to use Gemini for writing: type a drafting prompt, ask for a shorter and more casual rewrite, then copy the finished text in minutes.
How to create a Gem in GeminiLearn how to create a custom Gem in Gemini: name it, describe it, write instructions, save it, and start chatting with your new Gem right away.
How to clear Gemini activity historyClear your Gemini activity history from the Gemini Apps Activity page: pick Last hour, Last day, All time or a custom range, then confirm.
Create interactive demos like this one — free, no coding required.
Start for free →