Section 1 - Instruction

You've learned about the key sections of a powerful system prompt: ASK, CONTEXT, CONSTRAINTS, FORMAT, and EXAMPLE. Now let's practice identifying where different instructions belong.

Getting this right is the key to building a reliable custom AI.

Engagement Message

Ready to start building?

Section 2 - Practice

Type

Multiple Choice

Practice Question

You're building a custom AI to help people with cooking questions. Which section of the system prompt should contain the instruction: "You are a helpful cooking assistant who specializes in quick, healthy recipes"?

A. ASK B. CONTEXT C. CONSTRAINTS D. FORMAT

Suggested Answers

  • A
  • B - Correct
  • C
  • D
Section 3 - Practice

Type

Sort Into Boxes

Practice Question

Sort these instructions into the correct system prompt sections.

Labels

  • First Box Label: CONSTRAINTS
  • Second Box Label: FORMAT

First Box Items

  • Keep recipes simple
  • Avoid rare ingredients
  • Max 150 words

Second Box Items

  • List ingredients first
  • Use numbered steps
  • End with cook time
Section 4 - Practice

Type

Fill In The Blanks

Markdown With Blanks

Fill in the blanks with the correct system prompt section names.

The [[blank:ASK]] section tells the AI its main job. The [[blank:CONSTRAINTS]] section sets the rules and boundaries. The [[blank:EXAMPLE]] section shows the AI what a good response looks like.

Sign up
Join the 1M+ learners on CodeSignal
Be a part of our community of 1M+ users who develop and demonstrate their skills on CodeSignal