> ## Documentation Index
> Fetch the complete documentation index at: https://kwala.network/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Deploy workflow

> Deploy your workflow to the Kwala network

After creating and configuring your workflow, you need to compile, validate, and deploy it to the Kwala network. Deployment now automatically activates the workflow, so no separate activation step is required.

## Prerequisites

* Completion of the steps in [Configure workflow](/workflow-builder/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.

<Frame>
  <img src="https://mintcdn.com/kwala-1f7da9fb/eCmxMl9Czq59OEnM/images/workflow-builder/deploy-workflow/workflow-created-successfully.PNG?fit=max&auto=format&n=eCmxMl9Czq59OEnM&q=85&s=cc08882e9276a812098a976725055ed9" alt="Workflow created successfully in the editor" width="1275" height="628" data-path="images/workflow-builder/deploy-workflow/workflow-created-successfully.PNG" />
</Frame>

## 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.

<Frame>
  <img src="https://mintcdn.com/kwala-1f7da9fb/eCmxMl9Czq59OEnM/images/workflow-builder/deploy-workflow/workflow-console-logs.PNG?fit=max&auto=format&n=eCmxMl9Czq59OEnM&q=85&s=57284dc5f4f4a609de1ae712c6538a92" alt="Console logs tab" width="834" height="365" data-path="images/workflow-builder/deploy-workflow/workflow-console-logs.PNG" />
</Frame>

You can also check the **Validation** pane for real-time workflow validation. This helps you catch errors as you make changes.

<Frame>
  <img src="https://mintcdn.com/kwala-1f7da9fb/eCmxMl9Czq59OEnM/images/workflow-builder/deploy-workflow/workflow-editor-validation.PNG?fit=max&auto=format&n=eCmxMl9Czq59OEnM&q=85&s=bd7cb40de17f92248db7a7a675ec0916" alt="Validation pane" width="1275" height="628" data-path="images/workflow-builder/deploy-workflow/workflow-editor-validation.PNG" />
</Frame>

## 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.

<Frame>
  <img src="https://mintcdn.com/kwala-1f7da9fb/eCmxMl9Czq59OEnM/images/workflow-builder/deploy-workflow/save-workflow-wallet-approval.PNG?fit=max&auto=format&n=eCmxMl9Czq59OEnM&q=85&s=6fee29c53539b512e3d7ac5336f54e3a" alt="Wallet approval for saving workflow" width="376" height="599" data-path="images/workflow-builder/deploy-workflow/save-workflow-wallet-approval.PNG" />
</Frame>

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 is automatically activated. It will begin monitoring for trigger conditions and will execute when trigger conditions are met.

<Warning>
  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.
</Warning>

After deploying your workflow, you can check the **Console Logs** for status updates. You'll see either **WORKFLOW\_DEPLOYED** or **WORKFLOW\_FAILED**:

<Frame>
  <img src="https://mintcdn.com/kwala-1f7da9fb/V58mPbA3GSH226qe/images/workflow-builder/deploy-workflow/workflow-console-logs-active.PNG?fit=max&auto=format&n=V58mPbA3GSH226qe&q=85&s=1b17edebb1754f9ab98f7aa1e4216280" alt="Console logs showing active workflow status" width="1192" height="492" data-path="images/workflow-builder/deploy-workflow/workflow-console-logs-active.PNG" />
</Frame>

<Info>
  You may notice some deduction in Kwala credits associated with deploying your workflow onchain. These credits cover the cost of registering your workflow and enabling trigger monitoring on the network.
</Info>

## Next steps

<CardGroup cols={2}>
  <Card title="Monitor workflow" icon="chart-line" href="/workflow-builder/monitor-workflow">
    Track your workflow execution status
  </Card>

  <Card title="Kwala Explorer" icon="magnifying-glass" href="/explorer/overview">
    Explore workflows and executions on the network
  </Card>
</CardGroup>
