Crafting AI Prompts Framework

CRAFTING AI prompts framework IPE

Last updated: Aug 7, 2026

The CRAFTING AI prompts framework is designed to empower users in effectively utilizing various large language models (LLMs) like ChatGPT, Microsoft Copilot, and Gemini for diverse writing and engagement tasks while ensuring ethical and responsible use. It consists of three essential parts CRAFT, ING, and AI.
Let's explore each component in detail:

CRAFT: The crafting phase focuses on providing specific details and context to enhance response quality. By framing prompts using natural language, the LLM better understands intentions, context, and nuances, resulting in a more conversational and human-like interaction. Additionally, specify writing style, acting roles, format requirements, and task objectives to guide the LLM accurately.

ING: The validation phase promotes interactive dialogue and integrates legal, security, and privacy considerations. Through fostering back-and-forth exchanges, refining inquiries, and collaborating with the LLM, you ensure that the generated responses align with ethical and responsible practices. By being mindful of non-disclosure agreements, data security, and privacy guidelines, your prompts maintain compliance, protect sensitive information, and establish clear goals. This approach enables you to derive meaningful insights while upholding confidentiality and achieving desired outcomes.

AI: The enhancement phase emphasizes staying proactive and embracing new possibilities. Adapt your approach by validating responses, making necessary adjustments, and refining prompts based on initial results. By continuously improving your prompts, you maximize the potential of AI tools and generate the best possible outcomes.

By adhering to the CRAFTING AI prompts framework, you can effectively utilize the capabilities of LLMs like ChatGPT, Microsoft Copilot, and Gemini to improve your writing and enhance your overall engagement.

Let's delve into each aspect of the framework to gain a deeper understanding.



Crafting phase

In the Crafting Phase, we will focus on writing the prompt (the message we send to the language model). To create an effective prompt, we need to consider a few key factors. First, define your goal: what do you want to achieve? It’s important to remember not to include any confidential or personal data. Also, it helps to build reference points in your prompt so you can navigate back and forth during your conversation.

Before you start, take time to plan your prompt carefully and clarify your objective. Ask yourself: What is the real goal here? For example, if a student is writing an essay for a course, is the true goal to write the essay, or simply to get a high grade (or worse, to mislead a teacher, especially if the use of AI is prohibited)? The way you define your goal will have a significant impact on the outcome.

We will validate this in the Validation Phase, but doing it correctly upfront will save time and effort later on.

When crafting your prompts, keep in mind that the tool or model you're using might be influenced by the country or region it's from. Some countries have strict guidelines to reduce bias, and may be more positive about certain topics than others. To get an overview of the tools and their data storage, check the tool page! This might influence how you want to structure your prompt.

Another factor to keep in mind is the
language you choose for your prompt. While English is the most common choice—making prompts easy to share, standardize, and maintain—the language you prompt in subtly shapes how the model behaves and responds. Research from Anthropic shows that AI models often display distinct characteristics depending on the language used. For example, Claude leans more toward caution and depth in English, rigor in Russian, warmth in Hindi, and candor in Dutch. Depending on your objective, choosing your language deliberately can help align the model’s tone, perspective, and output with what you actually need.


C - Context

For LLMs to fully grasp the context, it is essential to provide specific details using natural language. The more precise and detailed your information, the better the response will be. It is crucial to have a clear understanding of the scope and effectively communicate it to the LLM. Framing prompts in natural language is vital for achieving a more conversational and human-like response. By using natural language, the LLM can better understand your intentions, context, and nuances. This facilitates a smoother and more intuitive interaction, creating a prompt that feels like a genuine conversation.

In addition to general context, it is important to provide clear descriptions of examples, keywords, deadlines, citations, quotes, arguments, or counterarguments that should be considered. If for example, specific laws need to be taken into account in the generated output, be sure to mention them in your prompt. This ensures that the LLM incorporates relevant information and contributes to high-quality responses. Providing such contextual details enhances the overall user experience and ensures that the LLM generates outputs aligned with your expectations.

If you are using a tool or environment where references to specific sources can be added, think about documents, books, articles, or web pages that should be specified, and clearly state why they are relevant to the context. For example, you can mention relevant scientific articles, books, or web pages that you believe should be taken into account when generating content. Or, if you are a programmer, you can mention specific classes, functions, or methods that you want the tool to be aware of when generating code. By providing such details, you ensure that the tool can generate responses informed by relevant sources and consider multiple perspectives.

R - Register (Writing Style)

When formulating prompts, it is important to specify the desired writing style or register, taking into account factors such as formality, tone, vocabulary, and grammar. This is especially crucial when there are specific proficiency requirements or when attempting to mimic a particular writing style. For example, you can include phrases like "as a student with an English level [B1]" to inform the LLM about your language proficiency. It is also possible to provide writing samples or request considerations for language proficiency. Clearly indicate whether a formal or informal tone is preferred. Additionally, describe whether the use of specific terminologies or analogies is permitted or not, and specify the language in which the response should be provided. By providing such details, the LLM will generate responses accordingly.

Regarding readability, you have the option to request outputs in a conversational tone. Simply specify: "Write the output as if you're talking to a friend." This approach helps in achieving a more relatable and engaging delivery of information.

However, keep in mind that the register can be influenced by cultural differences present in the training data, which can impact the way communication is perceived. For example, the way you talk to a friend might differ significantly from someone in another country, where conversations could be much more animated due to cultural differences. Understanding the origin of the training data can provide insights into how detailed you should be when describing your preferred register. As always, the more details you provide, the better the generated responses will align with your expectations.

A - Acting Role

Decide on the persona or role you want the LLM to take on, tailored to your specific goal. For example, if you're crafting a LinkedIn post, ask the LLM to act as a LinkedIn content specialist who excels at writing compelling hooks on your topic. This kind of framing helps steer the LLM's responses in the right direction by focusing on the task, not on general popularity or experience levels.

Be mindful that descriptors like "years of expertise" or "large following" can influence the tone or style of the output — but they aren’t required. What matters most is clearly defining the kind of perspective or expertise needed to match your intent.

And again, it is important to consider the cultural influences present in the training data of the model. For example, if the model is predominantly trained on data from a specific country, such as the United States, the output may reflect cultural nuances from that region. ChatGPT, for instance, is primarily trained on American data, which can result in a tone that is highly enthusiastic and may not align with your personal style or objectives. To ensure the content is suitable for your intended audience, be explicit about the desired tone and cultural context. By acknowledging potential biases, you can provide clearer instructions to mitigate them and achieve more precise and effective results.

F - Format

Clearly state any specific formatting requirements you have for the output. For instance, you can specify if you'd like the content to be organized in a table format, include hashtags, bullet points, graphs, templates, or emoticons. Providing specific formatting instructions will help ensure that the generated output meets your desired structure and readability preferences.

When you require specific outputs, such as files or code, providing clear instructions is crucial. For example, if you desire an interactive map of your country that highlights all your office locations in HTML, specify that you need it in interactive HTML format. Additionally, request a download link for convenient access. Also, clearly mention any specific colors or formatting requirements you want the model to incorporate.

Large Language Models (LLMs) are language-based systems designed to excel at understanding and generating human-like text, but they are not inherently optimized for precise numerical calculations and might fail due to their prediction-based nature. Therefore, it’s better to ask the model to generate (and execute) code in a programming language like Python, where it excels. By leveraging its strength in text-to-code generation, the LLM can create accurate scripts for calculations and return correct results. This approach combines the model’s linguistic capabilities with the computational precision of programming, ensuring both reliability and effectiveness in solving numerical tasks. Make sure to clearly specify the programming language you want the model to use in such cases.

It is also important to think about how you will reference parts of the generated output later on. For example, if you're using a table, start each row with a unique ID so you can easily refer back to those IDs in subsequent prompts. This will help ensure continuity and make the conversation smoother and more efficient.

Finally, utilizing parameters can be highly valuable as they enable customization of the generated output in the LLM. These adjustable settings allow you to fine-tune various aspects of the model's behavior. For example, you can leverage the "temp=" parameter to control the temperature and adjust the level of creativity in the output. Parameters provide the flexibility to tailor the characteristics of the generated responses to your specific needs. If you would like to explore the complete list of parameters available in the LLM, simply ask, "Which parameters does the LLM have?" It's important to note that while you can adjust these parameters when using OpenAI's API, there may be specific constraints or limitations depending on the platform or implementation you are using.

T - Task

Clearly state the task or purpose of the prompt. Use words such as "craft," "make," "compose," "create," "summarize," "translate," "generate," "revise," "review," or "(re)-write." For example, ask the LLM to compose a LinkedIn post on a specific topic or revise this article. Ask the LLM to summarize your PDF file and you can also provide a clear call to action. If you're facing a complex task with multiple components, consider dividing it into simpler, individual tasks. The best practice is to limit your prompt to one task at a time. This approach allows you to maintain focus and achieve high-quality results by addressing one aspect at a time. You can use the interactive (I) approach for your follow-up tasks.

In routing models, you can specify the level of reasoning the model should use to achieve better outcomes. Clearly define how far it should reason and where it should stop. Setting these boundaries will help you get more consistent results.

Also, please note that if Generative AI tools use tools (in the background), you can also trigger them via your prompt. Specify what the AI should do; for example: "First search the web" (or be even more specific regarding a tool-calling method if it is documented).

Best practice for the <task> component is to organize the different aspects within the component by structuring them in inner XML tags. For example if you want to set constraints you can setup the constaints within the task component like:

<task>
  <constraints></constraints>
</task>

Constraints should always support a task. A task tells the model what to accomplish, while constraints guide how the task should be performed. Without a task, constraints have no purpose; without constraints, the task may be executed in an unintended way. Therefore, define constraints together with the task they apply to.

When coding, for example, best practice is to create a step-by-step process of what the model should perform using markdown ([ ]) so a model can "sign it off".
<task>
  [ ] First task item
  [ ] Second task item
</task>

Structure this within the task component to ensure the model can follow each step. An expert strategy here is to add a validation step at the end of the task component. This validation should guide the model to verify that the task was performed correctly.
When using loops, make sure to always add an end statement. When should it stop?

Furthermore, if not already addressed in preceding instructions, take a moment to reflect on or specify your intended audience. Understanding who you are targeting is crucial for tailoring the content to meet their expectations and interests effectively. Additionally, if your prompt includes extensive context or additional information, make sure to clearly delineate the task. Specify it by starting with: "Your task is..." This clarity ensures that the main objective stands out, guiding the focus directly to what needs to be accomplished. Remember to align the task with your goal as specified in the goal-driven section. Clearly articulate how the task supports your intended outcome. This helps in targeting the model towards achieving the desired result.

If there are any restrictions relevant to the task, specify them clearly. For instance, if there are topics, styles, or perspectives that should be avoided or emphasized, make sure to exclude things that might not be of interest. However, keep these restrictions limited, and primarily focus on guiding the LLM on what it should do.

If you want the LLM to strictly adhere to your instructions without deviation, conclude your prompt with "Strictly follow these instructions." Conversely, if you wish to disregard any previous instructions, include the word "stop" followed by the action you want to halt. If you want to start with a clean slate and reset any previous instructions, simply prompt: "Reset previous instructions and start fresh." (or start a new chat). This will enable you to provide a new task or request without any carryover from prior instructions. To minimize the chance of fabricated responses, it's also important to prompt clearly. Include in your task "If you don't know the answer, respond with: 'I don't know the answer.'". And finally, if you want to break it up, use "Take a deep breath and work on it step by step."


Validation phase

During the Crafting Phase, we focused on writing the prompt. Now, in the Validation Phase, we will first evaluate the prompt itself. We will check if the prompt is interactive—does it include reference points? We’ll also ensure that no confidential data is shared and confirm that the prompt is goal-driven, ensuring it aligns with the objective we set at the beginning.

Once the prompt is validated, we will move on to evaluate the output. After confirming that the prompt is goal-driven, we’ll validate whether the output meets our desired goal and provides the results we expect.


I - Interactive

Crafting prompts that promote interactive dialogue is essential for fostering dynamic and engaging conversations with the LLM. This encourages a back-and-forth exchange and collaborative problem-solving, enabling you to explore ideas, seek clarification, and refine your inquiries. The interactive nature of prompts enhances the overall experience, helping derive meaningful insights from the LLM's responses, which becomes particularly valuable when dealing with large amounts of data. Reflection, a key aspect of this interactive approach, involves designing prompts that explicitly reference and build upon previous input or context. By incorporating reflection, you empower the LLM to respond coherently and contextually, demonstrating awareness of the conversation flow, addressing specific points, and generating interactive and dynamic responses. Leveraging reflection in prompts facilitates a more engaging experience, fostering deeper interaction and improving the quality of generated prompts.

N - Non-disclosure

When crafting prompts, it is crucial to incorporate legal, security, and privacy considerations. Protect sensitive information and ensure compliance with non-disclosure agreements (NDAs). Specify any constraints or guidelines related to data security and privacy to maintain ethical practices. It's important to execute this validation step before submitting your prompt. Once you send it to an AI tool, it may be saved and exposed to the internet, so exercise caution and discretion. Safeguarding confidentiality is paramount in this process.

G - Goal-driven

Clearly defining your goals and objectives in your prompts is essential for guiding the LLM to provide accurate and relevant answers. By specifying your desired outcomes and indicating the specific information or insights you are seeking, the LLM can better align its responses to meet your expectations. This goal-driven approach ensures that the LLM understands your intent and focuses its responses to address your specific needs effectively.

When designing prompts, it’s vital to evaluate not only the structure of your prompts but also the underlying biases or cultural nuances embedded within the AI model or tool you are using. Models may have built-in guardrails, regulatory influences, or cultural framings that shape their responses. For example, specific models might emphasize certain perspectives or provide outputs aligned with the norms or priorities of the regions or organizations that developed them.

To ensure goal alignment, consider how these factors might influence the outcome and validate prompts by testing them across various contexts. This could involve analyzing the results for fairness, inclusivity, or alignment with your expectations. Additionally, consult with subject matter experts or explore alternative models if necessary to cross-check and mitigate these influences. A thoughtful approach ensures more accurate, reliable, and representative results.

Before sending the prompt, it’s important to first validate whether the prompt itself is structured in a way that will help you reach your goal. This involves checking if the prompt is clear, complete, and aligned with the desired outcome. Only after this validation of the input should you proceed with sending the prompt.

If you validated the prompt, you can send your prompt.

Once the prompt is sent, the next step is to validate whether the outcome meets the expected results (output). Ensure that the response aligns with your goal and provides accurate, factual information—especially when dealing with legal documents or other contexts where precision is crucial. Additionally, evaluate the response for ethical considerations, such as fairness, inclusivity, and the avoidance of harmful stereotypes or biases. If necessary, you can adjust formatting parameters (F) or reframe the prompt to further refine the output and improve its relevance, accuracy, and ethical alignment.


Enhancement phase

As AI tools evolve rapidly, it's important to adapt and improve your strategy and prompts. The "AI" aspect of the framework reminds you to refine your output by asking follow-up questions and adapting your approach based on the initial results.


AI - Adapt and Improve

If the output we validated during the Validation Phase is not correct, the next step is to iterate back to the Crafting Phase. Use the components from that phase (that are relevant to review) to refine and enhance the prompt, ensuring the output better aligns with your goal. This iterative process is key to improving the results.

If the output is correct, it's time to adapt and improve your overall strategy. Start by identifying any reusable components from the prompt that can be applied to future prompts or shared within your organization. Saving and sharing these components not only speeds up productivity but also fosters a more sustainable approach by reducing redundant work and streamlining processes across teams.

Continuously improving your prompts and embracing new possibilities is essential for generating optimal outcomes. Stay proactive and adaptable to ensure ongoing success when working with these powerful tools.

Framework overview

It is not necessary to format your prompt following each step individually, but it is important to include all the elements of the framework within your prompt. A valid prompt that encompasses all parts of the framework could be:

Example of a 'basic prompt'
user >
Acting as a [role], perform [task], in [format requirements], use [register/writing style] and use this context: [context].

If you prefer using a template or employing them as components (refer to the architecture section), this approach is also viable and will yield the same results:

Example of 'template prompt'
user >
## Context [Context] ## Register [Register] ## Acting role [Acting role] ## Format [Format] ## Task [Task]

When working with more than one register, acting role, format, or task component, it is highly beneficial to organize and format them using XML-style tags. This method provides clarity, structure, and scalability, making it especially effective for complex or multi-layered tasks. This is our preferred approach.

Example of 'prompt with Prompt Components' (preferred)
user >
<register>[register]</register> <acting_role>[acting role]</acting_role> <format>[format]</format> <task>[task]</task> <context>[Your context dump here]</context>

Please note: for certain use cases, it may be better to place the 'context' at the end of your prompt. Refer to the strategies section for more information. The order of the components does not matter.

By incorporating these components in your prompt, you provide the LLM with the necessary instructions and guidance to generate a response that aligns with your specific requirements.

By following these expert techniques, you can craft prompts that elicit remarkable responses from the LLM, taking your writing and engagement to new heights. If you're looking for specific examples for each element in this framework, you can copy and paste the text describing the framework to the LLM and ask for examples directly from the AI. This way, you can explore and experience the examples firsthand, enabling you to understand how to apply the framework effectively. So go ahead, interact with the LLM and discover the power of this framework in generating remarkable responses!

Please be aware that this is an iterative process, which means that after the enhancement phase, you will return to the crafting phase. You can adapt and improve the generated output by writing another prompt , utilizing the interactive (i) approach to refine it towards your desired goal (g), while considering the non-disclosure (n) constraints. In your follow-up prompt, you can build upon the previous output without reiterating all of the CRAFT elements. Instead, concentrate on the elements that will improve and contribute to the output's enhancement (AI).

Released: May 22, 2023

CAIP 1 · IPE

Put your knowledge to the test

Earn a shareable certificate that demonstrates your skills.

Get Certified

The three phases

CRAFT

Craft (write) the prompt with the following elements: Context, Register, Acting Role, Format, and Task.

ING

Validate the prompt and ensure it maintains an interactive approach. Keep in mind the importance of non-disclosure and staying goal-driven throughout the process.

AI

Continuously assess and refine the output based on the prompts output to improve the overall quality.

Terms of Service

Before accessing the "Prompt Injections" examples on our website, please read and agree to the following terms of service:

  1. Educational Purpose Only: The "Prompt Injections" examples provided are intended solely for educational purposes. They are meant to help you understand how prompt injections work and how to defend yourself against them.
  2. No Misuse: You agree not to use the provided examples for any malicious or unethical activities. This includes, but is not limited to, using prompt injections to manipulate, deceive, or harm others.
  3. Responsible Use: By accessing these examples, you confirm that your intention is to learn about the risks associated with prompt injections and to enhance your ability to safeguard against them.
  4. Legal Compliance: You agree to comply with all applicable laws and regulations while using the information provided on this website.
  5. No Liability: We are not responsible for any misuse of the information provided on our website. Users are solely responsible for their actions and any consequences that may arise from the use of this information.

By clicking "I agree," you accept these terms for this documentation visit. "I agree & save" remembers your choice for future visits in this browser. If you decline, the examples remain hidden.