INTEGRITY Cloudflare Docs

What are agents?

An agent is an AI system that can autonomously execute tasks by making decisions about tool usage and process flow. Unlike traditional automation that follows predefined paths, agents can dynamically adapt their approach based on context and intermediate results. Agents are also distinct from co-pilots (such as traditional chat applications) in that they can fully automate a task, as opposed to simply augmenting and extending human input.

Example: Booking vacations

If this is your first time working with or interacting with agents, this example illustrates how an agent works within a context like booking a vacation.

Imagine you are trying to book a vacation. You need to research flights, find hotels, check restaurant reviews, and keep track of your budget.

Traditional workflow automation

A traditional automation system follows a predetermined sequence:

Traditional workflow automation diagram

AI Co-pilot

A co-pilot acts as an intelligent assistant that:

A co-pilot diagram

Agent

An agent combines AI's ability to make judgments and call the relevant tools to execute the task. An agent's output will be nondeterministic given:

An agent diagram

An agent can dynamically generate an itinerary and execute on booking reservations, similarly to what you would expect from a travel agent.

Components of agent systems

Agent systems typically have three primary components:

How agents work

Agents operate in a continuous loop of:

  1. Observing the current state or task
  2. Planning what actions to take, using AI for reasoning
  3. Executing those actions using available tools
  4. Learning from the results (storing results in memory, updating task progress, and preparing for next iteration)

Building agents on Cloudflare

The Cloudflare Agents SDK provides the infrastructure for building production agents:

Next steps

Quick start

Build your first agent in 10 minutes.

Agents API

Complete API reference for the Agents SDK.

Using AI models

Integrate OpenAI, Anthropic, and other providers.