{
  "manifest_version": "1.0.0",
  "template": {
    "id": "fc333151-7337-42de-8d4f-1afc1b8f6957",
    "slug": "automata-or-whatsapp-telegram-sql-mcp",
    "name": "Automata | WhatsApp, Telegram, SQL MCP",
    "description": "WhatsApp, Telegram & Postgres MCP for Claude | Alt to Zapier, Composio",
    "url": "https://railway.com/deploy/automata-or-whatsapp-telegram-sql-mcp",
    "upstream": {
      "image": "ghcr.io/ju-li/automata-mcp-web:1"
    }
  },
  "services": [
    {
      "name": "Automata MCP",
      "source": {
        "image": "ghcr.io/ju-li/automata-mcp-web:1"
      },
      "needs_volume": false,
      "http": true
    },
    {
      "name": "Redis",
      "source": {
        "image": "redis:8.2"
      },
      "needs_volume": true,
      "volume_mount_path": "/data",
      "http": false
    },
    {
      "name": "Automata MCP Telegram Bridge",
      "source": {
        "image": "ghcr.io/ju-li/automata-mcp-telegram-bridge:1"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "name": "Evolution API",
      "source": {
        "image": "evoapicloud/evolution-api:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/evolution/instances",
      "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
    }
  ],
  "required_inputs": [
    {
      "key": "NUXT_SMTP_TLS",
      "service": "Automata MCP",
      "description": "false uses STARTTLS when offered (port 587); set true for implicit TLS (port 465)",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "NUXT_SMTP_PORT",
      "service": "Automata MCP",
      "description": "SMTP server port, usually 587 (STARTTLS) or 465 (TLS)",
      "secret": false,
      "strategy": "default",
      "default": "587"
    },
    {
      "key": "NUXT_WEBHOOK_URL",
      "service": "Automata MCP",
      "description": "URL Evolution posts WhatsApp connection events to, so disconnect alerts go out in seconds",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NUXT_DATABASE_URL",
      "service": "Automata MCP",
      "description": "Postgres connection URL for the app's own data (users, organizations, connections, tokens). Required; migrated at boot",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NUXT_TELEGRAM_URL",
      "service": "Automata MCP",
      "description": "Private URL of the Telegram bridge",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NUXT_EVOLUTION_URL",
      "service": "Automata MCP",
      "description": "Private URL of the Evolution API, used for WhatsApp connections",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "NUXT_MAIL_FROM_NAME",
      "service": "Automata MCP",
      "description": "Sender name shown on outgoing emails",
      "secret": false,
      "strategy": "default",
      "default": "Automata MCP"
    },
    {
      "key": "NUXT_PUBLIC_APP_URL",
      "service": "Automata MCP",
      "description": "Public URL of this app, used to build connector URLs and links in emails",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "NUXT_WEBHOOK_SECRET",
      "service": "Automata MCP",
      "description": "Shared secret that Evolution and the Telegram bridge send with each webhook, generated at deploy. Keep it secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "NUXT_TELEGRAM_ADMIN_KEY",
      "service": "Automata MCP",
      "description": "Telegram bridge admin key, used only to create and delete Telegram sessions",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NUXT_EVOLUTION_ADMIN_KEY",
      "service": "Automata MCP",
      "description": "Evolution global API key, used only to create and delete WhatsApp instances",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NUXT_TELEGRAM_DATABASE_URL",
      "service": "Automata MCP",
      "description": "Postgres connection URL for reading synced Telegram chats (telegram schema). Opened read-only",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "NUXT_EVOLUTION_DATABASE_URL",
      "service": "Automata MCP",
      "description": "Postgres connection URL for reading WhatsApp messages (Evolution's tables). Opened read-only",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISHOST",
      "service": "Redis",
      "description": "Private hostname of the Redis service, only reachable from other services in this project",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "REDISPORT",
      "service": "Redis",
      "description": "Port Redis listens on",
      "secret": false,
      "strategy": "default",
      "default": "6379"
    },
    {
      "key": "REDISUSER",
      "service": "Redis",
      "description": "Redis user name",
      "secret": false,
      "strategy": "default",
      "default": "default"
    },
    {
      "key": "REDIS_URL",
      "service": "Redis",
      "description": "Full private-network connection URL for Redis, used by Evolution API as its cache",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDISPASSWORD",
      "service": "Redis",
      "description": "Same value as REDIS_PASSWORD, under the name some clients expect",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "REDIS_PASSWORD",
      "service": "Redis",
      "description": "Redis password, generated at deploy. Keep it secret",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "TELEGRAM_BRIDGE_PORT",
      "service": "Automata MCP Telegram Bridge",
      "description": "Port the bridge listens on. Fixed here because Railway injects PORT=8080; the app connects on 8095",
      "secret": false,
      "strategy": "default",
      "default": "8095"
    },
    {
      "key": "TELEGRAM_BRIDGE_ADMIN_KEY",
      "service": "Automata MCP Telegram Bridge",
      "description": "Admin key the app uses only to create and delete Telegram sessions, generated at deploy. Keep it secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TELEGRAM_BRIDGE_DATABASE_URL",
      "service": "Automata MCP Telegram Bridge",
      "description": "Postgres connection URL. The bridge stores sessions and synced chats in its own telegram schema",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "TELEGRAM_SESSION_ENCRYPTION_KEY",
      "service": "Automata MCP Telegram Bridge",
      "description": "Encrypts stored Telegram sessions, generated at deploy. Never change or lose it: doing so unlinks every Telegram account",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "SERVER_URL",
      "service": "Evolution API",
      "description": "Public URL of the Evolution API, used in links it generates",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_domain"
    },
    {
      "key": "SERVER_PORT",
      "service": "Evolution API",
      "description": "Port Evolution listens on. Fixed here because Evolution reads SERVER_PORT, not Railway's PORT",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "CACHE_REDIS_URI",
      "service": "Evolution API",
      "description": "Redis connection URL for Evolution's cache, on the private network",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PROVIDER",
      "service": "Evolution API",
      "description": "Database engine Evolution stores sessions, chats and messages in",
      "secret": false,
      "strategy": "default",
      "default": "postgresql"
    },
    {
      "key": "TELEMETRY_ENABLED",
      "service": "Evolution API",
      "description": "Turns off Evolution's anonymous usage telemetry",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CACHE_LOCAL_ENABLED",
      "service": "Evolution API",
      "description": "Turns off the in-memory cache; Redis is used instead",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "CACHE_REDIS_ENABLED",
      "service": "Evolution API",
      "description": "Uses Redis as Evolution's cache",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "AUTHENTICATION_API_KEY",
      "service": "Evolution API",
      "description": "Global admin key for Evolution, generated at deploy. Automata uses it only to create and delete WhatsApp instances. Keep it secret",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CACHE_REDIS_PREFIX_KEY",
      "service": "Evolution API",
      "description": "Prefix for Evolution's keys in Redis",
      "secret": true,
      "strategy": "default",
      "default": "evolution"
    },
    {
      "key": "WEBHOOK_GLOBAL_ENABLED",
      "service": "Evolution API",
      "description": "Keep false. Automata registers a webhook per connection; enabling the global one delivers every event twice",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "DATABASE_CONNECTION_URI",
      "service": "Evolution API",
      "description": "Postgres connection URL. Evolution writes to the public schema of the shared database",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_SAVE_DATA_CHATS",
      "service": "Evolution API",
      "description": "Stores chats, used for the chat list and token scoping",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_CONTACTS",
      "service": "Evolution API",
      "description": "Stores contacts, used to show names instead of phone numbers",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_HISTORIC",
      "service": "Evolution API",
      "description": "Imports past conversations when a number is linked. Must be true before the QR code is scanned",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_INSTANCE",
      "service": "Evolution API",
      "description": "Stores WhatsApp instance records",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_MESSAGE_UPDATE",
      "service": "Evolution API",
      "description": "Stores message status updates such as delivered and read",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "DATABASE_SAVE_DATA_NEW_MESSAGE",
      "service": "Evolution API",
      "description": "Stores incoming and outgoing messages so Claude can read and search them",
      "secret": false,
      "strategy": "default",
      "default": "true"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Location where the database will be initialized",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Railway Private Domain Name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port to connect to Postgres.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Required variable for the data panel.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Required variable for Data panel",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Default database created when image is started.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "URL to connect to Postgres database.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "User to connect to Postgres DB",
      "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": "Password to connect to DB",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Allow Postgres to cleanly shut down",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "automata-or-whatsapp-telegram-sql-mcp"
      }
    },
    "cli": "railway deploy --template automata-or-whatsapp-telegram-sql-mcp",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "fc333151-7337-42de-8d4f-1afc1b8f6957",
            "serializedConfig": {
              "services": {
                "14478423-f62e-4529-95b0-c1458aab85a4": {
                  "icon": "https://lhbaovhjuhitknbfclbg.supabase.co/storage/v1/object/public/logos/automata.png",
                  "name": "Automata MCP",
                  "source": {
                    "image": "ghcr.io/ju-li/automata-mcp-web:1"
                  },
                  "variables": {
                    "NUXT_SMTP_TLS": {
                      "isOptional": true,
                      "description": "false uses STARTTLS when offered (port 587); set true for implicit TLS (port 465)",
                      "defaultValue": "false"
                    },
                    "NUXT_MAIL_FROM": {
                      "isOptional": true,
                      "description": "From address for alert and invitation emails. Must be one your SMTP provider accepts",
                      "defaultValue": ""
                    },
                    "NUXT_SMTP_HOST": {
                      "isOptional": true,
                      "description": "SMTP server hostname. Optional: leave empty and no email is sent (alerts stay queued, invitation links are still shown to copy)",
                      "defaultValue": ""
                    },
                    "NUXT_SMTP_PORT": {
                      "isOptional": true,
                      "description": "SMTP server port, usually 587 (STARTTLS) or 465 (TLS)",
                      "defaultValue": "587"
                    },
                    "NUXT_WEBHOOK_URL": {
                      "description": "URL Evolution posts WhatsApp connection events to, so disconnect alerts go out in seconds",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}/api/webhook/evolution"
                    },
                    "NUXT_DATABASE_URL": {
                      "description": "Postgres connection URL for the app's own data (users, organizations, connections, tokens). Required; migrated at boot",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NUXT_TELEGRAM_URL": {
                      "description": "Private URL of the Telegram bridge",
                      "defaultValue": "http://${{\"Automata MCP Telegram Bridge\".RAILWAY_PRIVATE_DOMAIN}}:8095"
                    },
                    "NUXT_EVOLUTION_URL": {
                      "description": "Private URL of the Evolution API, used for WhatsApp connections",
                      "defaultValue": "http://${{\"Evolution API\".RAILWAY_PRIVATE_DOMAIN}}:8080"
                    },
                    "NUXT_SMTP_PASSWORD": {
                      "isOptional": true,
                      "description": "SMTP password or API key",
                      "defaultValue": ""
                    },
                    "NUXT_SMTP_USERNAME": {
                      "isOptional": true,
                      "description": "SMTP user name",
                      "defaultValue": ""
                    },
                    "NUXT_MAIL_FROM_NAME": {
                      "isOptional": true,
                      "description": "Sender name shown on outgoing emails",
                      "defaultValue": "Automata MCP"
                    },
                    "NUXT_PUBLIC_APP_URL": {
                      "description": "Public URL of this app, used to build connector URLs and links in emails",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "NUXT_WEBHOOK_SECRET": {
                      "description": "Shared secret that Evolution and the Telegram bridge send with each webhook, generated at deploy. Keep it secret",
                      "defaultValue": "{{NUXT_WEBHOOK_SECRET}}"
                    },
                    "NUXT_TELEGRAM_ADMIN_KEY": {
                      "description": "Telegram bridge admin key, used only to create and delete Telegram sessions",
                      "defaultValue": "${{\"Automata MCP Telegram Bridge\".TELEGRAM_BRIDGE_ADMIN_KEY}}"
                    },
                    "NUXT_EVOLUTION_ADMIN_KEY": {
                      "description": "Evolution global API key, used only to create and delete WhatsApp instances",
                      "defaultValue": "${{\"Evolution API\".AUTHENTICATION_API_KEY}}"
                    },
                    "NUXT_TELEGRAM_DATABASE_URL": {
                      "description": "Postgres connection URL for reading synced Telegram chats (telegram schema). Opened read-only",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "NUXT_EVOLUTION_DATABASE_URL": {
                      "description": "Postgres connection URL for reading WhatsApp messages (Evolution's tables). Opened read-only",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  }
                },
                "182575e5-30f7-42d3-975c-8511c2549816": {
                  "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 hostname of the Redis service, only reachable from other services in this project",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "REDISPORT": {
                      "isOptional": false,
                      "description": "Port Redis listens on",
                      "defaultValue": "6379"
                    },
                    "REDISUSER": {
                      "isOptional": false,
                      "description": "Redis user name",
                      "defaultValue": "default"
                    },
                    "REDIS_URL": {
                      "isOptional": false,
                      "description": "Full private-network connection URL for Redis, used by Evolution API as its cache",
                      "defaultValue": "redis://${{ REDISUSER }}:${{ REDIS_PASSWORD }}@${{ REDISHOST }}:${{ REDISPORT }}"
                    },
                    "REDISPASSWORD": {
                      "isOptional": false,
                      "description": "Same value as REDIS_PASSWORD, under the name some clients expect",
                      "defaultValue": "${{REDIS_PASSWORD}}"
                    },
                    "REDIS_PASSWORD": {
                      "isOptional": false,
                      "description": "Redis password, generated at deploy. Keep it secret",
                      "defaultValue": "{{REDIS_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "182575e5-30f7-42d3-975c-8511c2549816": {
                      "mountPath": "/data"
                    }
                  },
                  "haTemplateCode": "redis-ha"
                },
                "71ee7413-5c23-4df5-ac29-d80ea515a4af": {
                  "icon": "https://lhbaovhjuhitknbfclbg.supabase.co/storage/v1/object/public/logos/automata.png",
                  "name": "Automata MCP Telegram Bridge",
                  "source": {
                    "image": "ghcr.io/ju-li/automata-mcp-telegram-bridge:1"
                  },
                  "variables": {
                    "TELEGRAM_API_ID": {
                      "isOptional": true,
                      "description": "Telegram API ID from my.telegram.org. Optional: leave both API fields empty to run without Telegram (WhatsApp and SQL still work). Set both or neither",
                      "defaultValue": ""
                    },
                    "TELEGRAM_API_HASH": {
                      "isOptional": true,
                      "description": "Telegram API hash from my.telegram.org (32 hex characters). Set together with TELEGRAM_API_ID, or leave both empty",
                      "defaultValue": ""
                    },
                    "TELEGRAM_BRIDGE_PORT": {
                      "description": "Port the bridge listens on. Fixed here because Railway injects PORT=8080; the app connects on 8095",
                      "defaultValue": "8095"
                    },
                    "TELEGRAM_BRIDGE_ADMIN_KEY": {
                      "description": "Admin key the app uses only to create and delete Telegram sessions, generated at deploy. Keep it secret",
                      "defaultValue": "{{TELEGRAM_BRIDGE_ADMIN_KEY}}"
                    },
                    "TELEGRAM_BRIDGE_DATABASE_URL": {
                      "description": "Postgres connection URL. The bridge stores sessions and synced chats in its own telegram schema",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "TELEGRAM_SESSION_ENCRYPTION_KEY": {
                      "description": "Encrypts stored Telegram sessions, generated at deploy. Never change or lose it: doing so unlinks every Telegram account",
                      "defaultValue": "{{TELEGRAM_SESSION_ENCRYPTION_KEY}}"
                    }
                  }
                },
                "91063707-00d7-40ba-8a45-27c3b1e2493d": {
                  "icon": "https://evolutionfoundation.com.br/favicon.png",
                  "name": "Evolution API",
                  "source": {
                    "image": "evoapicloud/evolution-api:latest"
                  },
                  "variables": {
                    "SERVER_URL": {
                      "description": "Public URL of the Evolution API, used in links it generates",
                      "defaultValue": "https://${{RAILWAY_PUBLIC_DOMAIN}}"
                    },
                    "SERVER_PORT": {
                      "description": "Port Evolution listens on. Fixed here because Evolution reads SERVER_PORT, not Railway's PORT",
                      "defaultValue": "8080"
                    },
                    "CACHE_REDIS_URI": {
                      "description": "Redis connection URL for Evolution's cache, on the private network",
                      "defaultValue": "${{Redis.REDIS_URL}}"
                    },
                    "DATABASE_PROVIDER": {
                      "description": "Database engine Evolution stores sessions, chats and messages in",
                      "defaultValue": "postgresql"
                    },
                    "TELEMETRY_ENABLED": {
                      "description": "Turns off Evolution's anonymous usage telemetry",
                      "defaultValue": "false"
                    },
                    "CACHE_LOCAL_ENABLED": {
                      "description": "Turns off the in-memory cache; Redis is used instead",
                      "defaultValue": "false"
                    },
                    "CACHE_REDIS_ENABLED": {
                      "description": "Uses Redis as Evolution's cache",
                      "defaultValue": "true"
                    },
                    "AUTHENTICATION_API_KEY": {
                      "description": "Global admin key for Evolution, generated at deploy. Automata uses it only to create and delete WhatsApp instances. Keep it secret",
                      "defaultValue": "{{AUTHENTICATION_API_KEY}}"
                    },
                    "CACHE_REDIS_PREFIX_KEY": {
                      "description": "Prefix for Evolution's keys in Redis",
                      "defaultValue": "evolution"
                    },
                    "WEBHOOK_GLOBAL_ENABLED": {
                      "description": "Keep false. Automata registers a webhook per connection; enabling the global one delivers every event twice",
                      "defaultValue": "false"
                    },
                    "DATABASE_CONNECTION_URI": {
                      "description": "Postgres connection URL. Evolution writes to the public schema of the shared database",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "DATABASE_SAVE_DATA_CHATS": {
                      "description": "Stores chats, used for the chat list and token scoping",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_CONTACTS": {
                      "description": "Stores contacts, used to show names instead of phone numbers",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_HISTORIC": {
                      "description": "Imports past conversations when a number is linked. Must be true before the QR code is scanned",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_INSTANCE": {
                      "description": "Stores WhatsApp instance records",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_MESSAGE_UPDATE": {
                      "description": "Stores message status updates such as delivered and read",
                      "defaultValue": "true"
                    },
                    "DATABASE_SAVE_DATA_NEW_MESSAGE": {
                      "description": "Stores incoming and outgoing messages so Claude can read and search them",
                      "defaultValue": "true"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "91063707-00d7-40ba-8a45-27c3b1e2493d": {
                      "mountPath": "/evolution/instances"
                    }
                  }
                },
                "94f50ee5-3f87-4e88-a708-4360a6193b9c": {
                  "icon": "https://devicons.railway.app/i/postgresql.svg",
                  "name": "Postgres",
                  "deploy": {
                    "requiredMountPath": "/var/lib/postgresql/data"
                  },
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "isOptional": false,
                      "description": "Location where the database will be initialized",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Railway Private Domain Name.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port to connect to Postgres.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{ POSTGRES_USER }}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Required variable for the data panel.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Required variable for Data panel",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Default database created when image is started.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "URL to connect to Postgres database.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "User to connect to Postgres DB",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": true,
                      "description": "SSL certificate expiry in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password to connect to DB",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Allow Postgres to cleanly shut down",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "94f50ee5-3f87-4e88-a708-4360a6193b9c": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  },
                  "haTemplateCode": "postgres-ha",
                  "haConversionConfig": {
                    "edge": {
                      "label": "Reverse Proxy",
                      "options": [
                        2,
                        3,
                        4,
                        5
                      ],
                      "nodeLabel": "HAProxy",
                      "description": "Routes traffic to the primary",
                      "defaultValue": 3
                    },
                    "replica": {
                      "label": "Replicas",
                      "options": [
                        2,
                        3,
                        4,
                        5,
                        6,
                        7
                      ],
                      "nodeLabel": "Postgres",
                      "description": "Streaming replicas for automatic failover",
                      "defaultValue": 2
                    },
                    "internal": {
                      "label": "Coordinator Nodes",
                      "options": [
                        3,
                        5,
                        7,
                        9
                      ],
                      "nodeLabel": "etcd",
                      "defaultValue": 3
                    },
                    "description": "This will convert your Postgres database to an HA cluster with Patroni failover and etcd consensus."
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 5,
    "needs_volume": true
  },
  "generated_at": "2026-10-06T22:14:36.911Z",
  "generator_version": "0.1.0",
  "status": "degraded",
  "validated_at": "2026-10-06T01:56:32.929Z",
  "success_rate_30d": 0,
  "validation": {
    "last_run_id": "run_a19f205e9ed34d538218",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": false,
        "detail": "SUCCESS,CRASHED,SUCCESS,SUCCESS,SUCCESS"
      }
    ]
  }
}
