No history yet

Introduction to AI Prompting

Talking to an AI

Communicating with an artificial intelligence model isn't like talking to a person. It can't read your mind or guess your intentions. To get what you want, you need to give it clear instructions. These instructions are called prompts.

Prompt

noun

The text, question, or instruction you provide to an AI model to get it to perform a task.

Think of a prompt as a request. If you're vague, you'll get a vague answer. If you're specific, you'll get a specific answer. The quality of the AI's response depends almost entirely on the quality of your prompt.

The key to effective AI use is in your prompts – the instructions you give the AI.

Let's say you want a recipe. You could just type "chicken recipe."

The AI might give you a recipe for fried chicken, baked chicken, or chicken soup. It's a guess. But what if you wanted something specific? A better prompt would be: "Give me a simple recipe for baked chicken breast that takes less than 30 minutes to prepare."

This prompt is much more effective because it includes key details: the main ingredient (chicken breast), the cooking method (baked), and a constraint (less than 30 minutes). Specificity removes the guesswork.

Lesson image

Context is Everything

Besides being specific, a good prompt provides context. Context is the background information the AI needs to understand your request fully. Without it, the AI might misinterpret what you're asking for.

Imagine you ask an AI to "write a summary of 'The Great Gatsby'." That's a decent start. But what if you're a high school student writing an essay? Adding context will get you a much more useful response.

A better prompt: "Write a one-paragraph summary of 'The Great Gatsby' focusing on the theme of the American Dream. The summary should be easy for a 10th-grade student to understand."

This prompt gives the AI a target audience (10th-grade student) and a specific focus (the theme of the American Dream). This context guides the AI to produce a tailored, relevant response, not just a generic plot summary.

Phrasing and Format

How you phrase your prompt matters. Small changes in wording can lead to very different outputs. Using action verbs like "create," "summarize," "compare," or "explain" tells the AI exactly what kind of task to perform.

You can also guide the format of the response. Do you want a paragraph, a bulleted list, or a table? Just ask for it. The more you guide the AI, the closer the result will be to what you have in mind.

Vague PromptBetter Prompt
Tell me about electric cars.Compare the pros and cons of electric cars versus gasoline cars in a table.
Write something about marketing.Create a bulleted list of three effective digital marketing strategies for a new coffee shop.
What's Python?Explain the programming language Python to a beginner with no coding experience.

Getting good at prompting is a skill you develop with practice. It's a conversation. You give an instruction, see the result, and then refine your next prompt to get closer to your goal. Now let's review what we've covered.

Quiz Questions 1/4

What is the primary factor that determines the quality of an AI model's response?

Quiz Questions 2/4

You want to get a recipe from an AI. Which of the following is the most effective prompt?

Mastering these basics will help you communicate more effectively with AI tools and get better, more useful results.