- Human-readable: YAML’s clean, indentation-based syntax makes workflows easy to read and understand without deep technical expertise.
- Declarative: Instead of writing imperative code that describes how to accomplish tasks, YAML allows developers to declare what should happen.
- No-code accessibility: YAML eliminates the need to write traditional backend code. Developers familiar with JSON, configuration files, or basic programming can create blockchain automation without learning a new programming language.
- Standardized: YAML is a widely adopted standard used across DevOps, CI/CD pipelines, and infrastructure-as-code tools.
What makes Kwalang different
Kwalang eliminates the complexity of blockchain automation by providing a declarative language where you simply define what should happen and when. In Kwalang, you write workflows in YAML that specify:- When your workflow should activate (on-chain events, price levels, schedules, or an incoming API call)
- What conditions must be met (optional conditional logic)
- How actions should execute (sequential or parallel)
- Where actions should run (which blockchain networks or APIs)
Kwala’s YAML structure
Kwala workflows use a simple key-value pair format to organize information. Think of it like a form where each field has a label (the key) and an answer (the value). This makes workflows easy to read and understand. A key-value pair is written as:Key: value
The key is the label that describes what information you are providing. The value is the actual information. For example:
Name and ChainID are keys, and my_token_monitor and 1 are their corresponding values.
Organize information with sections
Kwala workflows organize related information into sections. Each section groups together related key-value pairs. The main sections are:- Name: The identifier for your workflow
- Trigger: When and how your workflow activates
- Actions: What happens when the workflow runs
- Execution: How the actions should be processed
Example YAML workflow
Let’s break down a real Kwala workflow:Key patterns to remember
-
Indentation matters: Items that belong together are indented (moved to the right). This shows their relationship. For example, all trigger-related information is indented under
Trigger:. -
Lists use dashes: When you have multiple items of the same type (like multiple actions), each one starts with a dash
-. - Values can be text, numbers, or addresses: Kwala accepts different types of information depending on what the key needs.
-
NA means not applicable: If a field does not apply to your workflow, you can use
NAto indicate it is intentionally left empty. Every workflow definition has the same fixed shape, so fields for trigger types you aren’t using are set toNA— this is expected, not an error.
Next Steps
Learn how to create your first workflow
