> ## Documentation Index
> Fetch the complete documentation index at: https://docs.demiurg.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Prompt Examples

> Effective prompts to get the best results from your AI agents

## Craft better prompts

Well-designed prompts help you get more precise and useful responses from your AI agents.

## General prompt patterns

<AccordionGroup>
  <Accordion title="Basic structure" icon="cube" defaultOpen>
    An effective prompt typically includes:

    ```
    [Task/Request] + [Specifics] + [Format/Output preferences]
    ```

    **Example:**
    "Summarize this quarterly report, focusing on revenue trends and customer acquisition metrics. Present your analysis with bullet points for key findings and a short paragraph for implications."
  </Accordion>

  <Accordion title="Context setting" icon="mountain-sun">
    Provide relevant background information:

    ```
    [Situation/Context] + [Task/Request] + [Purpose]
    ```

    **Example:**
    "I'm preparing for a job interview at a financial technology company for a product manager role. Help me prepare 5-7 questions I could ask the interviewer that demonstrate my knowledge of the fintech industry and my interest in their business model."
  </Accordion>

  <Accordion title="Role assignment" icon="user-tie">
    Specify how the agent should approach the task:

    ```
    Act as [role/expert] and [task/request]
    ```

    **Example:**
    "Act as an experienced copywriter specializing in email campaigns and review this draft newsletter. Suggest improvements to increase open rates and engagement."
  </Accordion>

  <Accordion title="Step-by-step guidance" icon="list-check">
    Request detailed walkthrough:

    ```
    Guide me through [process] step by step, explaining [specific aspects]
    ```

    **Example:**
    "Guide me through creating a basic data visualization in Python step by step, explaining the purpose of each line of code. I'm a beginner with programming but understand basic concepts."
  </Accordion>
</AccordionGroup>

## Task-specific examples

<Tabs>
  <Tab title="Research">
    <div className="mt-4">
      **Topic exploration:**

      ```
      Provide an overview of [topic], covering:
      1. Key concepts and definitions
      2. Historical development
      3. Current state of research
      4. Major debates or unsolved questions
      5. Practical applications
      ```

      **Comparative analysis:**

      ```
      Compare and contrast [A] and [B] in terms of:
      - Core principles
      - Strengths and limitations
      - Use cases
      - Implementation considerations
      ```

      **Academic literature:**

      ```
      Summarize the current research on [topic], highlighting:
      - Major findings from the last 3-5 years
      - Methodological approaches
      - Gaps in the literature
      - Directions for future research
      ```
    </div>
  </Tab>

  <Tab title="Writing">
    <div className="mt-4">
      **Content outline:**

      ```
      Create a detailed outline for a [content type] about [topic] targeting [audience]. Include:
      - Suggested headline options
      - Key sections with bullet points for main ideas
      - Data points or examples to include
      - Call to action suggestions
      ```

      **Revision request:**

      ```
      Review this [content type] for:
      - Clarity and flow
      - Engagement and persuasiveness
      - Grammar and style consistency
      - Alignment with [specific goal]

      Suggest specific improvements rather than general comments.
      ```

      **Style adaptation:**

      ```
      Rewrite this content to match [brand/publication] style. Pay particular attention to:
      - Tone of voice
      - Sentence structure and length
      - Vocabulary choices
      - Formatting conventions
      ```
    </div>
  </Tab>

  <Tab title="Problem solving">
    <div className="mt-4">
      **Decision framework:**

      ```
      Help me make a decision about [choice] by:
      1. Listing key factors to consider
      2. Analyzing pros and cons of each option
      3. Identifying potential risks and how to mitigate them
      4. Suggesting evaluation criteria
      5. Outlining next steps regardless of which option I choose
      ```

      **Troubleshooting:**

      ```
      I'm having an issue with [problem]. Symptoms include:
      - [symptom 1]
      - [symptom 2]

      I've already tried:
      - [attempted solution 1]
      - [attempted solution 2]

      Help me diagnose the root cause and suggest solutions.
      ```

      **Process optimization:**

      ```
      Review this workflow for [task]:
      [current process]

      Suggest improvements to make it more efficient while maintaining quality, considering:
      - Potential bottlenecks
      - Redundant steps
      - Automation opportunities
      - Resource optimization
      ```
    </div>
  </Tab>

  <Tab title="Creative">
    <div className="mt-4">
      **Ideation prompt:**

      ```
      Generate 10 unique ideas for [project/content] with the theme of [theme]. For each idea, provide:
      - A compelling title/concept
      - A brief description (2-3 sentences)
      - What makes this idea stand out

      Aim for a mix of conventional and unexpected approaches.
      ```

      **Character development:**

      ```
      Help me develop a character for [story/game] with:
      - Background: [brief context]
      - Role in story: [function]

      Create their:
      - Personality traits and quirks
      - Motivations and goals
      - Key relationships
      - Internal and external conflicts
      - Character arc possibilities
      ```

      **Creative constraints:**

      ```
      Create a [creative work] that:
      - Is set in [setting/context]
      - Includes [required elements]
      - Avoids [elements to exclude]
      - Follows the principle of [concept/theme]
      - Has a [tone/mood] atmosphere
      ```
    </div>
  </Tab>
</Tabs>

## Format-specific prompts

<CardGroup cols={2}>
  <Card title="Data analysis" icon="chart-line">
    ```
    Analyze this dataset of [description]:
    [data or file]

    Please provide:
    1. Summary statistics for key variables
    2. Identification of notable patterns or outliers
    3. Visualization recommendations
    4. Potential correlations worth exploring
    5. Limitations of this analysis
    ```
  </Card>

  <Card title="Code generation" icon="code">
    ```
    Write a function in [language] that:
    - Takes inputs: [parameters]
    - Performs: [functionality]
    - Returns: [output]
    - Handles these edge cases: [exceptions]

    Include comments explaining the approach and any non-obvious parts.
    ```
  </Card>

  <Card title="Learning materials" icon="graduation-cap">
    ```
    Create learning materials about [topic] for [audience level]:

    1. Key concept explanation with analogies
    2. Step-by-step tutorial for [specific task]
    3. Common misconceptions and clarifications
    4. Practice exercises with increasing difficulty
    5. Application examples in real-world contexts
    ```
  </Card>

  <Card title="Feedback formulation" icon="comment-dots">
    ```
    Help me provide constructive feedback on this [work]:
    [content]

    Structure the feedback as:
    - Strengths: What works well
    - Areas for improvement: Specific suggestions
    - Questions: Points to clarify
    - Next steps: Actionable recommendations

    The tone should be supportive but honest.
    ```
  </Card>
</CardGroup>

## Refining responses

If you're not satisfied with an initial response, try these follow-up prompts:

| When you need         | Try asking                                                                |
| --------------------- | ------------------------------------------------------------------------- |
| More depth            | "Could you expand on \[specific point] with more detail?"                 |
| Simplification        | "Please explain that more simply, as if to someone new to the subject."   |
| Different perspective | "How would someone with \[different viewpoint/background] approach this?" |
| Practical application | "Could you provide specific examples of how to apply this in \[context]?" |
| Evidence              | "What data or research supports these conclusions?"                       |
| Alternatives          | "What are some alternative approaches or interpretations?"                |

<Tip>
  Instead of starting over with a new prompt, build on the conversation by refining your request iteratively.
</Tip>

## Next steps

<Card title="Productivity Hacks" icon="rocket" href="/tips/productivity-hacks">
  Discover techniques to streamline your agent workflows
</Card>
