10 Prompt Engineering Examples for Gen AI

10 prompt engineering examples for marketing, customer service, coding, and more, plus practical tips to improve your AI results.

Table of Contents
Join Upwork, the place where freelancers and businesses meet

10 Prompt Engineering Examples for Generative AI

Generative AI is reshaping nearly every aspect of the way we work. 

But one of the most uncomfortable truths about generative AI is this: the quality of AI output depends almost entirely on the quality of the input.

And that input is your prompt.

A vague prompt leads to vague results (and let’s be honest, people can tell it’s AI-generated), while a strategic prompt with clear context, constraints, and formatting can unlock responses that feel surprisingly polished. 

So to help you get more out of generative AI, we’re breaking down 10 prompt engineering examples across marketing, customer service, data analysis, coding, and more, so you can start consistently getting high-quality results from your generative AI tools. 

But first… 

What is prompt engineering?

Prompt engineering is the process of designing, refining, and optimizing the inputs given to an AI model to guide it toward a specific and high-quality output.

A lot of people hear “prompt engineering” and assume it’s about coding or advanced AI knowledge. It’s not. It’s really about good communication.

Think of it like this: if you give vague directions, you get something vague back. But if you give clear, detailed directions, you get something a lot more useful.

A well-crafted prompt gives the AI:

  • Clear context (What’s the goal?)
  • Constraints (What should it avoid? How long should it be?)
  • Format (Bullet points? Email? Table? Casual tone?)

When you include these elements, the quality of the output improves significantly. 

10 prompt engineering examples to boost your productivity

So what does this actually look like in real life?

Here are 10 practical, real-world examples of prompt engineering in action, showing how a few small tweaks to your instructions can dramatically improve the quality of what AI gives you back.

1. Content summarization for busy professionals

You’ve got a 12-page report sitting in your inbox. You could read every word… but you don’t have time for that. This is where AI summarization can be super helpful if you prompt it correctly. 

Here’s the difference between a bad prompt and a good prompt for content summaries. 

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Summarize this article. Act as an executive assistant. Read the following article and provide a summary for a busy CEO. The summary should be no more than 200 words and should focus on the key business implications and actionable insights. Use bullet points for the main takeaways.

Why it works: The good prompt establishes a persona (“executive assistant”), defines the audience (“busy CEO”), sets a word count, and specifies the desired focus (“business implications and actionable insights”) and format (“bullet points”).

2. Customer service response generation

You’ve just received an email from an unhappy customer. You know you need to respond quickly; here’s a prompt that can help you draft something that’s professional and empathetic.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Write a reply to this angry customer. Act as a senior customer support specialist for a SaaS company. A customer is frustrated because of a recent service outage. Draft a response that is empathetic, apologetic, and professional. Acknowledge their frustration, briefly explain the cause of the outage (a server issue that has now been resolved), and offer a one-month credit as a gesture of goodwill. The tone should be reassuring and aim to retain the customer.

Why it works: This prompt provides a clear role, context, desired tone, and specific elements to include in the response, leading to a much more personalized response that’s more likely to retain the customer. 

3. Marketing copy and ad creation

You’re about to launch a new product on social media. You know the ad needs to grab attention and drive clicks, but staring at a blank page isn’t helping. Here’s a prompt that can help you get your creative juices flowing by generating copy ideas built to convert.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Write an ad for my new headphones. Act as a direct-response copywriter. Write three variations of a Facebook ad for a new brand of noise-canceling headphones called “Aura.” The target audience is frequent travelers and remote workers. Highlight crystal-clear audio, 40-hour battery life, and all-day comfort. The tone should be exciting and aspirational. End with: “Shop Now and Get 20% Off!”

Why it works: By specifying the persona, target audience, key benefits, tone, and call to action, you guide the AI to create marketing copy that will only require minor edits. 

4. Data analysis and insights extraction

You’ve collected hundreds of customer reviews, survey responses, and support tickets. Somewhere in that data are patterns that could improve your product, but you don’t have hours to manually sort through everything. 

Here’s a prompt that can help you quickly extract the most important themes to create structured, actionable insights.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Analyze this data. Act as a data analyst. I have 500 customer reviews for a mobile app. Identify the top 5 most frequently mentioned themes. For each theme, classify it as positive, negative, or neutral, and provide one representative quote. Present the output in a Markdown table with columns: “Theme,” “Sentiment,” and “Example Quote.”

Why it works: This prompt gives the AI a clear task, specifies the desired output format (a table), and defines the exact information to be included. 

5. Code generation and debugging

You have a repetitive task that could easily be automated with a simple script, but you’re not a Python expert, and you don’t want to spend hours troubleshooting syntax errors. Here’s a prompt that can help you generate clear, functional code that does exactly what you need it to do. 

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Write a Python script to rename files. Act as a senior Python developer. Write a script that renames all .jpg files in a folder using the format “YYYY-MM-DD_OriginalName.jpg,” where the date is the file’s creation date. The script should prompt the user for the folder path and include comments explaining each step.

Why it works: The good prompt provides specific requirements for the script’s functionality, formatting, and user interaction, and even asks for comments to make the code easier to understand.

6. Meeting notes and action items

You’ve just wrapped up a long team meeting, and now you’re staring at a messy transcript. Buried in all that conversation, it’s hard to see what actually matters. Here’s a prompt that can help you turn a raw transcript into a clear summary with organized, actionable next steps.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Summarize this meeting. Act as a project manager. Read the transcript and create: (1) a brief overview of topics discussed, (2) a list of key decisions made, and (3) a table of action items with columns: “Task,” “Owner,” and “Due Date.”

Why it works: This prompt provides a clear structure for the output, so only the most important information from the meeting is captured in an organized and actionable format.

7. Creative brainstorming and ideation

You’re staring at a blank page, trying to come up with your next blog post for your business. You need ideas that are relevant to your niche and audience, not just random suggestions. Here’s a prompt that can help you break out of the creative rut and generate ideas that actually make sense for your brand.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Give me some blog post ideas. Act as a content strategist. Generate 10 blog post ideas for a company selling sustainable pet products. The audience is environmentally conscious millennial pet owners. Include a mix of educational and fun content. The tone should be informative and friendly.

Why it works: By providing context about the company, target audience, and desired content mix, you get a list of ideas that are much more relevant and strategic.

8. Email and proposal writing

You just finished a promising sales meeting. The conversation went well, but now comes the part that actually moves the deal forward: the follow-up. You need an email that feels personal, professional, and proactive. 

Here’s a prompt that can help you draft a message that reinforces your value and clearly outlines the next steps.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Write a follow-up email. Act as a business development manager. Write a follow-up email to [Client Name] after our meeting about their need for a new website. Thank them, recap key points, attach our portfolio, and propose a 30-minute call to discuss a formal proposal. Keep the tone professional and proactive.

Why it works: This prompt includes all the necessary information to draft a personalized and effective follow-up email that is likely to move the sales process forward.

9. Research and competitive analysis

A competitor just launched something new, and you need to understand what they’re doing well and where they might be vulnerable. Instead of digging through scattered information for hours, here’s a prompt that can help you generate a detailed competitive analysis in just a few minutes.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Tell me about [Competitor Company]. Act as a market research analyst. Provide a competitive analysis of [Competitor Company], covering: (1) top 3 products and features, (2) pricing strategy, (3) primary marketing channels, and (4) strengths and weaknesses based on customer reviews. Present the information as a concise report.

Why it works: Instead of asking for a broad overview, the improved prompt spells out exactly what you’re looking for and how you want it organized. 

10. Social media content creation

You want to start posting more consistently on LinkedIn. But coming up with a full week of thoughtful content is a lot easier said than done. Instead of scrambling for last-minute ideas, here’s a prompt that can help you generate a structured, strategic set of posts that actually reflect your expertise and speak to the right audience.

Prompt Engineering: Bad vs. Good Examples
Bad Prompt Good Prompt
Write some LinkedIn posts for me. Act as a personal branding expert. I am a freelance graphic designer specializing in branding for tech startups. Generate 5 LinkedIn posts for next week: a case study, a branding tip, a behind-the-scenes post, an audience question, and a link to a helpful article. Each should be 100–150 words and include relevant hashtags.

Why it works: This prompt provides a clear professional identity, target audience, channel, and content plan, resulting in a series of posts that are strategic and on-brand.

How to start writing better prompts, every time

By now, you’ve probably noticed a pattern in all the examples above. The biggest difference between a bad prompt and a good prompt all comes down to the clarity of the instructions.

If you want consistently stronger results across all gen AI tools, keep these tried and true principles in mind:

  • Provide Context: Give the AI the background information it needs to understand your request.
  • Be Specific: Avoid vague language. The more detailed your instructions, the better the output.
  • Define the Format: Tell the AI exactly how you want the information presented (bullet points, table, report, etc.).
  • Assign a Persona: Asking the AI to act as an expert in a particular field can significantly improve the quality of the response.
  • Iterate and Refine: Your first prompt may not be perfect. Don’t be afraid to experiment and refine your prompts based on the quality of the results you get.

For most day-to-day tasks, these principles are more than enough to help level up your results.

But if you’re building something bigger (like complex AI integrations, custom model training, or large-scale automations), it may be worth bringing in an expert. A skilled AI consultant can help you design smarter workflows, avoid expensive trial and error, and build systems that can scale. 

And the good news is that you have access to that level of expertise at your fingertips. Platforms like Upwork make it easy to find experienced prompt engineers who can step in and help you integrate AI in a way that makes the most sense for your business. 

Frequently asked questions about prompt engineering

Do I need technical skills for prompt engineering?

While a technical background can be helpful, the core of prompt engineering is effective communication, not coding. Anyone can learn to write better prompts by being clear, specific, and providing context.

How long does it take to learn prompt engineering?

You can learn the basics of prompt engineering in a few hours. However, mastering the skill is an ongoing process of experimentation and refinement as AI models continue to evolve.

What's the difference between a good and bad prompt?

A bad prompt is vague and lacks context, leading to generic or irrelevant results. A good prompt is specific, provides context, defines the desired format, and may even assign a persona to the AI. This is the recipe for a high-quality, more targeted AI output.

Can I hire someone to help with prompt engineering?

Yes. Many businesses choose to hire freelance prompt engineers for complex projects or to develop custom AI workflows. Platforms like Upwork have a wide range of AI experts available for hire on a full-time, part-time, and project basis. 

Upwork is not affiliated with and does not sponsor or endorse any of the tools or services discussed in this article. These tools and services are provided only as potential options, and each reader and company should take the time needed to adequately analyze and determine the tools or services that would best fit their specific needs and situation.

Heading
asdassdsad
Join the world's work marketplace

Author Spotlight

10 Prompt Engineering Examples for Gen AI
Holly Grace Callis
SEO Content Specialist

Holly Grace Callis is a B2B SEO content strategist who builds human+AI content that drives revenue. As the founder of the content agency Empowered English, she creates scalable content systems and translates complex products into clear, high-performing messaging. She helps SaaS, AI, and real estate brands win their ideal customers through organic search.

Latest articles

Article
High-Demand Careers in 2026 and How to Qualify
Jul 2, 2026
Article
How To Make a Graphic Design Portfolio That Wins Clients
Jul 1, 2026
Article
How To Write a Job Description That Attracts Top Talent
Jul 1, 2026

Popular articles

Article
How To Create a Proposal On Upwork That Wins Jobs (With Examples)
Jun 24, 2026
Article
Top 9 Machine Learning Skills in 2026 To Become an ML Expert
May 8, 2026
Article
The 6 Highest-Paying Machine Learning Jobs in 2026
Apr 23, 2026
Join Upwork, where talent and opportunity connect.