{
  "manifest_version": "1.0.0",
  "template": {
    "id": "b952bbb6-3009-4d34-9749-220cea8da77c",
    "slug": "livekit-agent-worker",
    "name": "Livekit [Updated Sep'26]",
    "description": "Run a LiveKit voice agent worker — STT, LLM, TTS, sub-second replies",
    "url": "https://railway.com/deploy/livekit-agent-worker"
  },
  "services": [
    {
      "name": "web-frontend",
      "source": {
        "repo": "https://github.com/yuting1214/LiveKit-Template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "voice-agent",
      "source": {
        "repo": "https://github.com/yuting1214/LiveKit-Template"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "livekit-server",
      "source": {
        "repo": "https://github.com/yuting1214/LiveKit-Template"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "LIVEKIT_URL",
      "service": "web-frontend",
      "description": "LIVEKIT URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "web-frontend",
      "description": "LIVEKIT API KEY",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "web-frontend",
      "description": "LIVEKIT API SECRET",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_URL",
      "service": "voice-agent",
      "description": "LIVEKIT_URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "voice-agent",
      "description": "Your OpenAI API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "voice-agent",
      "description": "LIVEKIT_API_KEY",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "voice-agent",
      "description": "LIVEKIT_API_SECRET",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port that Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Username for authenticating with Redis",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Connection string for connecting to Redis using the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Randomly generated password for authenticating with Redis",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "livekit-server",
      "description": "PORT",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "REDIS_URL",
      "service": "livekit-server",
      "description": "Redis URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "livekit-server",
      "description": "LIVEKIT_API_KEY",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "livekit-server",
      "description": "LIVEKIT_API_SECRET",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_NODE_IP_MODE",
      "service": "livekit-server",
      "description": "LIVEKIT_NODE_IP_MODE",
      "secret": false,
      "strategy": "default",
      "default": "auto"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "livekit-agent-worker"
      }
    },
    "cli": "railway deploy --template livekit-agent-worker",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "b952bbb6-3009-4d34-9749-220cea8da77c",
            "serializedConfig": {
              "services": {
                "0ed3b7b4-7ff2-455d-8914-c8e1dc7cdcf1": {
                  "name": "web-frontend",
                  "source": {
                    "repo": "yuting1214/LiveKit-Template"
                  },
                  "variables": {
                    "LIVEKIT_URL": {
                      "isOptional": false,
                      "description": "LIVEKIT URL",
                      "defaultValue": "wss://${{livekit-server.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "isOptional": false,
                      "description": "LIVEKIT API KEY",
                      "defaultValue": "${{livekit-server.LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "isOptional": false,
                      "description": "LIVEKIT API SECRET",
                      "defaultValue": "${{livekit-server.LIVEKIT_API_SECRET}}"
                    }
                  }
                },
                "43508d4a-cc43-474b-9da8-1c5da067a258": {
                  "name": "voice-agent",
                  "source": {
                    "repo": "yuting1214/LiveKit-Template"
                  },
                  "variables": {
                    "LIVEKIT_URL": {
                      "isOptional": false,
                      "description": "LIVEKIT_URL",
                      "defaultValue": "ws://${{livekit-server.RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Your OpenAI API key",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "isOptional": false,
                      "description": "LIVEKIT_API_KEY",
                      "defaultValue": "${{livekit-server.LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "isOptional": false,
                      "description": "LIVEKIT_API_SECRET",
                      "defaultValue": "${{livekit-server.LIVEKIT_API_SECRET}}"
                    }
                  }
                },
                "83f0f06c-d8d6-4405-a6b4-75f792071560": {
                  "icon": "https://cdn.sanity.io/images/sy1jschh/production/0ce0bfdcfbdbf69662b1116671f97c2dd788b655-157x157.svg",
                  "name": "Redis",
                  "deploy": {
                    "startCommand": "/bin/sh -c \"rm -rf $RAILWAY_VOLUME_MOUNT_PATH/lost+found/ && exec docker-entrypoint.sh redis-server --requirepass $REDIS_PASSWORD --save 60 1 --dir $RAILWAY_VOLUME_MOUNT_PATH\""
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Private network hostname of the Redis service, only resolvable from services in the same environment",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port that Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Username for authenticating with Redis",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Connection string for connecting to Redis using the private network",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Alias of REDIS_PASSWORD for clients that expect the unseparated name",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Randomly generated password for authenticating with Redis",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "83f0f06c-d8d6-4405-a6b4-75f792071560": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                },
                "fb047a69-d5f7-4ecd-82db-92743b7e395c": {
                  "name": "livekit-server",
                  "source": {
                    "repo": "yuting1214/LiveKit-Template"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "PORT",
                      "defaultValue": "8080"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis URL",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "isOptional": false,
                      "description": "LIVEKIT_API_KEY",
                      "defaultValue": "{{LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "isOptional": false,
                      "description": "LIVEKIT_API_SECRET",
                      "defaultValue": "{{LIVEKIT_API_SECRET}}"
                    },
                    "LIVEKIT_NODE_IP_MODE": {
                      "isOptional": false,
                      "description": "LIVEKIT_NODE_IP_MODE",
                      "defaultValue": "auto"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 4,
    "needs_volume": true
  },
  "generated_at": "2026-09-23T16:14:58.907Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-23T12:18:10.156Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_781200972335441ea4ed",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "FAILED,FAILED,BUILDING,SUCCESS"
      }
    ]
  }
}
