n8n-workflow-simple.json•2.33 kB
{
  "name": "Human Design - Railway (Simple)",
  "nodes": [
    {
      "parameters": {},
      "name": "On Button Click",
      "type": "n8n-nodes-base.start",
      "typeVersion": 1,
      "position": [240, 300]
    },
    {
      "parameters": {
        "url": "={{ $env.RAILWAY_API_URL }}/api/human-design",
        "authentication": "none",
        "sendBody": true,
        "method": "POST",
        "jsonParameters": true,
        "bodyParametersJson": "={\n  \"birthDate\": \"1990-05-15\",\n  \"birthTime\": \"14:30\",\n  \"birthLocation\": \"Москва, Россия\"\n}",
        "options": {}
      },
      "name": "Railway API",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4,
      "position": [460, 300]
    },
    {
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "type",
              "name": "type",
              "value": "={{ $json.data.type.ru_name }}",
              "type": "string"
            },
            {
              "id": "strategy",
              "name": "strategy",
              "value": "={{ $json.data.strategy }}",
              "type": "string"
            },
            {
              "id": "authority",
              "name": "authority",
              "value": "={{ $json.data.authority.ru_name }}",
              "type": "string"
            },
            {
              "id": "profile",
              "name": "profile",
              "value": "={{ $json.data.profile.number }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "name": "Extract Data",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "position": [680, 300]
    }
  ],
  "connections": {
    "On Button Click": {
      "main": [
        [
          {
            "node": "Railway API",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Railway API": {
      "main": [
        [
          {
            "node": "Extract Data",
            "type": "main",
            "index": 0
          }
        ]
      ]
      ]
    }
  },
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "staticData": null,
  "tags": [],
  "triggerCount": 0,
  "updatedAt": "2024-01-01T00:00:00.000Z",
  "versionId": "1"
}