Skip to main content

Logic Basics

Logic that you build in Xano is made up of several core components that you’ll see across the entire platform. Each primitive, or ‘thing you can build’ (like APIs, AI Agents, and more) has its own set of components it uses, but you’ll also find some overlap between them. For example, APIs, custom functions, and AI tools all use inputs, but background tasks don’t. However, those same primitives all have a stack which contains what will actually run when it’s time to do so.

Inputs

Inputs are the data that the logic might need to perform its operation. They are declared in the input block of the primitives that support them. Inputs are optional, but the block must be declared even if empty.


Response

The response is what the logic will return when it’s executed. It can be a value, a message, a JSON object; almost anything you want. Responses can be returned from a variable, or manually defined in the response itself.

I