0Pricing
AI Prompt Engineering · Lesson

Basic Prompting Techniques

Practice foundational methods like clear instructions, delimiters, and specifying desired output length or style.

Basic Prompting Techniques is a free AI Prompt Engineering lesson on CoddyKit — lesson 3 of 3. You can read the complete lesson below for free — then practise it hands-on in the browser with a built-in code editor and a 24/7 AI tutor. It is part of the AI Prompt Engineering learning path, one of 3 lessons in the course, and your progress syncs across the web and the CoddyKit app.

Welcome to Basic Prompting!

In this lesson, we'll dive into the fundamental techniques that make your prompts effective. Think of these as your building blocks for clear communication with Large Language Models (LLMs).

We'll cover how to give clear instructions, use special characters called delimiters, and control the style and length of the LLM's response.

Clear Instructions are Key

The most important rule in prompt engineering is to be crystal clear. LLMs are powerful, but they follow your instructions literally. Ambiguity can lead to unexpected or incorrect outputs.

  • Be direct: State exactly what you want.
  • Avoid jargon: Use simple language unless a specific term is required.
  • Assume nothing: Don't expect the LLM to guess your intent.

Specificity in Action

Let's look at an example. A vague instruction might get you a generic response. A precise instruction guides the LLM to exactly what you need.

Vague Prompt: Write about dogs.
Precise Prompt: Write a 3-sentence fun fact about Golden Retrievers, focusing on their friendly nature.

Notice how the second prompt specifies the topic, length, and focus.

Crafting Good Instructions

When writing instructions, consider these points to make them effective:

  • Task: What should the LLM do (e.g., summarize, explain, generate)?
  • Subject: What is the task about?
  • Constraints: Any limitations (e.g., length, tone, format)?
  • Goal: What is the desired outcome?

The more detail you provide, the better the LLM can meet your expectations.

Introducing Delimiters

Sometimes your prompt needs different sections: instructions, input text, examples, etc. Delimiters are special characters or tags that help the LLM understand where one section ends and another begins.

They prevent the LLM from getting confused and misinterpreting your request, especially when you provide a lot of information.

Common Delimiter Types

Here are some commonly used delimiters:

  • Triple backticks: ```
  • Triple quotes: """
  • XML-style tags: <example>, </example>
  • Hashtags: ###

Choose one that clearly separates your content, often matching the format of your input data.

Delimiters in Practice

Let's see how triple backticks can isolate the text you want the LLM to process from your instructions:

Summarize the following text in one sentence:
```The sun was setting, casting long shadows across the quiet meadow. A gentle breeze rustled through the tall grass, and the distant sound of crickets filled the air.```

The LLM now clearly knows which part is the instruction and which is the text to summarize.

Controlling Output Style

You can also instruct the LLM on how its output should be presented. This includes things like:

  • Tone: Formal, casual, humorous, professional.
  • Format: Bullet points, numbered list, paragraph, JSON.
  • Style: Blog post, email, poem, news article.

Being explicit about style helps achieve the desired aesthetic and purpose for your generated content.

Setting Length Limits

For many tasks, the length of the response is important. You can specify this directly in your prompt:

  • "Summarize in three sentences."
  • "Provide a response no longer than 50 words."
  • "List 5 key points."

This helps keep responses concise and focused, or comprehensive when needed, preventing overly long or short outputs.

Prompting Essentials Quiz

It's time for a quick check on what you've learned about basic prompting techniques.

Mastering Basic Prompts

Great job! You've learned the essentials of basic prompt engineering:

  • Clear Instructions: Be specific and direct in your requests.
  • Delimiters: Use characters like ``` to clearly separate sections of your prompt.
  • Output Control: Specify desired length and style for the LLM's response.

These techniques are foundational for effective communication with LLMs. In the next lesson, we'll explore understanding LLM capabilities, which will help you set realistic expectations for your prompts.

Frequently asked questions

Is the “Basic Prompting Techniques” lesson free?

Yes — the full text of “Basic Prompting Techniques” is free to read here on the web, and the AI Prompt Engineering course includes 3 lessons in total. To practise it interactively (a built-in code editor and a 24/7 AI tutor) and unlock the rest of the AI Prompt Engineering course, upgrade to CoddyKit PRO.

What will I learn in “Basic Prompting Techniques”?

Practice foundational methods like clear instructions, delimiters, and specifying desired output length or style. You practise AI Prompt Engineering with hands-on code you run directly in the browser, and a 24/7 AI tutor answers your questions as you work through the lesson.

Do I need any experience to start AI Prompt Engineering?

No prior experience is required. AI Prompt Engineering on CoddyKit is structured for beginners through advanced learners; this is — lesson 3 of 3, so you can start here or from the beginning and move at your own pace.

How long does the “Basic Prompting Techniques” lesson take?

Most CoddyKit lessons take about 5–10 minutes. Each one is bite-sized and interactive, so you make steady progress and pick up exactly where you left off across the web and the app.

Can I write and run code in this AI Prompt Engineering lesson?

Yes. Every AI Prompt Engineering lesson includes a built-in code editor, so you write and run real code right in your browser and get instant AI feedback — no local setup required.

All lessons in this course

  1. What is Prompt Engineering?
  2. Anatomy of an Effective Prompt
  3. Basic Prompting Techniques
← Back to AI Prompt Engineering