{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "ac121027-b4b4-4e1a-b575-df8dabe472e8",
      "name": "OpenAI Chat Model4",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        -448,
        5248
      ],
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5",
          "cachedResultName": "gpt-5"
        },
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.2
    },
    {
      "id": "e206c83f-d4e9-421e-b84c-7ef3200357ed",
      "name": "When clicking \u2018Execute workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        -1312,
        4736
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "91c82cd7-5c71-4dc3-b06b-27b2cb8857f3",
      "name": "Sticky Note62",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1456,
        4576
      ],
      "parameters": {
        "color": 7,
        "width": 1488,
        "height": 928,
        "content": "# \ud83d\udcb9 Daily Financial Markets Summary with SerpAPI\n\nThis workflow fetches **live financial data** from SerpApi and generates a **daily market recap** using OpenAI.  \n\n"
      },
      "typeVersion": 1
    },
    {
      "id": "8a8cc32d-cf5f-4a8a-91c2-642b2cefc4d5",
      "name": "Sticky Note19",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1888,
        4592
      ],
      "parameters": {
        "width": 400,
        "height": 928,
        "content": "\n## \u2699\ufe0f Setup Instructions  \n\n### 1\ufe0f\u20e3 Set Up SerpApi Connection  \n1. Create a free account at [SerpApi](https://serpapi.com/)  \n2. Copy your **API Key** from the SerpApi dashboard  \n3. In **n8n** \u2192 **Credentials \u2192 New \u2192 SerpApi**  \n   - Paste your API Key \u2192 **Save**  \n4. In the workflow, select your SerpApi credential in the **Finance Search** node.  \n\n---\n\n### 2\ufe0f\u20e3 Set Up OpenAI Connection  \n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys)  \n2. Navigate to [OpenAI Billing](https://platform.openai.com/settings/organization/billing/overview)  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI credentials** in n8n  \n\n\n\n## \ud83d\udcec Contact  \nNeed help customizing (e.g., pulling multiple tickers, exporting to Google Sheets, or sending Slack/Email updates)?  \n\n\ud83d\udce7 **robert@ynteractive.com**  \n\ud83d\udd17 **[Robert Breen](https://www.linkedin.com/in/robert-breen-29429625/)**  \n\ud83c\udf10 **[ynteractive.com](https://ynteractive.com)**\n"
      },
      "typeVersion": 1
    },
    {
      "id": "e61e0418-0f80-4084-bcc1-80a52fb35afa",
      "name": "SerpAPI Finance Search",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        -992,
        5184
      ],
      "parameters": {
        "url": "https://serpapi.com/search.json?engine=google_finance&q=^GSPC&api_key=YOUR_TOKEN_HERE",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "30495145-8e9f-4199-853d-570417c95852",
      "name": "Summarize Financial Markets",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        -576,
        4832
      ],
      "parameters": {
        "text": "={{ $json.markets }}",
        "options": {
          "systemMessage": "You are a helpful assistant. Write a daily summary of the financial markets performance for the day. start with a paragraph summary, with bullet points with details. "
        },
        "promptType": "define"
      },
      "typeVersion": 2.2
    },
    {
      "id": "97f0d556-bbc9-4695-af80-023fdd1d8dc7",
      "name": "Sticky Note29",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -560,
        5088
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 304,
        "content": "### 2\ufe0f\u20e3 Set Up OpenAI Connection\n1. Go to [OpenAI Platform](https://platform.openai.com/api-keys)  \n2. Navigate to [OpenAI Billing](https://platform.openai.com/settings/organization/billing/overview)  \n3. Add funds to your billing account  \n4. Copy your API key into the **OpenAI credentials** in n8n  "
      },
      "typeVersion": 1
    },
    {
      "id": "1e3ba01f-4625-4b50-841b-90b58e11a147",
      "name": "Sticky Note30",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1088,
        4960
      ],
      "parameters": {
        "color": 3,
        "width": 288,
        "height": 352,
        "content": "### 1\ufe0f\u20e3 Set Up SerpApi Connection  \n1. Create a free account at [SerpApi](https://serpapi.com/)  \n2. Copy your **API Key** from the dashboard  \n3. In **n8n** \u2192 **Credentials \u2192 New \u2192 SerpApi**  \n   - Paste your API Key \u2192 **Save**  \n4. In the workflow, select your SerpApi credential in the **Google News Search** node.  \n\n---\n"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "OpenAI Chat Model4": {
      "ai_languageModel": [
        [
          {
            "node": "Summarize Financial Markets",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "SerpAPI Finance Search": {
      "main": [
        [
          {
            "node": "Summarize Financial Markets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Execute workflow\u2019": {
      "main": [
        [
          {
            "node": "SerpAPI Finance Search",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}