gtc wizard
Overview
Section titled “Overview”The gtc wizard command creates new Greentic bundles from wizard answers. It scaffolds the complete bundle structure including configuration files, provider setups, and app templates.
gtc wizard [OPTIONS]Options
Section titled “Options”| Option | Description |
|---|---|
--answers <FILE | URL> | Path or URL to wizard answers file (JSON or YAML). Supports local paths and remote http:// / https:// URLs. |
--dry-run | Preview generated files without writing |
--output <DIR> | Output directory (default: current directory) |
--template <NAME> | Use a specific template |
-v, --verbose | Enable verbose output |
Wizard Answers File
Section titled “Wizard Answers File”JSON Format
Section titled “JSON Format”{ "project": { "name": "my-digital-worker", "version": "1.0.0", "description": "Customer support digital worker" }, "providers": { "messaging": ["telegram", "slack"], "events": ["webhook", "timer"] }, "apps": [ { "name": "support-bot", "template": "customer-service" } ], "tenants": [ { "id": "demo", "name": "Demo Tenant", "teams": [ { "id": "default", "channels": ["telegram", "slack"] } ] } ]}YAML Format
Section titled “YAML Format”project: name: my-digital-worker version: "1.0.0" description: Customer support digital worker
providers: messaging: - telegram - slack events: - webhook - timer
apps: - name: support-bot template: customer-service
tenants: - id: demo name: Demo Tenant teams: - id: default channels: - telegram - slackGenerated Structure
Section titled “Generated Structure”Running the wizard generates:
my-digital-worker/├── greentic.demo.yaml # Main configuration├── providers/│ ├── messaging/│ │ ├── messaging-telegram.gtpack│ │ └── messaging-slack.gtpack│ └── events/│ ├── events-webhook.gtpack│ └── events-timer.gtpack├── apps/│ └── support-bot/│ ├── app.yaml│ └── flows/│ └── on_message.ygtc├── tenants/│ └── demo/│ ├── tenant.gmap│ └── teams/│ └── default/│ └── team.gmap└── seeds.yamlExamples
Section titled “Examples”Basic Usage
Section titled “Basic Usage”# Interactive modegtc wizard
# With answers filegtc wizard --answers wizard-answers.yamlPreview Mode
Section titled “Preview Mode”# See what would be generatedgtc wizard --answers wizard-answers.yaml --dry-runRemote Answers File
Section titled “Remote Answers File”The --answers flag accepts http:// and https:// URLs, making it straightforward to
store shared answer documents in a central location and reference them from CI/CD pipelines.
# Fetch answers from a remote URLgtc wizard --answers https://config.example.com/teams/support/wizard-answers.yaml
# Combine with dry-run to preview before generatinggtc wizard --answers https://config.example.com/teams/support/wizard-answers.yaml --dry-runCustom Output Directory
Section titled “Custom Output Directory”gtc wizard --answers wizard-answers.yaml --output ./my-projectUsing Templates
Section titled “Using Templates”# List available templatesgtc wizard --list-templates
# Use specific templategtc wizard --template customer-service --answers answers.yamlAvailable Templates
Section titled “Available Templates”| Template | Description |
|---|---|
minimal | Bare bones bundle with one provider |
customer-service | FAQ bot with escalation |
helpdesk | IT support with ticket integration |
multi-channel | Multiple messaging channels |
Workflow
Section titled “Workflow”-
Create answers file
Define your project configuration in JSON or YAML.
-
Run wizard
Terminal window gtc wizard --answers wizard-answers.yaml -
Review generated files
Check the generated bundle structure.
-
Configure providers
Terminal window gtc setup ./my-digital-worker -
Start runtime
Terminal window gtc start ./my-digital-worker
Customizing Generated Flows
Section titled “Customizing Generated Flows”The wizard generates basic flow templates. Customize them after generation:
name: on_messageversion: "1.0"description: Handle incoming messages
nodes: # Add your custom nodes here - id: analyze type: llm config: model: "gpt-4" prompt: "Analyze: {{message}}" next: respond
- id: respond type: reply config: message: "{{analysis_result}}"
triggers: - type: message target: analyzeTroubleshooting
Section titled “Troubleshooting”Invalid Answers File
Section titled “Invalid Answers File”Error: Failed to parse answers fileEnsure your JSON/YAML is valid. Use a linter to check syntax.
Missing Required Fields
Section titled “Missing Required Fields”Error: Missing required field: project.nameCheck that all required fields are present in your answers file.
Template Not Found
Section titled “Template Not Found”Error: Template 'unknown' not foundUse gtc wizard --list-templates to see available templates.
Next Steps
Section titled “Next Steps”- gtc setup - Configure providers
- gtc start - Run the runtime
- Quick Start - Complete workflow