# How does Automation work?

By enabling any of our automated strategies, a user gives the DeFi Saver Automation smart contracts the rights to make adjustments on their position - but only once the user configured trigger condition is met, and fully limited by the user's configuration.

> For example, if we take Automated leverage management, an auto-repay can only be executed for a user's position once their current ratio drops below their configured ("repay if below") ratio.
>
> \
> If the system were to attempt to execute a repay before this trigger condition is met, the transaction would fail.

On top of this, there's also on-chain verification of transaction outcomes, meaning that the transaction execution will successfully complete only if the user's target condition is met. In the case of an auto-repay, this means that the "repay to" ratio needs to be reached at the end of the transaction.

Once any automated strategy is enabled for a certain position, the Automation bots start actively monitoring it, so they can execute any needed adjustments as soon as the configured thresholds are reached.

*Below, you'll find an illustration of how an auto-repay works:*

<figure><img src="https://2276946674-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fo1t7pGS5d15WeQzoQ3Fe%2Fuploads%2Fx1p2XcrBr5LKD97TJlt2%2Fimage2.png?alt=media&#x26;token=3c08d321-5dd5-4422-93f5-e7dcfa328f19" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
*This illustration specifically applies to an older automation architecture, though it still provides a good conceptual overview.*
{% endhint %}

*For latest technical details, you can always check the* [*development docs*](https://docs.defisaver.com/)*, as well as the* [*smart contracts source code*](https://github.com/defisaver)*.*

***

## Related Articles:

* [Automation](https://help.defisaver.com/features/automation)
* [Use-case](https://help.defisaver.com/features/automation/use-case)
* [Compatibility](https://help.defisaver.com/features/automation/compatibility)
