{
  "manifest_version": "1.0.0",
  "template": {
    "id": "1c1b713d-16dc-4d18-98b6-c6c1bc8aecfd",
    "slug": "typebot-production",
    "name": "Typebot",
    "description": "Visual chatbot builder with sign-in that works before you add SMTP",
    "url": "https://railway.com/deploy/typebot-production",
    "upstream": {
      "repo_url": "https://github.com/two-workspaces/typebot"
    }
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "Typebot",
      "source": {
        "repo": "https://github.com/two-workspaces/typebot"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "postgres:17.11-alpine"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "Viewer",
      "source": {
        "image": "baptistearno/typebot-viewer:3.19.1"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "Typebot",
      "description": "Port the builder listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "Typebot",
      "description": "Listen on IPv4 and IPv6 - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "SMTP_PORT",
      "service": "Typebot",
      "description": "SMTP port",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "Typebot",
      "description": "Your email - the account allowed to sign up, with the unlimited plan. Sign-in codes are printed to this service's deploy logs until you add SMTP",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "SMTP_SECURE",
      "service": "Typebot",
      "description": "true for implicit TLS (port 465), false for STARTTLS (587)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_URL",
      "service": "Typebot",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Typebot",
      "description": "Public URL of the builder - set it to your custom domain after adding one",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "Typebot",
      "description": "Only ADMIN_EMAIL and people you invite can create accounts; set to false to open sign-up",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENCRYPTION_SECRET",
      "service": "Typebot",
      "description": "Encrypts stored credentials (API keys, OAuth tokens in blocks). Exactly 32 characters - BACK IT UP, changing it breaks saved credentials",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NEXT_PUBLIC_VIEWER_URL",
      "service": "Typebot",
      "description": "Public URL where your bots are served (the Viewer service)",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "RAILWAY_HEALTHCHECK_TIMEOUT_SEC",
      "service": "Typebot",
      "description": "First boot runs the database migrations before the health check can pass",
      "secret": false,
      "strategy": "default",
      "default": "600"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database name",
      "secret": false,
      "strategy": "default",
      "default": "typebot"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Database user",
      "secret": false,
      "strategy": "default",
      "default": "typebot"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Auto-generated database password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Time for Postgres to shut down cleanly on redeploy",
      "secret": false,
      "strategy": "default",
      "default": "60"
    },
    {
      "key": "PORT",
      "service": "Viewer",
      "description": "Port the viewer listens on - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "HOSTNAME",
      "service": "Viewer",
      "description": "Listen on IPv4 and IPv6 - leave as is",
      "secret": false,
      "strategy": "default",
      "default": "::"
    },
    {
      "key": "DATABASE_URL",
      "service": "Viewer",
      "description": "Postgres on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "Viewer",
      "description": "Public URL of the builder - update it with the builder's custom domain",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "ENCRYPTION_SECRET",
      "service": "Viewer",
      "description": "Same key as the builder",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXT_PUBLIC_VIEWER_URL",
      "service": "Viewer",
      "description": "Public URL of this viewer - set it to your custom domain after adding one, here and on Typebot",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typebot-production"
      }
    },
    "cli": "railway deploy --template typebot-production",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "1c1b713d-16dc-4d18-98b6-c6c1bc8aecfd",
            "serializedConfig": {
              "services": {
                "4e250c54-dc22-44c9-a997-a55788f7725f": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/typebot/main/icon.svg",
                  "name": "Typebot",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/auth/providers",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/two-workspaces/typebot"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the builder listens on - leave as is",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen on IPv4 and IPv6 - leave as is",
                      "defaultValue": "::"
                    },
                    "SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP server for sign-in codes, invitations and Send email blocks (Railway allows outbound SMTP on Pro only). Empty = codes go to the deploy logs",
                      "defaultValue": ""
                    },
                    "SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP port",
                      "defaultValue": "587"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Your email - the account allowed to sign up, with the unlimited plan. Sign-in codes are printed to this service's deploy logs until you add SMTP",
                      "defaultValue": "{{ADMIN_EMAIL}}"
                    },
                    "SMTP_SECURE": {
                      "isOptional": true,
                      "description": "true for implicit TLS (port 465), false for STARTTLS (587)",
                      "defaultValue": "false"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public URL of the builder - set it to your custom domain after adding one",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password",
                      "defaultValue": ""
                    },
                    "SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP username",
                      "defaultValue": ""
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Only ADMIN_EMAIL and people you invite can create accounts; set to false to open sign-up",
                      "defaultValue": "true"
                    },
                    "GITHUB_CLIENT_ID": {
                      "isOptional": true,
                      "description": "GitHub OAuth app client ID, to add Sign in with GitHub",
                      "defaultValue": ""
                    },
                    "ENCRYPTION_SECRET": {
                      "isOptional": false,
                      "description": "Encrypts stored credentials (API keys, OAuth tokens in blocks). Exactly 32 characters - BACK IT UP, changing it breaks saved credentials",
                      "defaultValue": "{{ENCRYPTION_SECRET}}"
                    },
                    "GITHUB_CLIENT_SECRET": {
                      "isOptional": true,
                      "description": "GitHub OAuth app client secret",
                      "defaultValue": ""
                    },
                    "NEXT_PUBLIC_SMTP_FROM": {
                      "isOptional": true,
                      "description": "Sender, e.g. 'Typebot' <noreply@example.com>",
                      "defaultValue": ""
                    },
                    "NEXT_PUBLIC_VIEWER_URL": {
                      "isOptional": false,
                      "description": "Public URL where your bots are served (the Viewer service)",
                      "defaultValue": "https://${{Viewer.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "RAILWAY_HEALTHCHECK_TIMEOUT_SEC": {
                      "isOptional": false,
                      "description": "First boot runs the database migrations before the health check can pass",
                      "defaultValue": "600"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                },
                "9ac46fa6-1f52-4c7e-8cb9-31db5bd04fa9": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "postgres:17.11-alpine"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Data subdirectory - keeps Postgres happy on Railway volumes",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database name",
                      "defaultValue": "typebot"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "Database user",
                      "defaultValue": "typebot"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Auto-generated database password",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Time for Postgres to shut down cleanly on redeploy",
                      "defaultValue": "60"
                    }
                  },
                  "networking": {
                    "serviceDomains": {}
                  },
                  "volumeMounts": {
                    "5c6be739-81c2-4fa0-88cc-d9ce13a02b88": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "d2454b62-23c1-49e2-a7b6-a5809af35bc4": {
                  "icon": "https://raw.githubusercontent.com/two-workspaces/typebot/main/icon.svg",
                  "name": "Viewer",
                  "build": {},
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/api/healthz",
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "baptistearno/typebot-viewer:3.19.1"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Port the viewer listens on - leave as is",
                      "defaultValue": "3000"
                    },
                    "HOSTNAME": {
                      "isOptional": false,
                      "description": "Listen on IPv4 and IPv6 - leave as is",
                      "defaultValue": "::"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres on the private network",
                      "defaultValue": "postgresql://${{Postgres.POSTGRES_USER}}:${{Postgres.POSTGRES_PASSWORD}}@${{Postgres.RAILWAY_PRIVATE_DOMAIN}}:5432/${{Postgres.POSTGRES_DB}}"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public URL of the builder - update it with the builder's custom domain",
                      "defaultValue": "https://${{Typebot.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "ENCRYPTION_SECRET": {
                      "isOptional": false,
                      "description": "Same key as the builder",
                      "defaultValue": "${{Typebot.ENCRYPTION_SECRET}}"
                    },
                    "NEXT_PUBLIC_VIEWER_URL": {
                      "isOptional": false,
                      "description": "Public URL of this viewer - set it to your custom domain after adding one, here and on Typebot",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  },
                  "volumeMounts": {}
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "Typebot",
      "method": "GET",
      "path": "/api/auth/providers",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-10-28T16:14:58.566Z",
  "generator_version": "0.1.0"
}
