{
  "manifest_version": "1.0.0",
  "template": {
    "id": "c13b9a63-ed8c-4db3-bddd-ac533754d87b",
    "slug": "typebot-chat-forms",
    "name": "TypeBot",
    "description": "Open source conversational form builder, self-hosted on Railway",
    "url": "https://railway.com/deploy/typebot-chat-forms",
    "upstream": {
      "image": "baptistearno/typebot-viewer:3.18.0"
    }
  },
  "services": [
    {
      "name": "viewer",
      "source": {
        "image": "baptistearno/typebot-viewer:3.18.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "builder",
      "source": {
        "image": "baptistearno/typebot-builder:3.18.0"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "mailpit",
      "source": {
        "image": "axllent/mailpit:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": true
    },
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "files",
      "source": {
        "repo": "https://github.com/gridalpha/typebot-railway"
      },
      "needs_volume": false,
      "http": true
    }
  ],
  "required_inputs": [
    {
      "key": "PORT",
      "service": "viewer",
      "description": "HTTP port Next.js listens on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "S3_SSL",
      "service": "viewer",
      "description": "Use TLS to reach the bucket",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_URL",
      "service": "viewer",
      "description": "Redis for rate limiting",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "viewer",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "viewer",
      "description": "SigV4 signing region",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "SMTP_HOST",
      "service": "viewer",
      "description": "Mail server hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "viewer",
      "description": "Mail server port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "viewer",
      "description": "Bucket endpoint, scheme stripped at boot",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_SECURE",
      "service": "viewer",
      "description": "No implicit TLS on port 1025",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_URL",
      "service": "viewer",
      "description": "Postgres connection with pool cap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "viewer",
      "description": "Public builder base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "viewer",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "viewer",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PASSWORD",
      "service": "viewer",
      "description": "Same SMTP password as the builder",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_USERNAME",
      "service": "viewer",
      "description": "SMTP account name",
      "secret": false,
      "strategy": "default",
      "default": "typebot"
    },
    {
      "key": "SMTP_IGNORE_TLS",
      "service": "viewer",
      "description": "Skip STARTTLS on the private listener",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENCRYPTION_SECRET",
      "service": "viewer",
      "description": "Must match the builder exactly",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "KEEP_ALIVE_TIMEOUT",
      "service": "viewer",
      "description": "Keep-alive above the edge idle timeout",
      "secret": false,
      "strategy": "default",
      "default": "65000"
    },
    {
      "key": "NEXT_PUBLIC_SMTP_FROM",
      "service": "viewer",
      "description": "From name and address",
      "secret": false,
      "strategy": "default",
      "default": "Typebot <notifications@example.dev>"
    },
    {
      "key": "NEXT_PUBLIC_VIEWER_URL",
      "service": "viewer",
      "description": "Public viewer base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_PUBLIC_CUSTOM_DOMAIN",
      "service": "viewer",
      "description": "Origin serving public bot media",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_BOT_FILE_UPLOAD_MAX_SIZE",
      "service": "viewer",
      "description": "Max respondent upload size in MB",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "PORT",
      "service": "builder",
      "description": "HTTP port Next.js listens on",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "S3_SSL",
      "service": "builder",
      "description": "Use TLS to reach the bucket",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "REDIS_URL",
      "service": "builder",
      "description": "Redis for sign-in rate limiting",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_BUCKET",
      "service": "builder",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "builder",
      "description": "SigV4 signing region",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "SMTP_HOST",
      "service": "builder",
      "description": "Mail server hostname",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "SMTP_PORT",
      "service": "builder",
      "description": "Mail server port",
      "secret": false,
      "strategy": "default",
      "default": "1025"
    },
    {
      "key": "ADMIN_EMAIL",
      "service": "builder",
      "description": "Owner account; change to your address",
      "secret": false,
      "strategy": "default",
      "default": "admin@example.dev"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "builder",
      "description": "Bucket endpoint, scheme stripped at boot",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_SECURE",
      "service": "builder",
      "description": "No implicit TLS on port 1025",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_URL",
      "service": "builder",
      "description": "Postgres connection with pool cap",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NEXTAUTH_URL",
      "service": "builder",
      "description": "Public builder base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_ACCESS_KEY",
      "service": "builder",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_KEY",
      "service": "builder",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SMTP_PASSWORD",
      "service": "builder",
      "description": "SMTP password, shared with Mailpit",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "SMTP_USERNAME",
      "service": "builder",
      "description": "SMTP account name",
      "secret": false,
      "strategy": "default",
      "default": "typebot"
    },
    {
      "key": "DISABLE_SIGNUP",
      "service": "builder",
      "description": "Close public registration",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "SMTP_IGNORE_TLS",
      "service": "builder",
      "description": "Skip STARTTLS on the private listener",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "ENCRYPTION_SECRET",
      "service": "builder",
      "description": "32-char key encrypting stored credentials",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "KEEP_ALIVE_TIMEOUT",
      "service": "builder",
      "description": "Keep-alive above the edge idle timeout",
      "secret": false,
      "strategy": "default",
      "default": "65000"
    },
    {
      "key": "NEXT_PUBLIC_SMTP_FROM",
      "service": "builder",
      "description": "From name and address",
      "secret": false,
      "strategy": "default",
      "default": "Typebot <notifications@example.dev>"
    },
    {
      "key": "DEFAULT_WORKSPACE_PLAN",
      "service": "builder",
      "description": "Plan for new workspaces",
      "secret": false,
      "strategy": "default",
      "default": "UNLIMITED"
    },
    {
      "key": "NEXT_PUBLIC_VIEWER_URL",
      "service": "builder",
      "description": "Public viewer base URL",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "S3_PUBLIC_CUSTOM_DOMAIN",
      "service": "builder",
      "description": "Origin serving public bot media",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NEXT_PUBLIC_BOT_FILE_UPLOAD_MAX_SIZE",
      "service": "builder",
      "description": "Max respondent upload size in MB",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Private connection string",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Data panel alias, not read by the server",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Auth password, read by the server",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "PORT",
      "service": "mailpit",
      "description": "Web inbox port",
      "secret": false,
      "strategy": "default",
      "default": "8025"
    },
    {
      "key": "MP_UI_AUTH",
      "service": "mailpit",
      "description": "Inbox login credentials",
      "secret": false,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "MP_DATABASE",
      "service": "mailpit",
      "description": "Message store on the volume",
      "secret": false,
      "strategy": "default",
      "default": "/data/mailpit.db"
    },
    {
      "key": "MP_SMTP_AUTH",
      "service": "mailpit",
      "description": "SMTP credentials Typebot uses",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "MP_MAX_MESSAGES",
      "service": "mailpit",
      "description": "Messages retained before rotation",
      "secret": false,
      "strategy": "default",
      "default": "5000"
    },
    {
      "key": "MP_UI_BIND_ADDR",
      "service": "mailpit",
      "description": "Bind the inbox on IPv6",
      "secret": false,
      "strategy": "default",
      "default": "[::]:8025"
    },
    {
      "key": "MP_SMTP_BIND_ADDR",
      "service": "mailpit",
      "description": "Bind SMTP on IPv6",
      "secret": false,
      "strategy": "default",
      "default": "[::]:1025"
    },
    {
      "key": "MP_SMTP_AUTH_ALLOW_INSECURE",
      "service": "mailpit",
      "description": "Allow auth on the plain listener",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "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": "S3_BUCKET",
      "service": "files",
      "description": "Bucket name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_REGION",
      "service": "files",
      "description": "SigV4 signing region",
      "secret": false,
      "strategy": "default",
      "default": "us-east-1"
    },
    {
      "key": "S3_ENDPOINT",
      "service": "files",
      "description": "Bucket endpoint",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_ACCESS_KEY_ID",
      "service": "files",
      "description": "Bucket access key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "S3_SECRET_ACCESS_KEY",
      "service": "files",
      "description": "Bucket secret key",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "RAILWAY_DOCKERFILE_PATH",
      "service": "files",
      "description": "Dockerfile inside the source repo",
      "secret": false,
      "strategy": "default",
      "default": "files/Dockerfile"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "typebot-chat-forms"
      }
    },
    "cli": "railway deploy --template typebot-chat-forms",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "c13b9a63-ed8c-4db3-bddd-ac533754d87b",
            "serializedConfig": {
              "buckets": {
                "8246cbaf-bff0-43f3-925d-680576a6041f": {
                  "name": "typebot-files"
                }
              },
              "services": {
                "39f18bfa-8f1b-4db0-8686-d2f32f8f5852": {
                  "icon": "https://raw.githubusercontent.com/baptisteArno/typebot.io/main/apps/viewer/public/favicon.svg",
                  "name": "viewer",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'case \"$S3_ENDPOINT\" in https://*) S3_ENDPOINT=\"${S3_ENDPOINT#https://}\"; S3_SSL=true;; http://*) S3_ENDPOINT=\"${S3_ENDPOINT#http://}\"; S3_SSL=false;; esac; export S3_ENDPOINT S3_SSL; export HOSTNAME=0.0.0.0; exec ./viewer-entrypoint.sh'",
                    "healthcheckPath": "/api/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "baptistearno/typebot-viewer:3.18.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Next.js listens on",
                      "defaultValue": "3000"
                    },
                    "S3_SSL": {
                      "isOptional": false,
                      "description": "Use TLS to reach the bucket",
                      "defaultValue": "true"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis for rate limiting",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{typebot-files.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "SigV4 signing region",
                      "defaultValue": "us-east-1"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Mail server hostname",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mail server port",
                      "defaultValue": "1025"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint, scheme stripped at boot",
                      "defaultValue": "${{typebot-files.ENDPOINT}}"
                    },
                    "SMTP_SECURE": {
                      "isOptional": false,
                      "description": "No implicit TLS on port 1025",
                      "defaultValue": "false"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection with pool cap",
                      "defaultValue": "${{Postgres.DATABASE_URL}}?connection_limit=10&pool_timeout=20"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public builder base URL",
                      "defaultValue": "https://${{builder.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{typebot-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{typebot-files.SECRET_ACCESS_KEY}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": false,
                      "description": "Same SMTP password as the builder",
                      "defaultValue": "${{builder.SMTP_PASSWORD}}"
                    },
                    "SMTP_USERNAME": {
                      "isOptional": false,
                      "description": "SMTP account name",
                      "defaultValue": "typebot"
                    },
                    "SMTP_IGNORE_TLS": {
                      "isOptional": false,
                      "description": "Skip STARTTLS on the private listener",
                      "defaultValue": "true"
                    },
                    "ENCRYPTION_SECRET": {
                      "isOptional": false,
                      "description": "Must match the builder exactly",
                      "defaultValue": "${{builder.ENCRYPTION_SECRET}}"
                    },
                    "KEEP_ALIVE_TIMEOUT": {
                      "isOptional": false,
                      "description": "Keep-alive above the edge idle timeout",
                      "defaultValue": "65000"
                    },
                    "NEXT_PUBLIC_SMTP_FROM": {
                      "isOptional": false,
                      "description": "From name and address",
                      "defaultValue": "Typebot <notifications@example.dev>"
                    },
                    "NEXT_PUBLIC_VIEWER_URL": {
                      "isOptional": false,
                      "description": "Public viewer base URL",
                      "defaultValue": "https://${{viewer.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_PUBLIC_CUSTOM_DOMAIN": {
                      "isOptional": false,
                      "description": "Origin serving public bot media",
                      "defaultValue": "https://${{files.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_BOT_FILE_UPLOAD_MAX_SIZE": {
                      "isOptional": false,
                      "description": "Max respondent upload size in MB",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "565359d8-b155-45fa-be22-1ea000b27e49": {
                  "icon": "https://raw.githubusercontent.com/baptisteArno/typebot.io/main/apps/builder/public/favicon.svg",
                  "name": "builder",
                  "deploy": {
                    "startCommand": "/bin/sh -c 'case \"$S3_ENDPOINT\" in https://*) S3_ENDPOINT=\"${S3_ENDPOINT#https://}\"; S3_SSL=true;; http://*) S3_ENDPOINT=\"${S3_ENDPOINT#http://}\"; S3_SSL=false;; esac; export S3_ENDPOINT S3_SSL; export HOSTNAME=0.0.0.0; exec ./builder-entrypoint.sh'",
                    "healthcheckPath": "/signin",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "baptistearno/typebot-builder:3.18.0"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "HTTP port Next.js listens on",
                      "defaultValue": "3000"
                    },
                    "S3_SSL": {
                      "isOptional": false,
                      "description": "Use TLS to reach the bucket",
                      "defaultValue": "true"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Redis for sign-in rate limiting",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{typebot-files.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "SigV4 signing region",
                      "defaultValue": "us-east-1"
                    },
                    "SMTP_HOST": {
                      "isOptional": false,
                      "description": "Mail server hostname",
                      "defaultValue": "${{mailpit.RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "SMTP_PORT": {
                      "isOptional": false,
                      "description": "Mail server port",
                      "defaultValue": "1025"
                    },
                    "ADMIN_EMAIL": {
                      "isOptional": false,
                      "description": "Owner account; change to your address",
                      "defaultValue": "admin@example.dev"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint, scheme stripped at boot",
                      "defaultValue": "${{typebot-files.ENDPOINT}}"
                    },
                    "SMTP_SECURE": {
                      "isOptional": false,
                      "description": "No implicit TLS on port 1025",
                      "defaultValue": "false"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "Postgres connection with pool cap",
                      "defaultValue": "${{Postgres.DATABASE_URL}}?connection_limit=10&pool_timeout=20"
                    },
                    "NEXTAUTH_URL": {
                      "isOptional": false,
                      "description": "Public builder base URL",
                      "defaultValue": "https://${{builder.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{typebot-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{typebot-files.SECRET_ACCESS_KEY}}"
                    },
                    "SMTP_PASSWORD": {
                      "isOptional": false,
                      "description": "SMTP password, shared with Mailpit",
                      "defaultValue": "{{SMTP_PASSWORD}}"
                    },
                    "SMTP_USERNAME": {
                      "isOptional": false,
                      "description": "SMTP account name",
                      "defaultValue": "typebot"
                    },
                    "DISABLE_SIGNUP": {
                      "isOptional": false,
                      "description": "Close public registration",
                      "defaultValue": "true"
                    },
                    "SMTP_IGNORE_TLS": {
                      "isOptional": false,
                      "description": "Skip STARTTLS on the private listener",
                      "defaultValue": "true"
                    },
                    "ENCRYPTION_SECRET": {
                      "isOptional": false,
                      "description": "32-char key encrypting stored credentials",
                      "defaultValue": "{{ENCRYPTION_SECRET}}"
                    },
                    "KEEP_ALIVE_TIMEOUT": {
                      "isOptional": false,
                      "description": "Keep-alive above the edge idle timeout",
                      "defaultValue": "65000"
                    },
                    "NEXT_PUBLIC_SMTP_FROM": {
                      "isOptional": false,
                      "description": "From name and address",
                      "defaultValue": "Typebot <notifications@example.dev>"
                    },
                    "DEFAULT_WORKSPACE_PLAN": {
                      "isOptional": false,
                      "description": "Plan for new workspaces",
                      "defaultValue": "UNLIMITED"
                    },
                    "NEXT_PUBLIC_VIEWER_URL": {
                      "isOptional": false,
                      "description": "Public viewer base URL",
                      "defaultValue": "https://${{viewer.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "S3_PUBLIC_CUSTOM_DOMAIN": {
                      "isOptional": false,
                      "description": "Origin serving public bot media",
                      "defaultValue": "https://${{files.RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NEXT_PUBLIC_BOT_FILE_UPLOAD_MAX_SIZE": {
                      "isOptional": false,
                      "description": "Max respondent upload size in MB",
                      "defaultValue": "20"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  }
                },
                "572f07e8-b3da-4378-b681-e4b36cb51552": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/redis.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\"",
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "redis:8.2"
                  },
                  "variables": {
                    "REDISHOST": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Private connection string",
                      "defaultValue": "redis://${{REDISUSER}}:${{REDIS_PASSWORD}}@${{REDISHOST}}:${{REDISPORT}}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Data panel alias, not read by the server",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Auth password, read by the server",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "572f07e8-b3da-4378-b681-e4b36cb51552": {
                      "mountPath": "/data"
                    }
                  }
                },
                "7808fb4e-39c4-4031-ad4e-e05fcdcef414": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/mailpit.svg",
                  "name": "mailpit",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/livez",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "image": "axllent/mailpit:latest"
                  },
                  "variables": {
                    "PORT": {
                      "isOptional": false,
                      "description": "Web inbox port",
                      "defaultValue": "8025"
                    },
                    "MP_UI_AUTH": {
                      "isOptional": false,
                      "description": "Inbox login credentials",
                      "defaultValue": "{{MP_UI_AUTH}}"
                    },
                    "MP_DATABASE": {
                      "isOptional": false,
                      "description": "Message store on the volume",
                      "defaultValue": "/data/mailpit.db"
                    },
                    "MP_SMTP_AUTH": {
                      "isOptional": false,
                      "description": "SMTP credentials Typebot uses",
                      "defaultValue": "typebot:${{builder.SMTP_PASSWORD}}"
                    },
                    "MP_MAX_MESSAGES": {
                      "isOptional": false,
                      "description": "Messages retained before rotation",
                      "defaultValue": "5000"
                    },
                    "MP_UI_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Bind the inbox on IPv6",
                      "defaultValue": "[::]:8025"
                    },
                    "MP_SMTP_BIND_ADDR": {
                      "isOptional": false,
                      "description": "Bind SMTP on IPv6",
                      "defaultValue": "[::]:1025"
                    },
                    "MP_SMTP_AUTH_ALLOW_INSECURE": {
                      "isOptional": false,
                      "description": "Allow auth on the plain listener",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8025": {
                        "port": 8025
                      }
                    }
                  },
                  "volumeMounts": {
                    "7808fb4e-39c4-4031-ad4e-e05fcdcef414": {
                      "mountPath": "/data"
                    }
                  }
                },
                "9a181f5d-a070-4710-9227-4ab787848837": {
                  "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": {
                    "9a181f5d-a070-4710-9227-4ab787848837": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                },
                "f210ab3e-fe4d-4ec8-985c-188229c381b0": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/files.svg",
                  "name": "files",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": "/healthz",
                    "restartPolicyType": "ALWAYS",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/gridalpha/typebot-railway",
                    "rootDirectory": null
                  },
                  "variables": {
                    "S3_BUCKET": {
                      "isOptional": false,
                      "description": "Bucket name",
                      "defaultValue": "${{typebot-files.BUCKET}}"
                    },
                    "S3_REGION": {
                      "isOptional": false,
                      "description": "SigV4 signing region",
                      "defaultValue": "us-east-1"
                    },
                    "S3_ENDPOINT": {
                      "isOptional": false,
                      "description": "Bucket endpoint",
                      "defaultValue": "${{typebot-files.ENDPOINT}}"
                    },
                    "S3_ACCESS_KEY_ID": {
                      "isOptional": false,
                      "description": "Bucket access key",
                      "defaultValue": "${{typebot-files.ACCESS_KEY_ID}}"
                    },
                    "S3_SECRET_ACCESS_KEY": {
                      "isOptional": false,
                      "description": "Bucket secret key",
                      "defaultValue": "${{typebot-files.SECRET_ACCESS_KEY}}"
                    },
                    "RAILWAY_DOCKERFILE_PATH": {
                      "isOptional": false,
                      "description": "Dockerfile inside the source repo",
                      "defaultValue": "files/Dockerfile"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>": {}
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "viewer",
      "method": "GET",
      "path": "/api/healthz",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 6,
    "needs_volume": true
  },
  "generated_at": "2026-09-20T10:14:37.339Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-09-19T14:28:58.766Z",
  "success_rate_30d": 0.1667,
  "validation": {
    "last_run_id": "run_56be2ad5f8e54fb1b482",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": false,
        "detail": "Your workspace has been restricted. Please contact support to resolve this."
      }
    ],
    "typical_ready_seconds": 180
  }
}
