2 Understanding Prompt Engineering
This chapter was inspired by Richard Davies’ book1, Prompt Engineering in Practice, which offers practical strategies for designing prompts that yield more accurate and useful outputs from language models.
2.1 What is a Prompt?
In the world of generative AI, a prompt is the instruction or query you give to an AI model to guide its output. It can be as simple as a question or as complex as a multi-step instruction with context and constraints. The quality of a prompt directly impacts the quality of the AI’s response.
Prompt engineering, therefore, is the art and science of designing effective prompts that elicit the most useful, accurate, and relevant outputs from language models.
2.2 Basic Structures of Effective Prompts
To get high-quality results from AI, break your prompt into a few key components. Each part helps guide the AI and reduces confusion, making your outcomes clearer and more reliable.
Let’s go step by step, with extra detail for new users.
2.2.1 Instruction
The instruction is the core of your prompt. It tells the AI what you want it to do.
You can also assign a specific role to the AI in your instruction. This means asking the AI to act as a particular type of expert, professional, or character, which often leads to more relevant and accurate answers.
Instruction:
You are an Editor. Summarise the key commercial benefits of the following proposal.
Or:
Instruction:
You are a Project Manager with experience in hydropower. List the main risks described in the project overview.
Why give the AI a role? Assigning a role helps the AI adapt its style, language, and focus to your needs. For example, if you ask the AI to act as a “journalist,” it will write more factually and concisely. If you assign the role of “technical writer,” it will focus on accuracy and clarity.
Tips:
- Use clear, action-based verbs: summarise, compare, explain, translate.
- Assign a relevant role or persona if it would help (e.g., scientist, editor, consultant).
- Be specific with the task—avoid vague instructions like “What do you think?” unless you want open-ended exploration.
2.2.2 Additional Context
Context gives the AI background about the situation or reason for your request. This helps the AI tailor its answer.
Context:
This proposal is for a public-sector client focused on energy risk management.
Tips:
- Share relevant details like the client’s industry, goals, or challenges.
- If there’s a bigger picture or strategic intent, mention it.
2.2.3 Constraints
Constraints are rules or boundaries that the AI should follow in its response. These can include:
- Word count or length (e.g., “under 100 words”)
- Target audience (e.g., “explain as if to a non-technical client”)
- Tone or style (e.g., “use a formal tone”, “write in simple language”)
- Format (e.g., “answer as bullet points” or “write a short email”)
- Any other limits that help focus the output
Setting clear constraints ensures the response fits your needs and is suitable for your intended audience.
Constraints:
- Keep your answer under 100 words.
- Use a formal, technical tone.
- Make it suitable for a group of senior executives.
Why set constraints? Constraints help you avoid overly long, off-topic, or inappropriate answers. They also ensure the AI matches the style, complexity, and format you require.
2.2.4 Input
Input is the material or data the AI will work on. Always use clear separators to show where your input starts and ends—this helps prevent confusion.
Input:
<<<
Paste your content here
>>>
Or, if you prefer, you can use tags:
<proposal-text>
Paste content here
</proposal-text>2.2.5 Output Guidance
Tell the AI how you’d like the answer to be presented. Should it be a list, a table, a summary, or a specific document type?
Output:
[Present the answer as bullet points, with each benefit clearly separated.]
Or:
Output:
[Write a short, professional email draft suitable for sending to a client.]
2.2.5.1 Why Use Square Brackets in Output Guidance?
You might notice we use square brackets [ ] around output instructions, for example:
[Present the answer as bullet points, with each benefit clearly separated.]
or
[Write a short, professional email draft suitable for sending to a client.]
What do the square brackets mean?
Square brackets are used to clearly separate instructions to the AI about the output format from the main body of your prompt. They act as a simple visual cue that tells both you and the AI: “This is not part of the content to be generated, but a specific instruction about how to present the answer.”
Why is this helpful?
- Clarity: It avoids confusion between your request and the actual input data or text.
- Structure: It signals where your output instructions begin and end, making prompts easier to read and follow.
- Consistency: Using square brackets in your prompts helps keep your format uniform, especially when you work with teams or share prompt templates.
Tip: Square brackets are just one way to indicate instructions for the output format. The key is to choose a method that’s clear and consistent for you and your team.
2.2.6 Syntax Reference
Here’s a quick template you can use:
Instruction:
You are a procurement specialist. Identify and list the scoring criteria for this RFP.
Additional Context:
This information will be used for a bid strategy meeting where the team needs to allocate resources based on scoring importance.
Constraints:
Include each criterion’s weight or priority. Make the answer suitable for a busy project manager.
Input:
<<<
Bids will be scored as follows: Methodology (40%), Project Team Experience (25%), Price (30%), Sustainability Approach (5%).
>>>
Output:
List each criterion with its weighting as bullet points.
By dividing your prompt into clear instructions, helpful context, specific constraints, clearly-separated input, and output guidance, you give the AI everything it needs to deliver the best possible answer—tailored to your purpose and audience!
2.2.7 🔧 Putting It All Together
Here’s a well-structured prompt2:
Instruction: You are a proposal writer for an energy consultancy. Summarise the following section of our draft proposal.
Additional Context: This will be included in an executive summary targeted at Ofvolt.
Constraints: Keep the response formal and under 150 words. Use bullet points.
Input:
<<<
Paste proposal section here
>>>
Output:
<<<
AI Summarises the section
>>>This structure is modular—each piece can be swapped or adjusted depending on the goal. When reused across multiple tasks, these elements become prompt templates.
The clearer and more structured the prompt, the better the model performs.
Some users prefer to write the word “Output” and leave it empty when creating prompts for AI systems.
Some users prefer to write the word “Output” and leave it empty when creating prompts for AI systems.
Definition Leaving the “Output:” section empty clearly marks where the AI should generate its answer, guiding both humans and systems to expect a response in that location.
Relevance This technique helps structure prompts, making them easy to reuse and ensuring answers are placed correctly.
Example:
Instruction: Summarise the text.
Input:
<<<
Hiking is a popular outdoor activity because it is relaxing and healthy.
>>>
Output:2.3 Roles of System, User, and Assistant Messages
Modern chat-based AI platforms like ChatGPT and Claude structure interactions using three types of messages. For energy sector professionals new to prompt engineering, understanding these roles can significantly improve your proposal outputs.
2.3.1 What This Means for Your Daily Work
When you interact with an AI platform, you’re participating in a conversation with these different message types—sometimes explicitly, sometimes behind the scenes. Understanding how they work helps you get better results for your proposal tasks.
Key Actions When Writing Prompts
- Be explicit about the expertise you need - Define technical roles clearly
- Provide specific proposal-related context - Mention client sector, project type, and evaluation criteria
- Start with system/role instructions - Set expertise before giving technical tasks
- Use follow-up prompts to refine outputs - Review the AI’s first draft, then ask for specific improvements
- Always review technical specifications - AI may sound confident but can misrepresent technical details
2.3.2 Message Types Explained for Energy Professionals
2.3.2.1 System Messages
These define the AI’s role, expertise, tone, and behavior—essentially telling the AI “who it should be” for this conversation.
How you’ll use them: In some platforms (like OpenAI’s Playground), you can directly write system messages. In others (like ChatGPT’s interface), your first prompt often functions as a system message.
# Example of direct system message (when the platform allows it)
System: You are a power systems engineer specializing in grid integration
for renewable projects. You understand SCADA requirements and grid codes.For energy proposals: Use system messages to define the precise role and expertise needed for your proposal section, such as “You are a wind resource assessment specialist” or “You are a regulatory compliance expert for battery storage projects”.
2.3.2.2 User Messages
These are your inputs—questions, instructions, or information you provide during the conversation. User messages form the backbone of your interaction with the AI.
How you’ll use them: These are your standard prompts or follow-up questions where you provide instructions or information.
# Example of a user message
User: Explain the key grid compliance requirements for connecting a 50MW
solar farm to the transmission network in Queensland, focusing on
frequency response.For energy proposals: Be specific in your user messages about project parameters, client requirements, and evaluation criteria. Include technical details like capacity, location, and relevant regulations to get more accurate proposal content.
2.3.2.3 Assistant Messages
These are the AI’s responses in an ongoing conversation. Each response becomes part of the conversation history, influencing future interactions.
How you’ll use them: You’ll primarily consume these responses, but understanding how they work helps you build on previous exchanges.
# Example of an assistant message
Assistant: For a 50MW solar farm connecting to Queensland's transmission network,
the key frequency response requirements include:
1. Primary Frequency Control: Must respond to frequency deviations within
200 milliseconds
2. Frequency Operating Standard: Must operate within 49.5Hz to 50.5Hz under
normal conditions
3. Rate of Change of Frequency (RoCoF): Maximum allowable RoCoF of 3Hz/second
...For energy proposals: Review assistant messages carefully for technical accuracy before including in your proposals. Use follow-up user messages to refine outputs when needed, such as “Can you make this more suitable for a non-technical client?” or “Add a section specifically addressing environmental compliance.”
2.3.3 Building Effective Conversations
The most powerful prompting comes from understanding how these three message types interact. For complex proposal tasks, consider this approach:
- Start with a clear system message defining expertise and context
- Follow with a specific, well-structured user message
- Review the assistant message and build on it with follow-up user messages
This structured conversation approach allows you to iteratively develop high-quality content for energy sector proposals, from executive summaries to technical specifications.
The example below illustrates a conversation between a user and an assistant discussing energy storage systems.
System: You are an energy storage systems expert with experience in both lithium-ion and flow battery technologies.
User: Create a comparison table of lithium-ion vs. flow batteries for our grid stabilization proposal. Include energy density, cycle life, safety factors, and cost considerations.
Assistant: Here’s a comparison table for lithium-ion and flow batteries regarding their use in grid stabilization:

This table should help in understanding the key differences and making an informed decision based on the specific needs of the grid stabilization proposal.
User: Can you add a section on environmental impact comparison? I need this for the sustainability section of our proposal.
Understanding these three message types—and how they work together—allows energy sector professionals to create more effective prompts and engage in productive conversations with AI models. This structured approach to prompting is especially valuable when developing complex technical content for proposals, where accuracy and relevance are paramount.
2.4 Ethics and Limitations
Prompt engineering is powerful, but it comes with responsibilities. In the energy sector, where proposals often involve high-value projects with significant environmental, safety, and financial implications, understanding these limitations is critical.
2.4.1 Key Ethical Considerations
Bias and Fairness
AI models can reflect or amplify social and linguistic biases in their training data. Be especially aware of these tendencies in the energy sector, where diverse stakeholder perspectives and regional regulations may be affected by biased outputs.Factual Accuracy
Generative AI may hallucinate—present plausible but incorrect information. Always validate technical specifications, regulatory requirements, and project data. In energy proposals, incorrect technical details could lead to serious compliance or engineering issues.Confidentiality
Avoid including sensitive or proprietary information about clients, projects, or proprietary technologies unless you use AI in a secure, compliant environment. Energy proposals often contain commercially sensitive information about pricing, technology, and strategic plans.Human Oversight
AI-generated content should be reviewed, validated, and edited by human experts—particularly for proposals involving technical specifications, environmental impact assessments, or risk analyses. The final responsibility for proposal content remains with your team.
AI Responsibility Checklist for Energy Proposals
- Verify all technical specifications and calculations
- Check regulatory citations and compliance claims for accuracy
- Ensure that cost estimates and timelines are realistic and defensible
- Review language for inadvertent bias or inappropriate assumptions
- Confirm that confidential information is properly handled
2.4.2 Practical Safeguards
When working with AI on energy proposals, implement these safeguards:
- Employ a Review Process: Have subject matter experts review AI-generated content before including it in proposals.
- Maintain Documentation: Record which sections were AI-assisted and what prompts were used.
- Establish Guidelines: Create company guidelines for appropriate AI use in proposal development.
- Layer Verification: For critical sections (like technical specifications or pricing), use multiple verification methods.
By respecting these boundaries, professionals in the energy sector can use AI responsibly to enhance—not replace—human expertise and decision-making in the proposal process.
This chapter gives you the scaffolding for building strong prompts. The next chapter will walk you through real-world techniques and templates used specifically for energy proposal and bid environments.