{
  "openruna_format": "flow-graph-v1",
  "title": "0453_Webhook_Code_Create_Webhook",
  "slug": "0453-webhook-code-create-webhook",
  "source_filename": "0453_Webhook_Code_Create_Webhook.json",
  "nodes": [
    {
      "id": "Start thread",
      "name": "Start thread",
      "integration": "slack",
      "kind": "action"
    },
    {
      "id": "send help",
      "name": "send help",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Validate Slack token",
      "name": "Validate Slack token",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Reply to user that command was received",
      "name": "Reply to user that command was received",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "if has workflow",
      "name": "if has workflow",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Set config",
      "name": "Set config",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Send debug url",
      "name": "Send debug url",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "if create thread",
      "name": "if create thread",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Alert user that thread was created",
      "name": "Alert user that thread was created",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Add debug info",
      "name": "Add debug info",
      "integration": "slack",
      "kind": "action"
    },
    {
      "id": "Execute target workflow",
      "name": "Execute target workflow",
      "integration": "executeWorkflow",
      "kind": "action"
    },
    {
      "id": "Add thread info",
      "name": "Add thread info",
      "integration": "merge",
      "kind": "logic"
    },
    {
      "id": "Handle other commands",
      "name": "Handle other commands",
      "integration": "switch",
      "kind": "logic"
    },
    {
      "id": "Set thread info",
      "name": "Set thread info",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Unknown command",
      "name": "Unknown command",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Set vars",
      "name": "Set vars",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Webhook to call for Slack command",
      "name": "Webhook to call for Slack command",
      "integration": "webhook",
      "kind": "trigger"
    },
    {
      "id": "Reply to user directly",
      "name": "Reply to user directly",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Command workflow trigger",
      "name": "Command workflow trigger",
      "integration": "executeWorkflow",
      "kind": "trigger"
    },
    {
      "id": "if has flag",
      "name": "if has flag",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "If matches env variable",
      "name": "If matches env variable",
      "integration": "if",
      "kind": "logic"
    },
    {
      "id": "Found user",
      "name": "Found user",
      "integration": "httpRequest",
      "kind": "action"
    },
    {
      "id": "Format data into nice structure",
      "name": "Format data into nice structure",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "REPLACE ME WITH TRIGGER",
      "name": "REPLACE ME WITH TRIGGER",
      "integration": "set",
      "kind": "logic"
    },
    {
      "id": "Delete user here for example",
      "name": "Delete user here for example",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "Get user here for example",
      "name": "Get user here for example",
      "integration": "postgres",
      "kind": "action"
    },
    {
      "id": "Confirm user was deleted",
      "name": "Confirm user was deleted",
      "integration": "slack",
      "kind": "action"
    },
    {
      "id": "Replying to thread",
      "name": "Replying to thread",
      "integration": "slack",
      "kind": "action"
    },
    {
      "id": "parse command",
      "name": "parse command",
      "integration": "code",
      "kind": "logic"
    },
    {
      "id": "Validate webhook signature",
      "name": "Validate webhook signature",
      "integration": "code",
      "kind": "logic"
    }
  ],
  "edges": [
    {
      "from": "Set vars",
      "to": "Set config"
    },
    {
      "from": "Set config",
      "to": "Validate webhook signature"
    },
    {
      "from": "if has flag",
      "to": "If matches env variable"
    },
    {
      "from": "Start thread",
      "to": "Add debug info"
    },
    {
      "from": "Start thread",
      "to": "Set thread info"
    },
    {
      "from": "parse command",
      "to": "if has workflow"
    },
    {
      "from": "Add thread info",
      "to": "Execute target workflow"
    },
    {
      "from": "Set thread info",
      "to": "Add thread info"
    },
    {
      "from": "if has workflow",
      "to": "if create thread"
    },
    {
      "from": "if has workflow",
      "to": "Handle other commands"
    },
    {
      "from": "if create thread",
      "to": "Start thread"
    },
    {
      "from": "if create thread",
      "to": "Alert user that thread was created"
    },
    {
      "from": "if create thread",
      "to": "Add thread info"
    },
    {
      "from": "if create thread",
      "to": "Send debug url"
    },
    {
      "from": "if create thread",
      "to": "Execute target workflow"
    },
    {
      "from": "Validate Slack token",
      "to": "Reply to user that command was received"
    },
    {
      "from": "Validate Slack token",
      "to": "parse command"
    },
    {
      "from": "Handle other commands",
      "to": "send help"
    },
    {
      "from": "Handle other commands",
      "to": "Unknown command"
    },
    {
      "from": "If matches env variable",
      "to": "Get user here for example"
    },
    {
      "from": "REPLACE ME WITH TRIGGER",
      "to": "Replying to thread"
    },
    {
      "from": "REPLACE ME WITH TRIGGER",
      "to": "Delete user here for example"
    },
    {
      "from": "Command workflow trigger",
      "to": "Reply to user directly"
    },
    {
      "from": "Command workflow trigger",
      "to": "if has flag"
    },
    {
      "from": "Get user here for example",
      "to": "Format data into nice structure"
    },
    {
      "from": "Validate webhook signature",
      "to": "Validate Slack token"
    },
    {
      "from": "Delete user here for example",
      "to": "Confirm user was deleted"
    },
    {
      "from": "Format data into nice structure",
      "to": "Found user"
    },
    {
      "from": "Webhook to call for Slack command",
      "to": "Set vars"
    }
  ]
}