---
title: 4. Workflow Setup
slug: 4-workflow-setup
docTags: 
createdAt: 2026-03-23T20:10:31.053Z
---

## 1. What is a Workflow?

A **Workflow** connects the **Agent** with a **Path** to perform actions.

It is used when the agent needs to:

- fetch data
- save data
- call an API
- perform system actions

Workflows send information from the **Agent to the Path** and return the result back to the **Agent**.

**Example:**

In a doctor appointment use case:

- the agent sends the user request to a workflow
- the workflow triggers a path
- the path fetches doctor details
- the result is returned to the agent

📹 Watch the setup video below for a quick walkthrough.

::embed[]{url="https://youtu.be/HUkcDjTOv98?si=htB4NpSzkT-_wJMx"}

### 2. How Workflows Work

A workflow sends data from the **Agent to the Path** using **Input Attributes**.

The **Path** performs the required action and sends the result back to the **Agent** using **Output Attributes**.

**Workflow Flow**

:::BlockQuote
Agent → Workflow → Path → Output → Agent Response
:::

