{
  "openruna_format": "flow-graph-v1",
  "title": "0892_Webhook_Code_Create_Webhook",
  "slug": "0892-webhook-code-create-webhook",
  "source_filename": "0892_Webhook_Code_Create_Webhook.json",
  "nodes": [
    {
      "id": "OpenAI",
      "name": "OpenAI",
      "integration": "@n8n/n8n-nodes-langchain.openAi",
      "kind": "action"
    },
    {
      "id": "Configure",
      "name": "Configure",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Iterate over email attachments",
      "name": "Iterate over email attachments",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Not a PDF",
      "name": "Not a PDF",
      "integration": "noOp",
      "kind": "logic"
    },
    {
      "id": "Is text within token limit?",
      "name": "Is text within token limit?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Merge",
      "name": "Merge",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Is matched",
      "name": "Is matched",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Upload file to folder",
      "name": "Upload file to folder",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Webhook",
      "name": "Webhook",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Respond to Webhook",
      "name": "Respond to Webhook",
      "integration": "respondToWebhook",
      "kind": "action"
    },
    {
      "id": "Create folder",
      "name": "Create folder",
      "integration": "googleDrive",
      "kind": "action"
    },
    {
      "id": "Aggregate attachments",
      "name": "Aggregate attachments",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Send email with invoices?",
      "name": "Send email with invoices?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Send to my accountant",
      "name": "Send to my accountant",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Get emails with attachments",
      "name": "Get emails with attachments",
      "integration": "gmail",
      "kind": "action"
    },
    {
      "id": "Read PDF email attachments",
      "name": "Read PDF email attachments",
      "integration": "readPDF",
      "kind": "action"
    },
    {
      "id": "Is attachment a PDF?",
      "name": "Is attachment a PDF?",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Optional filter for emails",
      "name": "Optional filter for emails",
      "integration": "filter",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Merge",
      "to": "Is matched"
    },
    {
      "from": "OpenAI",
      "to": "Merge"
    },
    {
      "from": "Webhook",
      "to": "Create folder"
    },
    {
      "from": "Configure",
      "to": "Get emails with attachments"
    },
    {
      "from": "Is matched",
      "to": "Upload file to folder"
    },
    {
      "from": "Is matched",
      "to": "Send email with invoices?"
    },
    {
      "from": "Create folder",
      "to": "Configure"
    },
    {
      "from": "Create folder",
      "to": "Respond to Webhook"
    },
    {
      "from": "Is attachment a PDF?",
      "to": "Read PDF email attachments"
    },
    {
      "from": "Is attachment a PDF?",
      "to": "Not a PDF"
    },
    {
      "from": "Aggregate attachments",
      "to": "Send to my accountant"
    },
    {
      "from": "Send email with invoices?",
      "to": "Aggregate attachments"
    },
    {
      "from": "Optional filter for emails",
      "to": "Iterate over email attachments"
    },
    {
      "from": "Read PDF email attachments",
      "to": "Is text within token limit?"
    },
    {
      "from": "Get emails with attachments",
      "to": "Optional filter for emails"
    },
    {
      "from": "Is text within token limit?",
      "to": "OpenAI"
    },
    {
      "from": "Is text within token limit?",
      "to": "Merge"
    },
    {
      "from": "Iterate over email attachments",
      "to": "Is attachment a PDF?"
    }
  ]
}