# 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="/files/XuSqZpHFqmLAqYOqNB5t" 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="/files/90mZhRwjB6xxMZ9CsQsB" alt=""><figcaption></figcaption></figure>

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


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.rivalz.ai/adcs-ai-oracles/how-to-automate-your-contract-execution-with-gelato.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
