# What is a Flow component Event?

* When a Flow component is created, it has some predefined events. Users may define additional events.
* A Flow component Event is an event that is defined at the time of designing the Flow component.
* These events facilitate the connection of this Flow component to other Flow components in the Flow. The designer of the Flow components defines their meaning, and they can be triggered in a way so business processes can be built upon them.
* A Flow component can trigger its Events. The list of these events is below:&#x20;
  * “Success”: This event was successful.&#x20;
  * “Error”: There was an error.&#x20;
  * “WasDisabled”: The Flow component was disabled.&#x20;
  * “AlreadyRunning”: The Flow component is already running and cannot run multiple requests simultaneously.

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_13/ch13firstfcevents.png" alt=""><figcaption></figcaption></figure>

* Users can define which Flow component to be triggered when an Event is triggered. Users can drag and drop the Flow component onto Events connected to another Flow component to create a sequence of activities.

<figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_13/ch13secondfcdragged.png" alt=""><figcaption></figcaption></figure>

* When the Flow component triggers the event, it will cause the Flow components connected to the triggered event to execute. However, there are events that the Flow will trigger for the Flow component, e.g., “WasDisabled”.<br>

  For example, in the image below:&#x20;

  1. The FirstFlowComponent can trigger two events: Success and Error.&#x20;
  2. When the Success event is triggered, it triggers the SecondFlowComponent.&#x20;
  3. When the Error event is triggered, it triggers the ThirdFlowComponent.<br>

  <figure><img src="https://media.langstack.com/documentation/media/images/code/training_manual/chapter_13/ch13firstfcwith2nd3rd.png" alt=""><figcaption></figcaption></figure>
* When a Flow component finishes its execution successfully it will automatically trigger the Success Event. The Error Event is triggered if errors are encountered during the Flow execution.
* If the Flow component is disabled and the Flow executes it, it will trigger the WasDisabled Event instead of performing Actions. Therefore, if the event is connected to a Flow component, the connected Flow component will be executed.
* A Flow component may be configured to skip execution while in progress to prevent multiple requests from being processed simultaneously. In this case, the AlreadyRunning Event is triggered.
* Additionally, users can configure Events while configuring the Flow component.
* Flows and Flow components events can be triggered from Langstack cloud applications such as API, Validation pipelines.


---

# 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.langstack.com/welcome/get-started/learn-langstack/introduction-to-flows-and-flow-components/what-is-a-flow-component/what-is-a-flow-component-event.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.
