---
title: "Automation"
description: "Fystack's automation tools help businesses streamline their crypto operations, reduce development time, and minimize operational overhead."
url: https://docs.fystack.io/product/automation
last_updated: 2026-10-15
---

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

# Automation

Fystack's automation tools help businesses streamline their crypto operations, reduce development time, and minimize operational overhead. Instead of building complex fund management systems from scratch, teams can focus on their core business while ensuring secure and efficient treasury operations.

### Key Benefits

- **Development Efficiency**: Implement automated fund movements without writing complex blockchain monitoring code
- **Operational Excellence**: Reduce manual treasury operations and minimize human error
- **Team Management**: Simplify fund consolidation across multiple business units and wallets
- **Risk Reduction**: Automate the movement of funds to secure storage based on configurable thresholds

_Image: Fystack Auto Consolidation_

## Sweep Tasks

A sweep task automatically transfers funds from source wallets to a destination wallet based on configured triggers.

### Common Use Cases

- **Exchange Operations**: Automatically sweep user deposits to hot wallet, cold storage
- **Payment Gateway**: Process merchant settlements to operational wallets
- **Treasury**: Consolidate funds from multiple business wallets
- **Risk Management**: Move funds from hot wallets to secure storage

Read more about [automation use cases and best practices](https://fystack.io/blog/from-hot-to-cold-smart-secure-cryto-fund-movement-with-fystack) in our detailed guide.

## Creating Sweep Tasks

### During Wallet Creation (API, SDKs)

You can set up automatic sweeping when creating a new wallet through our API or SDKs:

```typescript
// Create wallet with new sweep task
await sdk.createWallet({
    name: 'User Payment Wallet',
    walletType: WalletType.Standard,
    sweepTaskParams: {
        minTriggerValueUsd: '100.00',
        destinationWalletId: '123e4567-e89b-12d3-a456-426614174001',
        destinationType: 'internal_wallet'
    }
})
```

> **Note:** You can also attach an existing sweep task to reuse the same configuration across multiple wallets:
>
> ```typescript
> await sdk.createWallet({
>     name: 'User Payment Wallet',
>     walletType: WalletType.Standard,
>     sweepTaskId: '987f6543-e21c-43b2-a654-321098765432' // Reuse existing task
> })
> ```
>
> This simplifies management as updating one sweep task affects all attached wallets.

See [Create a Wallet](https://docs.fystack.io/wallets.md#create-a-wallet) for complete wallet creation details.

### Create Sweep Task Manually

_Image: Wallet Configuration_

1. Navigate to Automation > Add Sweep Task

_Image: image-2025-09-15T14-37-20-837Z_

2. Enter task name and select "periodic" strategy

_Image: image-2025-09-15T14-37-57-659Z_

3. Trigger Configuration

- **Minimum Trigger Value (USD)**: Balance threshold that triggers a sweep
- **Check Frequency (Seconds)**: How often to check source wallets

### Wallet Configuration

1. **Source Wallets**
   - Select wallets to monitor for sweeping
   - Multiple wallets can be selected

_Image: image-2025-09-15T14-39-01-087Z_

2. **Destination Wallet**
   Choose either:
   - **Internal Wallet**: Select from workspace wallets
   - **Address Book**: Use saved wallet addresses

_Image: image-2025-09-15T14-39-22-626Z_

> **Note:** Source wallets are automatically excluded from destination options to prevent circular sweeping.

## Updating Sweep Tasks

You can modify existing sweep tasks:

1. **Change Destination Wallet**
   - Click on the task you want to update
   - Click on the destination wallet dropdown
   - Choose a new destination wallet

_Image: image-2025-09-15T14-40-22-977Z_

2. **Adjust Trigger Settings**
   - Modify minimum trigger value
   - Update check frequency

3. **Task Status**
   - Toggle the task status switch to activate/deactivate the sweep task
   - Deactivating a task temporarily stops all automatic sweeping
   - Reactivate anytime to resume sweeping with the same configuration

_Image: image-2025-09-15T14-42-27-909Z_

## Deleting a Sweep Task

> **Note:** Before deleting a sweep task, ensure that:
>
> - All attached wallets have alternative sweep configurations if needed
> - Any ongoing sweeps are completed

To delete a sweep task:

1. Navigate to the sweep tasks list view
2. Find the task you want to delete
3. Click the kebab menu (⋮) on the right side of the task
4. Select "Delete" from the menu options

_Image: Deleting a sweep task_

> **Note:** Once deleted, the sweep task will be permanently removed and all automatic sweeping for attached wallets will stop immediately.

## Best Practices

- Test with small amounts first
- Start with higher check frequencies for critical operations
- Verify destination addresses before activating
- Monitor initial transfers to ensure correct setup

> **Note:** Sweep tasks require source wallets to have enough gas to execute on-chain transfers. Use [Gas Station](https://docs.fystack.io/product/gas-station.md) to keep your Gas Tank funded across all networks, and enable the TronZap fee saving integration to significantly reduce gas costs on TRON Mainnet sweeps.
