{
  "name": "Auto-generate meeting attendee research with GPT-4o, Google Calendar, and Gmail",
  "nodes": [
    {
      "id": "7976731d-692d-45f8-b986-3f82d998dfa0",
      "name": "Research Company",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        600,
        780
      ]
    },
    {
      "id": "2f123bde-a5a0-4828-81e8-b875ac27d081",
      "name": "Research Person",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        940,
        960
      ]
    },
    {
      "id": "07131cea-4600-479f-9048-3e1ec26dac25",
      "name": "Google Calendar Trigger",
      "type": "n8n-nodes-base.googleCalendarTrigger",
      "position": [
        -1000,
        940
      ]
    },
    {
      "id": "fece4fec-b5e5-43ee-8bb2-64093729137a",
      "name": "Filter Out Myself",
      "type": "n8n-nodes-base.filter",
      "position": [
        -320,
        940
      ]
    },
    {
      "id": "c25cf9a0-99b9-4e52-8852-0824ff53982c",
      "name": "Split Out Attendees",
      "type": "n8n-nodes-base.splitOut",
      "position": [
        -480,
        940
      ]
    },
    {
      "id": "e7709b40-db55-4b4f-8953-218b96d38d73",
      "name": "For Each Attendee",
      "type": "n8n-nodes-base.splitInBatches",
      "position": [
        -40,
        940
      ]
    },
    {
      "id": "5db7b2b5-078e-4b3a-b8b6-d12903127a93",
      "name": "Is Company Email?",
      "type": "n8n-nodes-base.if",
      "position": [
        260,
        960
      ]
    },
    {
      "id": "14e226d4-7f42-4da3-b941-9c69facbbbf6",
      "name": "Combine All Research",
      "type": "n8n-nodes-base.aggregate",
      "position": [
        260,
        260
      ]
    },
    {
      "id": "599fb5b6-8426-4edf-bae8-34ad69aa68e9",
      "name": "Collect Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        1100,
        960
      ]
    },
    {
      "id": "d226f2f5-9671-49b7-bd3d-eea8896aee87",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1040,
        620
      ],
      "parameters": {
        "width": 880,
        "height": 700,
        "content": "## 1. New Google Calendar Event Detected\n\nOur workflow is triggered when a new calendar event comes in. \n\nThe event gives us access to a list of attendees which we can loop over in the next step. We n"
      }
    },
    {
      "id": "89881dac-69cb-42fd-995c-bc459eab28a5",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        620
      ],
      "parameters": {
        "width": 1120,
        "height": 700,
        "content": "## 2. Research Attendee + Company\n\nAPI calls are made to the OpenAI Responses API using the new web search preview endpoint. This allows us to search the web for any mentions of each attendee. If the "
      }
    },
    {
      "id": "2a7f467e-cd0c-45f3-bbcd-9b37746b74ef",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        0
      ],
      "parameters": {
        "width": 1120,
        "height": 580,
        "content": "## 3. Generate + Send Report\n\nFinally, we combine all the data from the meeting attendees into a report. The report gets written in Markdown, converted into HTML, and the send via the Gmail API."
      }
    },
    {
      "id": "d04cf49a-d1fa-4019-9a98-01ec64bd6a37",
      "name": "Write HTML",
      "type": "n8n-nodes-base.markdown",
      "position": [
        440,
        260
      ]
    },
    {
      "id": "ac2a56db-2d80-4412-8985-a29577db5bcb",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -840,
        1100
      ],
      "parameters": {
        "width": 310,
        "height": 200,
        "content": "## Edit Here\nEdit a few variables here to get started:\n- **context**: Some information about you to help the web search return the right people. \n- **email**: The email that you want to send the repor"
      }
    },
    {
      "id": "d32e4220-78fa-4581-abd3-ceff4e95641a",
      "name": "Edit Fields",
      "type": "n8n-nodes-base.set",
      "position": [
        -740,
        940
      ]
    },
    {
      "id": "600667b6-aae3-4a9e-a71c-a0819921a823",
      "name": "Send Report",
      "type": "n8n-nodes-base.gmail",
      "position": [
        600,
        260
      ]
    },
    {
      "id": "863c58b1-3b88-4b25-9191-31c77c2911cd",
      "name": "Person Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        780,
        960
      ]
    },
    {
      "id": "dbc54bdb-1b50-44ae-a3d2-b4ab33d1ecc3",
      "name": "Company Prompt",
      "type": "n8n-nodes-base.set",
      "position": [
        440,
        780
      ]
    }
  ],
  "connections": {
    "Write HTML": {
      "main": [
        [
          {
            "node": "Send Report",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Edit Fields": {
      "main": [
        [
          {
            "node": "Split Out Attendees",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Person Prompt": {
      "main": [
        [
          {
            "node": "Research Person",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Collect Fields": {
      "main": [
        [
          {
            "node": "For Each Attendee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Company Prompt": {
      "main": [
        [
          {
            "node": "Research Company",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Person": {
      "main": [
        [
          {
            "node": "Collect Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Research Company": {
      "main": [
        [
          {
            "node": "Person Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Filter Out Myself": {
      "main": [
        [
          {
            "node": "For Each Attendee",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "For Each Attendee": {
      "main": [
        [
          {
            "node": "Combine All Research",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Is Company Email?",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Is Company Email?": {
      "main": [
        [
          {
            "node": "Company Prompt",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "Person Prompt",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Split Out Attendees": {
      "main": [
        [
          {
            "node": "Filter Out Myself",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Combine All Research": {
      "main": [
        [
          {
            "node": "Write HTML",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Google Calendar Trigger": {
      "main": [
        [
          {
            "node": "Edit Fields",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}