No history yet

Introduction to Prompt Engineering

How to Talk to AI

When you interact with a large language model (LLM) like ChatGPT or Gemini, your starting point is always a prompt. A prompt is simply the instruction, question, or piece of text you give the AI to get it to do something. It could be as simple as "What's the capital of France?" or as complex as a request to write a poem in a specific style.

Think of a prompt as the starting line of a conversation. Where you start often determines where you end up.

But not all prompts are created equal. Getting a truly useful or creative response from an AI requires more than just asking a question. It requires skill. This skill has a name: prompt engineering.

Prompt Engineering

noun

The process of designing and refining the inputs given to an AI model to guide it toward a more accurate, relevant, or desired output.

Imagine ordering coffee. You could walk up to the counter and just say "coffee." You'd get something, but it might not be what you wanted. Is it hot or iced? Black or with cream? Now imagine saying, "I'd like a medium iced latte with oat milk and one pump of vanilla syrup." You've engineered your request to get a precise result.

Prompt engineering is the same idea, but for AI. The quality of your input directly impacts the quality of the output.

Lesson image

From Vague to Valuable

A poorly crafted prompt leads to a generic, unhelpful, or even incorrect answer. The AI has to make guesses about what you really want. But a well-crafted prompt acts like a GPS, giving the AI clear directions to the exact information you're looking for.

Let's see the difference in action. Suppose you want the AI to help you write an email.

Weak PromptStrong Prompt
Write an email to my boss.Act as a project manager. Write a professional but friendly email to my boss, Sarah, updating her on the Project Phoenix launch. Mention that we've completed user testing and are on track for our Friday deadline. Ask if she has any questions.

The weak prompt is vague and leaves too much to interpretation. The strong prompt provides a role (project manager), context (Project Phoenix), key details (testing complete, Friday deadline), and a specific call to action (ask for questions). The result will be far more useful and require less editing.

Throughout this course, we'll break down the elements that make a prompt effective. You'll learn how to add context, define a persona for the AI, specify the format of the output, and use techniques to refine your results. This foundational knowledge is the first step toward mastering your interactions with AI.

Let's check your understanding of these core concepts.

Quiz Questions 1/4

In the context of AI, what is a "prompt"?

Quiz Questions 2/4

The skill of crafting effective inputs to get a precise, high-quality output from an AI is known as:

With these basics in mind, you're ready to start building more effective prompts.