{
  "manifest_version": "1.0.0",
  "template": {
    "id": "f5c86cca-7a81-49ed-b481-ca3f366b170c",
    "slug": "mastra-voice-agent-with-livekit",
    "name": "Mastra Voice Agent with LiveKit",
    "description": "Call-center voice agent on LiveKit with Mastra memory and replies.",
    "url": "https://railway.com/deploy/mastra-voice-agent-with-livekit",
    "upstream": {
      "repo_url": "https://github.com/leoisadev1/mastra-template-voice-agent"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Mastra Voice Agent",
      "source": {
        "repo": "https://github.com/leoisadev1/mastra-template-voice-agent"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "LIVEKIT_URL",
      "service": "Mastra Voice Agent",
      "description": "Provide a value for LIVEKIT_URL.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "Mastra Voice Agent",
      "description": "Provide a value for OPENAI_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_API_KEY",
      "service": "Mastra Voice Agent",
      "description": "Provide a value for LIVEKIT_API_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LIVEKIT_API_SECRET",
      "service": "Mastra Voice Agent",
      "description": "Provide a value for LIVEKIT_API_SECRET.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "VOICE_AGENT_DB_PATH",
      "service": "Mastra Voice Agent",
      "description": "Provide a value for VOICE_AGENT_DB_PATH.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "mastra-voice-agent-with-livekit"
      }
    },
    "cli": "railway deploy --template mastra-voice-agent-with-livekit",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "f5c86cca-7a81-49ed-b481-ca3f366b170c",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "6cd67fc8-dfb8-45e7-8964-47ceb3ba85d8": {
                  "icon": "https://unpkg.com/mastra/dist/studio/mastra.svg",
                  "name": "Mastra Voice Agent",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/health",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/leoisadev1/mastra-template-voice-agent",
                    "rootDirectory": null
                  },
                  "variables": {
                    "LIVEKIT_URL": {
                      "isOptional": false,
                      "defaultValue": "{{LIVEKIT_URL}}"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "LIVEKIT_API_KEY": {
                      "isOptional": false,
                      "defaultValue": "{{LIVEKIT_API_KEY}}"
                    },
                    "LIVEKIT_API_SECRET": {
                      "isOptional": false,
                      "defaultValue": "{{LIVEKIT_API_SECRET}}"
                    },
                    "VOICE_AGENT_DB_PATH": {
                      "isOptional": false,
                      "defaultValue": "${{RAILWAY_VOLUME_MOUNT_PATH}}/voice-agent.db"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {
                    "6cd67fc8-dfb8-45e7-8964-47ceb3ba85d8": {
                      "mountPath": "/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Mastra Voice Agent",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 1,
    "needs_volume": true
  },
  "generated_at": "2026-09-10T22:14:43.398Z",
  "generator_version": "0.1.0"
}
