{
  "name": "OLO • Заявка с сайта",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "hook": null,
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Заявка с сайта"
        },
        "parameters": [
          {
            "name": "hook",
            "type": "hook:gateway-webhook",
            "label": "Webhook",
            "required": true
          },
          {
            "name": "maxResults",
            "type": "number",
            "label": "Maximum number of results"
          }
        ],
        "interface": [
          {
            "name": "value",
            "type": "text",
            "label": "Raw JSON"
          }
        ]
      }
    },
    {
      "id": 2,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {
        "handleErrors": false,
        "useNewZLibDeCompress": true
      },
      "mapper": {
        "url": "https://company.olo.kz/api/integrations/v1/tasks",
        "method": "post",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer SET_OLO_API_KEY"
          },
          {
            "name": "Accept",
            "value": "application/json"
          }
        ],
        "qs": [],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{{1.value}}",
        "parseResponse": false,
        "followRedirect": false,
        "followAllRedirects": false,
        "timeout": 8,
        "shareCookies": false,
        "useQuerystring": false,
        "serializeUrl": false,
        "gzip": true,
        "rejectUnauthorized": true
      },
      "metadata": {
        "designer": {
          "x": 280,
          "y": 0,
          "name": "Создать задачу в OLO"
        },
        "interface": [
          {
            "name": "statusCode",
            "type": "number",
            "label": "Status code"
          },
          {
            "name": "data",
            "type": "any",
            "label": "Data"
          }
        ]
      }
    },
    {
      "id": 3,
      "module": "gateway:WebhookRespond",
      "version": 1,
      "parameters": {},
      "mapper": {
        "status": "{{2.statusCode}}",
        "body": "{{2.data}}",
        "headers": [
          {
            "key": "Content-Type",
            "value": "application/json; charset=utf-8"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 560,
          "y": 0,
          "name": "Ответить сайту"
        }
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    },
    "notes": []
  }
}
