{
  "manifest_version": "1.0.0",
  "template": {
    "id": "23315e9f-d21a-4a77-938d-9a83c09a3b00",
    "slug": "langflow-on-bifrost-visual-ai-agent-buil",
    "name": "Langflow on Bifrost: Visual AI Agent Builder, Any Model",
    "description": "Host Langflow on Bifrost: Visual AI Agent Builder, Any Model with Railway",
    "url": "https://railway.com/deploy/langflow-on-bifrost-visual-ai-agent-buil",
    "upstream": {
      "image": "langflowai/langflow:latest"
    }
  },
  "services": [
    {
      "name": "Langflow",
      "source": {
        "image": "langflowai/langflow:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/langflow",
      "http": true
    },
    {
      "name": "Bifrost",
      "source": {
        "image": "maximhq/bifrost:latest"
      },
      "needs_volume": true,
      "volume_mount_path": "/app/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
    }
  ],
  "required_inputs": [
    {
      "key": "OPENAI_API_BASE",
      "service": "Langflow",
      "description": "Provide a value for OPENAI_API_BASE.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Langflow",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "LANGFLOW_SUPERUSER",
      "service": "Langflow",
      "description": "Provide a value for LANGFLOW_SUPERUSER.",
      "secret": false,
      "strategy": "default",
      "default": "admin"
    },
    {
      "key": "LANGFLOW_AUTO_LOGIN",
      "service": "Langflow",
      "description": "Provide a value for LANGFLOW_AUTO_LOGIN.",
      "secret": false,
      "strategy": "default",
      "default": "false"
    },
    {
      "key": "LANGFLOW_CONFIG_DIR",
      "service": "Langflow",
      "description": "Provide a value for LANGFLOW_CONFIG_DIR.",
      "secret": false,
      "strategy": "default",
      "default": "/app/langflow"
    },
    {
      "key": "LANGFLOW_SECRET_KEY",
      "service": "Langflow",
      "description": "Provide a value for LANGFLOW_SECRET_KEY.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "LANGFLOW_DATABASE_URL",
      "service": "Langflow",
      "description": "Provide a value for LANGFLOW_DATABASE_URL.",
      "secret": false,
      "strategy": "default",
      "default": "sqlite:////app/langflow/langflow.db"
    },
    {
      "key": "LANGFLOW_SUPERUSER_PASSWORD",
      "service": "Langflow",
      "description": "Provide a value for LANGFLOW_SUPERUSER_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "APP_HOST",
      "service": "Bifrost",
      "description": "Provide a value for APP_HOST.",
      "secret": false,
      "strategy": "default",
      "default": "0.0.0.0"
    },
    {
      "key": "APP_PORT",
      "service": "Bifrost",
      "description": "Provide a value for APP_PORT.",
      "secret": false,
      "strategy": "default",
      "default": "8080"
    },
    {
      "key": "LOG_LEVEL",
      "service": "Bifrost",
      "description": "Provide a value for LOG_LEVEL.",
      "secret": false,
      "strategy": "default",
      "default": "info"
    },
    {
      "key": "LOG_STYLE",
      "service": "Bifrost",
      "description": "Provide a value for LOG_STYLE.",
      "secret": false,
      "strategy": "default",
      "default": "json"
    },
    {
      "key": "BIFROST_CONFIG",
      "service": "Bifrost",
      "description": "Provide a value for BIFROST_CONFIG.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "RAILWAY_RUN_UID",
      "service": "Bifrost",
      "description": "Provide a value for RAILWAY_RUN_UID.",
      "secret": false,
      "strategy": "default",
      "default": "0"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "Provide a value for PGDATA.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_DB.",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_USER.",
      "secret": false,
      "strategy": "default",
      "default": "app"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Provide a value for POSTGRES_PASSWORD.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "langflow-on-bifrost-visual-ai-agent-buil"
      }
    },
    "cli": "railway deploy --template langflow-on-bifrost-visual-ai-agent-buil",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "23315e9f-d21a-4a77-938d-9a83c09a3b00",
            "serializedConfig": {
              "services": {
                "9c5d4e0a-401c-4b09-a194-3bc51ba77548": {
                  "icon": "https://docs.langflow.org/img/langflow-icon-black-transparent.svg",
                  "name": "Langflow",
                  "deploy": {
                    "healthcheckPath": ""
                  },
                  "source": {
                    "image": "langflowai/langflow:latest"
                  },
                  "variables": {
                    "OPENAI_API_BASE": {
                      "defaultValue": "http://${{Bifrost.RAILWAY_PRIVATE_DOMAIN}}:8080/openai/v1"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    },
                    "LANGFLOW_SUPERUSER": {
                      "defaultValue": "admin"
                    },
                    "LANGFLOW_AUTO_LOGIN": {
                      "defaultValue": "false"
                    },
                    "LANGFLOW_CONFIG_DIR": {
                      "defaultValue": "/app/langflow"
                    },
                    "LANGFLOW_SECRET_KEY": {
                      "defaultValue": "{{LANGFLOW_SECRET_KEY}}"
                    },
                    "LANGFLOW_DATABASE_URL": {
                      "defaultValue": "sqlite:////app/langflow/langflow.db"
                    },
                    "LANGFLOW_SUPERUSER_PASSWORD": {
                      "defaultValue": "{{LANGFLOW_SUPERUSER_PASSWORD}}"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:7860": {
                        "port": 7860
                      }
                    }
                  },
                  "volumeMounts": {
                    "9c5d4e0a-401c-4b09-a194-3bc51ba77548": {
                      "mountPath": "/app/langflow"
                    }
                  }
                },
                "bdf151f9-cde2-4cba-9516-ce5b3861e0e9": {
                  "icon": "https://www.getmaxim.ai/bifrost/brand-assets/bifrost-logo.svg",
                  "name": "Bifrost",
                  "deploy": {
                    "healthcheckPath": "/health"
                  },
                  "source": {
                    "image": "maximhq/bifrost:latest"
                  },
                  "variables": {
                    "APP_HOST": {
                      "defaultValue": "0.0.0.0"
                    },
                    "APP_PORT": {
                      "defaultValue": "8080"
                    },
                    "LOG_LEVEL": {
                      "defaultValue": "info"
                    },
                    "LOG_STYLE": {
                      "defaultValue": "json"
                    },
                    "BIFROST_CONFIG": {
                      "defaultValue": "{\"config_store\":{\"enabled\":true,\"type\":\"postgres\",\"config\":{\"host\":\"${{Postgres.RAILWAY_PRIVATE_DOMAIN}}\",\"port\":\"5432\",\"user\":\"${{Postgres.POSTGRES_USER}}\",\"password\":\"${{Postgres.POSTGRES_PASSWORD}}\",\"db_name\":\"${{Postgres.POSTGRES_DB}}\",\"ssl_mode\":\"disable\"}},\"logs_store\":{\"enabled\":true,\"type\":\"postgres\",\"config\":{\"host\":\"${{Postgres.RAILWAY_PRIVATE_DOMAIN}}\",\"port\":\"5432\",\"user\":\"${{Postgres.POSTGRES_USER}}\",\"password\":\"${{Postgres.POSTGRES_PASSWORD}}\",\"db_name\":\"${{Postgres.POSTGRES_DB}}\",\"ssl_mode\":\"disable\"}}}"
                    },
                    "RAILWAY_RUN_UID": {
                      "defaultValue": "0"
                    }
                  },
                  "networking": {
                    "serviceDomains": {
                      "<hasDomain>:8080": {
                        "port": 8080
                      }
                    }
                  },
                  "volumeMounts": {
                    "bdf151f9-cde2-4cba-9516-ce5b3861e0e9": {
                      "mountPath": "/app/data"
                    }
                  }
                },
                "cc9b0f50-35b5-4182-a85f-7f5700cb6938": {
                  "icon": "https://cdn.jsdelivr.net/gh/homarr-labs/dashboard-icons/svg/postgresql.svg",
                  "name": "Postgres",
                  "source": {
                    "image": "ghcr.io/railwayapp-templates/postgres-ssl:18"
                  },
                  "variables": {
                    "PGDATA": {
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "POSTGRES_DB": {
                      "defaultValue": "app"
                    },
                    "POSTGRES_USER": {
                      "defaultValue": "app"
                    },
                    "POSTGRES_PASSWORD": {
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    }
                  },
                  "volumeMounts": {
                    "cc9b0f50-35b5-4182-a85f-7f5700cb6938": {
                      "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": {
    "healthcheck": {
      "service": "Bifrost",
      "method": "GET",
      "path": "/health",
      "expect_status": 200
    }
  },
  "resources": {
    "expected_services": 3,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T22:14:50.114Z",
  "generator_version": "0.1.0",
  "status": "validated",
  "validated_at": "2026-09-22T18:22:58.154Z",
  "success_rate_30d": 1,
  "validation": {
    "last_run_id": "run_92378f4c286243c29fbd",
    "checks": [
      {
        "name": "workflow_completed",
        "passed": true
      },
      {
        "name": "all_services_deployed",
        "passed": true
      },
      {
        "name": "healthcheck",
        "passed": true
      },
      {
        "name": "stays_up",
        "passed": true
      }
    ],
    "typical_ready_seconds": 83,
    "typical_build_seconds": 0,
    "typical_start_seconds": 21,
    "slowest_service": "Langflow"
  }
}
