{
  "manifest_version": "1.0.0",
  "template": {
    "id": "888c00c4-579f-4fbf-af2c-a9ff26c84c5c",
    "slug": "flowise-visual-ai-builder",
    "name": "Flowise — AI Agent Builder",
    "description": "Build AI agents visually with a powerful low-code workflow platform.",
    "url": "https://railway.com/deploy/flowise-visual-ai-builder",
    "upstream": {
      "image": "flowiseai/flowise:latest"
    }
  },
  "services": [
    {
      "name": "Postgres",
      "source": {
        "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
      },
      "needs_volume": true,
      "volume_mount_path": "/var/lib/postgresql/data",
      "http": false
    },
    {
      "name": "flowise",
      "source": {
        "image": "flowiseai/flowise:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/opt/railway/.flowise",
      "http": true
    }
  ],
  "required_inputs": [
    {
      "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"
    },
    {
      "key": "PORT",
      "service": "flowise",
      "description": "Flowise HTTP service port",
      "secret": false,
      "strategy": "default",
      "default": "3000"
    },
    {
      "key": "LOG_PATH",
      "service": "flowise",
      "description": "Persistent Flowise logs directory",
      "secret": false,
      "strategy": "default",
      "default": "/opt/railway/.flowise/logs"
    },
    {
      "key": "PGSSLMODE",
      "service": "flowise",
      "description": "Disable PostgreSQL SSL for Railway private networking",
      "secret": false,
      "strategy": "default",
      "default": "disable"
    },
    {
      "key": "APIKEY_PATH",
      "service": "flowise",
      "description": "Persistent location for Flowise API keys",
      "secret": true,
      "strategy": "default",
      "default": "/opt/railway/.flowise"
    },
    {
      "key": "DATABASE_HOST",
      "service": "flowise",
      "description": "PostgreSQL host",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_NAME",
      "service": "flowise",
      "description": "PostgreSQL database name",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_PORT",
      "service": "flowise",
      "description": "PostgreSQL port",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "DATABASE_TYPE",
      "service": "flowise",
      "description": "Use PostgreSQL as the Flowise application database",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "DATABASE_USER",
      "service": "flowise",
      "description": "PostgreSQL username",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "SECRETKEY_PATH",
      "service": "flowise",
      "description": "Persistent location for Flowise encryption secret",
      "secret": true,
      "strategy": "default",
      "default": "/opt/railway/.flowise"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "flowise",
      "description": "Run as root so Railway-mounted persistent volume is writable",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "FLOWISE_PASSWORD",
      "service": "flowise",
      "description": "Auto-generated strong password",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "FLOWISE_USERNAME",
      "service": "flowise",
      "description": "Optional basic authentication username",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "BLOB_STORAGE_PATH",
      "service": "flowise",
      "description": "Persistent uploaded/blob storage",
      "secret": false,
      "strategy": "default",
      "default": "/opt/railway/.flowise/storage"
    },
    {
      "key": "DATABASE_PASSWORD",
      "service": "flowise",
      "description": "PostgreSQL password",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "flowise-visual-ai-builder"
      }
    },
    "cli": "railway deploy --template flowise-visual-ai-builder",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "888c00c4-579f-4fbf-af2c-a9ff26c84c5c",
            "serializedConfig": {
              "services": {
                "a242f7e4-b725-4bc6-a863-970f7c7fab53": {
                  "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": {
                    "a242f7e4-b725-4bc6-a863-970f7c7fab53": {
                      "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."
                  }
                },
                "a68dafcf-d413-4701-8f41-e8425f6f33d9": {
                  "icon": "https://res.cloudinary.com/drxplgxxg/image/upload/v1786798124/PCQwxlP.png",
                  "name": "flowise",
                  "deploy": {
                    "healthcheckPath": "/api/v1/ping"
                  },
                  "source": {
                    "image": "flowiseai/flowise:latest"
                  },
                  "variables": {
                    "PORT": {
                      "description": "Flowise HTTP service port",
                      "defaultValue": "3000"
                    },
                    "LOG_PATH": {
                      "description": "Persistent Flowise logs directory",
                      "defaultValue": "/opt/railway/.flowise/logs"
                    },
                    "PGSSLMODE": {
                      "description": "Disable PostgreSQL SSL for Railway private networking",
                      "defaultValue": "disable"
                    },
                    "APIKEY_PATH": {
                      "description": "Persistent location for Flowise API keys",
                      "defaultValue": "/opt/railway/.flowise"
                    },
                    "DATABASE_HOST": {
                      "description": "PostgreSQL host",
                      "defaultValue": "${{Postgres.PGHOST}}"
                    },
                    "DATABASE_NAME": {
                      "description": "PostgreSQL database name",
                      "defaultValue": "${{Postgres.PGDATABASE}}"
                    },
                    "DATABASE_PORT": {
                      "description": "PostgreSQL port",
                      "defaultValue": "${{Postgres.PGPORT}}"
                    },
                    "DATABASE_TYPE": {
                      "description": "Use PostgreSQL as the Flowise application database",
                      "defaultValue": "postgres"
                    },
                    "DATABASE_USER": {
                      "description": "PostgreSQL username",
                      "defaultValue": "${{Postgres.PGUSER}}"
                    },
                    "SECRETKEY_PATH": {
                      "description": "Persistent location for Flowise encryption secret",
                      "defaultValue": "/opt/railway/.flowise"
                    },
                    "RAILWAY_RUN_UID": {
                      "description": "Run as root so Railway-mounted persistent volume is writable",
                      "defaultValue": "0"
                    },
                    "FLOWISE_PASSWORD": {
                      "description": "Auto-generated strong password",
                      "defaultValue": "{{FLOWISE_PASSWORD}}"
                    },
                    "FLOWISE_USERNAME": {
                      "description": "Optional basic authentication username",
                      "defaultValue": "admin"
                    },
                    "BLOB_STORAGE_PATH": {
                      "description": "Persistent uploaded/blob storage",
                      "defaultValue": "/opt/railway/.flowise/storage"
                    },
                    "DATABASE_PASSWORD": {
                      "description": "PostgreSQL password",
                      "defaultValue": "${{Postgres.PGPASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:3000": {
                        "port": 3000
                      }
                    }
                  },
                  "volumeMounts": {
                    "a68dafcf-d413-4701-8f41-e8425f6f33d9": {
                      "mountPath": "/opt/railway/.flowise"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {
    "healthcheck": {
      "service": "flowise",
      "method": "GET",
      "path": "/api/v1/ping",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-04T17:54:19.363Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-04T13:48:18.746Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_4286ba64f4ba4c92aca5",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 70,
    "typical_build_seconds": 0,
    "typical_start_seconds": 51,
    "slowest_service": "flowise"
  }
}
