{
  "manifest_version": "1.0.0",
  "template": {
    "id": "d58ad0e7-40d2-49b9-9ac7-731ac20e7796",
    "slug": "empiriolabs-ai-chatbot",
    "name": "EmpirioLabs AI Agent",
    "description": "An AI agent for EmpirioLabs AI models and tools, built with Next.js.",
    "url": "https://railway.com/deploy/empiriolabs-ai-chatbot",
    "upstream": {
      "repo_url": "https://github.com/EmpirioLabs-AI/empiriolabs-agent"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "empiriolabs-agent",
      "source": {
        "repo": "https://github.com/EmpirioLabs-AI/empiriolabs-agent"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "empiriolabs-agent",
      "description": "The port the app listens on. The public domain routes to it.",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "DEMO_MODE",
      "service": "empiriolabs-agent",
      "description": "Set to true for a public demo: each visitor enters their own API key and EMPIRIOLABS_API_KEY is not used.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "EMPIRIOLABS_API_KEY",
      "service": "empiriolabs-agent",
      "description": "Your EmpirioLabs AI API key, from https://platform.empiriolabs.ai/dashboard/api-keys. It stays on the server.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "RAILPACK_NODE_NPM_INSTALL",
      "service": "empiriolabs-agent",
      "description": "Installs dependencies from the lockfile with install scripts turned off.",
      "secret": false,
      "strategy": "default",
      "default": "npm ci --ignore-scripts"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "empiriolabs-ai-chatbot"
      }
    },
    "cli": "railway deploy --template empiriolabs-ai-chatbot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "d58ad0e7-40d2-49b9-9ac7-731ac20e7796",
            "serializedConfig": {
              "services": {
                "4958d596-df7b-4a4b-8393-cdcea6e43e61": {
                  "icon": "https://empiriolabs.ai/images/icon-512.png",
                  "name": "empiriolabs-agent",
                  "deploy": {
                    "healthcheckPath": "/api/health"
                  },
                  "source": {
                    "repo": "EmpirioLabs-AI/empiriolabs-agent"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": true,
                      "description": "The port the app listens on. The public domain routes to it.",
                      "defaultValue": "3000"
                    },
                    "DEMO_MODE": {
                      "isOptional": true,
                      "description": "Set to true for a public demo: each visitor enters their own API key and EMPIRIOLABS_API_KEY is not used.",
                      "defaultValue": "false"
                    },
                    "EMPIRIOLABS_MODEL": {
                      "isOptional": true,
                      "description": "Optional. The model ID or alias the chat starts with, for example glm-5-3-flash. Without it, the chat starts with the first featured chat model.",
                      "defaultValue": ""
                    },
                    "EMPIRIOLABS_API_KEY": {
                      "isOptional": false,
                      "description": "Your EmpirioLabs AI API key, from https://platform.empiriolabs.ai/dashboard/api-keys. It stays on the server.",
                      "defaultValue": "{{EMPIRIOLABS_API_KEY}}"
                    },
                    "RAILPACK_NODE_NPM_INSTALL": {
                      "isOptional": true,
                      "description": "Installs dependencies from the lockfile with install scripts turned off.",
                      "defaultValue": "npm ci --ignore-scripts"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "empiriolabs-agent",
      "method": "GET",
      "path": "/api/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-11-08T04:15:17.128Z",
  "generator_version": "0.1.0"
}
