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 |
|---|---|
--schema | Print the current launcher AnswerDocument schema |
--answers <FILE | URL> | Path or URL to a JSON AnswerDocument envelope. Supports local paths and remote http:// / https:// URLs. |
--dry-run | Preview generated files without writing |
--out <DIR> | Override output directory for the wizard run |
--emit-answers <FILE> | Emit a portable JSON AnswerDocument |
--yes | Skip interactive confirmation for apply |
--non-interactive | Allow execution in non-interactive contexts |
Wizard AnswerDocument
Section titled “Wizard AnswerDocument”gtc wizard automation uses JSON AnswerDocument files. Ask the CLI for the live schema before generating or editing answers:
gtc wizard --schemaThe schema includes the launcher envelope plus embedded schemas for delegated bundle and pack wizard runs. A minimal bundle AnswerDocument looks like this:
{ "wizard_id": "greentic-dev.wizard.launcher.main", "schema_id": "greentic-dev.launcher.main", "schema_version": "1.0.0", "locale": "en", "answers": { "selected_action": "bundle", "delegate_answer_document": { "wizard_id": "greentic-bundle.wizard.run", "schema_id": "greentic-bundle.wizard.answers", "schema_version": "1.0.0", "locale": "en", "answers": { "bundle_name": "My Digital Worker", "bundle_id": "my-digital-worker", "output_dir": "./my-digital-worker", "extension_providers": ["messaging-webchat"], "app_packs": ["support-bot"], "capabilities": ["greentic.cap.bundle_assets.read.v1"] }, "locks": { "execution": "execute" } } }, "locks": { "execution": "execute" }}Capabilities
Section titled “Capabilities”The delegated bundle answers.capabilities array controls bundle-level features that are enabled when the bundle is created. Capabilities determine what additional scaffolding the wizard performs beyond the standard bundle structure.
{ "answers": { "delegate_answer_document": { "answers": { "capabilities": ["greentic.cap.bundle_assets.read.v1"] } } }}Available capabilities:
| Capability | Description |
|---|---|
greentic.cap.bundle_assets.read.v1 | Enables bundle-level asset overrides. When present, the wizard auto-scaffolds eligible webchat-gui skin assets from extension packs into the bundle’s assets/ directory. |
When greentic.cap.bundle_assets.read.v1 is included, the generated bundle will contain an assets/ directory with eligible files copied from extension packs (e.g., webchat-gui skins and configuration). These bundle-level files can be customized and will override pack defaults at runtime.
Generated Structure
Section titled “Generated Structure”Running the wizard generates:
my-digital-worker/├── bundle.yaml # Bundle workspace state├── providers/ # Compatibility materialization directory for extension .gtpack files│ ├── 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”Demo Catalog Bundles
Section titled “Demo Catalog Bundles”The greentic-demo repository publishes a *-create-answers.json and a *-setup-answers.json for every demo in its release artifacts. Use them directly to create a local bundle that you can keep editing afterwards:
gtc wizard --answers https://github.com/greenticai/greentic-demo/releases/latest/download/deep-research-demo-create-answers.jsonThen continue with setup and start:
gtc setup ./deep-research-demo-bundle --answers https://github.com/greenticai/greentic-demo/releases/latest/download/deep-research-demo-setup-answers.jsongtc start ./deep-research-demo-bundleSubstitute the demo ID for any of the published demos (quickstart, hr-onboarding, helpdesk-itsm, sales-crm, supply-chain, redbutton, cloud-deploy-demo, weather-mcp-demo, …). The full catalog with descriptions and required credentials lives on the Running Demos page.
Basic Usage
Section titled “Basic Usage”# Interactive modegtc wizard
# With answers filegtc wizard --answers wizard-answers.jsonPreview Mode
Section titled “Preview Mode”# See what would be generatedgtc wizard --answers wizard-answers.json --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.json
# Combine with dry-run to preview before generatinggtc wizard --answers https://config.example.com/teams/support/wizard-answers.json --dry-runCustom Output Directory
Section titled “Custom Output Directory”gtc wizard --answers wizard-answers.json --out ./my-projectBundle Capabilities
Section titled “Bundle Capabilities”The wizard prompts for optional bundle capabilities that enable additional features. Each capability unlocks a specific set of assets and behaviors in the generated bundle.
Interactive Prompts
Section titled “Interactive Prompts”When running gtc wizard interactively, you will see:
? Enable bundle-level assets (./assets/)? [Y/n]? Enable OAuth login for WebChat GUI? [y/N]? Enable multi-language for WebChat GUI? [y/N]? Enable embeddable WebChat widget? [y/N]Capability Reference
Section titled “Capability Reference”| Prompt | Capability ID | What It Does |
|---|---|---|
| Enable bundle-level assets | greentic.cap.bundle_assets.read.v1 | Creates the ./assets/ directory and scaffolds eligible webchat assets from extension packs |
| Enable OAuth login for WebChat GUI | greentic.cap.webchat.oauth.v1 | Adds OAuth/OIDC authentication provider configuration to tenant config files |
| Enable multi-language for WebChat GUI | greentic.cap.webchat.i18n.v1 | Enables the locale picker in WebChat and scaffolds locale JSON files under ./assets/ |
| Enable embeddable WebChat widget | greentic.cap.webchat.embed.v1 | Generates embed HTML snippets (fullpage link, inline iframe, chat bubble) per tenant |
Setting Capabilities in the Answers File
Section titled “Setting Capabilities in the Answers File”Instead of answering prompts interactively, set capabilities in the delegated bundle answers.capabilities array:
{ "wizard_id": "greentic-dev.wizard.launcher.main", "schema_id": "greentic-dev.launcher.main", "schema_version": "1.0.0", "locale": "en", "answers": { "selected_action": "bundle", "delegate_answer_document": { "wizard_id": "greentic-bundle.wizard.run", "schema_id": "greentic-bundle.wizard.answers", "schema_version": "1.0.0", "locale": "en", "answers": { "bundle_name": "My Digital Worker", "bundle_id": "my-digital-worker", "extension_providers": ["messaging-webchat"], "capabilities": [ "greentic.cap.bundle_assets.read.v1", "greentic.cap.webchat.oauth.v1", "greentic.cap.webchat.i18n.v1", "greentic.cap.webchat.embed.v1" ] } } }}For full details on capabilities, scaffold behavior, and the overlay mechanism, see Bundle Assets.
Workflow
Section titled “Workflow”-
Create answers file
Define your project configuration in a JSON AnswerDocument. Use
gtc wizard --schemato fetch the current contract. -
Run wizard
Terminal window gtc wizard validate --answers wizard-answers.jsongtc wizard apply --answers wizard-answers.json --yes -
Review generated files
Check the generated bundle structure.
-
Configure extensions
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}}" to: respond
- id: respond type: reply config: message: "{{analysis_result}}"
triggers: - type: message target: analyzeComponent Scaffolding: http_client Capability
Section titled “Component Scaffolding: http_client Capability”When scaffolding a new WASM component (for example via greentic-component new), the wizard can mark the component as needing outbound HTTP by setting http_client: true. This writes the capability declaration into the component manifest.
Troubleshooting
Section titled “Troubleshooting”Invalid Answers File
Section titled “Invalid Answers File”Error: Failed to parse answers fileEnsure your JSON AnswerDocument is valid. Use gtc wizard --schema to confirm the required shape.
Missing Required Fields
Section titled “Missing Required Fields”Error: AnswerDocument answer `bundle_name` is required.Check the required fields in gtc wizard --schema and update the JSON AnswerDocument.
Next Steps
Section titled “Next Steps”- gtc setup - Configure extensions
- gtc start - Run the runtime
- Quick Start - Complete workflow