Skip to main content
After creating and configuring your workflow, you need to compile, validate, and deploy it to the Kwala network. This guide walks you through ensuring your workflow runs correctly and deploying it onchain for execution.

Prerequisites

  • Completion of the steps in Configure workflow
  • Your workflow loaded in the Workflow Editor

Review your workflow

The Workflow Builder generates a complete YAML automation script and opens it in the Workflow Editor for review. Here, you can make any additional edits before compiling and deploying.
Workflow created successfully in the editor

Compile your workflow

Use the Compile button to validate your workflow schema. This performs a syntax check that ensures your workflow structure is correct. Schema validation must pass for the workflow to run. A successful compile displays the message: “Workflow verified - Workflow has been successfully verified and compiled.”

Review logs and validation

You can use the Console Logs tab under workflow information to view all logs and debug any issues.
Console logs tab
You can also check the Validation pane for real-time workflow validation. This helps you catch errors as you make changes.
Validation pane

Save your workflow

Once everything is working correctly, select Save Workflow. When you select Save Workflow, your wallet window pops up. Here, you approve the save transaction. This is part of signing your intent to create the workflow, which creates an immutable record on-chain.
Wallet approval for saving workflow
After approving the transaction, your workflow is saved and ready for deployment.

Deploy your workflow

Once your workflow is saved, select Deploy to submit it to the Kwala network. After deployment, your workflow is live on the network and will begin monitoring for trigger conditions.
Once your workflow is deployed and the transaction is confirmed, you can no longer edit or compile it. You may see messages like “Editing is disabled” or “Cannot compile, workflow is pending, deployed, or claimed state”. To make changes, you’ll need to create a new workflow.

Activate your workflow

Once you’ve deployed your workflow, you need to activate it to start execution and enable trigger monitoring. When you select Activate, your wallet window pops up. Approve the transaction to confirm activation. Once the transaction is confirmed, your workflow begins monitoring for trigger conditions and will execute when those conditions are met. After activating your workflow, you can check the Console Logs for status updates. You’ll see messages such as:
  • Starting automatic status polling
  • Trigger updates
  • Initializing actions
  • Actions deployed
Console logs showing active workflow status
You may notice some deduction in Kwala credits associated with deploying and activating your workflow onchain. These credits cover the cost of registering your workflow and enabling trigger monitoring on the network.

Next steps