# Flows

**Flows** in FlytBase is a dynamic feature designed to streamline operational efficiency by configuring the drone's response to specific alarm triggers or operational notifications. These workflows allow for the deployment of drones in response to various alarm sources, with the option for missions to be approved manually or carried out automatically for repetitive events. They also allow selected organisation members to keep track of the drone operations by staying notified through emails or SMS.&#x20;

This capability empowers the integrated **Flinks** and significantly enhances responsiveness in sectors such as emergency response, security, and infrastructure monitoring, by reducing response times and the need for constant human intervention.&#x20;

## Setting up Flows

**Accessing the Flows Manager:**

* Select **Flows** from the Navigation Drawer to open the **Flows** section.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2F8agoqEWmQutepMCBd1j9%2FUntitled%20design%20(11).png?alt=media&#x26;token=3e04cd66-25da-4da1-8225-54f2bf30327a" alt=""><figcaption><p>Flows tab in Navigation Drawer</p></figcaption></figure>

**Flows Section Tabs:**

* **My Flows**: Here you can create, edit, and delete your flows. You can also enable and disable them when required.
* &#x20;**Logs**: This tab records the trigger time and status of each flow.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FXzmEogfTA6eAeLJwqdWM%2FImage%2018-02-25%20at%208.30%E2%80%AFPM.jpeg?alt=media&#x26;token=1dc170a1-b367-4fcc-8520-4b43ccced37d" alt=""><figcaption><p>Flows Manager</p></figcaption></figure>

## Creating a new Flow

To create a new Flow, please follow the following steps:

* In the **My Automations** tab, click on the **Create** button.
* A dialog box will appear, prompting you to select a category.&#x20;

{% hint style="info" %}
Currently only Alarms and Notifications based flows are supported.
{% endhint %}

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FV2TNTCiwuH9eSyxAjVkq%2FImage%2020-02-25%20at%2011.13%E2%80%AFAM.jpeg?alt=media&#x26;token=c0e2a8c0-8333-4e57-85b7-618e2aa574b1" alt=""><figcaption><p>Selecting Category for Flows</p></figcaption></figure>

**Editing and Deleting Flows:**

* To **edit** any Flow, click on it and modify the necessary parameters.
* To **delete** a Flow, tick the checkbox next to the flow and click on![](https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FVII9RpDLhVC6gNJGJigK%2FDelete.svg?alt=media\&token=5e9d2986-42fc-47ad-a4b0-5edf6fbc744f). Confirm the deletion on the prompt that appears.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FEPJPY7qqYjrI7LgOrk94%2FUntitled%20design%20(12).png?alt=media&#x26;token=7c518b33-1c22-43b6-b31c-00cbf3c90b2b" alt=""><figcaption><p>Deleting a Flow</p></figcaption></figure>

## Flows Logs

Flows logs provide a comprehensive record of automation activities, including:

* **Alarm /Operational Notification Identification**: Identifies which alarm, flight event or operational event initiated the automation routine.
* **Time**: Notes the time at which the Flow was activated.
* **Status**: Shows whether the Flow response was successful or not.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FjrsF67zB9qfqXyTBtCoz%2FImage%2019-02-25%20at%201.12%E2%80%AFPM.jpeg?alt=media&#x26;token=14e7f223-b2b6-4a1b-914b-c425c3f3c89b" alt=""><figcaption><p>Flows Logs </p></figcaption></figure>

**Detailed Log View:**

* Clicking on a log entry opens a detailed view, where you can see:
  * The alarm received and its status.
  * The action taken in response to the alarm and its status.
  * The response mode and the device that responded.
* **Additional Options:**
  * **Rerun Flow**: Allows you to execute the flow again again if required.
  * **Flight Logs**: Access logs from the flight conducted in response to the alarm.
  * On the right, a map is displayed, centered on the alarm's location.

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2FLbvxJ0iDTru2r5bddzjq%2FImage%2019-02-25%20at%201.21%E2%80%AFPM.jpeg?alt=media&#x26;token=c3fc1d30-f1eb-492f-b04e-42341e9dc0b6" alt=""><figcaption><p>Detailed Flows Log</p></figcaption></figure>

{% hint style="info" %}
**Quick Alarm and Flows Logs:**

A **condensed version** of the Alarms and Flows logs can be found in the **Integrations Panel** on the right side of the Dashboard. This panel also displays all Flinks, any alarms triggered within those Flinks. Additionally if a flow is configured with an alarm you can see the response details as well.&#x20;
{% endhint %}

<figure><img src="https://1675645432-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FTfYUUwVnoRyxqEi8UiRV%2Fuploads%2Fe8q7qMUl3M8oitrUn5ps%2FImage%2019-02-25%20at%201.01%E2%80%AFPM.jpeg?alt=media&#x26;token=55aefd07-edf5-409a-89be-71980f3ec3cb" alt=""><figcaption><p>Alarms and Flows Logs (Sidebar)</p></figcaption></figure>
