{
  "name": "Verify AI draft answers with Pearl Hybrid Intelligence and OpenAI",
  "nodes": [
    {
      "id": "05107af8-a4e3-4aa0-a1e9-f0ce0ae57148",
      "name": "Overview",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -544,
        48
      ],
      "parameters": {
        "width": 528,
        "height": 540,
        "content": "# Verify AI answers with Pearl Hybrid Intelligence and Open AI\n\n## How it works\n1. A user asks a question.\n2. If anything is missing, the assistant asks one focused follow-up question.\n3. Once ready, "
      }
    },
    {
      "id": "f37c8600-de53-40e3-8a2d-0a2d58158860",
      "name": "Pearl Verify Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        160,
        368
      ]
    },
    {
      "id": "18b2c188-327d-4823-972f-7f0d7f38cf8e",
      "name": "Prepare Input",
      "type": "n8n-nodes-base.code",
      "position": [
        384,
        368
      ]
    },
    {
      "id": "bd546b30-10b0-4b16-91c0-0eae052510b9",
      "name": "OpenAI - Clarify",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        608,
        368
      ]
    },
    {
      "id": "2ee71615-4cb2-44b9-8930-872ec49adb37",
      "name": "IF - Needs clarification?",
      "type": "n8n-nodes-base.if",
      "position": [
        832,
        368
      ]
    },
    {
      "id": "ef4c9f2e-6194-4994-8893-8a50d649a328",
      "name": "Respond: Clarification Question",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1056,
        272
      ]
    },
    {
      "id": "0e62e22c-5af6-47c4-816b-147172e3f99d",
      "name": "Open AI - Draft Answer",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        992,
        624
      ]
    },
    {
      "id": "50264f0c-d972-48ac-9661-3ddd01a958ca",
      "name": "MCP Client",
      "type": "@n8n/n8n-nodes-langchain.mcpClient",
      "position": [
        1216,
        624
      ]
    },
    {
      "id": "c5e89c86-8dbd-49ee-83ba-47b7c8f7454d",
      "name": "Respond: Verified Answer by Pearl Expert",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1408,
        624
      ]
    },
    {
      "id": "76ac001e-e195-41af-89e8-8ead030182be",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        96,
        256
      ],
      "parameters": {
        "width": 432,
        "height": 272,
        "content": "## 1) Intake & prompt setup\nReceives the user conversation and prepares prompts for intake + drafting.\n"
      }
    },
    {
      "id": "6e1aa795-0ac0-466c-904a-fa5272aa8db2",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        544,
        256
      ],
      "parameters": {
        "width": 704,
        "height": 272,
        "content": "## 2) Intake (clarification)\nAsks one follow-up question if more information is needed.\n"
      }
    },
    {
      "id": "2fb6d5ed-147a-4c96-8753-0c7f483aef4b",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        896,
        544
      ],
      "parameters": {
        "width": 704,
        "height": 240,
        "content": "## 3) Draft + expert verification\nDrafts an answer, then sends it to Pearl for professional verification.\n"
      }
    }
  ],
  "connections": {
    "MCP Client": {
      "main": [
        [
          {
            "node": "Respond: Verified Answer by Pearl Expert",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare Input": {
      "main": [
        [
          {
            "node": "OpenAI - Clarify",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Clarify": {
      "main": [
        [
          {
            "node": "IF - Needs clarification?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pearl Verify Webhook": {
      "main": [
        [
          {
            "node": "Prepare Input",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Open AI - Draft Answer": {
      "main": [
        [
          {
            "node": "MCP Client",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "IF - Needs clarification?": {
      "main": [
        [
          {
            "node": "Respond: Clarification Question",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Open AI - Draft Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}