Prompt Engineering Techniques: Structures and Templatesby@jaleltounsi
148 reads

Prompt Engineering Techniques: Structures and Templates

by Jalel TounsiApril 4th, 2024
Read on Terminal Reader
Read this story w/o Javascript
tldt arrow

Too Long; Didn't Read

In this rather short and concice article I'll try to explain various prompts structure and template that can be used adn tweeked to get the most out of LLMs. I'll start with the problem- solution and then move on to the decision-making process, the five Ws and One H etc etc
featured image - Prompt Engineering Techniques: Structures and Templates
Jalel Tounsi HackerNoon profile picture

In this rather short and concise article, I'll try to explain various prompts, structures, and templates that can be used and tweaked to get the most out of LLMs.

Let's Dive Into It.


  • Problem: Describe the issue or challenge.
  • Solution: Propose a solution or multiple solutions.
  • Benefits: Explain the benefits of implementing the solution(s).

Explanation: This template outlines a problem or challenge, and then proposes one or more solutions to address it.

Example Prompt:

"Identify a pressing environmental issue in your community and propose a comprehensive solution to mitigate its impact."

SWOT Analysis:

  • Strengths: List internal factors that contribute positively.
  • Weaknesses: Identify internal factors that are detrimental.
  • Opportunities: Explore external factors that could be advantageous.
  • Threats: Consider external factors that pose risks.

Explanation: SWOT stands for Strengths, Weaknesses, Opportunities, and Threats. This template helps analyze internal and external factors affecting a situation.

Example Prompt:

"Conduct a SWOT analysis of a local small business, considering its internal strengths and weaknesses, as well as external opportunities and threats in the market."

Cause and Effect:

  • Cause: Identify the root cause of an issue or event.
  • Effect: Describe the consequences or outcomes.
  • Implications: Discuss the broader implications or significance.

Explanation: This template explores the relationship between a cause and its effects, helping to understand the underlying mechanisms of a phenomenon.

Example Prompt:

"Examine the causes and effects of deforestation in a specific region, considering environmental, economic, and social impacts."


  • Subject A: Describe the first subject for comparison.
  • Subject B: Describe the second subject for comparison.
  • Key Similarities: Highlight similarities between the two subjects.
  • Key Differences: Point out the differences between them.

Explanation: This template highlights similarities and differences between two or more subjects, providing a structured way to evaluate and contrast them.

Example Prompt:

"Compare and contrast the educational systems of two different countries, focusing on curriculum structure, teaching methods, and student outcomes."


  • Past Events: Outline events in chronological order.
  • Present Situation: Describe the current state of affairs.
  • Future Projections: Discuss potential future developments.

Explanation: This template arranges events or processes in chronological order, helping to understand their progression over time.

Example Prompt:

"Trace the historical development of communication technology from the invention of the printing press to the modern era of social media platforms."


  • Pros: List the advantages or positive aspects.
  • Cons: Identify the disadvantages or negative aspects.
  • Considerations: Offer considerations or mitigations for the cons.

Explanation: This template lists the advantages (pros) and disadvantages (cons) of a particular topic or decision, facilitating a balanced analysis.

Example Prompt:

"Evaluate the pros and cons of implementing renewable energy initiatives in a city, considering factors such as cost-effectiveness, environmental impact, and community engagement."


  • Options: Present the available choices or options.
  • Criteria: Establish criteria for evaluating the options.
  • Evaluation: Assess each option against the criteria.
  • Decision: Make a recommendation or decision based on the evaluation.

Explanation: This template guides the decision-making process by presenting options, establishing criteria for evaluation, and making a recommendation based on the analysis.

Example Prompt:

"You are a project manager tasked with selecting a software development methodology for an upcoming project. Compare agile and waterfall methodologies, evaluate their suitability for the project requirements, and recommend the most appropriate approach."

Five W's and One H:

  • Who: Identify the relevant individuals or groups involved.
  • What: Define the subject or topic.
  • When: Specify the timing or timeframe.
  • Where: Determine the location or context.
  • Why: Explore the reasons or motivations.
  • How: Describe the methods or processes involved.

Explanation: This template prompts exploration by addressing the basic questions of who, what, when, where, why, and how, providing a comprehensive understanding of a topic.

Example Prompt:

"Investigate the impact of a natural disaster (such as a hurricane, earthquake, or wildfire) on a local community, addressing who was affected, what damages occurred, when it happened, where it occurred, why it happened, and how the community responded."

These templates offer structured frameworks for efficient prompts and better results.