{
  "meta": {
    "templateId": "2436"
  },
  "nodes": [
    {
      "id": "b24c6e28-3c9e-4069-9e87-49b2efd47257",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1200,
        660
      ],
      "parameters": {
        "model": "gpt-4o-mini",
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "c71a3e22-f0fd-4377-9be2-32438b282430",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        240
      ],
      "parameters": {
        "color": 7,
        "width": 636.2128494576581,
        "height": 494.9629292914819,
        "content": "![Siri \ud15c\ud50c\ub9bf \uc378\ub124\uc77c](https://uploads.n8n.io/devrel/wf-siri-header.png#full-width)  \n## \"Hey Siri, Ask Agent\" \uc6cc\ud06c\ud50c\ub85c\uc6b0  \n** [Max Tkacz](https://www.linkedin.com/in/maxtkacz) \uac00 [30 Day AI Sprint](https://30dayaisprint.notion.site/) \ub3d9\uc548 \uc81c\uc791**  \n\n\uc774 \ud15c\ud50c\ub9bf\uc740 Apple Shortcuts\uc640 \ud1b5\ud569\ub418\uc5b4 \"Hey Siri\" \uba85\ub839\uc5b4\ub97c \ud1b5\ud574 n8n AI \uc5d0\uc774\uc804\ud2b8\ub97c \ud2b8\ub9ac\uac70\ud569\ub2c8\ub2e4. \uc20f\ucef7\uc740 \uc74c\uc131 \uc785\ub825\uc744 \uc694\uccad\ud558\uace0, \uc774\ub97c \ud14d\uc2a4\ud2b8\ub85c \ubcc0\ud658\ud55c \ud6c4 \uc6cc\ud06c\ud50c\ub85c\uc758 `When Called by Apple Shortcut` \uc6f9\ud6c5 \ud2b8\ub9ac\uac70\ub85c \ubcf4\ub0c5\ub2c8\ub2e4. AI \uc5d0\uc774\uc804\ud2b8\uac00 \uc785\ub825\uc744 \ucc98\ub9ac\ud558\uace0, Siri\uac00 \uc751\ub2f5\uc744 \uc74c\uc131\uc73c\ub85c \uc804\ub2ec\ud569\ub2c8\ub2e4.  \n\n\uc6cc\ud06c\ud50c\ub85c\uc6b0\ub294 \ud604\uc7ac \ub0a0\uc9dc\uc640 \uc2dc\uac04\uc744 `AI Agent`\uc5d0 \uc804\ub2ec\ud558\uba70, App \ub178\ub4dc\uc640 \uac19\uc740 \ucd94\uac00 \ucee8\ud14d\uc2a4\ud2b8\ub97c \ucd94\uac00\ud558\uc5ec \ub354 \ub9de\ucda4\ud615 \uc751\ub2f5\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."
      },
      "typeVersion": 1
    },
    {
      "id": "a4ec93c3-eefa-4006-b02c-f995fb7bc410",
      "name": "Respond to Apple Shortcut",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1640,
        460
      ],
      "parameters": {
        "options": {},
        "respondWith": "text",
        "responseBody": "={{ $json.output }}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "942b284e-e26a-4534-8f33-eb92b0a88fdb",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        760
      ],
      "parameters": {
        "color": 7,
        "width": 280.2462120317618,
        "height": 438.5821431288714,
        "content": "### \uc124\uc815 \ub2e8\uacc4\n1. `OpenAI Chat Model` \ub178\ub4dc\uc5d0 OpenAI API \uc790\uaca9 \uc99d\uba85\uc744 \ucd94\uac00\ud558\uac70\ub098 \ub2e4\ub978 \ubaa8\ub378\ub85c \uad50\uccb4\ud558\uc138\uc694. \ubb34\ub8cc \ub300\uc548\uc73c\ub85c `Groq`\ub97c \uc2dc\ub3c4\ud574\ubcf4\uc138\uc694 (\ubb34\ub8cc Groq \uacc4\uc815\uc73c\ub85c \uc0ac\uc6a9\ud560 \uc218 \uc788\uc74c, CC \uc5c6\uc74c).\n2. `When called by Apple Shortcut` \ub178\ub4dc\uc5d0\uc11c \"Production URL\"\uc744 \ubcf5\uc0ac\ud558\uc138\uc694. \uc20f\ucef7 \uc124\uc815 \uc2dc \ud544\uc694\ud569\ub2c8\ub2e4.\n3. \uc774 n8n \uc6cc\ud06c\ud50c\ub85c\ub97c \uc800\uc7a5\ud558\uace0 \ud65c\uc131\ud654\ud558\uc138\uc694.\n4. [Apple Shortcut here](https://uploads.n8n.io/devrel/ask-agent.shortcut)\ub97c \ub2e4\uc6b4\ub85c\ub4dc\ud558\uc5ec macOS \ub610\ub294 iOS\uc5d0\uc11c \uc5f4\uc5b4\uc8fc\uc138\uc694. \uc774\ub85c\uc368 \uc20f\ucef7\uc774 \uae30\uae30\uc5d0 \ucd94\uac00\ub429\ub2c8\ub2e4.\n5. \uc20f\ucef7\uc744 \uc5f4\uace0 `Get contents of` \ub2e8\uacc4\uc5d0\uc11c URL\uc744 `When called by Apple Shortcut`\uc5d0\uc11c \ubcf5\uc0ac\ud55c \"Production URL\"\ub85c \uad50\uccb4\ud558\uc138\uc694.\n6. \"Hey Siri, AI Agent\"\ub77c\uace0 \ub9d0\ud558\uc5ec \ud14c\uc2a4\ud2b8\ud558\uc138\uc694. \uadf8\ub7f0 \ub2e4\uc74c \uc9c8\ubb38\uc744 \ud558\uc138\uc694."
      },
      "typeVersion": 1
    },
    {
      "id": "ebb9e886-546a-429c-b4b5-35c0a7b6370e",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        503.6292958565226,
        760
      ],
      "parameters": {
        "color": 7,
        "width": 330.5152611046425,
        "height": 240.6839895136402,
        "content": "... \ub610\ub294 \uc124\uc815 \ube44\ub514\uc624 \ubcf4\uae30 [5\ubd84]  \n[![Siri \ud15c\ud50c\ub9bf \uc378\ub124\uc77c](https://uploads.n8n.io/devrel/thumb-siri.png#full-width)](https://youtu.be/dewsB-4iGA8)"
      },
      "typeVersion": 1
    },
    {
      "id": "5a842fa9-be8c-4ba8-996b-a26a53273b3f",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "position": [
        1240,
        460
      ],
      "parameters": {
        "text": "=Here is my request: {{ $json.body.input }}\n",
        "agent": "conversationalAgent",
        "options": {
          "systemMessage": "=## Task\nYou are a helpful assistant. Provide concise replies as the user receives them via voice on their mobile phone. Avoid using symbols like \"\\n\" to prevent them from being narrated.\n\n## Context\n- Today is {{ $now.format('dd LLL yy') }}.\n- Current time: {{ $now.format('h:mm a') }} in Berlin, Germany.\n- When asked, you are an AI Agent running as an n8n workflow.\n\n## Output\nKeep responses short and clear, optimized for voice delivery. Don't hallucinate, if you don't know the answer, say you don't know. "
        },
        "promptType": "define",
        "hasOutputParser": true
      },
      "typeVersion": 1.6
    },
    {
      "id": "598d22d5-7472-44c5-ab2e-69c8bbb23ddd",
      "name": "When called by Apple Shortcut",
      "type": "n8n-nodes-base.webhook",
      "position": [
        980,
        460
      ],
      "parameters": {
        "path": "assistant",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    }
  ],
  "connections": {
    "AI Agent": {
      "main": [
        [
          {
            "node": "Respond to Apple Shortcut",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "When called by Apple Shortcut": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}