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

# Workflows and recurring buys

> Build Burokku workflows from a trigger, conditions and actions, start from templates or Burokku AI, set up recurring buys, and see every run.

A workflow is a chain of steps that runs when something happens: a price crosses a level, a loan gets risky, a schedule comes round, or your own server calls it. It can check conditions, wait, message you and get a transaction ready to sign. Signed in, workflows run on Burokku's servers, so they keep working with the app closed. Find them under **Automate → [Automations](https://app.burokku.app/automations)**. Simpler rules are [alerts](https://docs.burokku.app/web-app/alerts.md).

## How a workflow is built

Every workflow starts with one **trigger**, then **logic** and **actions**, linked on a canvas (a list of steps on a phone). A workflow can have up to 40 steps.

> [tab] Triggers
>
> * **Price**, **Big move** and **Net worth**
> * **Wallet activity:** an account sends more than an amount
> * **Schedule:** every few hours, daily, on a weekday or on a date each month, at a time in your time zone
> * **Health factor**, **Liquidation risk** (a perp near liquidation) and **Liquidity range**
> * **Stock**, **Gas** and **News or unlock**
> * **Risky approval**
> * **Webhook:** an HTTP call from your own system. See [Workflow webhooks](https://docs.burokku.app/developers/webhooks.md).

> [tab] Logic
>
> * **Condition:** checks a value (net worth, the lowest health factor, gas, a coin's price, 24h change or share of your book) and follows **Yes** or **No**, each with its own steps.
> * **Delay:** waits 5 minutes to a day before the next steps.

> [tab] Actions
>
> * **In-app**, **Telegram** and **Email** messages. Messages can include values like `{{price}}`, `{{hf}}` or `{{net_worth}}`.
> * **AI summary:** Burokku AI writes a short note about what happened, with your numbers, in your language.
> * **Swap**, **Repay loan**, **Claim rewards**, **Deposit idle USDC**, **Revoke approvals** and **Exchange order:** each gets a transaction or order ready for you.
> * **Trade**, **Exchange trade** and **Transfer:** see [Money steps](#money-steps).
> * **Webhook:** sends the run to a URL of yours as JSON, optionally signed.

## Create one

**1. New automation**

On Automations, choose **New automation**: **From a template** or **Start from scratch**. Pick the trigger, then add steps.

**2. Test it**

**Test run** checks the workflow on your real data now: whether the trigger is true, each step's result, and the messages it would send. Nothing is sent or traded.

**3. Save & turn on**

An active workflow runs straight away if its trigger is already true, then whenever it becomes true. Burokku checks every 5 minutes.

**Templates** include Price alert, Auto-repay (below 1.40, a repay back to 1.60 for you to sign), Weekly DCA, Gas below X, Auto-claim rewards, Revoke risky approvals and Put idle USDC to work.

### With Burokku AI

Describe the workflow on Automations, in the builder's AI bar, or in chat. The draft opens for review, with each new, changed or removed step and setting. Nothing changes until you **Accept**, and drafts open paused. Webhook, transfer and exchange order steps are yours to add.

### History and undo

The builder has **Undo** and **Redo**. **History** keeps each saved version and who made it (you or Burokku AI), and can restore one.

## Money steps

* **Ready to sign.** Swap, repay, claim, deposit and revoke steps get a transaction ready. The run waits under **Needs your signature**, and the notice has **Review & sign**. The link lasts 48 hours. Steps after it don't run.
* **Trade and Exchange trade** act by themselves: a swap from your [trading wallet](https://docs.burokku.app/web-app/accounts.md), or an order on an exchange whose key can trade. They need automations on in **Settings → Security**, and you confirm each workflow with your second step (**Confirm trade**). Editing the step means confirming it again. Trading wallet limits and exchange key limits apply on every run.
* **Transfer** never sends anything by itself. You approve the transfer with your passkey within 24 hours.

A webhook's data can't set the amount, token, chain or address of any of these steps.

## The automations switch

Everything that acts by itself (trades, exchange trades, recurring buys on an exchange, the [liquidation guard](https://docs.burokku.app/web-app/defi.md)) needs automations on in [Settings → Security](https://app.burokku.app/settings/security), which takes a second step. **Pause all** or **Turn off** any time: you're still notified and transactions are still made ready, but nothing acts by itself.

## Runs

Automations shows your workflows, the week's stats and **Recent runs**. Each run records what set it off and how each step went:

| Result | Meaning |
| - | - |
| Success | Every step ran. |
| Failed | A step failed. The run says why, with a fix where there is one, and **Retry**. |
| Needs signature | A transaction is ready for you to sign. |
| Signed or Declined | What you did with it. |
| On hold | A trade couldn't go through yet (for example, automations are off or funds are short). Burokku tries again at each check. |
| Skipped | Nothing to do this time. |

**Run now** runs the steps for real, whatever the trigger says. Messages follow your digests and quiet hours, like an alert's.

## Recurring buys

[Tools → Recurring buys](https://app.burokku.app/tools/dca) buys a fixed amount of a coin on a schedule: every few hours, every few days, on a weekday, or on a day of the month (1 to 28), at a time you pick.

> [tab] From a wallet
>
> Pick the coin, the amount, what to pay with, and the wallet and network. Each time, you get a swap ready to sign at that moment's price. With a trading wallet, Burokku can buy by itself from it instead, within your limits, once you confirm with your second step.

> [tab] On an exchange
>
> With an exchange connected by a key that can trade, Burokku places each buy for you and tells you what it bought. Each buy must fit the key's limit per order and per day. Setting one up needs automations on and your second step. You can have up to 10.

Pause, resume or delete each one from its list. For more control, like buying only below a price, use the **Weekly DCA** workflow template.

## Plan limits

| | Free | Pro | Max |
| - | - | - | - |
| Workflows | 1 | 10 | 50 |

Recurring buys from a wallet run as alerts and count toward your [alerts](https://docs.burokku.app/web-app/alerts.md). Suggested workflows don't count until you switch one on or edit it. Past your plan's limit, nothing is deleted: the newest workflows pause until there's room. During early access, every signed-in account is on Pro for free. See [Plans](https://docs.burokku.app/billing/plans.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.