# How to automate your contract execution with Gelato

You can automate your contract execution with Gelato Network

## Initiate an Automated Transaction

An execution attempt in Gelato allows you to pre-define the inputs for a function. By doing so, every time Gelato calls the function, it uses the same arguments, ensuring consistent behavior in your automated tasks.

### **1. Prepare Your Smart Contract for Automation**

* **Identify Your Smart Contract:** Ensure you have the correct smart contract address and know the specific function you want to automate.
* **Function Restrictions:** Some functions may not be compatible with Gelato due to certain restrictions. Familiarize yourself with these to ensure seamless automation.

### **2. Set Your Trigger Condition**

* **Choosing Trigger Type**

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FB1sl67S1vW1eaZ7kOgfO%2Fimage.png?alt=media&#x26;token=1229feae-a510-42f3-9cbb-bbf5344a6214" alt=""><figcaption></figcaption></figure>

* **Choosing Your Trigger:** Gelato allows you to set specific conditions to determine when your function is called. This could be at regular intervals (time interval) or based on specific events (cron expression).
* **No Custom Code Required:** For initiating tranaction tasks, there's no need for you to write code. Simply set your desired trigger and move forward.

<figure><img src="https://3708766619-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FtEAVMQUfOtXSxHdeCogt%2Fuploads%2FlCkEXxmJKsoZwyDOoBps%2FScreenshot%202025-03-28%20at%2015.32.49.png?alt=media&#x26;token=ab629bff-24da-497d-9c27-3b8ba16f9363" alt=""><figcaption></figcaption></figure>

Finally, Click on "Create Task" button! Its just that simple!
