{
  "name": "Switch between work and personal contexts with GPT-4.1 and iPhone automation",
  "nodes": [
    {
      "id": "6b78b076-da19-4507-9948-cc90793875c5",
      "name": "Webhook",
      "type": "n8n-nodes-base.webhook",
      "position": [
        -40,
        20
      ]
    },
    {
      "id": "ad4f88cf-b9bb-4ea0-8129-0c918c3ccc09",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        320,
        20
      ]
    },
    {
      "id": "dd3850c1-2c9e-4de0-a681-58cb012531a5",
      "name": "Structured Output Parser",
      "type": "@n8n/n8n-nodes-langchain.outputParserStructured",
      "position": [
        600,
        260
      ]
    },
    {
      "id": "7aa0daa7-19b1-432a-9348-6382deabd3f9",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        180,
        220
      ]
    },
    {
      "id": "d32ab79f-3457-4abf-b164-906bf5cd37b8",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -100,
        -80
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "### Event listener called from  iphone automation. "
      }
    },
    {
      "id": "980d4203-bf36-4eeb-a98c-577aa08cc868",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        320,
        -80
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "### Basic agent (with memory so not be repetitive), a personalised prompt to suit my humour and output parsed to simple JSON. "
      }
    },
    {
      "id": "9839b581-da60-47d8-a462-6c4b4b9f712f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        680,
        -80
      ],
      "parameters": {
        "width": null,
        "height": 80,
        "content": "### Flatten JSON"
      }
    },
    {
      "id": "f375c7b6-3544-4f10-af34-e96883f12878",
      "name": "Flatten JSON",
      "type": "n8n-nodes-base.code",
      "position": [
        720,
        20
      ]
    }
  ],
  "connections": {
    "Webhook": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Flatten JSON",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Flatten JSON": {
      "main": [
        []
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Structured Output Parser": {
      "ai_outputParser": [
        [
          {
            "node": "AI Agent",
            "type": "ai_outputParser",
            "index": 0
          }
        ]
      ]
    }
  }
}