{
  "id": "fl0000000000001",
  "name": "問い合わせフォームを LINE に通知",
  "active": true,
  "nodes": [
    {
      "id": "m1",
      "name": "フォームの受け口",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 2,
      "position": [0, 0],
      "webhookId": "a1b2c3d4-0000-4000-8000-000000000001",
      "parameters": {
        "httpMethod": "POST",
        "path": "inquiry",
        "responseMode": "onReceived",
        "options": {}
      }
    },
    {
      "id": "m2",
      "name": "LINE にプッシュ",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [260, 0],
      "parameters": {
        "method": "POST",
        "url": "={{ $env.LINE_BASE }}/v2/bot/message/push",
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "Authorization",
              "value": "=Bearer {{ $env.LINE_TOKEN }}"
            }
          ]
        },
        "sendBody": true,
        "specifyBody": "json",
        "jsonBody": "={{ JSON.stringify({ to: $env.LINE_TO, messages: [{ type: 'text', text: '問い合わせがありました\\nお名前: ' + $json.body.name + '\\n内容: ' + $json.body.message }] }) }}",
        "options": {}
      }
    }
  ],
  "connections": {
    "フォームの受け口": {
      "main": [
        [
          {
            "node": "LINE にプッシュ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "22222222-2222-4222-8222-222222222222"
}
