{
  "name": "RecruitAffiliates.ai: interested reply to Slack",
  "flow": [
    {
      "id": 1,
      "module": "gateway:CustomWebHook",
      "version": 1,
      "parameters": {
        "hook": null,
        "maxResults": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        },
        "restore": {}
      }
    },
    {
      "id": 2,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {
        "handleErrors": true,
        "useNewZLibDeCompress": true
      },
      "filter": {
        "name": "Interested replies only",
        "conditions": [
          [
            {
              "a": "{{1.type}}",
              "b": "reply.received",
              "o": "text:equal"
            },
            {
              "a": "{{1.data.reply_kind}}",
              "b": "positive",
              "o": "text:equal"
            }
          ],
          [
            {
              "a": "{{1.type}}",
              "b": "reply.received",
              "o": "text:equal"
            },
            {
              "a": "{{1.data.reply_kind}}",
              "b": "question",
              "o": "text:equal"
            }
          ]
        ]
      },
      "mapper": {
        "url": "https://api.affiliaterail.com/v1/finder/prospects/{{1.data.prospect_id}}",
        "method": "get",
        "headers": [
          {
            "name": "Authorization",
            "value": "Bearer rail_live_REPLACE_WITH_A_READ_ONLY_KEY"
          }
        ],
        "qs": [],
        "bodyType": "",
        "parseResponse": true,
        "timeout": "",
        "shareCookies": false,
        "rejectUnauthorized": true,
        "followRedirect": true,
        "useQuerystring": false,
        "gzip": true,
        "useMtls": false,
        "followAllRedirects": false
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      }
    },
    {
      "id": 3,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {
        "handleErrors": true,
        "useNewZLibDeCompress": true
      },
      "mapper": {
        "url": "https://hooks.slack.com/services/REPLACE/WITH/YOURS",
        "method": "post",
        "headers": [],
        "qs": [],
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\"text\": \"New interested reply from {{2.data.name}}: {{2.data.url}}\"}",
        "parseResponse": false,
        "timeout": "",
        "shareCookies": false,
        "rejectUnauthorized": true,
        "followRedirect": true,
        "useQuerystring": false,
        "gzip": true,
        "useMtls": false,
        "followAllRedirects": false
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      }
    }
  ],
  "metadata": {
    "instant": true,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    }
  }
}