LLMs & AI Agents
LLMs & AI Agents
Slotflow is built from the ground up for AI agents. This page explains how to give your agent the context it needs to use the Slotflow API autonomously.
Machine-readable documentation
Slotflow provides two files specifically designed for AI agent consumption:
When to use which
- llms.txt — include in your agent’s system prompt when it needs to know what Slotflow is and what endpoints exist. Good for routing decisions (“should I use Slotflow for this?”).
- llms-full.txt — include when your agent needs to actually make API calls. Contains all the detail needed to construct requests, handle responses, and deal with errors.
System prompt example
Here’s how to give an AI agent context about Slotflow in its system prompt:
Agent-friendly design decisions
Slotflow makes several design choices specifically for AI agent consumption:
Fixed time slots
The GET /slots endpoint returns discrete, bookable time slots — not raw calendar events or availability ranges. An agent can pick any slot from the array and book it directly. No ambiguity, no computation needed.
Deterministic responses
The same query to GET /slots always returns the same results (given the same schedule state). Agents can reason about availability without worrying about non-deterministic behavior.
Metadata passthrough
Every booking accepts an arbitrary metadata JSON object. Agents use this to carry workflow context:
This metadata flows through to webhook payloads, so downstream systems receive the agent’s context without additional lookups.
Machine-readable errors
Every error has a stable code field:
Agents should switch on error.code, not parse error.message. Codes are stable; messages may change.
UTC timestamps
All times in API responses are ISO 8601 UTC. No timezone ambiguity. The timezone field in slot responses is purely informational for human-facing display.
Tool definition for function-calling agents
If your agent framework uses function/tool definitions (OpenAI function calling, Claude tool use, etc.), here’s the core Slotflow tool set:
Tips for AI agent developers
-
Always query slots before booking — don’t let the agent guess at times. The slots endpoint returns exactly what’s available.
-
Handle 409 errors — when multiple agents or users book simultaneously, slot conflicts happen. Build retry logic.
-
Use metadata — it’s the glue between your agent’s conversation and the booking lifecycle. Include everything your webhook handler needs.
-
Keep llms-full.txt in context — include it in the agent’s system prompt so it can construct correct API calls without hallucinating endpoints or parameters.
-
Present times in the user’s timezone — slots come back in UTC, but your end users think in local time. Convert using the
timezonefield from the slots response.