{
  "manifest_version": "1.0.0",
  "template": {
    "id": "5e467819-058b-444b-97b4-b42b5c3f7c80",
    "slug": "personal-ai-assistant",
    "name": "Personal AI Assistant for Telegram",
    "description": "Private Telegram AI with memory, web search, voice, vision & files.",
    "url": "https://railway.com/deploy/personal-ai-assistant"
  },
  "status": "unvalidated",
  "validated_at": null,
  "success_rate_30d": null,
  "services": [
    {
      "name": "personal-ai-telegram",
      "source": {
        "repo": "https://github.com/mastter-nsk/personal-ai-telegram"
      },
      "needs_volume": false,
      "http": false
    },
    {
      "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": "BOT_NAME",
      "service": "personal-ai-telegram",
      "description": "Name of your personal AI assistant.",
      "secret": false,
      "strategy": "default",
      "default": "Personal AI"
    },
    {
      "key": "TIMEZONE",
      "service": "personal-ai-telegram",
      "description": "Your timezone in IANA format, for example Europe/Berlin, Asia/Novosibirsk or America/New_York. Default: UTC.",
      "secret": false,
      "strategy": "default",
      "default": "UTC"
    },
    {
      "key": "PERSONALITY",
      "service": "personal-ai-telegram",
      "description": "System prompt that defines the assistant's personality, tone and behavior.",
      "secret": false,
      "strategy": "default",
      "default": "You are a helpful, natural and personal AI assistant."
    },
    {
      "key": "DATABASE_URL",
      "service": "personal-ai-telegram",
      "description": "PostgreSQL connection URL. Filled automatically from the included Postgres service.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "OPENAI_MODEL",
      "service": "personal-ai-telegram",
      "description": "OpenAI model used for chat, reasoning, vision and web search.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-5.6-luna"
    },
    {
      "key": "OPENAI_API_KEY",
      "service": "personal-ai-telegram",
      "description": "Your OpenAI API key used for chat, web search, voice transcription, image analysis and documents.",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "CONTEXT_MESSAGES",
      "service": "personal-ai-telegram",
      "description": "Number of recent conversation messages kept in active chat context.",
      "secret": false,
      "strategy": "default",
      "default": "20"
    },
    {
      "key": "OWNER_TELEGRAM_ID",
      "service": "personal-ai-telegram",
      "description": "Your numeric Telegram user ID. Only this account can use the bot.",
      "secret": false,
      "strategy": "ask_user"
    },
    {
      "key": "TELEGRAM_BOT_TOKEN",
      "service": "personal-ai-telegram",
      "description": "Telegram bot token from @BotFather",
      "secret": true,
      "strategy": "generate",
      "generate": "random_base64_32"
    },
    {
      "key": "TRANSCRIPTION_MODEL",
      "service": "personal-ai-telegram",
      "description": "OpenAI model used to transcribe Telegram voice messages.",
      "secret": false,
      "strategy": "default",
      "default": "gpt-4o-mini-transcribe"
    },
    {
      "key": "PGDATA",
      "service": "Postgres",
      "description": "PostgreSQL data directory used for persistent database storage.",
      "secret": false,
      "strategy": "default",
      "default": "/var/lib/postgresql/data/pgdata"
    },
    {
      "key": "PGHOST",
      "service": "Postgres",
      "description": "Internal hostname of the PostgreSQL server.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "PGPORT",
      "service": "Postgres",
      "description": "Port used by the PostgreSQL server.",
      "secret": false,
      "strategy": "default",
      "default": "5432"
    },
    {
      "key": "PGUSER",
      "service": "Postgres",
      "description": "PostgreSQL database username.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGDATABASE",
      "service": "Postgres",
      "description": "Default PostgreSQL database name.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "PGPASSWORD",
      "service": "Postgres",
      "description": "Password for the PostgreSQL database user.",
      "secret": true,
      "strategy": "railway_provided",
      "railway_source": "reference_variable"
    },
    {
      "key": "POSTGRES_DB",
      "service": "Postgres",
      "description": "Database created automatically when PostgreSQL starts.",
      "secret": false,
      "strategy": "default",
      "default": "railway"
    },
    {
      "key": "DATABASE_URL",
      "service": "Postgres",
      "description": "PostgreSQL connection URL for applications.",
      "secret": false,
      "strategy": "railway_provided",
      "railway_source": "railway_private_domain"
    },
    {
      "key": "POSTGRES_USER",
      "service": "Postgres",
      "description": "PostgreSQL administrator username.",
      "secret": false,
      "strategy": "default",
      "default": "postgres"
    },
    {
      "key": "SSL_CERT_DAYS",
      "service": "Postgres",
      "description": "PostgreSQL SSL certificate validity period in days.",
      "secret": false,
      "strategy": "default",
      "default": "820"
    },
    {
      "key": "POSTGRES_PASSWORD",
      "service": "Postgres",
      "description": "Password used to initialize the PostgreSQL server.",
      "secret": true,
      "strategy": "generate",
      "generate": "strong_password"
    },
    {
      "key": "RAILWAY_DEPLOYMENT_DRAINING_SECONDS",
      "service": "Postgres",
      "description": "Seconds Railway waits for existing connections to drain during redeploys.",
      "secret": false,
      "strategy": "default",
      "default": "60"
    }
  ],
  "deploy": {
    "mcp": {
      "server": "railway",
      "tool": "deploy_template",
      "args": {
        "template_code": "personal-ai-assistant"
      }
    },
    "cli": "railway deploy --template personal-ai-assistant",
    "api": {
      "method": "POST",
      "path": "/graphql/v2",
      "body": {
        "query": "mutation templateDeploy($input: TemplateDeployV2Input!) { templateDeployV2(input: $input) { projectId workflowId } }",
        "variables": {
          "input": {
            "templateId": "5e467819-058b-444b-97b4-b42b5c3f7c80",
            "serializedConfig": {
              "buckets": {},
              "services": {
                "04fc2db4-a538-4ebd-9fdd-0d97ed9e0255": {
                  "icon": null,
                  "name": "personal-ai-telegram",
                  "deploy": {
                    "startCommand": null,
                    "healthcheckPath": null,
                    "restartPolicyType": "ON_FAILURE",
                    "restartPolicyMaxRetries": 10
                  },
                  "source": {
                    "repo": "https://github.com/mastter-nsk/personal-ai-telegram",
                    "rootDirectory": null
                  },
                  "variables": {
                    "BOT_NAME": {
                      "isOptional": false,
                      "description": "Name of your personal AI assistant.",
                      "defaultValue": "Personal AI"
                    },
                    "TIMEZONE": {
                      "isOptional": false,
                      "description": "Your timezone in IANA format, for example Europe/Berlin, Asia/Novosibirsk or America/New_York. Default: UTC.",
                      "defaultValue": "UTC"
                    },
                    "PERSONALITY": {
                      "isOptional": false,
                      "description": "System prompt that defines the assistant's personality, tone and behavior.",
                      "defaultValue": "You are a helpful, natural and personal AI assistant."
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection URL. Filled automatically from the included Postgres service.",
                      "defaultValue": "${{Postgres.DATABASE_URL}}"
                    },
                    "OPENAI_MODEL": {
                      "isOptional": false,
                      "description": "OpenAI model used for chat, reasoning, vision and web search.",
                      "defaultValue": "gpt-5.6-luna"
                    },
                    "OPENAI_API_KEY": {
                      "isOptional": false,
                      "description": "Your OpenAI API key used for chat, web search, voice transcription, image analysis and documents.",
                      "defaultValue": "{{OPENAI_API_KEY}}"
                    },
                    "CONTEXT_MESSAGES": {
                      "isOptional": false,
                      "description": "Number of recent conversation messages kept in active chat context.",
                      "defaultValue": "20"
                    },
                    "OWNER_TELEGRAM_ID": {
                      "isOptional": false,
                      "description": "Your numeric Telegram user ID. Only this account can use the bot.",
                      "defaultValue": "{{OWNER_TELEGRAM_ID}}"
                    },
                    "TELEGRAM_BOT_TOKEN": {
                      "isOptional": false,
                      "description": "Telegram bot token from @BotFather",
                      "defaultValue": "{{TELEGRAM_BOT_TOKEN}}"
                    },
                    "TRANSCRIPTION_MODEL": {
                      "isOptional": false,
                      "description": "OpenAI model used to transcribe Telegram voice messages.",
                      "defaultValue": "gpt-4o-mini-transcribe"
                    }
                  }
                },
                "c7f4348d-2488-41aa-81a6-217640488eee": {
                  "icon": "https://devicons.railway.app/i/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": "PostgreSQL data directory used for persistent database storage.",
                      "defaultValue": "/var/lib/postgresql/data/pgdata"
                    },
                    "PGHOST": {
                      "isOptional": false,
                      "description": "Internal hostname of the PostgreSQL server.",
                      "defaultValue": "${{RAILWAY_PRIVATE_DOMAIN}}"
                    },
                    "PGPORT": {
                      "isOptional": false,
                      "description": "Port used by the PostgreSQL server.",
                      "defaultValue": "5432"
                    },
                    "PGUSER": {
                      "isOptional": false,
                      "description": "PostgreSQL database username.",
                      "defaultValue": "${{POSTGRES_USER}}"
                    },
                    "PGDATABASE": {
                      "isOptional": false,
                      "description": "Default PostgreSQL database name.",
                      "defaultValue": "${{POSTGRES_DB}}"
                    },
                    "PGPASSWORD": {
                      "isOptional": false,
                      "description": "Password for the PostgreSQL database user.",
                      "defaultValue": "${{POSTGRES_PASSWORD}}"
                    },
                    "POSTGRES_DB": {
                      "isOptional": false,
                      "description": "Database created automatically when PostgreSQL starts.",
                      "defaultValue": "railway"
                    },
                    "DATABASE_URL": {
                      "isOptional": false,
                      "description": "PostgreSQL connection URL for applications.",
                      "defaultValue": "postgresql://${{PGUSER}}:${{POSTGRES_PASSWORD}}@${{RAILWAY_PRIVATE_DOMAIN}}:5432/${{PGDATABASE}}"
                    },
                    "POSTGRES_USER": {
                      "isOptional": false,
                      "description": "PostgreSQL administrator username.",
                      "defaultValue": "postgres"
                    },
                    "SSL_CERT_DAYS": {
                      "isOptional": false,
                      "description": "PostgreSQL SSL certificate validity period in days.",
                      "defaultValue": "820"
                    },
                    "POSTGRES_PASSWORD": {
                      "isOptional": false,
                      "description": "Password used to initialize the PostgreSQL server.",
                      "defaultValue": "{{POSTGRES_PASSWORD}}"
                    },
                    "RAILWAY_DEPLOYMENT_DRAINING_SECONDS": {
                      "isOptional": false,
                      "description": "Seconds Railway waits for existing connections to drain during redeploys.",
                      "defaultValue": "60"
                    }
                  },
                  "volumeMounts": {
                    "c7f4348d-2488-41aa-81a6-217640488eee": {
                      "mountPath": "/var/lib/postgresql/data"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "post_deploy": {},
  "resources": {
    "expected_services": 2,
    "needs_volume": true
  },
  "generated_at": "2026-09-22T04:14:41.730Z",
  "generator_version": "0.1.0"
}
