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

# Workflow creation

You can create workflows directly in the [Stigg app](https://app.stigg.io) by clicking **Workflows** in the left navigation panel.

There are two primary ways to get started.

## Starting from a template

To help you get up and running quickly, Stigg provides pre-built workflow templates for common use cases.

When you go to create a new workflow, you’ll have the option to choose from these templates. Each template comes with a predefined set of nodes and logic, which you can then customize to fit your exact needs. The [example use-cases](#example-use-cases) described earlier (promotional entitlements, auto-upgrades, trial extensions, etc.) are all available as templates.

To create a workflow from a template:

1. Go to **Workflows**.
2. Click **Start from a template**.

<img src="https://mintcdn.com/stigg/vKl0Sj1YLcCT0yUv/images/docs/35df18f2b6ddae104d52ff7939c9402d068e6d02bc300c9e065e706f82161f3e-Workflows-2.png?fit=max&auto=format&n=vKl0Sj1YLcCT0yUv&q=85&s=b745088c7c471fd4ac29e03f49f82eb4" alt="" width="2880" height="1316" data-path="images/docs/35df18f2b6ddae104d52ff7939c9402d068e6d02bc300c9e065e706f82161f3e-Workflows-2.png" />

3. Select a suitable template from the list.

<img src="https://mintcdn.com/stigg/ghlUDOmd1mRIOf61/images/docs/2b15d745847d627c1a358b4c51b257b4ae9590ea032933ba04cf036489d632e3-Workflows-3.png?fit=max&auto=format&n=ghlUDOmd1mRIOf61&q=85&s=09a0d5cc444caac06f6dc31fbabe1846" alt="" width="2880" height="1316" data-path="images/docs/2b15d745847d627c1a358b4c51b257b4ae9590ea032933ba04cf036489d632e3-Workflows-3.png" />

4. Click **Use this workflow**.
5. Customize the workflow to your needs.

## Building from scratch

If none of the templates fit your needs, you can always build a workflow from scratch:

1. Go to **Workflows**.
2. Click **Start from scratch**.

<img src="https://mintcdn.com/stigg/UlAt5XRaB6FPzp-f/images/docs/09f49af6c2bc000879f7055e0cecab1f3aa981b9e1e01281154ed802a9e7484e-Workflows-4.png?fit=max&auto=format&n=UlAt5XRaB6FPzp-f&q=85&s=9771a122ded647c2c3faf2aacceb4e3b" alt="" width="2880" height="1316" data-path="images/docs/09f49af6c2bc000879f7055e0cecab1f3aa981b9e1e01281154ed802a9e7484e-Workflows-4.png" />

3. Add a Trigger by clicking the **+** button.

<img src="https://mintcdn.com/stigg/zZAY_sXPTSVMcwio/images/docs/c35c771ef0566d8d933fc48eabd0a96b8fe41e31d4e6c9362f2704cbe0d9732e-Workflows-6.png?fit=max&auto=format&n=zZAY_sXPTSVMcwio&q=85&s=c7ac686f2767c571ee590255b8f40127" alt="" width="2880" height="1316" data-path="images/docs/c35c771ef0566d8d933fc48eabd0a96b8fe41e31d4e6c9362f2704cbe0d9732e-Workflows-6.png" />

4. Select the required trigger.
5. Fill out the trigger parameters.
6. Add additional nodes as required.

## Testing and debugging

As you're building the workflow, you’ll want to test and debug it to ensure it works correctly before relying on it in production.

The Workflow Builder provides several features for testing and inspecting workflow execution.

### Manual trigger & test events

If your workflow uses an Event Trigger, you can send test events using one of the following options:

1. Trigger an event via the Stigg app, SDK or API.
2. Select the event from the drop-down list and click **Send test event**.

<img src="https://mintcdn.com/stigg/ghlUDOmd1mRIOf61/images/docs/1758a0d377f0fcdbe488bfaa6071c9c3efe03f473782b0e8a07206e5e9d814e3-image.png?fit=max&auto=format&n=ghlUDOmd1mRIOf61&q=85&s=cc966b6717ca44abb8be12151b32d227" alt="" width="3500" height="6000" data-path="images/docs/1758a0d377f0fcdbe488bfaa6071c9c3efe03f473782b0e8a07206e5e9d814e3-image.png" />

If your trigger is an API Trigger, you can manually call it using `curl` or an API client with test data to start the workflow.

<Tabs>
  <Tab title="REST API">
    Use the [REST API reference](/api-and-sdks/api-reference/rest/overview) to explore available operations and call them with `curl` or any HTTP client.
  </Tab>

  <Tab title="GraphQL (legacy)">
    Use the [GraphQL API explorer (GraphOS Studio)](https://studio.apollographql.com/public/Stigg-API/explorer?variant=Production) to explore and call GraphQL operations.
  </Tab>
</Tabs>

<Note>
  To authenticate you need to pass the [full access key](../managing-your-account/environments/api-keys) in the X-API-KEY request header.
</Note>

### Node-by-node execution

Workflow Builder allows executing a workflow step by step (especially when using manual triggers). In the Stigg app when you click **Test Workflow**, it may run through and show you each node’s result one after the other.

## Debugging data

During a workflow execution, you can click on each node to inspect its input and output data. This is crucial for debugging.

### Edit output data

When testing a workflow, you’re not limited to just viewing the output. You can manually edit a node’s output to simulate different scenarios. This makes it easy to test edge cases and alternate flows without needing to re-trigger events or change upstream logic. For example, you can:

1. Open the **Output** tab of any node.
2. Switch to JSON view by clicking **Set mock data** or the **Edit** icon.
3. Save the edited output and re-run downstream nodes with this synthetic data.

This lets you quickly validate how your workflow handles different conditions.

### Pin data

You can also pin output data to reuse it across multiple test runs. This avoids repeatedly calling external systems and ensures consistent results while developing or debugging your workflow.

## Workflow activation

When you're ready to enable the automation, you can activate the workflow using the toggle in the top-right corner.

<img src="https://mintcdn.com/stigg/rbfzdbhZ6y5pB9n-/images/docs/9588b224362c77e5e6939087afc5555603770629987b341c2c6baa3bd21204a9-image.png?fit=max&auto=format&n=rbfzdbhZ6y5pB9n-&q=85&s=8806b00a4e4b0faf397d9d35c66a3e1e" alt="" width="2922" height="362" data-path="images/docs/9588b224362c77e5e6939087afc5555603770629987b341c2c6baa3bd21204a9-image.png" />
