{
  "nodes": [
    {
      "id": "b165115d-5505-4e03-bf41-c21320cb8b09",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        40
      ],
      "parameters": {
        "color": 7,
        "width": 681.8337349708484,
        "height": 843.1482165886073,
        "content": "## \uc6cc\ud06c\ud50c\ub85c\uc6b0: Apple Shortcuts\ub97c \uc0ac\uc6a9\ud55c \ud14d\uc2a4\ud2b8 \uc790\ub3d9\ud654\n\n**\uac1c\uc694**  \n- \uc774 \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub294 Apple Shortcuts\ub97c \ud1b5\ud574 \ubcf4\ub0b4\uc9c4 \uc0ac\uc6a9\uc790 \uc694\uccad\uc5d0 \ub2f5\ubcc0\ud569\ub2c8\ub2e4.  \n- \uc5ec\ub7ec Shortcuts\uac00 \ub3d9\uc77c\ud55c \uc6f9\ud6c5\uc744 \ud638\ucd9c\ud558\uba70, \ucffc\ub9ac\uc640 \ucffc\ub9ac \uc720\ud615\uc744 \ud3ec\ud568\ud569\ub2c8\ub2e4.  \n- \ucffc\ub9ac \uc720\ud615\uc740 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4:  \n  - \uc601\uc5b4\ub85c \ubc88\uc5ed  \n  - \uc2a4\ud398\uc778\uc5b4\ub85c \ubc88\uc5ed  \n  - \ubb38\ubc95 \uc218\uc815 (\uc2e4\uc81c \ub0b4\uc6a9\uc744 \ubcc0\uacbd\ud558\uc9c0 \uc54a\uc74c)  \n  - \ub0b4\uc6a9\uc744 \ub354 \uc9e7\uac8c \ub9cc\ub4e4\uae30  \n  - \ub0b4\uc6a9\uc744 \ub354 \uae38\uac8c \ub9cc\ub4e4\uae30  \n\n**\uc791\ub3d9 \uc6d0\ub9ac**  \n- \uc791\uc131 \uc911\uc778 \ud14d\uc2a4\ud2b8\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4.  \n- Shortcuts\ub97c \uc2e4\ud589\ud569\ub2c8\ub2e4.  \n- \ud14d\uc2a4\ud2b8\uac00 \uc6f9\ud6c5\uc73c\ub85c \uc804\uc1a1\ub429\ub2c8\ub2e4.  \n- \uc694\uccad \uc720\ud615\uc5d0 \ub530\ub77c \ub2e4\ub978 \ud504\ub86c\ud504\ud2b8\uac00 \uc0ac\uc6a9\ub429\ub2c8\ub2e4.  \n- \uac01 \uc694\uccad\uc740 OpenAI \ub178\ub4dc\ub85c \uc804\uc1a1\ub429\ub2c8\ub2e4.  \n- \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub294 GPT\uc758 \uc751\ub2f5\uc73c\ub85c \uc694\uccad\uc5d0 \ub2f5\ubcc0\ud569\ub2c8\ub2e4.  \n- Shortcuts\uac00 \uc120\ud0dd\ub41c \ud14d\uc2a4\ud2b8\ub97c \uc0c8 \ud14d\uc2a4\ud2b8\ub85c \uad50\uccb4\ud569\ub2c8\ub2e4.  \n\n**\uc0ac\uc6a9 \ubc29\ubc95**  \n- \uc6cc\ud06c\ud50c\ub85c\uc6b0\ub97c \ud65c\uc131\ud654\ud569\ub2c8\ub2e4.  \n- [\uc774 Shortcuts \ud15c\ud50c\ub9bf](https://drive.usercontent.google.com/u/0/uc?id=16zs5iJX7KeX_4e0SoV49_KfbU7-EF0NE&export=download)\uc744 \ub2e4\uc6b4\ub85c\ub4dc\ud569\ub2c8\ub2e4.  \n- Shortcuts\ub97c \uc124\uce58\ud569\ub2c8\ub2e4.  \n- Shortcuts\uc758 2\ub2e8\uacc4\uc5d0\uc11c Webhook\uc758 URL\uc744 \ubcc0\uacbd\ud569\ub2c8\ub2e4.  \n- Shortcuts \uc138\ubd80\uc0ac\ud56d\uc5d0\uc11c \uc6d0\ud558\ub294 \ud0a4\ub85c \"\ud0a4\ubcf4\ub4dc \ub2e8\ucd95\ud0a4 \ucd94\uac00\"\ub97c \ud569\ub2c8\ub2e4.  \n- \uc124\uc815\uc73c\ub85c \uc774\ub3d9\ud558\uc5ec \uace0\uae09 \uc124\uc815\uc5d0\uc11c \"\uc2a4\ud06c\ub9bd\ud2b8 \uc2e4\ud589 \ud5c8\uc6a9\"\uc744 \uccb4\ud06c\ud569\ub2c8\ub2e4.  \n- \uc774\uc81c Shortcuts\ub97c \uc0ac\uc6a9\ud560 \uc900\ube44\uac00 \ub418\uc5c8\uc2b5\ub2c8\ub2e4. \ud14d\uc2a4\ud2b8\ub97c \uc120\ud0dd\ud558\uace0 \ubc29\uae08 \uc815\uc758\ud55c \ud0a4\ubcf4\ub4dc \ub2e8\ucd95\ud0a4\ub97c \ub204\ub985\ub2c8\ub2e4.  \n\n**\ub178\ud2b8**  \n- \uc11c\uc2dd \uc788\ub294 \ud14d\uc2a4\ud2b8\ub97c \uc0ac\uc6a9\ud560 \uacbd\uc6b0, \ucd9c\ub825\uc5d0\uc11c \ubb38\uc790\ub97c \uad50\uccb4\ud558\ub294 \uc5ec\ub7ec \ubc29\ubc95\uc744 \ud14c\uc2a4\ud2b8\ud574\uc57c \ud569\ub2c8\ub2e4. \uc608\ub97c \ub4e4\uc5b4, \uc0ac\uc6a9\ud558\ub294 \uc571\uc5d0 \ub530\ub77c \"Respond to Shortcut\" \ub178\ub4dc\uc5d0\uc11c `{{ $json.message.content.output.replaceAll('\\n', \"<br/>\") }}`\uc744 \uc0ac\uc6a9\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.  \n- \uc774\ub294 \uae30\ubcf8 \uc608\uc2dc\ub85c, \uc6d0\ud558\ub294 \ub300\ub85c \ud655\uc7a5\ud558\uac70\ub098 \uc218\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.  \n- \uc774 \uc608\uc2dc Shortcuts\ub97c \ubcf5\uc81c\ud558\uc5ec \uc218\uc815\ud558\uac70\ub098, \uc774 \uc6cc\ud06c\ud50c\ub85c\uc6b0\uc5d0\uc11c \uc0c8\ub85c\uc6b4 \uc790\ub3d9\ud654\ub97c \ub9cc\ub4e4 \uc218 \uc788\uc2b5\ub2c8\ub2e4."
      },
      "typeVersion": 1
    },
    {
      "id": "c45400b8-d3b8-47f7-81c6-d791bce4c266",
      "name": "Switch",
      "type": "n8n-nodes-base.switch",
      "position": [
        1020,
        380
      ],
      "parameters": {
        "rules": {
          "values": [
            {
              "outputKey": "spanish",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "operator": {
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.body.type }}",
                    "rightValue": "spanish"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "english",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "bedb302f-646c-4dcd-8246-1fcfecfe3f2e",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.body.type }}",
                    "rightValue": "english"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "grammar",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "94e6cf7d-576d-4ad9-85b0-c6b945eb41b7",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.body.type }}",
                    "rightValue": "grammar"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "shorter",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "1ed0d1e1-2df0-4f8d-b102-4004a25919ed",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.body.type }}",
                    "rightValue": "shorter"
                  }
                ]
              },
              "renameOutput": true
            },
            {
              "outputKey": "longer",
              "conditions": {
                "options": {
                  "version": 2,
                  "leftValue": "",
                  "caseSensitive": true,
                  "typeValidation": "strict"
                },
                "combinator": "and",
                "conditions": [
                  {
                    "id": "4756df03-7e7c-4e28-9b37-14684326b083",
                    "operator": {
                      "name": "filter.operator.equals",
                      "type": "string",
                      "operation": "equals"
                    },
                    "leftValue": "={{ $json.body.type }}",
                    "rightValue": "longer"
                  }
                ]
              },
              "renameOutput": true
            }
          ]
        },
        "options": {}
      },
      "typeVersion": 3.2
    },
    {
      "id": "48e0e58e-6293-4e11-a488-ca9943b53484",
      "name": "Respond to Shortcut",
      "type": "n8n-nodes-base.respondToWebhook",
      "position": [
        1840,
        400
      ],
      "parameters": {
        "options": {},
        "respondWith": "text",
        "responseBody": "={{ $json.message.content.output.replaceAll('\\n', '<br/>') }}"
      },
      "typeVersion": 1.1
    },
    {
      "id": "2655b782-9538-416c-ae65-35f8c77889c7",
      "name": "Webhook from Shortcut",
      "type": "n8n-nodes-base.webhook",
      "position": [
        840,
        400
      ],
      "parameters": {
        "path": "shortcut-global-as",
        "options": {},
        "httpMethod": "POST",
        "responseMode": "responseNode"
      },
      "typeVersion": 2
    },
    {
      "id": "880ed4a2-0756-4943-a51f-368678e22273",
      "name": "OpenAI - Make Shorter",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1300,
        540
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "GPT-4O-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Summarize this content a little bit (5% shorter)\nOutput a JSON with a single field: output"
            },
            {
              "content": "={{ $json.body.content }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.4
    },
    {
      "id": "c6c6d988-7aab-4677-af1f-880d05691ec3",
      "name": "OpenAI - Make Longer",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1300,
        680
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "GPT-4O-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Make this content a little longer (5% longer)\nOutput a JSON with a single field: output"
            },
            {
              "content": "={{ $json.body.content }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.4
    },
    {
      "id": "8e6de4b7-22c3-45c9-a8d7-d498cf829b6f",
      "name": "OpenAI - Correct Grammar",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1300,
        400
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "GPT-4O-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Correct grammar only, don't change the actual contents.\nOutput a JSON with a single field: output"
            },
            {
              "content": "={{ $json.body.content }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.4
    },
    {
      "id": "bc006b36-5a96-4c3a-9a28-2778a6c49f10",
      "name": "OpenAI - To Spanish",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1300,
        120
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "GPT-4O-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Translate this message to Spanish.\nOutput a JSON with a single field: output"
            },
            {
              "content": "={{ $json.body.content }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.4
    },
    {
      "id": "330d2e40-1e52-4517-94e0-ce96226697fa",
      "name": "OpenAI - To English",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        1300,
        260
      ],
      "parameters": {
        "modelId": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-4o-mini",
          "cachedResultName": "GPT-4O-MINI"
        },
        "options": {},
        "messages": {
          "values": [
            {
              "role": "system",
              "content": "Translate this message to English.\nOutput a JSON with a single field: output"
            },
            {
              "content": "={{ $json.body.content }}"
            }
          ]
        },
        "jsonOutput": true
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.4
    },
    {
      "id": "925e4b55-ac26-4c16-941f-66d17b6794ab",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        80,
        900
      ],
      "parameters": {
        "color": 7,
        "width": 469.15174499329123,
        "height": 341.88919758842485,
        "content": "\uc774 \uc124\uba85\ub4e4\uc744 \ud655\uc778\ud558\uc138\uc694 [3\ubd84 \ubbf8\ub9cc]"
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Switch": {
      "main": [
        [
          {
            "node": "OpenAI - To Spanish",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "OpenAI - To English",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "OpenAI - Correct Grammar",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "OpenAI - Make Shorter",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "OpenAI - Make Longer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - To English": {
      "main": [
        [
          {
            "node": "Respond to Shortcut",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - To Spanish": {
      "main": [
        [
          {
            "node": "Respond to Shortcut",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Make Longer": {
      "main": [
        [
          {
            "node": "Respond to Shortcut",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Make Shorter": {
      "main": [
        [
          {
            "node": "Respond to Shortcut",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Webhook from Shortcut": {
      "main": [
        [
          {
            "node": "Switch",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Correct Grammar": {
      "main": [
        [
          {
            "node": "Respond to Shortcut",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}