Export PDF

Export PDF

Build a clean document PDF from the data already in context. The full analysis results are visible earlier in this conversation — use those numbers directly. Do not call any Noibu tools. Do not re-query. The only tool calls should be those needed to write and render the PDF itself.

Build the HTML as a clean document, not a styled widget. No card chrome, no CSS variables, no widget layout. Use plain HTML elements with minimal inline styles.

Structure (in order):

  1. <h1> — domain and date range (e.g. "Product Analysis — atari.com · May 17–Jun 16 2026")
  2. Overview section<h2>Overview</h2>, the key stats as a sentence, then an inline SVG funnel (see below), then the top-5 tables as plain <table> elements
  3. For each priority signal — <h2>[Signal type] — [Product/collection name]</h2> (e.g. "Low Add-to-Cart Rate — OEX Vertex Hub 1.1"), then a short paragraph with the key number and why it matters

SVG funnel. The funnel must appear immediately after the key stats sentence, before any tables. Generate an inline <svg width="560" height="200"> with all values hardcoded from real data. Three columns (width 120px, 40px gaps). For each step compute f = sqrt(stepCount ÷ step1Count), then barH = round(f × 120) and barTop = 190 − barH. Per column: stage label text (y=20, font-size 10, fill="#888", text-transform uppercase), value text (y=48, font-size 15, fill="#111"), a ghost rect (x=colX, y=70, height=120, fill="#ebebeb"), a real bar rect (x=colX, y=barTop, height=barH, fill="#000"). Between columns, a connector polygon: points="[rightEdge],[barTop_this] [nextLeftEdge],[barTop_next] [nextLeftEdge],190 [rightEdge],190" fill="#ebebeb". Omit connector on last column.

CSS — minimal, no variables:

<style>
  body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif; font-size: 14px; color: #111; padding: 32px; max-width: 800px; margin: 0 auto; }
  h1 { font-size: 20px; font-weight: 600; margin: 0 0 4px; }
  h2 { font-size: 15px; font-weight: 600; margin: 32px 0 8px; border-top: 1px solid #e0e0e0; padding-top: 20px; }
  p { line-height: 1.6; margin: 0 0 12px; color: #444; }
  table { width: 100%; border-collapse: collapse; font-size: 13px; margin-bottom: 16px; }
  th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #666; border-bottom: 1px solid #e0e0e0; padding: 0 12px 6px 0; }
  th:first-child { visibility: hidden; }
  td { padding: 7px 12px 7px 0; border-bottom: 0.5px solid #f0f0f0; }
  h2 + p { margin-top: 0; }
</style>

page-break-inside: avoid on each <h2> section. Write to a temp file, then pass to the pdf skill.