{
  "manifest_version": "1.0.0",
  "template": {
    "id": "cab74ed6-608c-4c1e-a111-96848e29b65b",
    "slug": "chatgpt-wechat-bot",
    "name": "ChatGPT-on-WeChat — AI Chatbot for WeChat",
    "description": "Self-host an AI chatbot for WeChat. Your OpenAI key, deploy in 2 steps.",
    "url": "https://railway.com/deploy/chatgpt-wechat-bot",
    "upstream": {
      "repo_url": "https://github.com/kx-Huang/ChatGPT-on-WeChat"
    }
  },
  "services": [
    {
      "name": "ChatGPT-on-WeChat",
      "source": {
        "repo": "https://github.com/kx-Huang/ChatGPT-on-WeChat"
      },
      "needs_volume": false,
      "http": false
    }
  ],
  "required_inputs": [
    {
      "key": "OPENAI_API_KEY",
      "service": "ChatGPT-on-WeChat",
      "description": "Your OpenAI API key",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "chatgpt-wechat-bot"
      }
    },
    "cli": "railway deploy --template chatgpt-wechat-bot",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "cab74ed6-608c-4c1e-a111-96848e29b65b",
            "serializedConfig": {
              "services": {
                "e825b737-c4b4-4064-a615-1e08a5687af0": {
                  "name": "ChatGPT-on-WeChat",
                  "source": {
                    "repo": "kx-Huang/ChatGPT-on-WeChat",
                    "branch": null,
                    "rootDirectory": null
                  },
                  "variables": {
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Your OpenAI API key",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "CHATGPT_TRIGGER_KEYWORD": {
                      "isOptional": true,
                      "description": "[Optional] Your keyword to trigger auto-reply",
                      "defaultValue": ""
                    },
                    "OPENAI_ORGANIZATION_KEY": {
                      "isOptional": true,
                      "description": "[Optional] Your OpenAI Organization Key",
                      "defaultValue": ""
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 1,
    "needs_volume": false
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-20T07:52:09.342Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_f6f347950b4e42408979",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 158,
    "typical_build_seconds": 82,
    "typical_start_seconds": 10,
    "slowest_service": "ChatGPT-on-WeChat"
  }
}
