Notice: This page requires JavaScript to function properly.
Please enable JavaScript in your browser settings or update your browser.
Lära Principles of Writing Effective Prompts | Introduction to Gemini in Google Workspace
Gemini in Google Workspace

Principles of Writing Effective Prompts

Svep för att visa menyn

What is a Prompt?

A prompt is the information or instructions you give an AI assistant. The quality of your prompt often determines the quality of the response.

The Four Elements of an Effective Prompt

Persona

Who you are or who you want Gemini to act as.

Task

The specific action you want Gemini to perform.

Context

Background information that helps Gemini understand the situation and your goals.

Format

How you want the response presented (e.g., bullet points, table, email, report, presentation outline).

The PTCF Framework

A simple way to improve prompts is to include:

  • Persona;
  • Task;
  • Context;
  • Format.

The more relevant information you provide in these areas, the more tailored and useful Gemini's responses are likely to be.

Using Roles and Personas

You can ask Gemini to adopt a specific role, such as:

  • Tutor;
  • Coach;
  • Travel guide;
  • Chef;
  • Marketing consultant;
  • Project manager;

This helps Gemini tailor its tone, expertise, and recommendations to the situation.

Four Additional Prompting Tips

Use Natural Language

  • Write as if you are speaking to another person;
  • Use complete thoughts and clear instructions.

Be Specific

  • Clearly describe what you want;
  • Include any requirements, constraints, or limitations.

Be Concise

  • Effective prompts do not need to be long;
  • Focus on the information that matters most.

Iterate

  • Treat prompting as a conversation;
  • Refine and improve your prompts based on the responses you receive.

1. What are the four components of the PTCF prompting framework?

2. What is the main benefit of providing context in a prompt?

3. Which of the following is considered a good prompting practice?

question mark

What are the four components of the PTCF prompting framework?

Vänligen välj det korrekta svaret

question mark

What is the main benefit of providing context in a prompt?

Vänligen välj det korrekta svaret

question mark

Which of the following is considered a good prompting practice?

Vänligen välj det korrekta svaret

Var allt tydligt?

Hur kan vi förbättra det?

Tack för dina kommentarer!

Avsnitt 1. Kapitel 2

Fråga AI

expand

Fråga AI

ChatGPT

Fråga vad du vill eller prova någon av de föreslagna frågorna för att starta vårt samtal

Avsnitt 1. Kapitel 2
some-alt