{
  "schemaVersion": "1.0.0",
  "workflowVersion": 1,
  "workflow": {
    "id": "wf-branding-extract-flow",
    "name": "Brand Extraction (Web Browse)",
    "description": "Text Input -> Web Browse -> Prompt Template -> LLM (extract brand name / logo URL / colors / font / tagline as JSON) -> Output Parser -> Output. Fetches a website with a real headless browser so JS-rendered pages work, then asks the LLM to extract structured branding data from the page title, meta tags, image URLs and text. The model does not see the screenshot or the page's CSS, so it reports colors and fonts only when the page data states them. A user_prompt sent with the run replaces the inline URL.",
    "schemaVersion": "1.0.0",
    "workflowVersion": 1,
    "nodes": [
      {
        "id": "input_1",
        "type": "text_input",
        "name": "Brand URL",
        "position": { "x": 70, "y": 220 },
        "config": {
          "text": "https://example.com"
        }
      },
      {
        "id": "browse_1",
        "type": "web_browse",
        "name": "Fetch Brand Site",
        "position": { "x": 360, "y": 220 },
        "config": {
          "urlTemplate": "{{user_prompt}}",
          "waitUntil": "networkidle",
          "timeoutMs": 45000,
          "screenshot": true,
          "extractText": true,
          "extractLinks": false,
          "extractImages": true,
          "viewportWidth": 1440,
          "viewportHeight": 900,
          "outputKey": "brandSite"
        }
      },
      {
        "id": "prompt_1",
        "type": "prompt_template",
        "name": "Extract Branding",
        "position": { "x": 670, "y": 220 },
        "config": {
          "template": "You are a brand-asset extractor. Below is data extracted from one web page: its title, meta tags, image URLs and visible text. You cannot see the page's styles or a screenshot, so only report a color or a font when the data below states it (for example a theme-color meta tag or text that names it); otherwise use an empty string.\n\nPAGE TITLE: {{title}}\n\nMETA DESCRIPTION: {{ meta[\"description\"] }}\n\nMETA OG IMAGE: {{ meta[\"og:image\"] }}\n\nMETA THEME COLOR: {{ meta[\"theme-color\"] }}\n\nKEY IMAGES (first 10):\n{{ images.slice(0, 10) }}\n\nPAGE TEXT (first 4000 chars):\n{{ text.slice(0, 4000) }}\n\nReturn ONLY a JSON object on one line, no markdown:\n{\"brand\":\"<official brand name>\",\"primaryLogoUrl\":\"<URL of the main logo image, or empty>\",\"primaryColor\":\"<hex color stated in the data, or empty>\",\"accentColor\":\"<hex, or empty>\",\"fontFamily\":\"<typeface named in the data, or empty>\",\"tagline\":\"<short slogan if present>\"}",
          "outputKey": "prompt"
        }
      },
      {
        "id": "llm_1",
        "type": "llm_call",
        "name": "LLM",
        "position": { "x": 980, "y": 220 },
        "config": {
          "provider": {
            "providerId": "openai",
            "model": "gpt-4o-mini",
            "temperature": 0
          },
          "promptKey": "prompt",
          "outputKey": "branding"
        }
      },
      {
        "id": "parse_1",
        "type": "output_parser",
        "name": "Parse JSON",
        "position": { "x": 1290, "y": 220 },
        "config": {
          "mode": "json_schema",
          "inputKey": "branding",
          "jsonSchema": "{\"type\":\"object\",\"properties\":{\"brand\":{\"type\":\"string\"},\"primaryLogoUrl\":{\"type\":\"string\"},\"primaryColor\":{\"type\":\"string\"},\"accentColor\":{\"type\":\"string\"},\"fontFamily\":{\"type\":\"string\"},\"tagline\":{\"type\":\"string\"}},\"required\":[\"brand\",\"primaryLogoUrl\"]}",
          "parsingMode": "lenient"
        }
      },
      {
        "id": "output_1",
        "type": "output",
        "name": "Output",
        "position": { "x": 1600, "y": 220 },
        "config": {
          "responseTemplate": "{{parsed}}",
          "outputKey": "parsed"
        }
      }
    ],
    "edges": [
      { "id": "edge_1", "source": "input_1", "target": "browse_1" },
      { "id": "edge_2", "source": "browse_1", "target": "prompt_1" },
      { "id": "edge_3", "source": "prompt_1", "target": "llm_1" },
      { "id": "edge_4", "source": "llm_1", "target": "parse_1" },
      { "id": "edge_5", "source": "parse_1", "target": "output_1" }
    ]
  },
  "exportedAt": "2026-05-10T00:00:00.000Z"
}
