Back to Blog

How to create AI prompts

I learnt how to create explicit AI prompts to get my desired response

Today I learnt from Google's Generative AI for Educators course how to prompt in a structured way to get desired response with high quality. Here is the structure I follows.

Role + Task + Context + Requirements + Output Format

Example Formula

  • Role: Tell the AI who it is.

"You are a science teacher."

  • Task: Explain what you want.

"Explain how volcanoes erupt."

  • Context: Add background information.

"I'm a Primary 6 student."

  • Requirements: Mention any special instructions.

"Use simple words, include one fun fact, and keep it under 200 words."

  • Output Format: Say how you want the answer.

"Use bullet points."

Full Prompt Example

You are a science teacher. Explain how volcanoes erupt to a Primary 6 student. Use simple language, include one fun fact, keep it under 200 words, and use bullet points. πŸŒ‹βœ¨

Tips for Better Prompts 🎯

βœ… Be specific instead of vague.

❌ "Tell me about space."

βœ… "Explain why astronauts float in space using simple examples."

βœ… Mention your audience. "Explain it to a 12-year-old."

βœ… Set a length. "Write 100 words."

βœ… Choose a style. "Make it funny πŸ˜‚." "Make it professional πŸ“š." "Tell it as a story πŸ“–."

βœ… Ask for examples. "Give three examples."

Advanced Prompt Example πŸš€

You are an expert travel planner. Help me plan a 5-day trip to Japan with a budget of $1,500. Include transportation, food recommendations, sightseeing, estimated costs, and a daily schedule. Present everything in a table.

A Handy Prompt Template πŸ“

Copy and fill in the blanks:

You are a __________________.

Your task is to __________________.

Context:


Requirements:




Output format:


Bonus Trick ⭐

At the end of your prompt, you can add:

"If you need more information before answering, ask me up to three questions first."