cancel
Showing results for 
Search instead for 
Did you mean: 
Chetan_Tiwary_
Community Manager
Community Manager
  • 1,160 Views

Prompt Engineering : Make AI listen to you

Imagine that you are an architect hiring a builder. If you simply say, 'Build me a house',  you might end up with anything from a shed to a mansion, and it might not fit your needs at all. However, if you provide detailed blueprints – 'Construct a modern, three-story home with panoramic windows, a south-facing balcony, an open-plan kitchen, and sustainable materials' – the final structure will perfectly match your vision. That precise blueprint and clear guidance you see here ?

That's prompt engineering when you are interacting with AI.

Prompt engineering is about writing good instructions ( prompt )  for AI. It's how you tell tools like ChatGPT or Gemini what to do. You make these instructions clear and keep making them better. This helps the AI give you exact, correct, and helpful answers.

 

Why Prompt Engineering Matters ?

simple :

   1. Better quality and accuracy
   2. Connecting humans and AI
   3. Saves time and boosts work
   4. Smarter AI thinking
   5. Fairer and safer AI
   6. A growing job skill

 

How to Write Great Prompts for AI ?


Giving clear instructions to AI gets you better results. Here are some key tips for writing effective prompts :

Know what you want Do you need a blog post, a summary, or some code? Make your prompt fit what you expect.
Pick the right format Tell the AI its role, like "Act like a travel guide." State the type of output, such as "write a 3-paragraph description." Or pick a tone, like "informal, concise."
Be clear and specific Don't be vague. Instead of "Explain AI," say "Explain how reinforcement learning works, with examples, to college students." More detail means better answers.
Break down complex tasks Split big goals into smaller steps. First, ask for an outline. Then, ask the AI to fill in each part. This helps fix problems as you go.
Use open ended prompts Ask questions that invite full answers, not just yes or no. For example, "Describe the social, economic, and political causes..." This gets richer details.
Give context Tell the AI important facts. Explain who the audience is, like a CEO /expert or learners.
Set Output Goals Ask for a certain word count, like "about 200 words." Request bullet lists or paragraphs.
Use punctuation properly Line breaks, quotes, commas, and bullet points make instructions clear. They are key for long or complex prompts.
Offer examples Show the AI what you want - a table or a chart or an image etc.
Avoid mixed signals Don't say "make it detailed" and "keep it short" at the same time.

 

Few examples to refer :

Don’t write : “Tell me something interesting about cloud.”

Instead prompt: “Give me three security risks in hybrid cloud, each with real-world examples.”

 

Bad prompt: “What is Kubernetes?”

Good prompt: “Explain Kubernetes to a 10-year-old with an ice cream truck example.”


The AI follows intent. Show it the path

 

Bad prompt: "Explain TLS handshake."

Good prompt:“Explain TLS handshake in 3 parts: client hello, certificate, and key exchange.”

That is better than a wall of text.It's clean.It's trackable.

 

Bad prompt: “Show me deployment.”

Good prompt: “Give a YAML example for a Deployment with 2 replicas and a rolling update.”


The more exact you are, the fewer guesses it makes.

 

You are not hoping for an answer. You are driving the output. Treat the prompt like a command-line interface. The clearer your flags, the better the return. 

 

Check out this free resource for Prompt engineering learning : https://learn.redhat.com/t5/AI-Corner/Prompt-Engineering-for-Everyone/ba-p/44139  

Labels (3)
8 Replies
TudorRaduta
Community Manager
Community Manager
  • 1,149 Views

What are some of the strongest prompts you’ve crafted so far?

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,130 Views

It actually depends upon use case basis and it might not be that complex, but one good and useful prompt is to make prompt for the prompt which gives more clear, concise and accurate results when working on a complex topic . Something like this which has already become popular these days with twists to let the AI itself generate prompts for you  :

You are now acting as a Prompt Engineer for me. Your role is to help me craft the most effective and optimized prompt for my intended task.

Follow this iterative process strictly: 
Start by asking: “What would you like the prompt to be about?” 
After I reply, respond with two sections: 
1. Revised Prompt: Rewrite my input into a clear, concise, and effective prompt that is well-suited for you to interpret and execute. Make it as useful and specific as possible. 
2. Questions: Ask follow-up questions to gather any missing or unclear details that could improve the prompt further. 

Iterate: Each time I respond, update the Revised Prompt and ask new or follow-up Questions if needed. 

Completion: Continue refining until I explicitly says "We’re done".

Then stop asking questions and confirm the final version of the prompt. Maintain clarity, precision, and usefulness throughout. 

Avoid over engineering or injecting assumptions unless guided by me.

You will then get at the end a much better version of your prompt compared to what you began with. 

For example : this can be highly useful for resume generation and you can input the JD to have a more relatable resume being generated by the AI.

TudorRaduta
Community Manager
Community Manager
  • 1,092 Views

Really appreciated this and saved it for later. Thanks for sharing!

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,077 Views

ywc @TudorRaduta !

Chetan_Tiwary_
Community Manager
Community Manager
  • 1,021 Views

Another prompt that makes life easier is this email generation prompt :

You are an expert professional writer. I need to craft an email to [Recipient’s Name & Position] about [Topic], with the intention of    [informing / requesting / following up / delegating / etc.]. BLUF format only – deliver the bottom line up front so the recipient immediately understands the purpose and required action. Write it concise, clear, actionable, and professional. 

Include:
1. A compelling subject line that reflects urgency or purpose. 
2. The BLUF statement in the first sentence or paragraph. 
3. Context & justification immediately after the BLUF. 
4. A specific call to action (what you need them to do, by when). 
5. A polite closing statement (e.g. “Thank you for your prompt attention”).
Chetan_Tiwary_
Community Manager
Community Manager
  • 849 Views

Following up on this thread, lets explore some approach to better prompt frameworks. 

 

1. R-T-F ( ROLE - TASK - FORMAT )

 

Prompt example
Software Security Analyst
Identify potential vulnerabilities in a newly deployed web application
Provide the findings in a structured security audit report

Act as a (ROLE)
Software Security Analyst

Create a (TASK)
Identify vulnerabilities in a web application

Show as (FORMAT)
Structured security audit report

R-T-F
Security Analyst -> Vulnerability Identification -> Audit Report

 

 

2. T-A-G ( TASK - ACTION - GOAL )

 

Prompt example
The task is to optimize cloud infrastructure costs.
Act as a cloud architect and analyze current resource usage.
Goal is to reduce monthly AWS spending by 20% without impacting performance.

>Define a (TASK)
Optimize cloud infrastructure costs.

>State the (ACTION)
Act as a cloud architect and analyze current resource usage.

>Clarify the (GOAL)
Reduce monthly AWS spending by 20% without impacting performance.

 

 

3. B-A-B ( BEFORE - AFTER - BRIDGE )

Prompt example
Our customer support response time is currently over 48 hours.
We want to bring it down to under 6 hours within the next 60 days.
Create a step-by-step action plan with tools, staffing, and process changes.

>Explain problem (BEFORE)
Customer support response time is over 48 hours.

>State outcome (AFTER)
Response time reduced to under 6 hours within 60 days.

>Ask to the (BRIDGE)
Create a step-by-step action plan with tools, staffing, and process changes.

4. C-A-R-E ( CONTEXT - ACTION - RESULT - EXAMPLE )

Prompt example
We are struggling with high employee turnover in our IT department.
Can you design a retention program focusing on career development and employee well-being?
Our desired outcome is to reduce annual turnover from 25% to below 12%.
A good example is Google’s employee development programs, which improved retention and satisfaction.

>Give the (CONTEXT)
High employee turnover in the IT department.

>Describe (ACTION)
Design a retention program focusing on career development and employee well-being.

>Clarify the (RESULT)
Reduce annual turnover from 25% to below 12%.

>Give the (EXAMPLE)
Google’s employee development programs, which improved retention and satisfaction.

5. R-I-S-E ( ROLE - INPUT - STEPS - EXPECTATION )

Prompt example
Imagine you are a sales trainer.
I’ve collected performance data from the sales team, including call recordings and win/loss ratios.
Provide a structured training program, breaking it into modules that address key weaknesses.
The goal is to improve the team’s closing rate by 25% in the next quarter.

>Specify the (ROLE)
Sales trainer.

>Describe (INPUT)
Performance data including call recordings and win/loss ratios.

>Ask for (STEPS)
Provide a structured training program broken into modules that address weaknesses.

>Describe the (EXPECTATION)
Improve the team’s closing rate by 25% in the next quarter.
Blue_bird
Starfighter Starfighter
Starfighter
  • 736 Views

Great information on Prompt Engineering..! Very useful..!!

Thanks for sharing..! @Chetan_Tiwary_ 

Chetan_Tiwary_
Community Manager
Community Manager
  • 715 Views

Glad you liked it @Blue_bird !

0 Kudos
Join the discussion
You must log in to join this conversation.