> ## Documentation Index
> Fetch the complete documentation index at: https://docs.servflow.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Introduction

> ServFlow is an agent builder — design AI agents and the workflows they run, then serve them from a fast Go engine

## What is ServFlow?

ServFlow is an **agent builder**. You define AI agents — what they know, which tools they can call, and how the outside world reaches them — and ServFlow serves them from a compiled Go engine.

An **agent** is the main object. Each agent owns:

* **Workflows** — the units of work it runs, either as inbound HTTP endpoints (*webhooks*) or as internal and scheduled jobs (*tasks*)
* **A workspace** — files the agent can read and write
* **Integrations and secrets** — the AI models, databases, and APIs it is allowed to use

A workflow is a graph: an **entry** receives a request, **actions** do the work, **conditionals** branch, and **responses** return a result. The same engine that powers an agent's tools also serves plain HTTP APIs, so ServFlow works just as well when you only want an endpoint.

<Card title="Deploy your first API in 5 minutes" icon="rocket" href="/quickstart" horizontal>
  Pick the dashboard or the declarative path and ship a working endpoint.
</Card>

## Why ServFlow?

<CardGroup cols={2}>
  <Card title="Agents as first-class objects" icon="robot">
    Bundle prompts, tools, workflows, and a workspace under one named agent instead of wiring scripts together.
  </Card>

  <Card title="Build visually or declaratively" icon="wand-magic-sparkles">
    Design in the visual builder, or define agents and workflows as JSON/YAML and deploy them from the CLI.
  </Card>

  <Card title="Connect your infrastructure" icon="database">
    Integrate the databases, vector stores, and APIs you already run — PostgreSQL, MongoDB, and more.
  </Card>

  <Card title="Built with Go" icon="bolt">
    A compiled engine with minimal overhead, so agents and APIs stay fast under real traffic.
  </Card>
</CardGroup>

## How it works

1. **Create an agent** — give it a name, and optionally start from a template
2. **Add workflows** — an HTTP entry for inbound requests, or a trigger entry for internal and scheduled work
3. **Add actions** — call AI models, query databases, hit external APIs, transform data
4. **Configure responses** — decide what the workflow returns
5. **Run it** — locally or on your own infrastructure

## Three ways to build

ServFlow gives you the same engine through three interfaces — mix them freely:

| Approach                             | Best for                                     | Start here                                         |
| ------------------------------------ | -------------------------------------------- | -------------------------------------------------- |
| **Dashboard**                        | Learning, prototyping, visual debugging      | [Deploy with the dashboard](/quickstart-dashboard) |
| **Declarative (CLI + config files)** | Version control, CI/CD, reproducible deploys | [Deploy declaratively](/quickstart-declarative)    |
| **Headless**                         | Production, containers, minimal surface      | [Running ServFlow](/running-modes)                 |

Configurations created in the dashboard are the same objects the CLI reads and writes, so you can prototype visually and then manage the result in code.

## Deployment options

<CardGroup cols={2}>
  <Card title="Self-hosted" icon="server">
    Run ServFlow on your own infrastructure for full control over your data and environment.
  </Card>

  <Card title="Cloud" icon="cloud">
    Use ServFlow Cloud for managed infrastructure without maintaining servers yourself.
  </Card>
</CardGroup>

## Next steps

<CardGroup cols={2}>
  <Card title="Installation" icon="download" href="/installation">
    Install ServFlow and create your first account.
  </Card>

  <Card title="Quickstart" icon="play" href="/quickstart">
    Deploy your first API with the dashboard or declaratively.
  </Card>

  <Card title="Running ServFlow" icon="server" href="/running-modes">
    Understand what the server serves and how to deploy it.
  </Card>

  <Card title="Configuration Reference" icon="gear" href="/references/configuration">
    Every TOML option and environment variable.
  </Card>
</CardGroup>
