How do you prepare a clean prompt from a web page?
To prepare a clean prompt from a web page, first extract the useful content, convert it into readable Markdown, then add a clear instruction with the expected goal: summary, SEO audit, comparison, extraction or action plan. A good prompt always separates the context, the task and the output format.
Explanation
A web page copied as-is often contains too much noise: navigation, scripts, styles, repeated blocks, footers or technical elements. If you paste everything directly into ChatGPT, Claude or Gemini, the AI may miss important information, answer vaguely or waste context on irrelevant content.
The most reliable method is to turn the page into structured content. Markdown is useful because it keeps headings, paragraphs, lists, links and sometimes tables without preserving all the useless HTML code. Then you add a precise instruction: what the AI should analyze, what it should ignore and how it should answer.
A clean prompt should therefore contain three blocks: the role or goal, the analysis instructions, then the Markdown content. This separation makes the request more stable and easier to reuse across several pages.
Formula / method
Simple structure:
- Goal: what you want to obtain.
- Instructions: what the AI should analyze or ignore.
- Expected format: list, table, plan, summary or recommendations.
- Context: the page content in Markdown.
Useful formula:
Clear goal + clean Markdown content + precise output format = better AI answer.
Concrete example
Copy-ready prompt example:
You are an expert in web content analysis.
Analyze the Markdown content below and give me:
1. a 5-point summary of the page;
2. the main intent of the page;
3. the key arguments;
4. missing or unclear information;
5. 5 concrete improvements.
Ignore menus, footers, repeated elements and non-essential links.
Answer in Markdown with clear headings.
Content to analyze:
[PASTE THE MARKDOWN HERE] Common mistake
The bad habit is pasting an entire page and simply writing “analyze this”. That instruction is too vague. The AI needs a goal, a scope and an output format. Otherwise, it improvises, and improvisation costs quality.
Sources & methodology
- CommonMark — Markdown specification — Reference for Markdown as a structured and readable plain-text format, useful for preserving headings, lists, links and tables in AI-ready content.
- OpenAI — Prompt engineering — Guidance on structuring prompts with clear instructions, separators and precise output formats.
- MDN — Document Object Model (DOM) — Explanation of the DOM as a structured representation of a web page, useful for understanding the difference between displayed content, source HTML and the actual exploitable structure.
- Chrome DevTools — View and change the DOM — Documentation on inspecting a web page, selecting HTML elements and copying the content actually present in the browser.
- WHATWG — HTML Living Standard — Reference specification for HTML, useful for understanding web document structure and deciding which elements to clean or keep before conversion.
- Google Search Central — JavaScript SEO basics — Useful resource for understanding why some JavaScript-generated pages may expose incomplete initial HTML.
This content follows Outilo's editorial guidelines.