Skip to main content

Advanced Prompting

Once you’ve mastered the basics, these techniques help you build more sophisticated features and complex apps.

Multi-Step Requests

For complex features, break them into logical steps but communicate them together.

Structure

Example: Building a Checkout Flow


Feature Specifications

For detailed features, provide a mini specification.

Template

Example: User Profile Feature


System Prompts

For consistent behavior across features, establish patterns upfront.

Setting App-Wide Patterns

Now when you request features, the AI follows these patterns automatically.

Comparative Prompting

Reference existing patterns in your app.

Same Style

Similar But Different

Opposite/Contrasting


Conditional Features

Describe features that behave differently in different situations.

Based on User State

Based on Device/Context


Animation Specifications

For complex animations, be precise.

Sequence Animations

Interactive Animations


Complex Data Relationships

For apps with related data, explain the relationships.

Entity Relationships


Error Handling Patterns

Describe how errors should be handled app-wide.

Comprehensive Error Handling


Integration Specifications

For external service integrations, be thorough.

API Integration


Refactoring Requests

For improving existing code:

Code Organization

Performance Optimization


Testing Scenarios

Ask for specific scenarios to test:

Architecture Decisions

For complex apps, make architecture explicit:

Pro Tips

Tip 1: Progressive Detail

Start high-level, then drill down:

Tip 2: Reference Real Apps

Tip 3: Constraint-Based Design


Next Steps

Common Scenarios

Solutions for specific situations

Prompt Workshop

Fundamental prompting techniques