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

  1. Click the prompt box.
  2. Type a prompt with role, task, context and format.
  3. Send the prompt.
  4. Read the response and click the prompt box again.
  5. Type a follow-up that adds a constraint.
  6. Send the follow-up and check the revised response.

Interactive demo

Loading 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

  1. 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.

  2. 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.

  3. Step 3

    Send the prompt

    Click "Send message" to submit the prompt. Gemini starts writing its answer below your message.

  4. 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.

  5. 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.

  6. Step 6

    Send the follow-up

    Click "Send message" again. Your follow-up appears in the conversation and Gemini writes a revised version.

  7. 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.

Create interactive demos like this one — free, no coding required.

Start for free →