{
  "manifest_version": "1.0.0",
  "template": {
    "id": "dbf117b5-673d-43d5-8aa1-b395c12c699d",
    "slug": "nextjs-ai-sdk",
    "name": "Next.js + AI SDK",
    "description": "Next.js AI Chat Template using Vercel AI SDK",
    "url": "https://railway.com/deploy/nextjs-ai-sdk",
    "upstream": {
      "repo_url": "https://github.com/LouisPetrik/railway-next-ai-sdk"
    }
  },
  "services": [
    {
      "name": "railway-next-ai-sdk",
      "source": {
        "repo": "https://github.com/LouisPetrik/railway-next-ai-sdk"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "OPENAI_API_KEY",
      "service": "railway-next-ai-sdk",
      "description": "Provide a value for OPENAI_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "nextjs-ai-sdk"
      }
    },
    "cli": "railway deploy --template nextjs-ai-sdk",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "dbf117b5-673d-43d5-8aa1-b395c12c699d",
            "serializedConfig": {
              "services": {
                "9d3ff33c-55e2-4ffe-a45a-618604371ad6": {
                  "name": "railway-next-ai-sdk",
                  "source": {
                    "repo": "LouisPetrik/railway-next-ai-sdk",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-18T08:23:33.656Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_6229a1ff11494d4f818a",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED"
      }
    ]
  }
}
