> For the complete documentation index, see [llms.txt](https://hub.equipme.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hub.equipme.io/documentation/automation/workflows/implementing-logic-in-flows.md).

# Implementing Logic in Flows

Adding logic to your flows in Equipme allows you to create smarter, more adaptable processes that can respond dynamically to different situations. By integrating conditional logic and decision-making components, you can guide your flows to follow specific paths based on the data they receive or conditions that arise during execution.

**Why Implement Logic in Flows?**

Implementing logic makes your flows flexible and intelligent, helping them react to varying inputs, decisions, or user actions. This is particularly useful for automating processes where different scenarios require different outcomes.&#x20;

**How to Add and Configure a Filter**

**Add the Filter Component**\
Start by dragging the **Filter** component from the left panel onto your flow canvas. The Filter component serves as a gatekeeper, allowing messages to pass through only if they meet certain criteria.

**Open the Filter Settings**\
Once the Filter component is on your canvas, click on it to open the settings panel. Here, you’ll see a range of filtering options that allow you to specify the conditions for messages to pass through.

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

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

**Receiving Alerts for MacBook Pro Orders**

In our example, we want to receive an email notification each time an order for a **MacBook Pro** is placed. To accomplish this, we’ll use the **Contains** **- Text** filter to check if the incoming order includes "MacBook Pro" in its details.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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://hub.equipme.io/documentation/automation/workflows/implementing-logic-in-flows.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.
