{
  "manifest_version": "1.0.0",
  "template": {
    "id": "0c607316-3427-49f6-8b10-db25745e2770",
    "slug": "botpress-ai",
    "name": "Botpress",
    "description": "Build chatbots with a visual flow editor and built-in NLU",
    "url": "https://railway.com/deploy/botpress-ai",
    "upstream": {
      "repo_url": "https://github.com/gridalpha/botpress-railway"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "botpress",
      "source": {
        "repo": "https://github.com/gridalpha/botpress-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/botpress/data",
      "http": true
    },
    {
      "name": "botpress-lang",
      "source": {
        "repo": "https://github.com/gridalpha/botpress-railway"
      },
      "needs_volume": true,
      "volume_mount_path": "/botpress/lang",
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Cluster location on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Superuser created on first boot",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "SSL certificate expiry in days",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Superuser password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "botpress",
      "description": "HTTP port Botpress listens on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "AUTO_MIGRATE",
      "service": "botpress",
      "description": "Auto-apply data migrations on upgrade",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "BPFS_STORAGE",
      "service": "botpress",
      "description": "Store bot files in Postgres",
      "secret": false,
      "strategy": "default",
      "default": "database"
    },
    {
      "key": "DATABASE_URL",
      "service": "botpress",
      "description": "Postgres connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "EXTERNAL_URL",
      "service": "botpress",
      "description": "Public base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "BP_PRODUCTION",
      "service": "botpress",
      "description": "Production mode",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REVERSE_PROXY",
      "service": "botpress",
      "description": "Trusted proxies, never \"true\"",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0/1,128.0.0.0/1,::/1,8000::/1"
    },
    {
      "key": "BP_ADMIN_EMAIL",
      "service": "botpress",
      "description": "First super admin, change before deploying",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.com"
    },
    {
      "key": "BP_LANG_ENDPOINT",
      "service": "botpress",
      "description": "Language server address",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "BP_ADMIN_PASSWORD",
      "service": "botpress",
      "description": "First super admin password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "BP_CONFIG_SENDUSAGESTATS",
      "service": "botpress",
      "description": "Opt out of upstream telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "botpress",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "30"
    },
    {
      "key": "PORT",
      "service": "botpress-lang",
      "description": "HTTP port the language server listens on",
      "secret": false,
      "strategy": "default",
      "default": "3100"
    },
    {
      "key": "BP_LANG_DIM",
      "service": "botpress-lang",
      "description": "Embedding dimensions: 25, 100 or 300",
      "secret": false,
      "strategy": "default",
      "default": "100"
    },
    {
      "key": "BP_LANG_DIR",
      "service": "botpress-lang",
      "description": "Volume path for embeddings",
      "secret": false,
      "strategy": "default",
      "default": "/botpress/lang"
    },
    {
      "key": "BP_LANG_PRELOAD",
      "service": "botpress-lang",
      "description": "Languages downloaded at first boot",
      "secret": false,
      "strategy": "default",
      "default": "en"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "botpress-lang",
      "description": "Builds the language server image",
      "secret": false,
      "strategy": "default",
      "default": "Dockerfile.lang"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "botpress-lang",
      "description": "Clean shutdown window",
      "secret": false,
      "strategy": "default",
      "default": "15"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "botpress-ai"
      }
    },
    "cli": "railway deploy --template botpress-ai",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "0c607316-3427-49f6-8b10-db25745e2770",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "40023f2d-dc30-4fab-9d2b-85eac6480006": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Cluster location on the volume",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created on first boot",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Superuser created on first boot",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "SSL certificate expiry in days",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Superuser password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "40023f2d-dc30-4fab-9d2b-85eac6480006": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "95635a6d-cc3d-4d31-950a-6c6a95ed9aa3": {
                  "icon": "https://raw.githubusercontent.com/botpress/v12/master/icon.png",
                  "name": "botpress",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/status",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/botpress-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Botpress listens on",
                      "defaultValue": "3000"
                    },
                    "AUTO_MIGRATE": {
                      "isOptional": false,
                      "description": "Auto-apply data migrations on upgrade",
                      "defaultValue": "true"
                    },
                    "BPFS_STORAGE": {
                      "isOptional": false,
                      "description": "Store bot files in Postgres",
                      "defaultValue": "database"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection string",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "EXTERNAL_URL": {
                      "isOptional": false,
                      "description": "Public base URL",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "BP_PRODUCTION": {
                      "isOptional": false,
                      "description": "Production mode",
                      "defaultValue": "true"
                    },
                    "REVERSE_PROXY": {
                      "isOptional": false,
                      "description": "Trusted proxies, never \"true\"",
                      "defaultValue": "0.0.0.0/1,128.0.0.0/1,::/1,8000::/1"
                    },
                    "BP_ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "First super admin, change before deploying",
                      "defaultValue": "admin@example.com"
                    },
                    "BP_LANG_ENDPOINT": {
                      "isOptional": false,
                      "description": "Language server address",
                      "defaultValue": "http://${{botpress-lang.RAILWAY_PRIVATE_DOMAIN}}:3100"
                    },
                    "BP_ADMIN_PASSWORD": {
                      "isOptional": false,
                      "description": "First super admin password",
                      "defaultValue": "{{BP_ADMIN_PASSWORD}}"
                    },
                    "BP_CONFIG_SENDUSAGESTATS": {
                      "isOptional": false,
                      "description": "Opt out of upstream telemetry",
                      "defaultValue": "false"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "30"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "95635a6d-cc3d-4d31-950a-6c6a95ed9aa3": {
                      "mountPath": "/botpress/data"
                    }
                  }
                },
                "ad27deb1-207b-4df0-ab12-649068202938": {
                  "icon": "https://raw.githubusercontent.com/botpress/v12/master/icon.png",
                  "name": "botpress-lang",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/info",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/botpress-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port the language server listens on",
                      "defaultValue": "3100"
                    },
                    "BP_LANG_DIM": {
                      "isOptional": false,
                      "description": "Embedding dimensions: 25, 100 or 300",
                      "defaultValue": "100"
                    },
                    "BP_LANG_DIR": {
                      "isOptional": false,
                      "description": "Volume path for embeddings",
                      "defaultValue": "/botpress/lang"
                    },
                    "BP_LANG_PRELOAD": {
                      "isOptional": false,
                      "description": "Languages downloaded at first boot",
                      "defaultValue": "en"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Builds the language server image",
                      "defaultValue": "Dockerfile.lang"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Clean shutdown window",
                      "defaultValue": "15"
                    }
                  },
                  "volumeMounts": {
                    "ad27deb1-207b-4df0-ab12-649068202938": {
                      "mountPath": "/botpress/lang"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "botpress",
      "method": "GET",
      "path": "/status",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-19T13:53:19.750Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4cf088d65546475fb82f",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 174,
    "typical_build_seconds": 71,
    "typical_start_seconds": 21,
    "slowest_service": "botpress"
  }
}
