top of page
Writer's pictureTerence B.

A Guide to Prompt Engineering: How To Never Need "3000+ Copy & Paste ChatGPT Prompts" Ever Again



Whether you're an enthusiast dabbling in AI tools or a professional looking to harness deeper value from AI solutions, it's critical that you understand the art and science behind prompt engineering. This is not just about what you ask but how you ask it!


The Midwit Trap in Prompt Engineering

Prompt engineering might seem like a straightforward task: type a question and receive an answer. However, there's a common pitfall that many fall into, which can be aptly described using the Midwit meme.


On one side, those with minimal knowledge might use basic prompts without optimizing their inputs, surprisingly receiving decent outcomes due to sheer simplicity. On the other end, experts with a deep understanding of language models utilize minimal yet precise prompts to achieve optimal results.


Caught in the middle are the Midwits — individuals who overcomplicate the prompts, integrating unnecessary complexity, thus diminishing the efficiency and effectiveness of their AI interactions. This is where most people unfortunately find themselves, not adequately understanding the mechanics of this new "programming language"— English.


Conversational Vs. Single-Shot Prompting

Understanding the distinction between conversational and single-shot prompting is crucial. 


Conversational prompting involves a back-and-forth interaction with AI, allowing adjustments based on responses. It's forgiving and useful for personal or basic business applications.

Coversational Prompting Example

User: I'm planning a trip to Japan. Can you suggest the best time to visit?

ChatGPT: The best time to visit Japan depends on your interests. For cherry blossoms, late March to early April is ideal. If you prefer autumn colors, late November is great. For skiing, visit between December and February. What are you most interested in?

User: I want to see the cherry blossoms. Which cities should I visit for the best views?

ChatGPT: For the best cherry blossom views, you should consider:

  • Tokyo, especially Shinjuku Gyoen and Ueno Park.

  • Kyoto, where Maruyama Park and the Philosopher's Path are stunning.

  • Hiroshima, at Peace Memorial Park and Shukkeien Garden. Would you like more details on any of these locations?

User: Yes, could you tell me more about Kyoto?

ChatGPT: In Kyoto, Maruyama Park is a popular spot for cherry blossom viewing, known for its large, picturesque weeping cherry tree. The Philosopher's Path is another beautiful location, a stone path lined with hundreds of cherry trees along a canal. Both spots are exceptionally beautiful in early April. You might also want to visit Kiyomizu-dera Temple for an amazing view of the blossoms against the city. Would you like recommendations on where to stay in Kyoto?

User: That sounds lovely. Yes, please suggest some hotels.

ChatGPT: Here are a few hotels in Kyoto that are well-rated and offer convenient access to cherry blossom spots:

  1. Kyoto Granbell Hotel - A modern hotel close to Gion and various scenic spots.

  2. The Ritz-Carlton, Kyoto - For a luxurious stay, located near the Kamo River with beautiful views.

  3. Hotel Kanra Kyoto - A blend of traditional and modern Japanese styles, close to Kyoto Station and good access to Maruyama Park.

Would you like to book a hotel, or do you need information on other aspects of your trip, such as dining or transportation?

User: How about restaurants? Any recommendations?

ChatGPT: Certainly! For a memorable dining experience in Kyoto, consider:

  • Gion Karyo, offering beautiful kaiseki meals that are a feast for the senses.

  • Nishiki Warai, known for its savory okonomiyaki near Nishiki Market.

  • Yamamotomenzo, which serves some of the best udon noodles in the city.

Conversely, single-shot prompting is designed for precision and reliability. It's fundamental in automated systems where a single, error-free response is essential. Mastery of single-shot prompts enables the construction of robust AI systems capable of handling specific tasks reliably — a prerequisite for high-value system development. If you take a closer look at the example below, a lot of the information ca be parameterized, like "Japan" which can simply be parameterized as {{country}}, and so on...

Single Shot Prompting Example

Prompt:

"I'm planning a trip to Japan in early April because I want to see the cherry blossoms. I'm particularly interested in visiting Tokyo, Kyoto, and Hiroshima. Could you suggest the best spots in these cities for cherry blossom viewing? Also, I need recommendations for hotels in Kyoto that are well-rated and offer convenient access to these spots. Additionally, please suggest some restaurants in Kyoto that provide a memorable dining experience."


Response:

For the best cherry blossom viewing in Japan, here are my suggestions for Tokyo, Kyoto, and Hiroshima:

  • Tokyo:

  • Shinjuku Gyoen: A large park with more than a thousand cherry trees and several different varieties.

  • Ueno Park: One of the most crowded, yet beautiful, spots for cherry blossom parties under the trees.

  • Kyoto:

  • Maruyama Park: Known for its large weeping cherry tree that is spectacular at night.

  • The Philosopher’s Path: A stone path lined with hundreds of cherry trees, perfect for a leisurely walk.

  • Kiyomizu-dera Temple: Offers stunning views of the blossoms with the city in the background.

  • Hiroshima:

  • Peace Memorial Park: Cherry trees line the river, providing a poignant backdrop.

  • Shukkeien Garden: A historic garden with beautiful cherry blossoms around the pond.

For hotels in Kyoto, consider:

  1. Kyoto Granbell Hotel: A modern hotel close to Gion, with easy access to the city’s scenic spots.

  2. The Ritz-Carlton, Kyoto: A luxurious option, located near the Kamo River, ideal for enjoying cherry blossoms.

  3. Hotel Kanra Kyoto: Combines traditional and modern styles, located conveniently for accessing major parks.

For dining in Kyoto, these restaurants offer a great experience:

  • Gion Karyo: Enjoy a beautiful kaiseki meal with seasonal ingredients in the heart of Gion.

  • Nishiki Warai: Try the local favorite, okonomiyaki, near the bustling Nishiki Market.

  • Yamamotomenzo: Known for its excellent udon noodles, a must-visit for noodle lovers.

These recommendations should give you a fantastic experience of Japan during the cherry blossom season, with a mix of natural beauty, cultural experiences, and culinary delights.

Each approach offers unique benefits tailored to different needs and applications. By understanding and applying the right type of prompting for your situation, you can maximize the efficiency and effectiveness of your AI solutions. Whether you're interacting casually with AI or designing a critical automation system, recognizing the strengths of both methods can lead to more successful outcomes.


The Simple Science Behind Effective Prompting

The key to advancing from a Midwit to an expert in prompt engineering lies in understanding and applying specific techniques that enhance the effectiveness of prompts:

  1. Role Prompting: Assign a specific role to the AI (e.g., an experienced email classifier). This sets the context and expectations for its function.

  2. Task-Specific Instructions: Clearly define what the AI needs to do, using direct and active language. Incorporate verbs and precise descriptions.

  3. Chain-of-Thought Prompting: Guide the AI through a logical sequence of steps necessary to complete the task, enhancing its ability to handle complex requests.

  4. Specify Emotion and Importance: Incorporate phrases that convey the significance of the task. This can psychologically 'motivate' the AI to perform with increased accuracy and diligence.

  5. Contextual Clarity: Provide background information that helps the AI understand the broader context of its task, which can significantly boost its relevance and accuracy of responses.

  6. Example-Driven Learning: Incorporate examples to demonstrate desired outcomes. This is particularly effective in teaching the AI the format and structure of expected responses, dramatically improving performance.

  7. Provide Notes: Ensure you include tailored, precise instructions that further refine the AI's approach to the task. This section is critical for fine-tuning your prompts based on feedback and observations. A particularly effective strategy I often use to enhance outcomes is to remind the AI to “Take a deep breathe and think step by step before you begin”

Here is a prompt created following the above guidelines, specifically designed for writing business emails for cold outreach.


Cold Email Outreach Prompt

Role: You are an AI designed to write effective business emails for cold outreach, tailored to capture the recipient's interest and initiate a business relationship.

Task: Your primary function is to draft concise, compelling cold outreach emails using this step-by-step process:

  1. Understand the business and the product or service it offers.

  2. Identify the target recipient’s needs and how our offerings can meet those needs.

  3. Craft a personalized greeting and introduction that resonates with the recipient.

  4. Develop a clear, engaging pitch that highlights key benefits and unique selling points.

  5. Conclude with a strong call-to-action that encourages a response or a meeting.

Specifics:

  • This task is vital for expanding our client base and driving our business growth, so each email must be persuasive and tailor-made for the recipient.

  • Your ability to write compelling emails directly influences our sales pipeline and business success.

Context: Our business specializes in providing AI-powered solutions that optimize operational efficiency and enhance data-driven decision-making for various industries. Your role in drafting effective outreach emails is crucial in showcasing our expertise and establishing new business connections.

Examples:

  • Subject: Transform Your Business with Cutting-Edge AI SolutionsHi [Name],I hope this email finds you well! I'm [Your Name], and I help businesses like yours leverage AI to enhance operational efficiency and decision-making. Our solutions have helped companies in [Industry] achieve [Specific Benefit], and I believe we can do the same for you.Could we schedule a quick call to discuss how [Your Company] can help [Recipient’s Company] reach new heights?Looking forward to your reply,[Your Name]

  • Subject: Next-Level Growth with Our AI-Driven AnalyticsHello [Name],I'm reaching out to introduce our advanced AI-driven analytics platform, which has transformed the way businesses operate in [Industry]. With our tool, companies have seen [Specific Outcome], and I think it’s something that could really benefit [Recipient’s Company] as well.Can we set up a time to discuss this further?Best regards,[Your Name]

Notes:

  • Please ensure the emails are personalized and avoid generic phrases that could apply to any company.

  • Focus on clarity and brevity, ensuring that each email is easy to read and straight to the point.

  • Remember to include a subject line for each email suggestion that grabs attention and reflects the content of the email.

  • Take a deep breathe and think step by step before you begin.


Remember, you don't have to rigorously define each point for every prompt you craft. However, having these techniques handy and applying them whenever the AI doesn't deliver as expected can sharply enhance your results. It’s like having a toolkit—while you might not need every tool for every job, knowing how to wield them skilfully can transform outcomes from good to great. So, keep experimenting, and you'll find that your skill in prompt engineering improves with practice, leading to more consistent and high-quality results.


Bonus tip: Use Markdown Format for Clarity and Structure



Utilizing markdown to structure prompts enhances clarity and structure, which is particularly beneficial when crafting single-shot prompts that you plan on reusing repeatedly. The use of clear headings (using #, ##), bolding important points, and organizing information hierarchically helps both the user and the AI navigate the prompt more effectively. This approach guides the AI to understand which parts of the prompt are most crucial, thereby focusing its 'attention'. Numerous users have found that a lot of ChatGPT's training data is in markdown, so it's best if we follow suit.


Conclusion:

As you refine your prompt engineering skills, remember that this journey combines simplicity with a hint of complexity. Understanding prompt engineering's underlying principles and techniques is the skill of the future. English, the language we use to instruct AI, is becoming the hottest new "programming language". Prompting is at the heart of this transformation, and mastering it means you can unlock more innovative, efficient, and effective solutions with AI.


AI is here to stay, and the sooner we learn to communicate effectively with these systems, the sooner we can experience the many benefits they bring to our lives. The ability to guide AI accurately and creatively is crucial for anyone looking to leverage AI's full potential in any field.

 

Need expert AI guidance or custom solutions? 

Contact us to enhance your projects and discover AI’s full potential in your operations.


Comments


bottom of page