{
  "manifest_version": "1.0.0",
  "template": {
    "id": "7697dff6-5b64-4e20-98e7-0b274fab0dae",
    "slug": "aaWjR4",
    "name": "Ragpi Slack Intgration",
    "description": "A Slack bot for the Ragpi AI Assistant",
    "url": "https://railway.com/deploy/aaWjR4",
    "upstream": {
      "image": "ragpi/ragpi-slack"
    }
  },
  "services": [
    {
      "name": "ragpi-slack",
      "source": {
        "image": "ragpi/ragpi-slack"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "NODE_ENV",
      "service": "ragpi-slack",
      "description": "Provide a value for NODE_ENV.",
      "secret": false,
      "strategy": "default",
      "default": "production"
    },
    {
      "key": "RAGPI_API_KEY",
      "service": "ragpi-slack",
      "description": "Provide a value for RAGPI_API_KEY.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAGPI_BASE_URL",
      "service": "ragpi-slack",
      "description": "Provide a value for RAGPI_BASE_URL.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SLACK_APP_TOKEN",
      "service": "ragpi-slack",
      "description": "Provide a value for SLACK_APP_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SLACK_BOT_TOKEN",
      "service": "ragpi-slack",
      "description": "Provide a value for SLACK_BOT_TOKEN.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "aaWjR4"
      }
    },
    "cli": "railway deploy --template aaWjR4",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "7697dff6-5b64-4e20-98e7-0b274fab0dae",
            "serializedConfig": {
              "services": {
                "daa0f001-0974-4e86-a4d6-e0dc30098c5e": {
                  "icon": null,
                  "name": "ragpi-slack",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null
                  },
                  "source": {
                    "image": "ragpi/ragpi-slack"
                  },
                  "variables": {
                    "NODE_ENV": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "production"
                    },
                    "RAGPI_API_KEY": {
                      "isOptional": true,
                      "description": "",
                      "defaultValue": "${{ragpi-api.RAGPI_API_KEY}}"
                    },
                    "RAGPI_SOURCES": {
                      "isOptional": true,
                      "defaultValue": ""
                    },
                    "RAGPI_BASE_URL": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "https://${{ragpi-api.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SLACK_APP_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{SLACK_APP_TOKEN}}"
                    },
                    "SLACK_BOT_TOKEN": {
                      "isOptional": false,
                      "defaultValue": "{{SLACK_BOT_TOKEN}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-21T22:14:44.200Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-21T09:15:32.433Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_dd47f86da1b94245870d",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": false,
        "detail": "1 service(s) crashed within 30s"
      }
    ]
  }
}
