Section 1 - Instruction

You've built custom AI assistants, but are they truly effective? The secret lies in writing clear system prompts using a structured approach.

Great system prompts follow a simple format that ensures your AI understands exactly what to do.

Engagement Message

Have you noticed your custom AI sometimes misunderstanding what you want it to focus on?

Section 2 - Instruction

Start every system prompt with a section called # ASK - this tells your AI exactly what task you need it to perform.

Be specific and actionable. Instead of "help with writing," write "Help me create weekly meal plans that use ingredients I already have at home and fit my dietary preferences."

Engagement Message

What's one specific task you'd want your custom AI to master perfectly?

Section 3 - Instruction

Next comes the # CONTEXT section - this gives your AI the background knowledge it needs to do the job right.

Include relevant background info, topic details, intended users, and any important context. Think of it as briefing a helpful assistant.

Engagement Message

What context would be crucial for an AI helping with your specific needs?

Section 4 - Instruction

Also you usually want to add a # CONSTRAINTS section to set boundaries and rules your AI must follow. This prevents mistakes and ensures consistent communication style.

Include tone requirements, what topics to avoid, length limits, and any guidelines. Clear guardrails create better results.

Engagement Message

What constraints would be non-negotiable for AI representing you?

Section 5 - Instruction

Use # FORMAT section to specify exactly how you want the output structured. Be precise about length, sections, bullet points, or templates.

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