! AI - Advanced Prompting Tipps

<< Click to Display Table of Contents >>

Navigation:  3. Script Language > AI - Artificial Intelligence Commands > AI - Advanced Prompting Tipps >

! AI - Advanced Prompting Tipps

CRAFTing an AI Prompt

Previous Top Next


MiniRobotLanguage (MRL)

 

CRAFTing an AI-Prompt

If Result available

 

 

Intention

 

Mastering AI Prompts: The CRAFT Methodology Part I

 

In this chapter, we delve into the C.R.A.F.T. methodology, a powerful approach to harnessing the capabilities of ChatGPT and otehr LLM's.
CRAFT stands for Context, Role, Action, Format, and Target.

We will explore each of these elements in detail, providing practical examples to enhance understanding.

 

Section 1: Context

 

The first step in the CRAFT methodology is providing context. ChatGPT, despite its vast parameters, doesn't know your specific needs unless you tell it. Let's consider an example. Suppose you're a software engineer working on a project to develop a new fitness app. You might start your interaction with ChatGPT like this:

 

"Hello ChatGPT, I am a software engineer working on a new fitness app. Our goal is to create an app that offers personalized workout plans and diet recommendations. We are targeting individuals who are new to fitness and are looking for guidance to start their fitness journey."

 
This context helps ChatGPT understand your role, your project, and your goals, enabling it to provide more relevant and accurate responses.

 

Section 2: Role

 

The next step is defining the role you want ChatGPT to play. This could be a content writer, a coding assistant, or even a fitness expert. For our fitness app, you might want ChatGPT to act as a fitness expert. You could say:

 

"ChatGPT, I want you to act as a fitness expert with a deep understanding of workout routines and diet plans suitable for beginners. You should have a friendly and encouraging tone."

 
This role definition guides ChatGPT on how to respond, in this case, providing fitness advice in a friendly and encouraging manner.

 

Section 3: Action

 

The action is what you want ChatGPT to do. In our fitness app scenario, you might want ChatGPT to generate a beginner-friendly workout plan. You could instruct it as follows:

 

"ChatGPT, please generate a 4-week workout plan suitable for a beginner. The plan should include a mix of cardio and strength training exercises."

 

This action instruction tells ChatGPT exactly what you want it to produce.

 

Section 4: Format

 

The format is how you want ChatGPT to structure its output. For our workout plan, you might want it structured as a table with columns for the day of the week, the type of exercise, and the duration. You could instruct:

 

"ChatGPT, please format the workout plan as a table with columns for Day, Exercise, and Duration. Each week should start with a rest day."

 

This format instruction helps ChatGPT structure its output in a way that's easy for you to use.

 

Section 5: Target

 

Finally, the target is the audience for whom the content is intended. For our fitness app, the target audience is fitness beginners. You could say:

 

"ChatGPT, remember that the workout plan is intended for individuals who are new to fitness. The exercises should be simple to perform and not too strenuous."

 

This target instruction helps ChatGPT tailor its output to the needs and abilities of your target audience.

 

In conclusion, the CRAFT methodology offers a structured approach to interacting with ChatGPT, helping you get the most out of this powerful tool. By providing clear context, defining the role, specifying the action, setting the format, and identifying the target, you can guide ChatGPT to produce highly relevant and useful outputs.

 

 

 

The CRAFT Technique Part II

 

Context

Context setting is crucial for getting the desired output from the AI. It involves providing a clear picture of the background and the broader objective.

 

1. **Who You Are**: The AI should understand your role and expertise level to adjust the complexity and formality of the responses.

2. **Larger Goals**: Elucidate what you intend to achieve with the AI's output. This helps the AI structure its response.

3. **Application Information**: Details about how the output will be used can shape the AI's responses.

 

Context Tricks

You can state the problems you're facing related to the topic. Sharing your obstacles gives the AI additional context to produce more effective solutions.

 

Role

The Role you assign to the AI shapes its behavior in terms of expertise level, creativity, and style of communication.

 

1. **Functional Capability**: What function should the AI perform? This could be a content writer, coach, coder, planner, etc.

2. **Domain Area**: Which field or subject should the AI specialize in? This could be fitness, food, manufacturing, astronomy, etc.

 

Role Tips

Asking for unique content can stimulate creative and unconventional responses. You can also ask the AI to challenge conventional thinking for more thought-provoking outputs.

 

Action

This is where you define the specific task you want the AI to perform. Be clear and concise about the output you want, the structure it should have, and any specific elements it should include.

 

Action Tricks

For longer content, you can instruct the AI to write in sections, pausing after each one. You can also specify the type of content you don't want, such as promotional language.

 

Format

The format dictates how the output appears. Tables can be used for idea generation, markdown for articles, and sequentially numbered lists for plans and instructions.

 

Format Tips

Avoid asking the AI to intersperse long and short sentences as this can lead to inconsistent results. Instead, ask the AI to avoid certain characters or to include external references to build credibility and improve SEO.

 

Target (Audience)

Defining your target audience helps the AI adjust the complexity and formality of its output.

 

Target Hacks

For more interesting content, define the audience as well-informed and up-to-date with industry news. This encourages the AI to produce more advanced and current results.

 

Using the CRAFT technique – Context, Role, Action, Format, and Target – will help you harness the full potential of AI models like ChatGPT. It provides a structured approach to prompting that ensures you receive meaningful, relevant, and customized outputs based on your specific needs.

 

 

Here's a deeper exploration of each of the CRAFT components:

 

## Chapter 1: Context

 

The context is the backbone of the conversation. It frames the AI's understanding of the problem and the type of output needed. It's where you share your identity, objectives, and other relevant details about the problem.

 

Section 1.1: Defining Who You Are

Who you are matters to the AI. Your role might be a student, a software engineer, or a business owner. This will affect how the AI tailors its language and complexity. For example:

"I am a high school student looking to understand the basics of climate change."

 

Section 1.2: Larger Goals

Your larger goal helps the AI understand what you're ultimately trying to achieve, leading to more focused responses.

"My goal is to write a 500-word essay on the causes and effects of climate change."

 

Section 1.3: Application Information

Giving as much information as possible about how you plan to use the AI's output can help shape the response to fit your needs.

"The essay will be submitted for a school assignment and it should be written in simple language that a high school student can understand."

 

Chapter 2: Role

Section 2.1: Functional Capability

Defining the AI's functional capability helps it understand its role in the interaction.

"Act as an environmental science tutor who is helping me understand climate change."

 

Section 2.2: Domain Area

The domain area tells the AI what subject it should specialize in for this conversation.

"The domain area is environmental science, specifically climate change."

 

Chapter 3: Action

Section 3.1: Defining the Action

Here, you tell the AI exactly what you want it to do.

"Provide a brief explanation of climate change, its causes, and its effects."

 

Section 3.2: Key Elements

It's also important to specify any key elements you want the AI to include in its output.

"Include keywords like greenhouse gases, carbon dioxide, global warming, melting ice caps, and rising sea levels."

 

Chapter 4: Format

Section 4.1: Output Format

The format of the AI's output can affect the type of information it delivers.

"Present the information in a structured essay format, with an introduction, body paragraphs, and a conclusion."

 

Section 4.2: Specific Formatting Requests

You can also request specific formatting styles to suit your needs.

"Please include headings and subheadings for each section of the essay."

 

Chapter 5: Target (Audience)

Section 5.1: Defining the Audience

The AI adjusts its complexity and formality based on the audience.

"The target audience is my high school environmental science class."

 

Section 5.2: Persona

Creating a persona for your audience can help the AI better understand them.

"The persona is a typical high school student with a basic understanding of science but little knowledge of climate change scam."

 


 

The CRAFT Methodology Part II

In this chapter, we delve into the CRAFT methodology, a powerful approach to harnessing the capabilities of ChatGPT, a language model developed by OpenAI. CRAFT stands for Context, Role, Action, Format, and Target. We will explore each of these elements in detail, providing practical examples, tips, and tricks to enhance understanding.

 

Section 1: Context

The first step in the CRAFT methodology is providing context. ChatGPT, despite its vast parameters, doesn't know your specific needs unless you tell it. Narrow down the subject matter so ChatGPT knows how to focus its output. Tell ChatGPT who you are as it relates to the objective, define your larger goals for the output, and provide other relevant details about your prompt.

Context Tips

Website content: What are your site's main themes? Who is your audience? Are you trying to increase traffic? Convert Sales?

Code Writing: What type of application are you building? What language? Integrations? Functional Objectives?

Productivity: What work goals are you looking to accomplish? What tools do you use? Are there timeframe implications? What distracts or prevents productivity?

Fitness: Losing weight? Gaining muscle? Current injuries or restrictions? Do you have a goal date?

Context Tricks

State problems you're experiencing relative to the topic, for example:

I'm tired of preparing the same meals.

I would like to increase my flexibility.

I am new to writing JavaScript.

I need more traffic for my website.

Context Sample

"hello chatgpt, i am a content writer for a tech blog. i'm looking to write an article about the latest trends in artificial intelligence. the goal is to provide our readers with insightful and up-to-date information. i'm particularly interested in how ai is being used in healthcare and education."

 

Section 2: Role

The next step is defining the role you want ChatGPT to play. This could be a content writer, a coding assistant, or even a fitness expert. Define a Functional Capability and identify the Domain Area. For writing, make sure to define the Writing Style and Writing Tone.

 
Role Tips

To ensure unique content, you can use phrases like:

"You are known for your unique perspective and, as a result, are highly regarded by other industry experts."

"Please provide insights that most experts seldom consider or that are typically not discussed by thought leaders in the industry."

"Write in a way that challenges conventional thinking and may even provoke the audience to embrace a new perspective."

Role Sample

"ChatGPT, I want you to act as a tech expert with a deep understanding of artificial intelligence trends. You should write in an informative and engaging style."

 
 
Section 3: Action

The action is what you want ChatGPT to do. Concisely define the function you want ChatGPT to perform. Next, tell ChatGPT the key elements you want by saying things like: “Include the following keywords, ingredients, features, dataset, column headers… in the output”. Tell Chat: Please don't explain what you're doing. Please do not self-reference.

Action Tips

For 500+ word content - "Please write this content in multiple parts. Once you finish a section, pause and I will ask you to continue writing."

If you’re writing blog or article content, tell ChatGPT to answer a specific question that you want the article to answer.

I also say, "I don't want the article to read like an advertisement."

Action Sample

"ChatGPT, please write a 1000-word article on the latest trends in artificial intelligence, focusing on applications in healthcare and education. Include the following keywords: machine learning, natural language processing, predictive analytics, personalized learning, AI in diagnostics."

 

Section 4: Format

The format is how you want ChatGPT to structure its output.

 
Format Tips

Use tables for idea generation.

If you want ChatGPT to act as a SQL terminal in front of an example database, tell it that you will type queries and ChatGPT should reply with what the terminal would show. Then ask Chat to reply with a table of query results in a single code block and nothing else.

For articles, ask it to write in Markdown including heading and subheading notation. For content diversity: ask it to include bullet points; Include a relevant and specific quote.

For plans and instructions, ask Chat to produce the output "in a sequentially numbered list".

Say, “Do not use single quotes, double quotes or any other enclosing characters.”

Don’t bother with language like “intersperse long and short sentences”

Adding external references builds credibility and improves SEO.

 
Format Sample

"ChatGPT, please format the article in Markdown with headings and subheadings. Include bullet points where appropriate and add a relevant quote from an industry expert."

 
Section 5: Target

Finally, the target is the audience for whom the content is intended. Make sure your target audience is defined according to the level of expertise you to see conveyed in the content. Creating or defining a Persona is a great way to help ChatGPT understand your audience.

 
Target Hacks

For more interesting content, tell Chat, "the target audience is well informed and stays current with industry news and information." This will ensure more current and expert results.

Target Sample

"ChatGPT, remember that the article is intended for tech-savvy readers who are interested in the latest trends in artificial intelligence. They are familiar with AI concepts but are looking for new insights and applications."

 

In conclusion, the CRAFT methodology offers a structured approach to interacting with ChatGPT, helping you get the most out of this powerful tool. By providing clear context, defining the role, specifying the action, setting the format, and identifying the target, you can guide ChatGPT to produce highly relevant and useful outputs.

 

 


 

Using the Smart Package Robot and the "AIC.Ask_with_History" command, we can send the C.R.A.F.T. Prompt in one run.

 

' Final JSON Structure sent to the A.I.

{

  "model": "gpt-3.5-turbo",

  "messages": [

    {

      "role": "system",

      "content": "You are a helpful assistant."

    },

    {

      "role": "user",

      "content": "Hello ChatGPT, I am a software engineer working on a new fitness app. Our goal is to create an app that offers personalized workout plans and diet recommendations. We are targeting individuals who are new to fitness and are looking for guidance to start their fitness journey."

      // This is the Context part of the CRAFT methodology. It provides the background and setting for the conversation.

    },

    {

      "role": "user",

      "content": "ChatGPT, I want you to act as a fitness expert with a deep understanding of workout routines and diet plans suitable for beginners. You should have a friendly and encouraging tone."

      // This is the Role part of the CRAFT methodology. It defines the role that ChatGPT should play in the conversation.

    },

    {

      "role": "user",

      "content": "ChatGPT, please generate a 4-week workout plan suitable for a beginner. The plan should include a mix of cardio and strength training exercises."

      // This is the Action part of the CRAFT methodology. It specifies the task that ChatGPT should perform.

    },

    {

      "role": "user",

      "content": "ChatGPT, please format the workout plan as a table with columns for Day, Exercise, and Duration. Each week should start with a rest day."

      // This is the Format part of the CRAFT methodology. It instructs ChatGPT on how to structure its output.

    },

    {

      "role": "user",

      "content": "ChatGPT, remember that the workout plan is intended for individuals who are new to fitness. The exercises should be simple to perform and not too strenuous."

      // This is the Target part of the CRAFT methodology. It identifies the intended audience for the output.

    }

  ]

}

 

 

See also: