P

Mega Prompt: Definition and Examples

A mega prompt is a long, structured instruction sent to an AI model, combining in a single message all necessary directives: context, role, output format, constraints, and examples.

Full definition

A mega prompt is a prompt engineering approach that consists of grouping into a single message all instructions intended for a language model. Unlike a simple prompt that is limited to a question or a brief instruction, the mega prompt provides a complete framework: definition of the AI's role, detailed context, precise objectives, constraints to respect, expected output format, and often illustrative examples.

This technique is based on the idea that an AI model produces better results when it has all the necessary information from the start. By structuring the prompt into clearly identified sections (often using tags, titles, or separators), the user guides the model precisely and reduces ambiguities that could lead to off-topic or incomplete responses.

Mega prompts are particularly useful for complex tasks that require very specific output: writing long content, structured data analysis, code generation, creating marketing plans, or producing professional documents. They allow obtaining a result close to the final deliverable in a single interaction, without requiring multiple back-and-forths.

Although extremely powerful, mega prompts require significant design effort. They must be tested and iterated to find the right balance between comprehensiveness and clarity. A mega prompt that is too long or poorly organized can paradoxically degrade response quality if the model loses track of the instructions.

Etymology

The prefix 'mega' (from Greek megas, 'great') emphasizes the size and ambition of this type of prompt compared to traditional short instructions. The term emerged in the prompt engineering community around 2023, popularized by content creators and practitioners who shared structured prompts of several hundred words on social media.

Concrete examples

Creating comprehensive marketing content

You are a digital marketing expert with 15 years of experience. My company sells B2B SaaS software for project management. Target: technical directors of SMEs (50-200 employees). Objective: create a 1500-word blog article on the benefits of agile project management. Tone: professional but accessible. Structure: introduction with striking statistic, 5 sections with H2 subheadings, conclusion with CTA to a free trial. Constraints: no excessive jargon, include 3 concrete examples, optimize for the keyword 'agile project management SME'.

Generating a structured course plan

Role: expert data science trainer. Context: I need to create a 5-day training program for business analysts who want to upskill in Python. Participant level: beginners in programming, advanced in Excel and SQL. Output format: for each day, indicate the main theme, learning objectives (max 3), hour-by-hour schedule, practical exercises, and expected deliverables. Constraints: logical progression, 70% practice, use realistic business datasets.

Automating data analysis

You are a senior data analyst. I will provide you with sales data in CSV format. For each file: 1) Identify columns and their types. 2) Calculate the following KPIs: total revenue, average basket, conversion rate, top 5 products. 3) Detect anomalies (outliers, missing data). 4) Generate a 5-line executive summary. 5) Propose 3 actionable recommendations. Format: markdown table for KPIs, bullet points for recommendations. Tone: concise and decision-oriented.

Practical usage

To create an effective mega prompt, start by clearly defining the AI's role, the task context, and the desired output format. Structure your instructions into distinct sections with visual separators (dashes, numbers, tags) to facilitate model understanding. Test and refine progressively by adding constraints or examples until you reliably obtain the desired result.

Related concepts

System PromptChain of ThoughtFew-Shot PromptingRole Prompting

FAQ

What is the difference between a mega prompt and a system prompt?
A system prompt is a framing instruction placed at the beginning of a conversation to define the AI's overall behavior (accessible only via API or certain interfaces). A mega prompt is a single, very detailed user message that contains all directives for a specific task. Both can be combined: the system prompt sets the general framework, and the mega prompt specifies the mission.
Is a mega prompt always more effective than a series of short prompts?
Not necessarily. A mega prompt excels for well-defined tasks where you want a complete result in one pass. However, for exploratory or creative tasks, a conversational approach with successive prompts allows better adjustment of direction as the exchange proceeds. The choice depends on how clear you are about the expected outcome.
How to structure a mega prompt to prevent the model from ignoring certain instructions?
Use a clear visual hierarchy: number sections, use uppercase keywords for critical directives, and place the most important instructions at the beginning and end of the prompt (models tend to better remember those positions). Limit yourself to 5-7 main sections and ensure each instruction is unambiguous.

See also

How to use this prompt

  1. Copy the prompt with the button above.
  2. Paste it into ChatGPT, Claude or your favorite AI assistant.
  3. Replace the bracketed variables with your details, then refine the result.

About Prompt Guide

Prompt Guide is a free library of 2500+ ready-to-use prompts for ChatGPT, Claude and other AIs, with guides to learn prompting and tools to build and optimize your own prompts.

More definitions

Get new prompts every week

Join our newsletter.