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

# Logic & Workflows

> Everything you can build with Xano's logic engine — APIs, functions, tasks, triggers, and middleware.

Xano's logic engine is where your backend comes to life. Build workflows that handle requests, run on schedules, react to events, and more — visually, with code, or with AI.

<CardGroup cols={2}>
  <Card title="APIs" icon="plug" href="/building/logic/apis">
    Build HTTP endpoints that power your apps. Define inputs, add logic, query data, and return responses — all from one place.
  </Card>

  <Card title="Custom Functions" icon="function" href="/building/logic/custom-functions">
    Create reusable blocks of logic that can be called from APIs, tasks, triggers, or other functions.
  </Card>

  <Card title="Background Tasks" icon="clock" href="/building/logic/background-tasks">
    Schedule logic to run on a timer (cron jobs) or execute long-running processes in the background.
  </Card>

  <Card title="Triggers" icon="bolt" href="/building/logic/triggers">
    Run workflows automatically in response to events — database changes, realtime messages, agent actions, and more.
  </Card>

  <Card title="Middleware" icon="layer-group" href="/building/logic/middleware">
    Add logic that executes before or after other workflows — useful for auth checks, logging, and request validation.
  </Card>

  <Card title="Addons" icon="puzzle-piece" href="/building/logic/addons">
    Fetch related data alongside your queries — join tables, aggregate results, and enrich responses without extra requests.
  </Card>
</CardGroup>

***

## Building blocks

These are the shared components and concepts used across all logic types.

<CardGroup cols={2}>
  <Card title="Core Components" icon="cubes" href="/building/logic/core-components">
    Inputs, logic statements, functions, filters, and responses — the pieces every workflow is made of.
  </Card>

  <Card title="Working with Data" icon="database" href="/building/logic/working-with-data">
    Variables, environment variables, and dot notation — how you store, access, and transform data inside logic.
  </Card>
</CardGroup>
