> For the complete documentation index, see [llms.txt](https://docs.laminar.run/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.laminar.run/building-an-integration/advanced/workflows/invoke-secondary-workflows.md).

# Invoke Secondary Workflows

You can trigger other workflows asynchronously from within a primary workflow using the keyword `lam.asyncExecute`, allowing for more complex automation scenarios without waiting for the secondary workflow to complete.

Imagine you have an e-commerce application with two workflows:

1. `process-new-order`: Handles new orders, inventory updates
2. `customer-communication`: Sends various emails to customers

When a new order comes in, you want to process it immediately but handle customer communications separately.

As a first step of the `process-new-order` workflow, you would invoke the `customer-communication` workflow as follows:

```javascript
return {
  "lam.asyncExecute": [
    {
      "lam.workflowId": 39, // customer-communication workflow id
      "lam.payload": { /* payload data */ }
    }
  ]
}
```

You can also invoke multiple workflows asynchronously by appending to the `lam.asyncExecute` array.
