Quick Start
This guide will help you get a basic Greentic digital worker running locally.
Prerequisites
Section titled “Prerequisites”Before you begin, ensure you have:
- Rust 1.90 or later (
rustup default 1.90) - Node.js 18+ (for frontend tools)
- Git for cloning repositories
Installation
Section titled “Installation”-
Install the GTC CLI
Terminal window cargo install greentic-cliOr build from source:
Terminal window git clone https://github.com/greenticai/greentic.gitcd greentic/greenticcargo build --release -
Create a new bundle
Use the wizard to create a new bundle with your desired configuration:
Terminal window gtc wizard --answers wizard-answers.yamlOr run interactively:
Terminal window gtc wizard -
Configure providers
Set up your messaging providers (e.g., Telegram, Slack):
Terminal window gtc setup ./my-bundleFor non-interactive setup, use an answers file:
Terminal window gtc setup --answers answers.json ./my-bundle -
Start the runtime
Launch your digital worker:
Terminal window gtc start ./my-bundle
Example: Hello World Flow
Section titled “Example: Hello World Flow”Create a simple flow that responds to messages:
name: hello_worldversion: "1.0"description: A simple greeting flow
nodes: - id: greet type: reply config: message: "Hello! I'm your digital worker."
triggers: - type: message pattern: "hello" target: greetBundle Structure
Section titled “Bundle Structure”A typical Greentic bundle looks like this:
my-bundle/├── greentic.demo.yaml # Main configuration├── providers/│ └── messaging/│ └── messaging-telegram.gtpack├── apps/│ └── my-app/│ └── flows/│ └── on_message.ygtc└── seeds.yaml # Seed data (optional)Configuration File
Section titled “Configuration File”The main configuration file (greentic.demo.yaml) defines your setup:
name: my-digital-workerversion: "1.0"
providers: messaging-telegram: pack: "providers/messaging/messaging-telegram.gtpack" setup_flow: "setup_default"
apps: my-app: path: "apps/my-app" default_flow: "on_message"
tenants: demo: name: Demo Tenant teams: default: channels: telegram: provider: messaging-telegramNext Steps
Section titled “Next Steps”Now that you have a basic setup running:
- Learn about Flows - Understand flow definitions
- Configure Telegram - Set up Telegram bot
- Configure Slack - Connect to Slack workspace
- Build custom components - Create your own WASM components