# Is it possible to use two triggers in a single flow?

No, but there is a way to work around this situation using Skyone Studio's built-in features. Follow the steps below to learn how:

### **Context**

In some scenarios, you may need to trigger the same flow in different ways. Imagine you have a trigger that needs to run automatically every day at a set time, but there are also situations where the flow must be triggered immediately, such as when an important sale is registered and needs to be processed as quickly as possible.

Instead of duplicating the flow and creating two independent triggers (e.g., one temporal and another via Webhook), which would result in higher maintenance efforts, you can encapsulate the flow logic in a flow call. This way, the same process is executed in different contexts, allowing you to trigger the flow both automatically and on demand.

### **Step-by-step**

Here, we’ll explain the details of how to set up this solution to trigger the same process at different times.

Our step-by-step guide is divided into three parts: **primary flow, secondary flow, and tertiary flow**.

#### **Primary flow**

The primary flow was created as follows:

<figure><img src="/files/KjGkP8bMx1vv2xR0Zyvh" alt=""><figcaption><p>Flow Trigger >  Loop For > Register sales in the PostgreSQL database</p></figcaption></figure>

#### **Secondary flow**

The secondary flow was created as follows:

<figure><img src="/files/QVhDvuVC5G58sr7yMeDS" alt=""><figcaption><p>Time tigger > Get Sale Module REST > Flow Call Module</p></figcaption></figure>

With the trigger set to run every day at 1:00 AM, as shown in the image below:

<figure><img src="/files/kdH0NCEmMuxbTbwowTv9" alt=""><figcaption></figcaption></figure>

#### **Tertiary flow**

The tertiary flow was created as follows:

<figure><img src="/files/gDqqeyXtSBGoEtWy3Vmk" alt=""><figcaption><p>Webhook Trigger &#x26; Flow Call Module</p></figcaption></figure>

### **Conclusion**

The primary flow is triggered by either the secondary or tertiary flow, with the main difference between them being the triggers configured in each. The [Time Trigger](/english/skyone-studio/integrations/flows/triggers-of-a-flow/time-triggers-adding-and-setting.md) initiates the flow based on a time interval, while the [Webhook Trigger](/english/skyone-studio/integrations/flows/triggers-of-a-flow/webhook-triggers-adding-and-setting.md) is activated via an HTTP call.

### **Summary**

We use the primary flow as a block that can be called within another flow, while the others, in this scenario, are merely ways to initiate/trigger the primary flow that contains the [Flow Call](/english/skyone-studio/integrations/flows/tool-modules/flow-call-module.md).

Therefore, there are several ways to trigger this flow, which can be customized to meet the specific needs of each user's scenario.


---

# 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.skyone.cloud/english/skyone-studio/how-to/is-it-possible-to-use-two-triggers-in-a-single-flow.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.
