> This is part 1 of 4 of the full documentation (pages 1–100 of 329).
> The content is paginated: fetch every part to see all of it.
> Next part: https://agpt.co/docs/llms-full.txt/1
> Page index: https://agpt.co/docs/llms.txt

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
This site has an agentic ask interface you may use to query the documentation dynamically by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://agpt.co/docs/index.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

---

# Developer Platform

Welcome to your team’s developer platform

<h2 align="center">AutoGPT Documentation</h2>

<p align="center">Create innovative agents that amplify human potential</p>

<table data-view="cards"><thead><tr><th></th><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th><th data-hidden data-card-cover data-type="image">Cover image</th></tr></thead><tbody><tr><td><h4><i class="fa-leaf">:leaf:</i></h4></td><td><strong>AutoGPT Platform</strong></td><td>Get started with the developer platform in 5 minutes.</td><td><a href="https://agpt.co/docs/platform/">AutoGPT Platform (Linked to Github)</a></td><td><a href="https://3277597670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9Q9sqchAWp9X3Hz4Nqrk%2Fuploads%2Fgit-blob-25df18a82a5c404bba95388ca9313321fbf92deb%2FAGPT_Platform.png?alt=media">AGPT_Platform.png</a></td></tr><tr><td><h4><i class="fa-server">:server:</i></h4></td><td><strong>Integrations</strong></td><td>Browse the blocks and integrations your agents can use.</td><td><a href="https://agpt.co/docs/integrations/">Integrations</a></td><td><a href="https://3277597670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9Q9sqchAWp9X3Hz4Nqrk%2Fuploads%2Fgit-blob-9941a5ff08a28132083ff66e758f9a1a177e7c45%2FIntegrations.png?alt=media">Integrations.png</a></td></tr><tr><td><h4><i class="fa-code">:code:</i></h4></td><td><strong>API</strong></td><td>Run and build agents from your own code, or connect an AI coding agent over MCP.</td><td><a href="https://agpt.co/docs/platform/api-and-integrations/api-guide">https://agpt.co/docs/platform/api-and-integrations/api-guide</a></td><td><a href="https://3277597670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9Q9sqchAWp9X3Hz4Nqrk%2Fuploads%2Fgit-blob-13440be7dc128135491996c04d0627640cc0e7fd%2Fapi-reference.jpg?alt=media">api-reference.jpg</a></td></tr><tr><td><h4><i class="fa-terminal">:terminal:</i></h4></td><td><strong>Contribute</strong></td><td>Help improve these docs.</td><td><a href="https://agpt.co/docs/contribute/">Contribute</a></td><td><a href="https://3277597670-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F9Q9sqchAWp9X3Hz4Nqrk%2Fuploads%2Fgit-blob-b9fb058898fa69d2327f878426d8b173b66a880b%2FContribute.png?alt=media">Contribute.png</a></td></tr></tbody></table>

{% columns %}
{% column valign="middle" %}

<p align="center"><a href="https://github.com/Significant-Gravitas/AutoGPT/blob/master/LICENSE">AutoGPT License on GitHub</a></p>
{% endcolumn %}

{% column %}

<p align="center"><a href="https://agpt.co/docs/platform/self-hosting/single-container">Self-Host with Docker</a></p>
{% endcolumn %}

{% column %}

<p align="center"><a href="https://agpt.co/docs/classic">AutoGPT Classic (unsupported)</a></p>
{% endcolumn %}
{% endcolumns %}

***

<h2 align="center">Join a community of 65,000+ developers</h2>

<p align="center">Join our Discord community or create your first PR in just a few steps.</p>

<table data-card-size="large" data-view="cards"><thead><tr><th></th><th></th><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><h4><i class="fa-discord">:discord:</i></h4></td><td><strong>Discord community</strong></td><td>Join our Discord community to post questions, get help, and share resources with our growing community of over 55,000 members.</td><td><a href="https://www.gitbook.com/" class="button secondary">Join Discord</a></td><td></td><td><a href="https://discord.com/invite/autogpt">https://discord.com/invite/autogpt</a></td></tr><tr><td><h4><i class="fa-github">:github:</i></h4></td><td><strong>GitHub</strong></td><td>Our product is 100% open source and built by developers just like you. Head to our GitHub repository to learn how to submit your first PR.</td><td><a href="https://www.gitbook.com/" class="button secondary">Submit a PR</a></td><td></td><td><a href="https://github.com/Significant-Gravitas/AutoGPT">https://github.com/Significant-Gravitas/AutoGPT</a></td></tr></tbody></table>


# What is the AutoGPT Platform?

The AutoGPT Platform is a groundbreaking system that revolutionizes AI utilization for businesses and individuals. It enables the creation, deployment, and management of continuous agents that work tirelessly on your behalf, bringing unprecedented efficiency and innovation to your workflows.

## Key Features

* **Seamless Integration and Low-Code Workflows**: Rapidly create complex workflows without extensive coding knowledge.
* **Autonomous Operation and Continuous Agents**: Deploy cloud-based assistants that run indefinitely, activating on relevant triggers.
* **Intelligent Automation and Maximum Efficiency**: Streamline workflows by automating repetitive processes.
* **Reliable Performance and Predictable Execution**: Enjoy consistent and dependable long-running processes.

## Platform Architecture

The AutoGPT Platform consists of two main components:

### 1. AutoGPT Server

The powerhouse of our platform, containing:

* **Source Code**: Core logic driving agents and automation processes.
* **Infrastructure**: Robust systems ensuring reliable and scalable performance.
* **Marketplace**: A comprehensive marketplace for pre-built agents.

### 2. AutoGPT Frontend

The user interface where you interact with the platform:

* **Agent Builder**: Design and configure your own AI agents.
* **Workflow Management**: Build, modify, and optimize automation workflows.
* **Deployment Controls**: Manage the lifecycle of your agents.
* **Ready-to-Use Agents**: Select from pre-configured agents.
* **Agent Interaction**: Run and interact with agents through a user-friendly interface.
* **Monitoring and Analytics**: Track agent performance and gain insights.

## Platform Components

### Agents and Workflows

In the platform, you can create highly customized workflows to build agents. An agent is essentially an automated workflow that you design to perform specific tasks or processes. Create customized workflows to build agents for various tasks, including:

* Data processing and analysis
* Task scheduling and management
* Communication and notification systems
* Integration between different software tools
* AI-powered decision making and content generation

### Blocks as Integrations

Blocks represent actions and are the building blocks of your workflows, including:

* Connections to external services
* Data processing tools
* AI models for various tasks
* Custom scripts or functions
* Conditional logic and decision-making components

You can learn more under: [Build your own Blocks](https://agpt.co/docs/platform/building-blocks/new_blocks)

## Available Language Models

The full model list — models, capabilities, context windows, and pricing — lives in the model catalog checked into the platform itself (`autogpt_platform/backend/backend/data/llm_registry/catalog.py`), so every install ships with the exact list its code supports. The platform comes pre-integrated with cutting-edge LLM providers:

* OpenAI - <https://openai.com/>
* Anthropic - <https://www.anthropic.com/>
* Groq - <https://groq.com/>
* Llama - <https://www.llama.com/>
* AI/ML API - <https://aimlapi.com/>
  * AI/ML API provides 300+ AI models including Deepseek, Gemini, ChatGPT. The models run at enterprise-grade rate limits and uptimes.

## License Overview

We've adopted a dual-license approach to balance open collaboration with sustainable development:

* **MIT License**: The majority of the AutoGPT repository remains under this license.
* **Polyform Shield License**: Applies to the new `autogpt_platform` folder.
* **Docker image**: The single-container image also bundles third-party services under their own licenses, including FalkorDB under SSPL-1.0. Their license files are in the image under `/usr/share/licenses/`.

This strategy allows us to share previously closed-source components, fostering a vibrant ecosystem of developers and users.

## Ready to Get Started?

* **Cloud:** Read the [Getting Started (Cloud)](https://agpt.co/docs/platform/using-the-platform/getting-started-cloud) guide to start using the hosted platform immediately.
* **Self-Host:** Run the whole platform from one Docker image, `significantgravitas/autogpt` on Docker Hub, with the [single-container guide](https://agpt.co/docs/platform/self-hosting/single-container), or read the [Self-Hosting Guide](https://agpt.co/docs/platform/self-hosting/getting-started) to run each service with Docker Compose on your own infrastructure.
* **Build on it:** Run and build agents from your own code with the [AutoGPT Platform API](https://agpt.co/docs/platform/api-and-integrations/api-guide), or give Claude, Cursor or another AI tool access through its [MCP server](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server).


# Getting Started (Cloud)

## Introduction

This guide will get you up and running on the hosted AutoGPT Platform at [platform.agpt.co](https://platform.agpt.co). No local installation or Docker setup is required — just sign up and start building.

{% hint style="info" %}
Looking to self-host instead? Run the [single-container Docker image](https://agpt.co/docs/platform/self-hosting/single-container) or see the [Self-Hosting Guide](https://agpt.co/docs/platform/self-hosting/getting-started).
{% endhint %}

## Creating Your Account

1. Navigate to [platform.agpt.co](https://platform.agpt.co)
2. Click **Sign Up** and create your account
3. Once signed in, you'll land on the **AutoPilot** home screen

That's it — you're ready to go. Available credits and managed AI providers depend on your plan and account configuration. If a block requires credentials that are not included, the platform will prompt you to connect your own. See the [pricing page](https://agpt.co/pricing) for current plan details.

## Platform Navigation

The AutoGPT Platform has four main areas, accessible from the main navigation:

| Nav Button      | URL                                                                  | Description                                       |
| --------------- | -------------------------------------------------------------------- | ------------------------------------------------- |
| **Home**        | [platform.agpt.co](https://platform.agpt.co)                         | AutoPilot — your AI assistant for the platform    |
| **Build**       | [platform.agpt.co/build](https://platform.agpt.co/build)             | Agent Builder — visual editor for creating agents |
| **Agents**      | [platform.agpt.co/library](https://platform.agpt.co/library)         | Your Agent Library — all your saved agents        |
| **Marketplace** | [platform.agpt.co/marketplace](https://platform.agpt.co/marketplace) | Community marketplace for discovering agents      |

Use the automation-credits wallet or **Billing** settings to review your balance. Account settings and integrations are available from **Settings**.

## What to Do First

Here are three great ways to get started:

### Option 1: Chat with AutoPilot

Click **Home** in the nav bar to open AutoPilot. You can ask it to perform supported actions such as browsing the marketplace, running agents, building agents, generating images, and conducting research. It's the fastest way to experience the platform.

### Option 2: Add an Agent from the Marketplace

1. Click **Marketplace** in the nav bar
2. Browse or search for an agent that interests you
3. Click on an agent to view its details
4. Click **Add to Library**
5. Navigate to **Agents** to find it in your library
6. Click on the agent and press **New agent task** to run it

### Option 3: Build Your Own Agent

1. Click **Build** in the nav bar to open the Agent Builder
2. Open the Blocks menu on the left-hand side
3. Add an **Input Block**, an **AI Text Generator Block**, and an **Output Block**
4. Connect them together by dragging between their pins
5. Press **Ctrl+S** (Windows/Linux) or **Cmd+S** (macOS), or click the save button to save your agent
6. Navigate to **Agents** to find and run it

For a detailed walkthrough, see [Creating a Basic Agent](https://agpt.co/docs/platform/tutorials/create-basic-agent).

## Key Concepts

Before diving deeper, here are the core concepts you'll encounter:

* **Agent**: An automated workflow you design to perform specific tasks. Agents are made up of connected blocks.
* **Block**: A single action within an agent — such as generating text with AI, sending an email, or looking up data. The available block catalog depends on the platform deployment.
* **Task**: A single execution of an agent. When you run an agent with a set of inputs, that creates a task. You can view the task's inputs, outputs, and reported cost.
* **AutoPilot**: Your AI assistant that can perform supported platform actions through natural conversation.
* **Marketplace**: A public library of community-built agents you can add to your own library.
* **Credits**: The currency used for metered block execution. Pricing varies by block and usage; review your balance from the automation-credits wallet or Billing settings.

## Next Steps

| Guide                                                                                       | Description                              |
| ------------------------------------------------------------------------------------------- | ---------------------------------------- |
| [AutoPilot](https://agpt.co/docs/platform/using-the-platform/autopilot)                     | Learn what AutoPilot can do for you      |
| [Agent Builder Guide](https://agpt.co/docs/platform/using-the-platform/agent-builder-guide) | Master the visual agent builder          |
| [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library)             | Manage your agents, tasks, and schedules |
| [Marketplace](https://agpt.co/docs/platform/using-the-platform/marketplace)                 | Discover and share agents                |
| [Credits & Billing](https://agpt.co/docs/platform/using-the-platform/credits-and-billing)   | Understand the credit system             |


# AutoPilot

## Overview

AutoPilot is your AI assistant built directly into the AutoGPT Platform. It can perform supported platform actions through natural conversation — from running agents to generating images, conducting research, and building agents for you.

## Accessing AutoPilot

Open AutoPilot from **Home** or **New Task** in the main navigation, or go directly to [platform.agpt.co/copilot](https://platform.agpt.co/copilot).

## What AutoPilot Can Do

AutoPilot can use supported platform tools. Here's what it can help you with:

### Run Agents

Ask AutoPilot to run a supported agent in your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library). It will request any missing inputs or credentials before executing it.

### Build Agents

Describe the workflow you want and AutoPilot will create an agent for you in the builder. You can also ask it to edit your existing agents; duplicate a read-only marketplace agent before editing it. See the [Agent Builder Guide](https://agpt.co/docs/platform/using-the-platform/agent-builder-guide) for hands-on editing.

### Browse the Marketplace

Ask AutoPilot to find agents for a specific use case and it will search the marketplace for you. You can also browse the [Marketplace](https://agpt.co/docs/platform/using-the-platform/marketplace) directly.

### Execute Blocks Directly

AutoPilot can run supported blocks directly without building a full agent. This means you can:

* **Conduct research** with Perplexity
* **Generate images** with the latest image models
* **Edit pictures** using AI image editing blocks
* **Generate videos** using video generation blocks
* **Run supported models** on inference services such as Replicate
* **Make custom HTTP requests** to APIs you configure
* **Write and execute code** with supported coding tools

### Manage Your Library

AutoPilot can help you manage your agent library, view task results, set up schedules, and more.

## Tips for Using AutoPilot

* **Be specific**: The more detail you provide, the better AutoPilot can assist you. Instead of "make me an agent", try "build me an agent that takes a blog topic as input, generates an outline with Claude, then writes the full article".
* **Iterate**: You can refine results by asking follow-up questions or requesting changes.
* **Explore capabilities**: If you're unsure whether AutoPilot supports something, ask it or browse the available blocks.

## AutoPilot vs. the Agent Builder

AutoPilot and the Agent Builder offer complementary ways to work on the platform. AutoPilot can create and edit reusable agents through natural language and run supported blocks directly, while the builder provides hands-on control over the graph.

|                      | AutoPilot                                                                      | Agent Builder                                                       |
| -------------------- | ------------------------------------------------------------------------------ | ------------------------------------------------------------------- |
| **Who is it for**    | Everyone — no technical knowledge required                                     | Technical users with a grasp of visual programming                  |
| **Best for**         | Natural language interaction, doing things fast, and accessing blocks directly | Hands-on visual control over exactly how an agent is wired together |
| **How it works**     | Conversational — describe what you want                                        | Visual — drag, drop, and connect blocks on a canvas                 |
| **Can build agents** | Yes — describe what you want and it builds the agent for you                   | Yes — you build the agent manually                                  |
| **Can edit agents**  | Yes — for user-created or duplicated editable agents                           | Yes — full visual editing                                           |
| **Block access**     | Can run supported blocks directly without building an agent                    | Blocks must be connected into an agent workflow                     |

Choose whichever approach suits you. Many users use both — AutoPilot for speed, and the builder when they want fine-grained visual control over their workflow.


# Agent Builder Guide

## Overview

The Agent Builder is the visual editor where you design and build agents by connecting blocks together on a canvas. Each block is a single action — like generating text, calling an API, or processing data — and you wire them together to create automated workflows.

**URL:** [platform.agpt.co/build](https://platform.agpt.co/build)

## The Builder Interface

When you open the builder, you'll see:

* **Canvas**: The main workspace where you place and connect blocks
* **Blocks Menu**: A panel on the left-hand side where you browse and search for blocks
* **Save Button**: Save your agent with a title and description

## Working with Blocks

### Types of Blocks

Blocks fall into three categories:

| Type              | Description                                                                                                                                                               |
| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| **Input Blocks**  | Define what information the agent needs when it runs. These become the input fields users fill in when starting a task. Types include text inputs, file inputs, and more. |
| **Action Blocks** | Perform operations — AI text generation, image creation, API calls, data processing, and hundreds of integrations with external platforms.                                |
| **Output Blocks** | Define what the agent returns as its result. These become the visible output when a task completes.                                                                       |

Input and output blocks define the **schema** of your agent — they determine what users see when running the agent. All other blocks inside the agent are internal and not exposed to the user at runtime.

{% hint style="info" %}
There is also a special type of input block: **Trigger Blocks**. These allow your agent to be activated by external events via webhooks rather than manual input. See [Scheduling & Triggers](https://agpt.co/docs/platform/using-the-platform/scheduling-and-triggers) for details.
{% endhint %}

### Adding Blocks

1. Open the **Blocks menu** on the left-hand side of the builder
2. Browse categories or use the search bar to find a specific block
3. Click on a block to add it to the canvas

There are hundreds of blocks available, integrating with many platforms and services.

### Connecting Blocks

Blocks have **input pins** and **output pins**. Pins are typed — they handle specific data types like text, numbers, files, and more.

To connect blocks:

1. Click on an **output pin** of one block
2. Drag to an **input pin** of another block (or simply click the output pin, then click the input pin)
3. A **connection line** will appear between the two pins

When the agent runs, data flows along these connections. This is visually represented by a **coloured bead** that slides along the connection line from the output pin to the input pin.

### Configuring Blocks

Many blocks have settings you can configure directly on the block. For example:

* The **AI Text Generator** block lets you choose which language model to use
* **Integration blocks** may require credentials (see [Integrations & Credentials](https://agpt.co/docs/platform/using-the-platform/integrations-and-credentials))
* Some blocks allow you to hardcode values on their input pins instead of connecting them to other blocks

If a block requires a credential you haven't connected yet, a **credential bar** will appear prompting you to add it (via OAuth, API key, or username/password depending on the service).

## Saving Your Agent

To save your agent:

* Press **Ctrl+S** (or **Cmd+S** on Mac), or
* Click the **Save button** in the builder

Saving creates or updates the agent graph version in your library. The builder also keeps a local recovery draft while you edit; a successful save clears that draft. Publishing to the marketplace is a separate action—see [Publishing to the Marketplace](https://agpt.co/docs/platform/using-the-platform/marketplace#publishing-an-agent).

## Navigating Back to Your Library

After saving, click the **Agents** button in the navigation bar to return to your library and find your agent.

## Editing an Existing Agent

To open an existing agent in the builder:

1. Go to your **Agent Library** (click **Agents** in the nav bar)
2. Click on the agent you want to edit
3. Click the **three dots** menu (⋯) on the far right-hand side of the screen
4. Select **Edit Agent**

This will open the agent in the builder with all its existing blocks and connections.

## Error Handling

When a block fails during execution, it produces data on its **error pin**. As the agent creator, you decide how to handle errors:

* **Surface the error**: Connect the error pin to an output block so the error is returned as the agent's result
* **Handle gracefully**: Connect the error pin to other blocks that provide fallback behaviour, ensuring the agent continues working even when individual blocks encounter problems

## Tips

* **Name your input and output blocks clearly** — these names become the labels users see when running your agent
* **Test incrementally** — save and run your agent frequently as you build to catch issues early
* **Use the search** in the blocks menu to quickly find what you need among hundreds of available blocks
* **Check the pin types** — connections only work between compatible pin types


# Agent Library

## Overview

The Agent Library is your personal collection of agents. From here you can run agents, view task history, set up schedules and triggers, edit agents, and manage your collection.

**URL:** [platform.agpt.co/library](https://platform.agpt.co/library)

**Access:** Click the **Agents** button in the navigation bar.

## Library View

Your library displays all of your agents, including agents you've built yourself and agents you've added from the marketplace. Each agent shows its name and key information at a glance.

### Favorites and folders

Click the **heart icon** on an agent to add or remove it from the **Favorites** tab. Use folders to organize agents; create a folder from the library and choose **Move to folder** from an agent's menu.

## Agent Detail View

Click on any agent to open its detail view. This screen provides:

* **Tasks**: A full history of every time this agent has been executed
* **Scheduled**: A list of active schedules for this agent
* **Triggers**: Configured webhook triggers for trigger-based agents
* **Templates**: Saved task inputs and credential references for reuse

These are accessible via tabs on the left-hand side of the agent screen (e.g., `Tasks 286 | Scheduled 1 | Templates 0`).

### Agent Actions Menu

Click the **three dots** (⋯) on the far right-hand side of the agent screen to access:

| Action                   | Description                                                                       |
| ------------------------ | --------------------------------------------------------------------------------- |
| **Edit Agent**           | Opens the agent in the builder; marketplace agents are read-only until duplicated |
| **Delete Agent**         | Permanently removes the agent from your library                                   |
| **Export Agent to File** | Downloads the agent as a file you can share with others                           |

## Running an Agent

To run an agent manually:

1. Open the agent from your library
2. Click **New agent task**
3. Fill in the required inputs and credentials
4. Click **Start Task**

The task will begin executing immediately. You can watch the progress and view the results once it completes.

{% hint style="warning" %}
For a trigger-based agent, use the same **New agent task** dialog and click **Set up Trigger**. Trigger-based agents cannot be started manually. See [Scheduling & Triggers](https://agpt.co/docs/platform/using-the-platform/scheduling-and-triggers) for details.
{% endhint %}

## Viewing Task Results

Every time an agent runs, it creates a **task**. To view task results:

1. Open the agent from your library
2. In the left-hand pane, browse the list of completed tasks
3. Click on a task to view its details

A task detail view shows:

* **Inputs**: The values that were provided when the task started
* **Outputs**: The results the agent produced
* **Cost**: The run's reported cost, displayed at the top of the task detail view

To share an output, click **Share results** and explicitly enable sharing; copying the authenticated task URL does not create a public link. See [Sharing & Exporting Agents](https://agpt.co/docs/platform/using-the-platform/sharing-and-exporting#share-task-output-via-url) for visibility and revocation details.

## Importing an Agent

To import an agent from a file:

1. Go to your Agent Library
2. Click **Import**
3. Keep **AutoGPT agent** selected
4. Choose the exported JSON file, complete the requested metadata, and click **Upload**

The agent will be added to your library and can be run or edited like any other agent. This is useful for importing agents shared by other users outside of the marketplace.

## Deleting an Agent

1. Open the agent from your library
2. Click the **three dots** (⋯) on the far right
3. Select **Delete Agent**
4. Confirm the deletion when prompted

{% hint style="danger" %}
Deleting an agent is permanent and cannot be undone. Make sure you want to remove it before confirming.
{% endhint %}


# Marketplace

## Overview

The AutoGPT Marketplace is a public library of agents created by the community and by the AutoGPT team. You can discover agents for a wide range of use cases, add them to your library with one click, and even publish your own agents for others to use.

**URL:** [platform.agpt.co/marketplace](https://platform.agpt.co/marketplace)

**Access:** Click **Marketplace** in the navigation bar.

## Browsing the Marketplace

The marketplace allows you to:

* **Search** for agents by name or keyword
* **Browse by category** to explore different use cases
* **View agent details** by clicking on any agent

### Agent Detail Page

Each agent in the marketplace has a dedicated page that includes:

* **Title and description** of what the agent does
* **Creator information** — who built the agent and a link to their other agents
* **Video** (when available) — a demonstration of the agent in action
* **Output showcase** (when available) — examples of the agent's results
* **Instructions** — guidance on how to run the agent and what to expect

## Adding an Agent to Your Library

When you find an agent you want to use:

1. Click on the agent to open its marketplace page
2. Click the **Add to Library** button

The agent appears in your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library), where you can run or schedule it. Marketplace agents open read-only; duplicate one before editing.

{% hint style="info" %}
If you already have the agent in your library, the button changes to **See Runs**, which takes you directly to that agent in your library.
{% endhint %}

### Download for Self-Hosting

Marketplace detail pages also provide **Download here** under “Want to use this agent locally?” Download the agent JSON and import it into your local instance. See [Download & Import an Agent](https://agpt.co/docs/platform/tutorials/download-agent-from-marketplace-local) for details.

## Publishing an Agent

You can publish your own agents to the marketplace for the community to discover and use.

### How to Publish

1. Open the agent in the Builder and select **Publish to Marketplace**, or open **Settings → Creator Dashboard** and select **Publish Agent**
2. Choose the agent and version you want to publish if prompted
3. Fill out the publishing form:

| Field                    | Description                                                       |
| ------------------------ | ----------------------------------------------------------------- |
| **Title**                | The name of your agent as it will appear in the marketplace       |
| **Subheader**            | A short tagline for your agent                                    |
| **Slug**                 | A URL-friendly identifier (e.g., `resume-rewriter`)               |
| **Thumbnail Images**     | Upload images — the first image becomes the marketplace thumbnail |
| **YouTube Video Link**   | Optional — a video demonstrating your agent                       |
| **Output demo**          | Optional — a URL showing example output the agent produces        |
| **Category**             | Select the most relevant category for your agent                  |
| **Description**          | A detailed explanation of what your agent does                    |
| **Instructions**         | Explain to users how to run this agent and what to expect         |
| **Recommended Schedule** | Suggest when users should run this agent for best results         |

4. Click **Submit for review**

### Review Process

After submission, a member of the AutoGPT team will review your agent against curation standards. If approved, your agent will be published to the marketplace and visible to all users.

## Editing Marketplace Agents

An agent added from the marketplace is read-only. Open it in the builder and click **Duplicate** to create an editable fork in your library. Changes to that fork do not modify the original marketplace listing.


# Scheduling & Triggers

## Overview

AutoGPT agents can be run on demand, on a recurring schedule, or automatically in response to external events via webhooks. This guide covers both scheduling and trigger-based execution.

## Scheduling an Agent

Scheduling lets you run an agent automatically on a recurring basis with pre-configured inputs.

### Setting Up a Schedule

1. Go to your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library) and open the agent you want to schedule
2. Click **New agent task** (the same button used for manual runs)
3. Fill in all the input fields with the values you want the agent to use
4. At the bottom of the input form, you'll see two buttons: **Start Task** and **Schedule Task**
5. Click **Schedule Task**

### Configuring the Schedule

The schedule configuration screen allows you to set:

| Setting           | Description                                                               |
| ----------------- | ------------------------------------------------------------------------- |
| **Schedule Name** | A descriptive name for this schedule                                      |
| **Repeats**       | Frequency — e.g., Weekly                                                  |
| **Repeats On**    | Select specific days (individual days, weekdays, weekends, or select all) |
| **At**            | The time of day to run (hour and minute)                                  |
| **Timezone**      | Schedule runs in your local timezone, displayed on screen                 |

**Example:** Run "Keyword SEO Expert" every weekday at 9:00 AM in the timezone shown in the schedule form.

### Managing Schedules

After creating a schedule, you can view and manage it on your agent's detail page:

* Open the agent from your library
* Select the **Scheduled** tab on the left-hand side
* The tab shows the count of active schedules (e.g., `Scheduled 1`)

## Triggers (Webhook-Based Execution)

Triggers allow external services or your own code to start an agent automatically by sending data to a webhook URL.

### How Triggers Work

Unlike standard input blocks, **trigger blocks** are a special type of input block. When you add a trigger block to your agent in the builder, the agent's execution model changes — instead of being started manually, it waits for incoming webhook events.

### Setting Up a Trigger

#### Step 1: Add a Trigger Block in the Builder

1. Open the [Agent Builder](https://agpt.co/docs/platform/using-the-platform/agent-builder-guide)
2. From the blocks menu, add a **trigger block** to your agent
3. Connect it to the rest of your workflow like any other input block
4. Save your agent

#### Step 2: Configure the Trigger in Your Library

1. Go to your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library) and open the agent
2. Click **New agent task**
3. Enter the trigger name and description and complete any required inputs or credentials
4. Click **Set up Trigger**

#### Step 3: Copy the Webhook URL

Once the trigger is created, you'll see a status panel:

> **Trigger Status**
>
> Status: **Active**
>
> This trigger is ready to be used. Use the Webhook URL below to set up the trigger connection with the service of your choosing.
>
> **Webhook URL:** `https://backend.agpt.co/api/integrations/generic_webhook/webhooks/<webhook-id>/ingress`

Copy this webhook URL and provide it to the external platform or code that will be sending events to trigger your agent.

{% hint style="info" %}
Trigger-based agents cannot be started manually. Configure them through **New agent task** and **Set up Trigger**, then send data to the webhook URL to execute them.
{% endhint %}

### Example Use Cases

* **GitHub webhook**: Trigger an agent whenever a pull request is opened
* **Payment processor**: Run an agent when a new payment is received
* **Form submission**: Process data when a user submits a form on your website
* **Custom integration**: Send data from any service that supports webhooks

## Schedule vs. Trigger

|                   | Schedule                                                            | Trigger                                                                                            |
| ----------------- | ------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- |
| **How it starts** | Automatically at configured times                                   | When an external event sends data to the webhook URL                                               |
| **Input source**  | Pre-configured when the schedule is created                         | The incoming webhook payload, plus any inputs configured when the trigger was set up               |
| **Use case**      | Recurring tasks with fixed inputs (daily reports, weekly summaries) | Event-driven tasks (new PR opened, form submitted, payment received)                               |
| **Setup**         | Through the **New agent task** → **Schedule Task** flow             | Through trigger blocks in the builder, then **New agent task** → **Set up Trigger** in the library |


# Templates

## Overview

Templates save a completed task's inputs and selected credential references so you can start another task with the same configuration.

## Creating a Template

Templates are created from previously completed tasks:

1. Go to your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library) and open the agent
2. Find a completed task in the left-hand pane whose inputs you want to reuse
3. Click the **three dots** (⋯) on the task
4. Select **Save as Template**
5. Give the template a **name** and **description**
6. Click **Save**

The template stores the task's input values, selected credential references, graph ID, and graph version. It does not copy credential secrets.

## Using a Template

To run an agent using a saved template:

1. Open the agent from your library
2. Switch to the **Templates** tab on the left-hand side
3. Click the template you want to use
4. Review or edit its saved inputs and credential selections
5. Select **Start task from template**

## Managing Templates

Templates are listed under the **Templates** tab on your agent's detail page. The tab shows the count of available templates (e.g., `Templates 3`).

## When to Use Templates

Templates are particularly useful for:

* **Recurring tasks**: When you run an agent regularly with the same inputs (e.g., a daily SEO report for the same keyword)
* **Standard configurations**: When you've found input settings that work well and want to reuse them
* **Quick re-runs**: When you want to repeat a successful task without re-entering all the inputs

{% hint style="info" %}
A template is pinned to the agent graph version from which it was created. Later agent edits do not automatically update the template to a newer graph version.
{% endhint %}


# Credits & Billing

## Overview

The AutoGPT Platform uses automation credits for metered agent execution. This guide explains how usage is priced, how to review costs, and how to manage your balance.

{% hint style="info" %}
Plans and pricing can change. See the [pricing page](https://agpt.co/pricing) for current details.
{% endhint %}

## How Credits Work

Credits are charged when blocks run. Depending on the block, the final charge may be fixed or based on actual usage, such as tokens, provider cost, elapsed time, data size, or number of items. For usage-based blocks, the platform may estimate a charge before execution and reconcile it against actual usage afterward.

### Block Pricing

Block pricing varies by block, configuration, and usage. Review the estimate shown in the platform before running an agent; the final charge for usage-based blocks may differ from the estimate.

Your total cost depends on your plan and automation-credit usage. See the [pricing page](https://agpt.co/pricing) for current subscription and included-credit details.

## Checking Your Balance

Your balance is available from the automation-credits wallet in the platform navigation and from [Billing settings](https://platform.agpt.co/settings/billing?tab=automation-credits).

## Viewing Task Costs

To review the cost of a specific agent run:

1. Go to your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library)
2. Open the agent
3. Click on a completed task in the left-hand pane
4. The task detail header displays **Cost** in dollars.

{% hint style="info" %}
Use the **Automation Credits** section in [Billing settings](https://platform.agpt.co/settings/billing?tab=automation-credits) for account-level usage and transaction history. Individual task costs are also available within each agent.
{% endhint %}

## Running Out of Credits

If your automation-credit balance is exhausted, paid blocks cannot start until credits are added. Scheduled tasks may fail for insufficient balance. Final reconciliation for a usage-based block that already ran can leave the balance below zero.

You can add credits manually or configure auto-refill from Billing settings.

## Adding Credits

1. Open **Settings** from your profile menu.
2. Select **Billing**.
3. Open the **Automation Credits** tab.
4. Select **Add credits** and follow the checkout prompts.

You can also go directly to [Billing settings](https://platform.agpt.co/settings/billing?tab=automation-credits).


# Rate Limits

## Overview

The AutoGPT Platform limits how much any one caller can do in a given time, to control cost and prevent abuse. This page lists those limits: what each one covers, what it counts, how big it is, when it resets, and what you see when you reach it. If you self-host, it also names the setting that changes each one.

A limit is counted per **account** (everything you do while signed in, on any device), per **IP address**, or once for **everyone together**. [Client IP Addresses](https://agpt.co/docs/platform/self-hosting/client-ip) explains how the Platform determines the IP address it counts by.

{% hint style="info" %}
The numbers on this page are the Platform's built-in defaults. On AutoGPT Cloud, your plan sets the size of your chat allowance: see the [pricing page](https://agpt.co/pricing), and the **Usage limits** popover in the chat for your own figures.
{% endhint %}

### When you reach a limit

Most limits refuse the request with `429 Too Many Requests` and a message saying which limit you reached. Where the response carries a `Retry-After` header, it gives the number of seconds until you can try again. Some limits don't refuse anything: the work waits in a queue, or you get a simpler result. Each section below says which.

## Chat with Otto and your Experts

### Daily and weekly chat allowance

Every message you send to Otto or an Expert uses part of your chat allowance, measured by what the AI models cost to answer it. The allowance has two windows, and a message is refused when either is used up:

| Window | Resets                    | Default (self-hosted) |
| ------ | ------------------------- | --------------------- |
| Daily  | Every day at 00:00 UTC    | $2.50                 |
| Weekly | Every Monday at 00:00 UTC | $5.00                 |

* **Counted per:** account.
* **On AutoGPT Cloud**, each plan has its own allowance, which can change without a new release. The **Usage limits** popover in the chat shows how much of each window you have used and when it resets.
* **Free trial:** a trial has one allowance for the whole trial instead, to use at any pace. It doesn't reset, and it can't be reset with credits.
* **What counts:** chat messages, tasks you continue, replies read aloud in voice mode, and messages to Otto from chat apps you've linked, such as Telegram or Discord. Messages answered through your own connected ChatGPT or Microsoft 365 Copilot account don't count.
* **What you see:** the chat says you've reached your daily or weekly usage limit and when it resets, and your message isn't sent. You can have a paused task resume, or a message send, when the allowance comes back. The API answers `429`, with the window and its reset time in the response body.
* **Reset with credits:** when the daily window is used up and the weekly one isn't, you can spend $5.00 of credits to reset the daily window, up to 5 times per UTC day. A sixth attempt is refused with `429`.

**Self-hosting:** set `CHAT_DAILY_COST_LIMIT_MICRODOLLARS` and `CHAT_WEEKLY_COST_LIMIT_MICRODOLLARS` on the backend, in microdollars (1 USD = `1000000`). The defaults are `2500000` and `5000000`. A negative value such as `-1` removes that window's limit, and `0` allows nothing. The [single-container image](https://agpt.co/docs/platform/self-hosting/single-container#autopilot-spend-caps) sets both to `-1`. Resets with credits need the credit system on (`ENABLE_CREDIT=true`). `CHAT_RATE_LIMIT_RESET_COST` sets the price of a reset in cents (`500`; `0` turns resets off), and `CHAT_MAX_DAILY_RESETS` the number per UTC day (`5`; `0` means no limit).

### Tasks running at once

| Limit                    | Default | Counted per | Setting                               |
| ------------------------ | ------- | ----------- | ------------------------------------- |
| Tasks running at once    | 5       | account     | `MAX_RUNNING_COPILOT_TURNS_PER_USER`  |
| Tasks running or waiting | 15      | account     | `MAX_INFLIGHT_COPILOT_TURNS_PER_USER` |

A task is one reply that Otto or an Expert is working on, in any chat. When 5 are running, a new message waits in a queue and starts by itself when one finishes; the chat says it has been queued. When 15 are running or waiting, a new message is refused with `429`, and the chat asks you to wait for one of your tasks to finish. Subtasks that Otto or an Expert starts count too, but they never take your last free running slot.

### Messages sent while Otto is working

While a reply is in progress you can keep sending follow-up messages, which Otto reads as it works.

* **Up to 30 a minute** per account, across all your chats. The minute starts with your first follow-up. Past that, the follow-up is still delivered, but the response is `429` so the app slows down.
* **Up to 10 waiting** per chat. A newer follow-up pushes out the oldest one still waiting.

Neither is configurable.

### Workflows Otto runs for you

In one chat, Otto can run each workflow up to 30 times and set up to 30 schedules for it. Past that, Otto tells you it has reached the maximum for this chat. Self-hosters can change both with `CHAT_MAX_AGENT_RUNS` and `CHAT_MAX_AGENT_SCHEDULES` (default `30` each).

## Experts

### Weekly budget per Expert

Each Expert you hire has a weekly budget for the work it runs on its own: its schedules, its triggers, and the workflows it runs for you. The default is $5.00 a week per Expert, and you can change it for each Expert or turn it off. The week starts on Monday at 00:00 UTC.

* At 80% of the budget, the Expert posts a warning in its chat.
* At the budget, the Expert pauses its schedules and says so in its chat. Its scheduled and triggered runs are skipped, and starting one of its runs by hand is refused with `409 Conflict`. The pause doesn't lift when the week ends: resume the Expert's schedules to continue, which also starts its count for the week over.

**Self-hosting:** `EXPERT_WEEKLY_CREDIT_BUDGET_DEFAULT` sets the default budget, in credits (100 credits = $1; default `500`; `0` turns it off).

### Approving further spending

Where spending approval is enabled, an Expert that has spent $2.50 in a week asks for your approval before it starts more work. Its new runs wait for review until you approve; one approval covers the rest of the week, and a declined run is stopped.

**Self-hosting:** approval needs the credit system on (`ENABLE_CREDIT=true`). `EXPERT_SPEND_APPROVAL_THRESHOLD_DEFAULT` sets the amount in credits (default `250`; `0` turns it off), and `EXPERT_SPEND_APPROVAL_WINDOW` counts it per `week` (the default) or per UTC `day`.

### Results posted in an Expert's chat

An Expert posts the result of each finished run in its chat, up to 10 a day per Expert (UTC). Later results that day appear only in your activity feed. Not configurable.

### Avatar generation

| Limit                          | Counted per | Resets                                    |
| ------------------------------ | ----------- | ----------------------------------------- |
| 10 generated avatars           | account     | 24 hours after the first one in the count |
| 15 seconds between generations | account     |                                           |

Failed generations count too. Past either limit, the request is refused with `429`, the message "Please wait before generating again. Limit: 10 avatars per day.", and a `Retry-After` header. Not configurable.

## Workflows

### Runs at once

You can have up to 25 runs of the same workflow running at once. More runs aren't refused: they wait in the queue as **Queued** and start as running ones finish.

* **Counted per:** account and workflow, whether a run was started by hand, by a schedule, by a trigger, by Otto or through the API.
* **Self-hosting:** `MAX_CONCURRENT_GRAPH_EXECUTIONS_PER_USER` (default `25`).

Across all your workflows, each of the Platform's executors (the servers that run workflows, on 10 workers each) also runs at most 5 of your runs at once. A run past that waits as **Queued** and is offered to an executor again after 30 seconds.

Sub-workflows, the workflows a run starts as one of its steps, count toward the 5 too. A run waiting on its sub-workflow keeps its worker, so each level of nesting may use one more worker than the level above it, and sub-workflows nest at most 4 levels deep. Your runs then hold at most 9 of an executor's 10 workers, so another account's run can always start. A fifth level fails with "Sub-workflows can be nested at most 4 levels deep".

* **Self-hosting:** `MAX_GRAPH_WORKERS_PER_USER` (default `5`), `NUM_GRAPH_WORKERS` (default `10`) and `GRAPH_RUN_REQUEUE_DELAY_SECONDS` (default `30`). Keep `MAX_GRAPH_WORKERS_PER_USER` at most `NUM_GRAPH_WORKERS` minus 5, so that one account's runs never hold every worker.

### Schedules

You can have up to 200 schedules, paused ones included. A new one past that is refused with a message saying you have reached the most one account can have; delete one to add another.

* **Counted per:** account.
* **Self-hosting:** `MAX_SCHEDULES_PER_USER` (default `200`).

### Generated workflow images

The Platform generates a picture for each workflow you add to your library, sub-workflows included, and for a marketplace listing when you ask it to. It generates up to 25 a day.

* **Counted per:** account. The count starts over 24 hours after the first image in it. Failed generations count too; a workflow that already has a generated picture keeps it, and that doesn't count.
* **What you see:** past the limit, a workflow you add has no picture, and generating one for a listing is refused with `429` and "Limit: 25 generated agent images per day."
* Not configurable.

### Emails to yourself

The **Send Email To Me** block emails your own account address from the Platform, up to 20 times a day.

* **Counted per:** account, from every workflow and chat that runs for it. The day starts at 00:00 UTC. A send the mail service refused doesn't count; one whose outcome it didn't confirm does, since it may have arrived.
* **What you see:** past the limit, the block sends nothing, and its `error` output says "Already sent 20 emails to this account today, the most allowed in a day. Try again after midnight UTC."
* **Self-hosting:** `OWNER_EMAIL_DAILY_LIMIT` (default `20`; `0` allows none).

## Sandboxes

### Sandboxes running at once

Otto and your Experts run code and use a computer in sandboxes, and so do some blocks, such as code execution and Claude Code. Up to 10 of your sandboxes can run at once; a paused one doesn't count until it is woken.

* **Counted per:** account. Only sandboxes on the Platform's own E2B account count: a block that uses an E2B key you added is neither counted nor refused.
* **What you see:** a new sandbox past the limit isn't started, with "Too many sandboxes are running on your account: 10 at once is the most. Wait for one of your tasks to finish, then try again." In a chat, the reply ends with that message; starting a computer's desktop from a chat or an Expert's page is refused with `429` and the same message.
* **Self-hosting:** `E2B_ACCOUNT_SANDBOX_LIMIT` (default `10`; `0` turns it off). `E2B_DEPLOYMENT_SANDBOX_LIMIT` caps the sandboxes of everyone together (default `0`, no cap); past it a start is refused with "Too many sandboxes are running right now. Please try again in a few minutes."

## Search

### Search across the Platform

The search box that searches everything in your account allows 120 searches a minute.

* **Counted per:** account. Each minute starts on the clock minute.
* **What you see:** `429`, with "Rate limit exceeded (120 requests per 60s). Try again shortly." and a `Retry-After` header.
* Not configurable.

### Store search

| Searching  | Limit        | Counted per |
| ---------- | ------------ | ----------- |
| Signed in  | 120 a minute | account     |
| Signed out | 30 a minute  | IP address  |

* Each minute starts on the clock minute.
* **What you see:** `429`, with "Store search rate limit exceeded (120 requests per 60s). Try again shortly." (30 when signed out) and a `Retry-After` header.
* **Busy minutes:** store search matches on meaning as well as on words. In a minute when all searches together have used the Platform's budget for matching on meaning, new searches match on words alone until the next minute.

**Self-hosting:** `PUBLIC_SEARCH_USER_REQUESTS_PER_MINUTE` sets the limit per signed-in account (default `120`), `PUBLIC_SEARCH_REQUESTS_PER_MINUTE` the limit per IP address for signed-out searches (default `30`), and `PUBLIC_SEARCH_EMBEDDINGS_PER_MINUTE` the budget shared by all searches (default `1000`; `0` makes store search match on words alone). Signed-out searches are counted per visitor only when the frontend can tell visitors apart; see [Client IP Addresses](https://agpt.co/docs/platform/self-hosting/client-ip).

## Plans and billing

### Billing page and plan changes

Loading your plan, previewing a plan change, and every request about a free trial (checking, starting, confirming, cancelling or resuming it) or a plan activation (previewing, confirming or checking it) share one limit of 60 requests a minute.

* **Counted per:** account. Each minute starts on the clock minute.
* **What you see:** `429`, with "Subscription status rate limit exceeded (60 requests per 60s). Try again shortly." and a `Retry-After` header.
* Not configurable.

### Free trial places

AutoGPT Cloud may limit how many free trials run at the same time. When every place is taken, the trial isn't offered, and starting one is refused with `409 Conflict` and "The trial is full right now. Please check back later."

## Onboarding

### Personalizing your account

When you tell the Platform about yourself during onboarding, by voice or typing, it uses AI to personalize your account. On AutoGPT Cloud, an account without a plan can do this 10 times an hour and 30 times a day.

* **Counted per:** account. The hour starts on the clock hour, and the day at 00:00 UTC. Sending the same answer again doesn't count while it is being processed or once it has been, though a retry after a failure does; a skipped step doesn't count.
* **What you see:** `429`, with "You have made several personalization attempts. Your progress is saved; please try again later." and a `Retry-After` header.
* Not configurable, and off on a self-hosted install.

## Connecting integrations

### Sign-in with a code

Some integrations connect by showing a code to enter on the provider's site.

* **Starting:** once every 3 seconds per account and integration. Sooner is refused with `429` and "A device authorization was just started. Please wait a moment."
* **Checking for approval:** at most as often as the provider asks, every 5 seconds unless it says otherwise. A sooner check isn't refused: the answer is `slow_down`, as the provider would give.

Neither is configurable.

## Signing in and account emails

### Account emails

When the Platform requires new accounts to verify their email address:

| Limit                                                                                               | Counted per   | What you see                                                      |
| --------------------------------------------------------------------------------------------------- | ------------- | ----------------------------------------------------------------- |
| 5 sign-ups and **Resend email** clicks together, per 10 minutes                                     | IP address    | `429` and "Too many attempts. Please try again in a few minutes." |
| 1 verification email per 10 minutes, from signing up or signing in                                  | email address | No new email is sent; use the one you already have                |
| 1 set-password email per 10 minutes, when you sign up again with an address that isn't verified yet | email address | No new email is sent; use the one you already have                |

The 10-minute windows for the first row start on the clock: at :00, :10, :20 and so on. **Resend email** isn't held to the per-address limit; it waits 60 seconds between clicks instead. None of these are configurable. A self-hosted install requires verification only with `AUTH_REQUIRE_EMAIL_VERIFICATION=true` on the frontend.

### Signing in and resetting a password

| Action                      | Limit                            | Counted per   |
| --------------------------- | -------------------------------- | ------------- |
| Signing in                  | 3 per 10 seconds                 | IP address    |
| Signing in                  | 5 failed attempts per 10 minutes | email address |
| Requesting a password reset | 3 per 60 seconds                 | IP address    |
| Requesting a password reset | 1 per 10 minutes                 | email address |

* A successful sign-in gives its attempt back, so only failed sign-ins count toward the 5.
* The per-address limits apply whether or not the address has an account, so a refusal says nothing about which addresses do.
* Each window starts on the clock, and these limits cover the sign-in and reset-password pages as well as the API paths below.
* **What you see:** `429`, with "Too many attempts. Please try again in 3 minutes." — the wait named in seconds under a minute — and an `X-Retry-After` header in seconds.
* Where the Platform has no IP address for the caller, only the per-address limits apply; see [Client IP Addresses](https://agpt.co/docs/platform/self-hosting/client-ip#signing-in). None of these are configurable.

### The authentication API

Requests to the authentication API under `/api/auth/` are limited per IP address and path:

| Paths                                                 | Limit              |
| ----------------------------------------------------- | ------------------ |
| `/sign-in/*`, `/sign-up/*`, `/change-email`           | 3 per 10 seconds   |
| `/request-password-reset`, `/send-verification-email` | 3 per 60 seconds   |
| Every other path                                      | 100 per 10 seconds |

Each path counts on its own. A path allows that many requests in a row, and starts counting again once a whole window has passed since the last request it let through. Past the limit, the answer is `429` with `{"message":"Too many requests. Please try again later."}` and an `X-Retry-After` header in seconds.

These limits apply to production builds of the frontend and aren't configurable. On a self-hosted install behind a reverse proxy, see [Client IP Addresses](https://agpt.co/docs/platform/self-hosting/client-ip).

## Closing your account

### Telling us why you're leaving

Where you can close your account yourself, the **Delete account** dialog asks why you're leaving and may suggest an alternative. Opening the dialog, your answer and each click on a suggestion are recorded anonymously, up to 20 times an hour.

* **Counted per:** account. The hour starts on the clock hour.
* **What you see:** nothing. Past the limit, the Platform stops recording them, and closing your account works as before. The API answers `429` with "Too many answers. Try again later.", without a `Retry-After` header.
* Not configurable.

## The External API

### API v2

Every call to [API v2](https://agpt.co/docs/platform/api-and-integrations/api-guide) shares one limit, on top of the lower limits on a few endpoints that [Errors, rate limits, and pagination](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions#rate-limits) lists:

| Caller                                                     | Limit                 | Counted per |
| ---------------------------------------------------------- | --------------------- | ----------- |
| With an API key or an access token                         | 200 requests a minute | account     |
| Without one                                                | 5 requests a minute   | IP address  |
| Without one, reading the API's own docs and OpenAPI schema | 60 requests a minute  | IP address  |

* Each minute starts on the clock minute. Responses carry their place in the window in `X-RateLimit-*` headers, and a `429` adds `Retry-After`; a refusal of a credential that keeps failing carries `Retry-After` alone.
* A request that presents a credential is also counted before the credential is checked, per credential at each IP address, so repeated failures are refused without the cost of checking them.
* **Self-hosting:** the per-IP counts read `X-Forwarded-For`, not the connection address. Set `TRUSTED_PROXY_COUNT` on the backend to the number of entries your own proxies add; see [Client IP Addresses](https://agpt.co/docs/platform/self-hosting/client-ip#limits-on-the-external-api).

### API v1

The deprecated v1 has no limit across all calls. Instead, its endpoints share two counts per account:

| Endpoints       | Limit                 |
| --------------- | --------------------- |
| `GET` endpoints | 300 requests a minute |
| Every other one | 30 requests a minute  |

* Each minute starts on the clock minute. Responses carry `X-RateLimit-*` headers, with `X-RateLimit-Reset` as a Unix time.
* **What you see:** `429`, with "Rate limit exceeded for scope 'read'. Retry after …s." (`'execution'` on the 30-a-minute tier) and a `Retry-After` header.
* Not configurable.

### Running a block on its own

Running one block directly, through v1's `POST /blocks/{block_id}/execute` or the same path in the Platform's own API, allows 4 runs at once per account on each of the Platform's servers. A fifth is refused with `429` and "You already have 4 blocks running. Wait for one to finish, then try again." Not configurable.

## Not on this page

* Limits of other services that blocks and Otto use, such as an AI provider's own rate limits. Their errors are passed on as they come.
* Size limits, such as the largest file you can upload or the storage that comes with your plan.


# Integrations & Credentials

## Overview

Many blocks on the AutoGPT Platform integrate with external services like Google, GitHub, Linear, Twitter, and more. These integrations require credentials — such as OAuth connections, API keys, or username/password pairs — to access your accounts on those services.

This guide explains how credentials work on the platform, how to add them, and how to manage them.

## How Credentials Work

### Platform-Provided Credentials

On the cloud-hosted platform at [platform.agpt.co](https://platform.agpt.co), some plans and account configurations include managed AI providers. If a block requires credentials that are not included, the platform will prompt you to connect your own. See the [pricing page](https://agpt.co/pricing) for current plan details.

### User-Provided Credentials

For services tied to your personal accounts, connect your own credentials. Credentials can be reused across agents, but you choose which compatible credential an agent or task uses. Managed credentials may be selected automatically when available.

## Adding Credentials

You can connect credentials centrally from **Settings → Integrations → Connect Service**, or in context when a builder block or task asks for one.

### When Building an Agent

If a block needs credentials, select an existing compatible credential or connect a new one from the block.

### When Running an Agent

Credential fields show the credentials that task will use. Select an existing compatible credential or connect a new one.

### Credential Types

Depending on the service, you'll be prompted to authenticate in one of three ways:

| Type                    | Description                                     | Example Services        |
| ----------------------- | ----------------------------------------------- | ----------------------- |
| **OAuth**               | Click to authorise via the service's login page | Google, GitHub, Twitter |
| **API Key**             | Paste your API key from the service's dashboard | Linear, OpenAI          |
| **Username & Password** | Enter your account credentials                  | Varies by service       |

{% hint style="info" %}
Credentials are reusable, but each block or task retains its selected credential reference.
{% endhint %}

## Connecting MCP Services

Open **Settings → Integrations**, find a service with the **MCP** badge, and follow its setup instructions. The same services appear in **Connect Service**.

* Choose the offered sign-in or token option for account access, or **No sign-in → Check connection** for public tools.
* If prompted, select your account's region or enter the official server URL for your tenant or deployment.
* Review the requested permissions. **Allow changes**, when offered, adds the service's optional actions.

For catalog updates, see [Maintaining MCP Integrations](https://github.com/Significant-Gravitas/AutoGPT/blob/dev/docs/engineering/hosted-mcp-catalog.md).

## Managing Credentials

1. Open **Settings**.
2. Select **Integrations**.
3. Use **Connect Service** to add a credential, or manage/remove credentials already listed.

**URL:** [platform.agpt.co/settings/integrations](https://platform.agpt.co/settings/integrations)

{% hint style="warning" %}
Removing a credential can break agents, workflows, or active webhooks that reference it. Review the dependency warning before confirming removal.
{% endhint %}

## Self-Hosted Credentials

When self-hosting, configure deployment-level provider keys and OAuth application credentials as environment variables. For the [Docker Hub image](https://agpt.co/docs/platform/self-hosting/single-container), put them in the environment file you pass to `docker run --env-file`; for a Docker Compose or source install, put them in `autogpt_platform/backend/.env`. Register `<your AutoGPT URL>/auth/integrations/oauth_callback` (for example `http://localhost:3000/auth/integrations/oauth_callback`) as each OAuth app's redirect URI, then connect end-user accounts from **Settings → Integrations** as needed. See the [Self-Hosting Guide](https://agpt.co/docs/platform/self-hosting/getting-started) for details.


# Data Flow & Execution

## Overview

Understanding how agents execute is key to building effective workflows. This guide explains how data flows through an agent, what determines execution order, and how to work with lists and errors.

## Execution Order

Agent execution follows the graph's starting nodes, data connections, configured values, and input validation.

### How It Works

1. Execution starts from every starting node: an Agent Input block or any executable block with no inbound links.
2. A downstream block is queued when its required inputs validate after upstream outputs and configured values are applied.
3. Execution continues until no more downstream blocks can be queued; conditional branches and skipped nodes mean not every block necessarily runs.
4. Output blocks collect any results that reach them.

### Required Inputs

A block will only execute when:

* All **connected input pins** have received data from their upstream blocks
* All **required input pins** have values — either from a connection or from a hardcoded value set directly on the block

This means you can have blocks that don't depend on each other execute in any order, while blocks that depend on the output of another block will always wait.

## Working with Pins

### Pin Types

Input and output pins are typed. Common types include:

* **Text**: String values
* **Number**: Numeric values
* **File**: File uploads or downloads
* **List**: Arrays of items
* **Boolean**: True/false values
* **Object**: Structured data

Connections can only be made between compatible pin types.

### Data Flow Visualisation

When an agent is running, you can see data moving through the workflow in real time. Data flow is represented by a **coloured bead** that slides along each connection line from the output pin to the input pin, giving you a clear visual of what's happening.

## Working with Lists

Blocks can handle list data in flexible ways:

* **Outputting lists**: Some blocks produce a list of items as their output. You can choose to receive the full list as a single output or receive individual items one at a time.
* **Iterating over lists**: You can send a list into a block that iterates through its contents, yielding each item one by one. This is useful for processing each item in a list independently.

This makes it straightforward to build agents that process batches of data — for example, fetching a list of URLs and then processing each one through an AI block.

## Error Handling

When a block fails during execution, it does **not** automatically stop the entire agent. Instead:

1. The failed block produces data on its **error pin**
2. What happens next depends on how you've wired the agent

### Handling Errors Gracefully

You have full control over error handling through the block connections:

* **Surface the error**: Connect the error pin to an output block to return the error as part of the agent's result. This is useful for debugging or when you want users to see what went wrong.
* **Handle and continue**: Connect the error pin to other blocks that provide fallback behaviour. For example, retry with different settings, use a default value, or route to an alternative workflow path.
* **Ignore the error**: If the error pin is not connected, the error data is simply not propagated. Downstream blocks that depend on the failed block's normal output pins will not execute (since their inputs won't be satisfied).

{% hint style="info" %}
Building robust agents means thinking about what happens when things go wrong. Consider connecting error pins to output blocks during development so you can see any issues, then add proper error handling once your agent is working.
{% endhint %}

## Execution Summary

| Concept                | How It Works                                                                            |
| ---------------------- | --------------------------------------------------------------------------------------- |
| **Execution order**    | Determined by starting nodes, data connections, configured values, and input validation |
| **Starting point**     | Agent Input blocks and executable blocks with no inbound links                          |
| **Ending point**       | Output blocks collect final results                                                     |
| **Parallel execution** | Blocks with no dependencies on each other can execute in any order                      |
| **Error handling**     | Failed blocks yield data on their error pin — you decide what to do with it             |
| **Lists**              | Can be processed as a whole or iterated item by item                                    |
| **Visual feedback**    | Coloured beads slide along connection lines during execution                            |


# Sharing & Exporting Agents

## Overview

There are several ways to share agents and their outputs with others on the AutoGPT Platform. This guide covers all the available options.

## Sharing Options

### Share Task Output via URL

A completed task remains private until you explicitly enable sharing:

1. Open the agent and select the completed task.
2. Click **Share results**.
3. Review the public-access warning and click **Enable Sharing**.
4. Copy the generated **Share URL**.

Anyone with that URL can view the run's outputs. Use **Stop Sharing** in the same dialog to revoke the link.

{% hint style="warning" %}
A share URL is publicly accessible to anyone who has it. It does not publish the task inputs, but outputs may contain sensitive data.
{% endhint %}

### Publish to the Marketplace

The most visible way to share an agent is to publish it to the [Marketplace](https://agpt.co/docs/platform/using-the-platform/marketplace). Published agents are discoverable by all platform users and go through a review process by the AutoGPT team.

See [Publishing an Agent](https://agpt.co/docs/platform/using-the-platform/marketplace#publishing-an-agent) for the full guide.

### Export as a File

For sharing agents privately — without publishing to the marketplace — you can export an agent as a file:

1. Go to your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library) and open the agent
2. Click the **three dots** (⋯) on the far right
3. Select **Export Agent to File**
4. The agent file will download to your computer

You can then send this file to anyone via email, messaging, or any other method.

### Import a Shared File

To import an agent file someone has shared with you:

1. Go to your [Agent Library](https://agpt.co/docs/platform/using-the-platform/agent-library)
2. Click **Import**
3. Select the **AutoGPT agent** tab
4. Upload the exported `.json` file
5. The agent will be added to your library

## Teams & Collaboration

Organization and team workspaces are available only when enabled for your account or deployment. Use their built-in access controls where available. Export/import remains the portable way to transfer an agent file between separate accounts or deployments.


# Setting Up AutoGPT (Self-Host)

## Introduction

This guide will help you set up AutoGPT on your own machine. There are two ways to do it:

* [**Quick Setup with Docker**](#quick-setup-with-docker) runs the published image from Docker Hub: one container and no source checkout. Start here if you want to use AutoGPT.
* [**Manual Setup**](#manual-setup) clones the repository and builds every service with Docker Compose. Use it to develop AutoGPT, or to run each service in its own container.

{% hint style="warning" %}
**DO NOT FOLLOW ANY OUTSIDE TUTORIALS AS THEY WILL LIKELY BE OUT OF DATE**
{% endhint %}

## Quick Setup with Docker

The quickest way to self-host is the single-container image on Docker Hub, [`significantgravitas/autogpt`](https://hub.docker.com/r/significantgravitas/autogpt). It bundles the web app, APIs, workers, PostgreSQL, RabbitMQ, Valkey, and FalkorDB-backed memory, and keeps all of its data in one Docker volume. The image is meant for local and small installations, not high-availability deployments.

### Prerequisites

You only need Docker: Docker Engine or Docker Desktop running Linux containers on `amd64` or `arm64`. Git, Node.js, and Docker Compose are not required. Test installations use about 5–6 GiB of memory, so plan for at least 8 GB of RAM and about 25 GB of free disk. Docker Desktop caps its VM's memory: raise the limit under **Settings → Resources**, or in `.wslconfig` on Windows with the WSL 2 backend.

Install Docker from the [official Docker documentation](https://docs.docker.com/get-docker/), start it, then verify that it is running:

```console
docker -v
docker info
```

### Running the image

```bash
docker run -d \
  --name autogpt \
  --restart unless-stopped \
  --shm-size 2g \
  --ulimit nofile=65536:65536 \
  --log-driver json-file \
  --log-opt max-size=50m \
  --log-opt max-file=5 \
  -p 127.0.0.1:3000:3000 \
  -e AUTOGPT_PUBLIC_URL=http://localhost:3000 \
  -v autogpt-data:/data \
  significantgravitas/autogpt:latest
```

`AUTOGPT_PUBLIC_URL` must match the address in your browser, so change both if you publish a different port.

On Windows, put the command on one line in PowerShell, or run it from a WSL 2 terminal.

The first boot applies database migrations and can take several minutes. Don't stop the container until Docker reports it as `healthy`:

```console
docker inspect --format '{{.State.Health.Status}}' autogpt
```

Then open <http://localhost:3000>, create your account, and make it the administrator:

```bash
docker exec autogpt autogpt-admin promote you@example.com
```

Sign out and back in so your session picks up the administrator role.

Signup stays open to anyone who can reach the app, which is why the command above publishes the port on `127.0.0.1` only. To close signup, remove the container:

```bash
docker stop autogpt
docker rm autogpt
```

Then run the `docker run` command again with `-e AUTH_ALLOW_NEW_ACCOUNTS=false` added. Keep the `autogpt-data` volume whenever you replace the container: it holds your accounts, agents, memory, and generated secrets.

`latest` tracks the newest verified release. To pin a version, use an immutable `vX.Y.Z` tag instead.

[Run AutoGPT in One Docker Container](https://agpt.co/docs/platform/self-hosting/single-container) covers model providers, another port or a public URL, backups, upgrades, and troubleshooting.

### Appliance installer

The [appliance installer](https://agpt.co/docs/platform/self-hosting/installer#install) wraps these steps in one command for Linux, macOS, and Windows: it checks your Docker setup, pins the pulled image by digest, and keeps its configuration in a private directory.

## Manual Setup

The manual setup clones the repository, builds every service from source, and runs each one in its own container with Docker Compose. The `setup-autogpt.sh` and `setup-autogpt.bat` scripts described in [the installer reference](https://agpt.co/docs/platform/self-hosting/installer#installing-from-source-compose) run the same steps for you and can also set up a local Ollama model.

{% hint style="warning" %}
Docker Compose publishes the frontend (port 3000), the REST API (8006) and the WebSocket server (8001) on all network interfaces, and signup is open. Run the stack on a machine and network you trust. PostgreSQL, Redis, RabbitMQ, FalkorDB and ClamAV are published on `127.0.0.1` only, and all but ClamAV require a password `make init-env` generates for your install.
{% endhint %}

### Development prerequisites

The manual setup needs [Git](https://git-scm.com/downloads), Docker with [Docker Compose](https://docs.docker.com/compose/install/), `make`, and Python 3, which `make init-env` uses to generate your secrets. Node.js is only needed to run the frontend outside Docker (see [Development](#development)) or to migrate an older Supabase-based install. Verify the rest before continuing:

```console
git --version
docker -v
docker compose version
make --version
python3 --version
```

On Windows, where `make` is usually not installed, clone the repository as below, then run `autogpt_platform\installer\setup-autogpt.bat` instead of the remaining steps. It creates the `.env` files, generates the secrets, and starts the stack.

### Cloning the Repository

The first step is cloning the AutoGPT repository to your computer. To do this, open a terminal window in a folder on your computer and run:

```
git clone https://github.com/Significant-Gravitas/AutoGPT.git
```

If you get stuck, follow [this guide](https://docs.github.com/en/repositories/creating-and-managing-repositories/cloning-a-repository).

Once that's complete you can continue the setup process.

### Running the AutoGPT Platform

To run the platform, follow these steps:

* Navigate to the `autogpt_platform` directory inside the AutoGPT folder:

  ```bash
   cd AutoGPT/autogpt_platform
  ```
* Create the `.env` files and generate your local secrets:

  ```
   make init-env
  ```

  This copies each `.env.default` to `.env` (for `autogpt_platform`, `backend` and `frontend`) and fills in the secrets that `.env.default` deliberately leaves blank — `ENCRYPTION_KEY`, `UNSUBSCRIBE_SECRET_KEY`, `INTERNAL_API_KEY`, `BAN_RECORD_HASH_KEY`, `BETTER_AUTH_SECRET`, and the passwords of the database, RabbitMQ, Redis and FalkorDB — with values generated for your machine. Those files are public, so shipping working values in them would mean every install in the world shared one publicly-readable key. It never overwrites an existing `.env` or a value you set yourself, and you can then edit the `.env` files to add your own environment variables. To upgrade an install that is already running, follow [Upgrading: service passwords are generated per install](#upgrading-service-passwords-are-generated-per-install) instead: there this command replaces the passwords this repository used to publish, and the restart after it empties RabbitMQ's queues.

  The backend **refuses to start** while `ENCRYPTION_KEY` is empty, and Docker Compose refuses to start without the database password, so run this before bringing the stack up.
* Run the platform services:

  ```
   docker compose up -d --build
  ```

  This command will start all the necessary backend services defined in the `docker-compose.yml` file in detached mode. Building the frontend image needs more than 8 GiB of memory available to Docker: its build step alone peaks at about 7.5 GiB.

***

### 🛠️ Using the Makefile for Common Tasks

The repository includes a `Makefile` with helpful commands to streamline setup and development. You may use `make` commands as an alternative to calling Docker or scripts directly.

#### Most-used Makefile commands

Inside the `autogpt_platform` directory, you can use:

| Command               | What it Does                                                                                                                                                                |
| --------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `make init-env`       | Create missing `.env` files from `.env.default` (`autogpt_platform`, `backend`, and `frontend`) and generate the secrets they leave blank                                   |
| `make start-core`     | Start the services the backend needs (Postgres, Redis, RabbitMQ, ClamAV, FalkorDB) in background and apply the database migrations                                          |
| `make stop-core`      | Stop every running service in the stack                                                                                                                                     |
| `make logs-core`      | Tail the logs for core services                                                                                                                                             |
| `make format`         | Format & lint backend (Python) and frontend (TypeScript) code                                                                                                               |
| `make migrate`        | Run backend database migrations                                                                                                                                             |
| `make publish-skills` | Publish the skills catalog (marketplace skills and the expert roster) into your database; run `make load-store-agents` first if you want the experts' preload workflows too |
| `make run-backend`    | Run the backend FastAPI server                                                                                                                                              |
| `make run-frontend`   | Run the frontend Next.js development server                                                                                                                                 |

*Example usage:*

```sh
make init-env
make start-core
make migrate
make publish-skills
make run-backend
make run-frontend
```

`docker compose up` runs the migrations and the skills catalog publish for you: the `publish_skills` service downloads the public `Significant-Gravitas/skills-catalog` repository after `migrate` finishes, so the Skills Hub and the roster experts are there on first start. It needs network access to GitHub; offline, point `SKILLS_CATALOG_PATH` in `backend/.env` at a local checkout of that repository.

> `make init-env` matters when running the frontend outside Docker: Next.js only reads `.env` (not `.env.default`), and the frontend's embedded auth service needs `DATABASE_URL` and `BETTER_AUTH_SECRET` from it.

You can always check available Makefile recipes by running:

```sh
make help
```

(or just inspecting `autogpt_platform/Makefile`).

***

### Checking if the application is running

You can check if the server is running by visiting <http://localhost:3000> in your browser.

**Notes:**

By default the application for different services run on the following ports:

* Frontend UI Server: 3000
* Backend Websocket Server: 8001
* Execution API Rest Server: 8006

### Upgrading: secrets are generated per install

`ENCRYPTION_KEY`, `UNSUBSCRIBE_SECRET_KEY` and `BETTER_AUTH_SECRET` used to come with a value in `.env.default`, so every install that did not set its own ran on the same three values. They are now blank there and generated for each install, and the backend **does not start** without an `ENCRYPTION_KEY` or with the one `.env.default` used to contain. This applies to Docker Compose installs; the Docker Hub image generates its own secrets on first boot and keeps them in its data volume.

The Web Push signing pair, `VAPID_PRIVATE_KEY` and `VAPID_PUBLIC_KEY`, shipped with a value from April to October 2026 and is now blank and generated the same way. The backend starts on the published pair but sends no push notifications with it. `make init-env` replaces a published pair with a generated one, since nothing stored depends on it; adds the pair to a `backend/.env` from before it existed; and clears a published `NEXT_PUBLIC_VAPID_PUBLIC_KEY` from `frontend/.env`, which the app would otherwise use instead of the backend's key. Then recreate the services so they read the new values (`docker compose up -d`, with `--build` if the frontend image was built from this checkout). Browsers subscribed under the old pair stop receiving pushes until notifications are turned off and on again in the app.

A fresh install needs nothing beyond `make init-env` (or `installer/setup-autogpt.sh` / `setup-autogpt.bat`, which do the same). An install that already set its own values needs nothing either. Follow the steps below if you are upgrading an install that

* has no `autogpt_platform/backend/.env`, or one without an `ENCRYPTION_KEY` line — it was running on the value from `.env.default`; or
* stops on startup with `ENCRYPTION_KEY is set to a value that was published…` or `ENCRYPTION_KEY is not set`.

Your connected integrations are encrypted with `ENCRYPTION_KEY`, so the steps move them to the new key instead of losing them. Run everything from `autogpt_platform/`.

1. Empty RabbitMQ's queues, then stop the stack and update it. The restart in step 5 recreates RabbitMQ, and a recreated RabbitMQ starts with empty queues, so while the version you have now is still running, first follow steps 1 to 3 of [Upgrading: service passwords are generated per install](#upgrading-service-passwords-are-generated-per-install), which leave the queues empty and only RabbitMQ running. The steps here take the place of its step 4. Then:

   ```bash
   docker compose stop -t 60
   git pull
   ```

   Use `stop`, not `down`: `down` would also throw away Redis's data.
2. Keep the key your data is currently encrypted with. If you never set one, it is the value `.env.default` contained up to release `v0.7.4`:

   ```bash
   export OLD_ENCRYPTION_KEY=$(git show autogpt-platform-beta-v0.7.4:autogpt_platform/backend/.env.default \
     | grep '^ENCRYPTION_KEY=' | cut -d= -f2-)
   ```

   If you did set one and are replacing it, export that value instead, and keep a copy of the file outside the checkout until step 4 reports nothing unreadable, because step 3 removes the only other place the key is written down:

   ```bash
   cp backend/.env ~/autogpt-backend.env.$(date +%Y%m%d-%H%M%S)
   ```
3. Generate the new values. `make init-env` creates any missing `.env` file and fills in every secret whose line is present but empty; it never overwrites one of these keys. So in `backend/.env` make sure these two lines exist with nothing after the `=`, and do the same for `BETTER_AUTH_SECRET=` in `frontend/.env`:

   ```
   ENCRYPTION_KEY=
   UNSUBSCRIBE_SECRET_KEY=
   ```

   Then:

   ```bash
   make init-env
   ```

   Without `make`, these are the same steps by hand. Copy a `.env.default` only where no `.env` exists yet:

   ```bash
   cp -n .env.default .env
   cp -n backend/.env.default backend/.env
   cp -n frontend/.env.default frontend/.env
   python3 single-container/runtime_config.py fill-env \
     --path .env --path backend/.env --path frontend/.env
   ```

   Do not re-run `setup-autogpt.sh` or `setup-autogpt.bat` for this: they also start the stack, which is step 5.
4. Re-encrypt what is stored. Build the new images and bring the database up to date first; `migrate` starts the database on its own:

   ```bash
   docker compose build migrate rest_server
   docker compose run --rm migrate
   ```

   Then run the command, first as a dry run that only reports what it would change, then with `--apply` to write it. `--no-deps` keeps it from waiting on the rest of the stack, which it does not need:

   ```bash
   docker compose run --rm --no-deps -e OLD_ENCRYPTION_KEY rest_server cli rotate-encryption-key
   docker compose run --rm --no-deps -e OLD_ENCRYPTION_KEY rest_server cli rotate-encryption-key --apply
   ```

   It is safe to run more than once: values already under the new key are left alone, and a value that neither key can read is listed and not touched. Running the backend outside Docker, the same command is `poetry run cli rotate-encryption-key` in `autogpt_platform/backend`.
5. Start the stack again. If `BETTER_AUTH_SECRET` changed in step 3, first clear the token signing key the frontend stored under the old value: it can no longer be decrypted, and until it is removed nobody can reach the backend, even after signing in again. A new one is created on the next sign-in. `--build` brings the remaining services to the release you built in step 4:

   ```bash
   docker compose up -d --wait db
   docker compose exec db psql -U postgres -c 'DELETE FROM platform."UserAuthJwks";'
   docker compose up -d --build
   ```

Two smaller effects of the new values: unsubscribe links in emails sent before the upgrade stop working (`UNSUBSCRIBE_SECRET_KEY`), and everyone signs in again once (`BETTER_AUTH_SECRET`).

Do step 4 before step 5. On a new key the stored values are still in the database but read as empty, and a user who connects an integration in that state replaces their stored set: their other credentials are marked revoked. If the stack already ran on the new key, stop it and run step 4 now. Whatever nobody touched is recovered; a user who connected something in between gets their older credentials re-encrypted but still revoked, and reconnects those.

### Upgrading: service passwords are generated per install

The database, RabbitMQ and FalkorDB used to take their passwords from the `.env.default` files, Redis had none, and Docker Compose published all of them on every network interface. They are now published on `127.0.0.1` only, and their passwords are generated per install, like the secrets above.

The upgrade recreates the RabbitMQ container, and a recreated RabbitMQ starts with empty queues: workflow runs waiting to start, chat turns, scheduled runs and emails still queued there are lost. So empty the queues first, while the version you have now is still running, and upgrade by these steps rather than by running the setup script again, which recreates RabbitMQ the same way. Run them from `autogpt_platform/`, in PowerShell on Windows:

1. Stop the services that queue new work, so that those working through the queues can catch up. Leave out any your version doesn't have:

   ```bash
   docker compose stop frontend rest_server websocket_server scheduler_server platform_linking_manager
   ```

   A backend you run outside Docker (`poetry run app`) does both, so leave it running for now.
2. Run this about once a minute. For each of RabbitMQ's virtual hosts (usually only `/`, but versions differ in which one the platform's queues end up in, so it checks them all), it lists the queues, how many messages each holds, and how many services read it:

   ```bash
   docker compose exec rabbitmq sh -c 'set -f; IFS=; rabbitmqctl -s list_vhosts | while read -r vhost; do echo == virtual host $vhost; rabbitmqctl -q list_queues -p $vhost name messages consumers; done'
   ```

   Go on once every queue shows `0` messages on two checks in a row, apart from those nothing reads (the last case below). A queue that keeps its messages:

   * with a consumer is still being worked through: wait.
   * with none has lost its reader. Look for a service that isn't running (`docker compose ps -a`, and the `poetry run app` process if you run the backend outside Docker) or that keeps logging errors as it retries (`docker compose logs --since 5m`), get it going again, and wait.
   * is read by nothing in the version you run if it is a dead-letter queue, whose name starts with `failed_notifications` (it keeps emails that already failed to send), or if it has had no consumer for ten minutes while the services still running log no errors (an earlier version used it). RabbitMQ can't carry what these hold over to the new version: note which queues they are, and go on only if you can do without their messages.
3. Stop everything but RabbitMQ, and the backend too if you run it outside Docker. `-t 60` gives Redis a minute to write its data out as it stops. On Linux and macOS:

   ```bash
   services=$(docker compose ps --services | grep -vx rabbitmq)
   [ -z "$services" ] || docker compose stop -t 60 $services
   ```

   In PowerShell:

   ```powershell
   $services = @(docker compose ps --services | Where-Object { $_ -ne "rabbitmq" })
   if ($services) { docker compose stop -t 60 $services }
   ```

   Wait ten seconds, since RabbitMQ updates these counts only every five, then run the command from step 2 once more. With nothing else running, nothing can add a message or take one, so this is the check that counts: every queue must show `0`, apart from those you noted in step 2. If any other queue holds a message, start everything again with `docker compose start` (and `poetry run app` in `backend/`, if you run the backend outside Docker) and go back to step 1.
4. Update the stack, generate the passwords, and rebuild and start it:

   ```bash
   git pull
   make init-env
   docker compose up -d --build
   ```

   On Windows, where `make` is usually not installed, run `installer\setup-autogpt.bat` in place of `make init-env`, then `docker compose up -d --build`. The script generates the passwords before anything reads them and starts the stack on the images you have; the second command rebuilds them and restarts what changed. Compose stops before it builds anything if `.env` has no `POSTGRES_PASSWORD`, which an install from before that setting existed lacks, so don't build first. With the queues empty and the stack stopped, neither restart loses anything. Don't run `docker compose down` during the upgrade: it throws away Redis's data, which holds work in progress such as AutoPilot's batch requests, while `up` keeps it.

   If `docker compose ps -a` listed a service named `redis` rather than `redis-0` to `redis-2`, your version predates the Redis cluster. The cluster starts empty, and what the old Redis held stays behind in its stopped container.

`make init-env` replaces each password that still holds the published value, adds the ones your `.env` files predate (`REDIS_PASSWORD`, for one), and keeps the database password the same in the three files that hold it: `POSTGRES_PASSWORD` in `.env`, `DB_PASS` in `backend/.env` and `DATABASE_URL` in `frontend/.env`. Passwords you set yourself are kept, but it stops with an error on one that Compose would take from the environment when the stack starts (`$NAME`, `${NAME}`, or the name alone on a line): write the password itself. The database applies `POSTGRES_PASSWORD` every time it starts, so its data stays where it is. A database, Redis, RabbitMQ or FalkorDB that `backend/.env` points at another host is a service of your own, and `make init-env` leaves its password as it is. The host that counts is the one the backend reads: `DB_HOST`; `REDIS_CLUSTER_HOST`, or else `REDIS_HOST`; `RABBITMQ_CLUSTER_HOST`, or else `RABBITMQ_HOST`; and `GRAPHITI_FALKORDB_HOST`.

If you upgraded without emptying the queues, workflow runs that were waiting to start stay **Queued**. An hour later an admin can start them again from **Admin › Diagnostics**, tab **Stuck Queued**, with **Requeue All**.

Don't skip `make init-env`. Without it, the stack goes on using only the passwords its `.env` files hold, and the backend logs a warning at startup while one of them is a value this repository published. A password an older file has no line for came from `.env.default`, which now leaves it blank:

* Compose refuses to start without `POSTGRES_PASSWORD` in `autogpt_platform/.env`.
* FalkorDB doesn't start without `GRAPHITI_FALKORDB_PASSWORD`, which a `backend/.env` created before v0.6.55 lacks.
* The backend can't log in to RabbitMQ without `RABBITMQ_DEFAULT_PASS`, which a `backend/.env` created before v0.4.10 lacks.

`make init-env` adds each of them, and the backend's startup log names the last two while they are missing.

If something outside the stack logs in to one of these services, such as a backup job or a database tool, give it the new password from those files. To reach a service from another machine, forward its port over SSH (for example `ssh -L 5432:127.0.0.1:5432 <host>`) rather than publishing it on the network again. Docker Engine 28 and later keep other machines away from ports published on `127.0.0.1`; older versions let a machine on the same local network reach them, so update Docker if yours is older.

If your database's `pg_hba.conf` asks local connections for a password, the database can't change its own password with only the new one, so it doesn't start and logs why. Start it once with `PGPASSWORD` set to its current password, for example in a `docker-compose.override.yml`:

```yaml
services:
  db:
    environment:
      PGPASSWORD: <the database's current password>
```

Remove the override once it has started.

### Upgrading an existing (Supabase-based) installation

Older versions of the platform ran authentication on a bundled Supabase stack. If you self-hosted before the switch to the built-in auth service, three things changed:

1. **Environment files**: refresh your `.env` files against the new `.env.default`s. `make init-env` copies `.env.default` → `.env` for `autogpt_platform`, `backend` and `frontend`, but only where no `.env` exists yet (it uses `cp -n`): it creates missing `.env` *files* and never overwrites an existing one. Apart from the service passwords (see [Upgrading: service passwords are generated per install](#upgrading-service-passwords-are-generated-per-install)), it does **not** merge newly-added variables into an `.env` you already have — for an existing install, diff each `.env` against its `.env.default` and copy the new keys across yourself. The `SUPABASE_*` URL/key variables are gone; the frontend now uses `BETTER_AUTH_SECRET` and `DATABASE_URL`.

   `ENCRYPTION_KEY`, `UNSUBSCRIBE_SECRET_KEY` and `BETTER_AUTH_SECRET` are no longer filled in by `.env.default`: follow [Upgrading: secrets are generated per install](#upgrading-secrets-are-generated-per-install) as part of this step.
2. **Database location**: the database now lives in a plain Postgres container (`pgvector/pgvector:pg15`) with its data in `autogpt_platform/data/db/data`. Your old data is untouched at `autogpt_platform/db/docker/volumes/db/data` but is no longer mounted.

   If you already booted the new stack while that folder was still called `volumes/`, move your data across before starting it again:

   ```sh
   mkdir -p autogpt_platform/data/db
   mv autogpt_platform/volumes/db/data autogpt_platform/data/db/data
   ```

   To carry the old Supabase data over, pick one of the two routes below. **Neither has been validated against a real old volume yet, so back up `autogpt_platform/db/docker/volumes/db/data` before you start.**

   The old bundled stack ran `supabase/postgres:15.8.1.049` and the new `db` service runs `pgvector/pgvector:pg15` — the same Postgres major, so reusing the data directory as-is is plausible rather than impossible. It is not guaranteed: a data directory is only portable between servers on the same major *and* with a compatible extension set / `shared_preload_libraries`. The Supabase image ships extensions and roles (`supabase_admin`, `pgjwt`, `pgsodium`, `pg_graphql`, …) that the plain pgvector image does not have, so a moved directory can fail to start, or start and then fail on objects that reference the missing extensions.

   *Fast path — reuse the data directory:*

   ```sh
   cd autogpt_platform
   docker compose stop -t 60                      # not down: that drops RabbitMQ's queues and Redis's data
   mkdir -p data/db
   rm -rf data/db/data                            # discards a freshly-initialised new DB
   cp -a db/docker/volumes/db/data data/db/data   # copy, so the old dir stays intact
   docker compose up -d db
   docker compose logs -f db
   ```

   On Linux the data directory is mode `0700` owned by the container's `postgres` user, so the copy needs `sudo cp -a` (the plain Postgres entrypoint fixes ownership on first boot). On Docker Desktop for macOS/Windows the plain `cp -a` is enough. It worked if the log settles on `database system is ready to accept connections` and your data is there:

   ```sh
   docker compose exec db psql -U postgres -c '\dn'
   docker compose exec db psql -U postgres -c 'select count(*) from platform."User"'
   ```

   It did not work if the container restart-loops with errors such as `could not open configuration file`, `could not access file "$libdir/…"`, `unrecognized configuration parameter`, `extension "…" is not available`, `data directory … has wrong ownership`, or `Permission denied` — Postgres is either missing something the Supabase image provided, or can't read the copied files. In that case `rm -rf data/db/data` and use the fallback.

   *Fallback — same-major dump and restore:*

   Step 1 starts a real Postgres server against your **original** data directory, read-write. Make sure you took the backup above first.

   ```sh
   cd autogpt_platform
   # 1. Bring the OLD image up against the OLD data directory, on a spare port.
   docker run --rm -d --name old-db -p 5433:5432 \
     -e POSTGRES_PASSWORD=your-super-secret-and-long-postgres-password \
     -v "$(pwd)/db/docker/volumes/db/data:/var/lib/postgresql/data" \
     supabase/postgres:15.8.1.049
   # 2. Dump without Supabase-owned ownership/ACL metadata.
   docker exec old-db pg_dump -U postgres -d postgres \
     --no-owner --no-privileges -Fc -f /tmp/old.dump
   docker cp old-db:/tmp/old.dump ./old.dump
   docker stop old-db
   # 3. Restore into the new db service (fresh volume).
   docker compose up -d db
   # A fresh volume runs db/init/00-init.sql, which creates an EMPTY auth.users
   # shim with only the columns the migrations need. Drop it first, or the
   # restore of your real auth.users collides with it and copies no users.
   docker compose exec db psql -U postgres -c 'DROP SCHEMA IF EXISTS auth CASCADE;'
   docker compose cp ./old.dump db:/tmp/old.dump
   docker compose exec db pg_restore -U postgres -d postgres \
     --no-owner --no-privileges /tmp/old.dump
   # 4. Confirm your accounts actually landed BEFORE migrating.
   docker compose exec db psql -U postgres -c 'select count(*) from auth.users'
   ```

   `pg_restore` reports errors for objects belonging to Supabase-only extensions and roles (`storage`, `realtime`, `supabase_admin`, `pgsodium`, …). Those are harmless. An error on **`auth.users`** is not: that table is where your accounts live, and the migration in step 3 below copies them out of it. If the count above is `0` — or `pg_restore` failed on `auth.users` — stop and fix the restore before continuing, or you will bring the stack up with no user accounts.

   Either way, finish with the migrations before bringing up the rest:

   ```sh
   docker compose run --rm migrate
   docker compose up -d
   ```
3. **User accounts and sessions**: a normal upgrade (stack stopped, then restarted on the new version) needs no extra step here.
   * Existing users are copied from the Supabase `auth.users` table into the Better Auth tables by the backend Prisma migration `20260716120000_copy_supabase_users_to_better_auth`, which runs as part of the `docker compose run --rm migrate` step above.
   * Existing browser sessions keep working because the frontend recognises old Supabase JWT cookies and swaps them for a Better Auth session on the user's next visit. Keep `SUPABASE_JWT_SECRET` set in `frontend/.env` for as long as you want that bridge open.
   * `frontend/scripts/migrate-supabase-auth.ts` is **optional** and only applies to a *live* cutover, where Supabase kept accepting signups while the new stack was already running. It is a re-runnable sweep for those stragglers; if you stopped the stack to upgrade, skip it.

     ```sh
     cd frontend && DATABASE_URL=postgresql://postgres:<password>@localhost:5432/postgres npx tsx scripts/migrate-supabase-auth.ts
     ```

A fresh install (empty database) needs none of this.

### Additional Notes

`make init-env` already generates a unique `ENCRYPTION_KEY` for your install, so there is normally nothing to change here. To rotate it — for example if you carried a key over from an older checkout, back when `.env.default` shipped a working (and therefore public) one — generate a new key in python:

```python
from cryptography.fernet import Fernet;Fernet.generate_key().decode()
```

Or run the following command in the `autogpt_platform/backend` directory:

```bash
poetry run cli gen-encrypt-key
```

Then replace the value in `autogpt_platform/backend/.env` and re-encrypt the stored integration credentials under it, with the previous value as `OLD_ENCRYPTION_KEY` — steps 4 and 5 of [Upgrading: secrets are generated per install](#upgrading-secrets-are-generated-per-install). Without that step the credentials stored under the previous key are unreadable and those integrations need reconnecting.

#### Auth transport security (JWKS over untrusted networks)

The backend verifies login tokens using signing keys it fetches from the frontend at `JWT_JWKS_URL` (`.../api/auth/jwks`). It trusts whatever keys that URL returns, so the fetch must run over a **trusted path**:

* **Plain `http` is fine** for `localhost` and for container-to-container traffic on a single host (the default `http://frontend:3000` over the Docker network) — there is no network segment for an attacker to sit on.
* **Use `https` on an untrusted network.** If you split the backend and frontend across separate machines on a LAN, or expose them publicly, a cleartext JWKS fetch can be intercepted: an attacker who swaps the published keys can forge tokens for any user. Put the frontend behind TLS (a reverse proxy), or issue **locally-trusted certificates** (e.g. [mkcert](https://github.com/FiloSottile/mkcert)), and point `JWT_JWKS_URL` at the `https://` URL.

The backend refuses to start if `JWT_JWKS_URL` is a cleartext `http://` URL pointing at a non-local host. If your network path is trusted (e.g. an isolated private LAN), set `JWKS_ALLOW_INSECURE_TRANSPORT=true` to boot anyway — a startup warning stays on record so the tradeoff is visible in logs.

This is a property of stateless JWT/JWKS verification in general, not something specific to AutoGPT. On a standard single-host Docker install you don't need to change anything.

### 📌 Windows Installation Note

When installing Docker on Windows, it is **highly recommended** to select **WSL 2** instead of Hyper-V. Using Hyper-V can cause compatibility issues with the platform's containers, leading to the `db` (Postgres) container being marked as **unhealthy**.

#### **Steps to enable WSL 2 for Docker:**

1. Install [WSL 2](https://learn.microsoft.com/en-us/windows/wsl/install).
2. Ensure that your Docker settings use WSL 2 as the default backend:
   * Open **Docker Desktop**.
   * Navigate to **Settings > General**.
   * Check **Use the WSL 2 based engine**.
3. Restart **Docker Desktop**.

#### **Already Installed Docker with Hyper-V?**

If you initially installed Docker with Hyper-V, you **don’t need to reinstall** it. You can switch to WSL 2 by following these steps:

1. Open **Docker Desktop**.
2. Go to **Settings > General**.
3. Enable **Use the WSL 2 based engine**.
4. Restart Docker.

🚨 **Warning:** Enabling WSL 2 may **erase your existing containers and build history**. If you have important containers, consider backing them up before switching.

For more details, refer to [Docker's official documentation](https://docs.docker.com/desktop/windows/wsl/).

### ⚠️ Podman Not Supported

AutoGPT requires **Docker** (Docker Desktop or Docker Engine). **Podman and podman-compose are not supported** and may cause path resolution issues, particularly on Windows.

If you see errors like:

```
Error: the specified Containerfile or Dockerfile does not exist, ..\..\autogpt_platform\backend\Dockerfile
```

This indicates you're using Podman instead of Docker. Please install [Docker Desktop](https://docs.docker.com/desktop/) and use `docker compose` instead of `podman-compose`.

## Development

### Frontend Development

#### Running the frontend locally

To run the frontend locally, you need to have Node.js and PNPM installed on your machine.

Install [Node.js](https://nodejs.org/en/download/) to manage dependencies and run the frontend application.

Install [PNPM](https://pnpm.io/installation) to manage the frontend dependencies.

Run the service dependencies (backend, database, message queues, etc.):

```sh
docker compose --profile local up deps_backend --build --detach
```

Go to the `autogpt_platform/frontend` directory:

```sh
cd frontend
```

Install the dependencies:

```sh
pnpm install
```

Generate the API client:

```sh
pnpm generate:api-client
```

Run the frontend application:

```sh
pnpm dev
```

#### Formatting & Linting

Auto formatter and linter are set up in the project. To run them:

Format the code:

```sh
pnpm format
```

Lint the code:

```sh
pnpm lint
```

*Or for both frontend and backend, from the root:*

```sh
make format
```

#### Testing

To run the tests, you can use the following command:

```sh
pnpm test
```

### Backend Development

#### Running the backend locally

To run the backend locally, you need Python 3.11, 3.12 or 3.13 installed on your machine.

Install [Poetry](https://python-poetry.org/docs/#installation) to manage dependencies and virtual environments.

Run the backend dependencies (database, message queues, etc.):

```sh
docker compose --profile local up deps --build --detach
```

*Or equivalently with Makefile:*

```sh
make start-core
```

Go to the `autogpt_platform/backend` directory:

```sh
cd backend
```

Install the dependencies:

```sh
poetry install --with dev
```

Run the backend server:

```sh
poetry run app
```

*Or from within `autogpt_platform`:*

```sh
make run-backend
```

#### Formatting & Linting

Auto formatter and linter are set up in the project. To run them:

Format the code:

```sh
poetry run format
```

Lint the code:

```sh
poetry run lint
```

*Or format both frontend and backend at once:*

```sh
make format
```

#### Testing

To run the tests:

```sh
poetry run pytest -s
```

## Adding a New Agent Block

To add a new agent block, you need to create a new class that inherits from `Block` and provides the following information:

* All the block code should live in the `blocks` (`backend.blocks`) module.
* `input_schema`: the schema of the input data, represented by a Pydantic object.
* `output_schema`: the schema of the output data, represented by a Pydantic object.
* `run` method: the main logic of the block.
* `test_input` & `test_output`: the sample input and output data for the block, which will be used to auto-test the block.
* You can mock the functions declared in the block using the `test_mock` field for your unit tests.
* Once you finish creating the block, you can test it by running `poetry run pytest backend/blocks/test/test_block.py -s`.
* Create a Pull Request to the `dev` branch of the repository with your changes so you can share it with the community :)


# Run AutoGPT in One Docker Container

The image packages the AutoGPT Platform frontend and backend together with PostgreSQL, a three-node Valkey cluster, RabbitMQ, nginx, and FalkorDB. Only nginx listens on the container's public interface, on port `3000`. The FalkorDB service is a core part of this image and always runs; Graphiti memory is enabled by the image's default configuration and still requires a working model-provider profile.

All durable state is stored under `/data`. Use a named Docker volume for every installation you intend to keep.

## Requirements

* Docker Engine or Docker Desktop capable of running Linux containers on `linux/amd64` or `linux/arm64`. Building locally also requires Docker Buildx.
* More than the measured 5–6 GiB of appliance memory use, with additional headroom for agents, local models, and workload growth.
* To build the image from source instead of pulling it, more than 8 GiB of memory available to Docker while it builds. The frontend build step alone peaks at about 7.5 GiB, so a build limited to 8 GiB can still be killed partway through. On a smaller host, use the published image.
* Host storage with enough capacity and throughput for the image, the growing `/data` volume, and at least one complete compressed backup archive alongside the live data. Shutdown and backup time depend on storage throughput and fsync latency; SSD-class storage is recommended but not a measured support floor.

There is no measured minimum CPU count or supported concurrent-run ceiling; performance depends on the enabled services and workload.

## Get an image

Use `latest` for the most recent fully verified stable AutoGPT Platform image:

```bash
IMAGE=significantgravitas/autogpt:latest
docker pull "${IMAGE}"
```

For a reproducible installation, replace `latest` with an immutable `vX.Y.Z` tag or manifest digest. Docker image tags map to source releases as follows:

* `latest` points to the newest stable AutoGPT Platform release.
* `vX.Y.Z` is the immutable image for GitHub release `autogpt-platform-beta-vX.Y.Z`.
* `sha-<git-sha>` is the immutable image for the exact source revision of a release. Each release publishes one for the commit it was built from; `dev` commits are built and tested in CI but not published.

`canary-sha-*` tags are unsupported pre-release validation artifacts.

To build from source instead, run Docker Buildx Bake from the repository root:

```bash
docker buildx bake \
  --file autogpt_platform/single-container/docker-bake.hcl \
  --load \
  single-container
IMAGE=autogpt-platform:single-container-dev
```

Commands below use the shell variable `IMAGE`, whether it identifies the Docker Hub image, a pinned digest, or the local build.

The image has a complete default command, so you can optionally perform a foreground boot check:

```bash
docker run --rm "${IMAGE}"
```

Skip this check if you want to proceed directly to a persistent installation; Quick start performs the same first-boot work against its named volume. The check runs in the foreground. First boot may take several minutes and use roughly 5–6 GiB of memory; press Ctrl-C to stop it. That interruption is safe for this check because `--rm` discards its anonymous `/data` volume. Do not generalize it to an installation that uses a named volume. The command does not publish the web port. Use the full setup below for a usable installation.

## Quick start

Create a private environment file:

```bash
umask 077
touch autogpt.env
chmod 600 autogpt.env
```

When working from a source checkout, you can copy `autogpt_platform/single-container/.env.example` instead to see common optional settings. The backend-only `BEHAVE_AS` control and its limits are documented in [Security boundary](#security-boundary).

Edit the file and set at least the public URL and exact address for the first account:

```dotenv
AUTOGPT_PUBLIC_URL=http://localhost:3000
AUTH_SIGNUP_ALLOWLIST=owner@example.com
```

Replace `owner@example.com` with the email address for the intended first account. Passwords must contain at least 12 characters. Exact-address allowlisting compares the email string asserted during signup; because this image does not support required email verification, it is not proof of mailbox ownership. New-account creation defaults open when the allowlist is empty; the value above immediately restricts signup to that address. If the allowlist is omitted, anyone who can reach the published port can create an account until `AUTH_ALLOW_NEW_ACCOUNTS=false` is applied. The run command below binds the app only to loopback. Create and promote the administrator and close signup while the app is still loopback-only. Configure an HTTPS origin before entering credentials on any LAN or remote deployment.

Provider keys are not required to boot, create an account, use Builder, or run provider-free blocks. Model-backed functions return their normal actionable missing-credential error until you configure a profile from [Models and memory](#models-and-memory).

Start the appliance:

```bash
docker run --detach --name autogpt \
  --restart unless-stopped \
  --shm-size 2g \
  --ulimit nofile=65536:65536 \
  --log-driver json-file \
  --log-opt max-size=50m \
  --log-opt max-file=5 \
  --env-file autogpt.env \
  --publish 127.0.0.1:3000:3000 \
  --volume autogpt-data:/data \
  "${IMAGE}"
```

The `--shm-size 2g` allocation raises the container's `/dev/shm` above Docker's 64 MB default; the bundled PostgreSQL and browser tooling both use shared memory. The `nofile` limit sets a predictable per-process file-descriptor ceiling for the bundled services. The JSON log options retain about five 50 MB files instead of allowing container logs to grow without a bound.

Wait for the complete appliance to become healthy:

```bash
docker inspect --format '{{.State.Health.Status}}' autogpt
docker logs --tail 100 --follow autogpt
```

Do not stop the container while the first boot is applying database migrations. If a migration is interrupted, later boots refuse to continue and the logs identify the migration and recovery choices. For a brand-new empty installation, remove that installation's unused `/data` volume and start again. For an existing installation, restore the pre-upgrade backup. Use `prisma migrate resolve` only after determining whether that migration's changes reached the database.

For an empty first boot that used the exact Quick start names, first verify that the volume contains no user data, then discard that failed installation:

```bash
docker stop autogpt
docker rm autogpt
docker volume rm autogpt-data
```

Repeat Quick start afterward. The failed appliance can remain in a restart loop until explicitly stopped, so `docker exec` is not a reliable way to run `prisma migrate resolve`; that advanced path requires PostgreSQL running against the affected volume from a separate recovery environment. Do not use it without inspecting whether the migration's database changes completed.

Test installations used about 5–6 GiB of memory during startup and steady-state health checks. This is measured guidance, not a guaranteed minimum; allow headroom for enabled services, agents, local models, and workload growth. On Docker Desktop for macOS or Linux, or Windows in Hyper-V mode, make sure the VM's memory allocation in **Settings → Resources** exceeds that observed use and leaves the same headroom. With the default WSL 2 backend on Windows, set the limit with `memory=` under `[wsl2]` in `%UserProfile%\.wslconfig` instead, then run `wsl --shutdown`.

Open `http://localhost:3000`, create the intended account, and promote it:

```bash
docker exec autogpt autogpt-admin promote owner@example.com
```

Replace `owner@example.com` with the email address of the account you created. Sign out and back in after promotion so the new session has the administrator role.

Then set this in the environment file:

```dotenv
AUTH_ALLOW_NEW_ACCOUNTS=false
```

Apply the change by replacing only the container. Keep the same named volume:

```bash
docker stop autogpt
docker rm autogpt
```

Repeat the `docker run` command above. Removing the container does not remove the `autogpt-data` volume.

## Stopping

`docker stop autogpt` is designed and tested to complete inside Docker's stock 10-second timeout, so no host-wide timeout change is needed; a longer host timeout does not extend the internal Supervisor caps. The shipped one-second runtime, five-second state, and one-second event-listener phases measured about 8.4 seconds in the shutdown test setup. That is a narrow measured margin, not a graceful-shutdown guarantee for slower storage, so do not shorten Docker's timeout. Runtime processes are signaled first. PostgreSQL, RabbitMQ, Valkey, and FalkorDB are signaled afterward and each gets at most five seconds to exit before Supervisor forces it down. The event listener stops last. Larger or slower state may require normal crash recovery on the next boot.

Agent runs still executing when the container stops are abandoned. Their queue messages can be dropped and their execution rows can remain `RUNNING`, but they do not resume. Start a new run after restart.

Supervisor process names are group-qualified. Pass the appliance's Supervisor configuration to see names such as `runtime:rest` and `state:postgres`:

```bash
docker exec autogpt supervisorctl \
  -c /opt/autogpt/single-container/supervisor/supervisord.conf status
```

`runtime:bootstrap` runs once per boot, so it shows `EXITED` after a successful start.

## Port and public URL

Container port `3000` does not change. To use host port `3300`, change the run command to:

```
--publish 127.0.0.1:3300:3000
```

and set:

```dotenv
AUTOGPT_PUBLIC_URL=http://localhost:3300
```

`AUTOGPT_PUBLIC_URL` must be the exact origin used in the browser, including the scheme and any non-default port. Docker cannot discover the host-side port mapping from inside the container. A mismatch breaks authentication actions, callbacks, cookies, and generated links.

For LAN or remote access, keep AutoGPT bound to loopback and place it behind a TLS reverse proxy running outside the AutoGPT container. The proxy provides HTTPS and forwards requests to port `3000`; AutoGPT handles application routing internally.

Before exposing the proxy, complete the [Account policy](#account-policy) bootstrap, promote the intended administrator, and close new-account signup. The bundled nginx records the external proxy as the immediate client, so the proxy must preserve its own client-attribution logs and enforce any per-client IP rate limits or access rules.

Set `AUTOGPT_PUBLIC_URL` to the browser-visible HTTPS origin, for example:

```dotenv
AUTOGPT_PUBLIC_URL=https://agents.example.com
```

Do not expose the container's plaintext port directly or leave the URL at the localhost default.

## Account policy

New-account creation defaults open so the first administrator can sign up. A nonempty allowlist immediately restricts who can create an account. Existing accounts can still sign in after signup is closed.

To allow only selected accounts during provisioning, keep signup enabled and set an allowlist:

```dotenv
AUTH_ALLOW_NEW_ACCOUNTS=true
AUTH_SIGNUP_ALLOWLIST=owner@example.com
```

The allowlist accepts exact email addresses and entries beginning with `@` for an entire domain. Separate multiple entries with commas, for example `AUTH_SIGNUP_ALLOWLIST=owner@example.com,teammate@example.com`. It applies to email/password signup and any first-time account creation through a configured provider endpoint; the bundled UI does not show social-login buttons. Prefer exact addresses; use a domain entry only for a domain you fully control, then narrow the list after bootstrap. Domain matching trusts the identity provider's asserted email; public email domains such as `@gmail.com` are not safe allowlist entries.

Setting `AUTH_ALLOW_NEW_ACCOUNTS=false` blocks all new accounts regardless of the allowlist; recreate the container with the same volume to apply the setting after promoting the intended administrator.

Fresh installations should keep `AUTOGPT_ENABLE_LEGACY_AUTH=false`. Enable it only when intentionally migrating an existing legacy symmetric-JWT setup.

Required email verification is not supported by this image and intentionally stops startup if enabled. Keep:

```dotenv
AUTH_REQUIRE_EMAIL_VERIFICATION=false
```

Postmark can provide password-reset and email-change messages:

```dotenv
POSTMARK_SERVER_API_TOKEN=
POSTMARK_SENDER_EMAIL=
POSTMARK_WEBHOOK_TOKEN=
```

Set `POSTMARK_SENDER_EMAIL` to a sender verified by your Postmark account. This does not add account-verification support. Without these Postmark settings, there is no self-service password-reset email or appliance CLI for resetting a password. Store the administrator password securely before closing signup.

### Add or recover an administrator

To add an account after signup is closed, temporarily bind the appliance to loopback, set `AUTH_ALLOW_NEW_ACCOUNTS=true`, and set `AUTH_SIGNUP_ALLOWLIST` to that account's exact email address. Replace the container with the same named volume and original launch options, create the account, and promote it:

```bash
docker exec autogpt autogpt-admin promote new-owner@example.com
```

Then set `AUTH_ALLOW_NEW_ACCOUNTS=false` and replace the container again. If an administrator password is lost and Postmark password reset was not configured, this procedure creates a replacement administrator; it does not reset the existing account's password. Keep the port loopback-only throughout recovery, or enforce equivalent HTTPS and network access controls before reopening signup.

Setting both `AUTH_*_CLIENT_ID` and `AUTH_*_CLIENT_SECRET` values for a social provider registers reachable OAuth sign-in and callback endpoints. The bundled local-mode frontend does not render buttons for them, so leave each pair empty unless you intentionally use that direct provider flow. `AUTH_SIGNUP_ALLOWLIST` and `AUTH_ALLOW_NEW_ACCOUNTS` still gate first-time account creation through those endpoints. Agent block OAuth integrations use the separate unprefixed credentials. The prebuilt frontend does not support configuring Google Picker public keys at runtime.

## Models and memory

The FalkorDB service always runs and persists under `/data`; it has no supported process toggle in this distribution. Graphiti memory is enabled by the image's default feature configuration.

The image does not include model-provider credentials. This does not block startup, authentication, Builder, or provider-free blocks. Configure one of the following profiles before expecting AutoPilot and memory extraction to work; until then, provider-backed requests return the same missing-credential errors as other AutoGPT deployment modes.

### OpenRouter with OpenAI embeddings

The default remote profile uses OpenRouter for chat and memory extraction and OpenAI for embeddings:

```dotenv
CHAT_USE_LOCAL=false
CHAT_USE_OPENROUTER=true
OPEN_ROUTER_API_KEY=YOUR_OPENROUTER_KEY
OPENAI_API_KEY=YOUR_OPENAI_KEY
```

Both keys are needed for the complete memory path. `OPENAI_API_KEY` alone does not select direct OpenAI routing for AutoPilot.

### Anthropic chat with remote memory

To route AutoPilot directly to Anthropic:

```dotenv
CHAT_USE_LOCAL=false
CHAT_USE_OPENROUTER=false
ANTHROPIC_API_KEY=YOUR_ANTHROPIC_KEY
OPEN_ROUTER_API_KEY=YOUR_OPENROUTER_KEY
OPENAI_API_KEY=YOUR_OPENAI_KEY
```

The Anthropic key changes the AutoPilot chat transport. The OpenRouter and OpenAI keys are still required by Graphiti's default remote extraction and embedding clients.

### Ollama or another local OpenAI-compatible server

For the default local profile, install both the chat model and memory embedding model on the Docker host:

```bash
ollama pull hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
ollama pull nomic-embed-text
```

Configure the host's Ollama service with `OLLAMA_CONTEXT_LENGTH=32768` and restart Ollama before using AutoPilot. This is an Ollama-server setting, not an `autogpt.env` entry; Ollama's smaller default context cannot hold AutoPilot's roughly 8k-token system prompt.

The chat model and exact `Q4_K_M` artifact are published in the [Unsloth Qwen3.5-4B-GGUF repository](https://huggingface.co/unsloth/Qwen3.5-4B-GGUF/tree/main). Keep the model identifier in the pull command and environment setting identical. The 4B model is the smaller default chosen for this all-in-one appliance's shared memory budget; larger models remain optional when the host has sufficient resources.

Then set:

```dotenv
CHAT_USE_LOCAL=true
CHAT_BASE_URL=http://host.docker.internal:11434/v1
CHAT_API_KEY=ollama
CHAT_FAST_STANDARD_MODEL=hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
GRAPHITI_LLM_MODEL=hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
GRAPHITI_RERANKER_MODEL=hf.co/unsloth/Qwen3.5-4B-GGUF:Q4_K_M
```

`CHAT_API_KEY` must be non-empty even if the local server ignores it. The local transport points Graphiti at the same base URL, and its extraction client uses `CHAT_API_KEY`. Graphiti's own local default is `hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M`, so the two `GRAPHITI_*` lines keep extraction and reranking on the 4B chat model; embeddings use `nomic-embed-text`. If you choose another chat model, set `GRAPHITI_LLM_MODEL` and `GRAPHITI_RERANKER_MODEL` to a model that the endpoint serves. Set `GRAPHITI_EMBEDDER_MODEL` too when its embedding model uses another slug.

Graphiti's embedder prefers `CHAT_OPENAI_API_KEY` or `OPENAI_API_KEY` when either is set, and sends that key to this endpoint. If you keep `OPENAI_API_KEY` for blocks or transcription, also set `GRAPHITI_EMBEDDER_API_KEY` to the value of `CHAT_API_KEY`.

On Docker Engine, add `--add-host host.docker.internal:host-gateway` to the run command for this local-model profile. Ollama must then also listen on an address the container can reach, because it binds only to `127.0.0.1` by default: set `OLLAMA_HOST=0.0.0.0:11434` in the same service configuration as `OLLAMA_CONTEXT_LENGTH`, and limit port `11434` with the host firewall to the Docker bridge and other hosts you trust. Docker Desktop provides that hostname and reaches the host's loopback without either change. To apply the flag to an existing container, stop and remove the container, then repeat the Quick start command with the same named volume and the added flag. Small quantized models reduce memory requirements, but latency and answer quality remain hardware-, model-, and workload-dependent; select another compatible model when the default does not meet your needs.

Check connectivity from the running appliance:

```bash
docker exec autogpt \
  curl --fail --show-error http://host.docker.internal:11434/api/tags
```

The same settings can point at a remote vLLM, LocalAI, LM Studio, LiteLLM, or other OpenAI-compatible HTTPS endpoint, provided it serves every configured chat and Graphiti model slug. Do not expose an unauthenticated model server to the internet. See the [AutoPilot local-LLM guide](https://agpt.co/docs/platform/using-ai-services/copilot-local-llm) for model and context-window guidance.

Additional provider keys consumed by backend blocks may be placed in the same environment file. Most remain backend-only. The Next.js server process always receives the required `BETTER_AUTH_SECRET` and can receive configured `AUTH_*` provider client secrets, `OPENAI_API_KEY`, `TRANSCRIPTION_API_KEY`, and the legacy `SUPABASE_JWT_SECRET`. These values remain server-side process environment and are not baked into the browser bundle.

### AutoPilot spend caps

AutoGPT Cloud limits each account's AutoPilot spend per day and per week, measured from the provider-reported cost of every chat turn. This image disables both caps by default because you pay the model provider directly: `CHAT_DAILY_COST_LIMIT_MICRODOLLARS` and `CHAT_WEEKLY_COST_LIMIT_MICRODOLLARS` are set to `-1` unless you provide a value. To guard an OpenRouter or Anthropic bill, set either variable to a positive amount in microdollars (1 USD = `1000000`):

```dotenv
CHAT_DAILY_COST_LIMIT_MICRODOLLARS=5000000
CHAT_WEEKLY_COST_LIMIT_MICRODOLLARS=20000000
```

The daily window resets at midnight UTC and the weekly window at Monday 00:00 UTC. Once a window is exhausted, further AutoPilot turns are refused with HTTP 429 until it resets. The caps only meter the platform-routed chat transport: ChatGPT/Codex subscription turns are exempt, and local OpenAI-compatible servers report no cost, so they never count against a cap.

### Database connection tuning

`DB_CONNECTION_LIMIT` controls each backend role's Prisma connection pool and accepts `1` through `5` (default `5`). `DB_CONNECT_TIMEOUT` controls connection setup and accepts `1` through `600` seconds (default `60`), while `DB_POOL_TIMEOUT` controls how long a request can wait for a pooled connection and accepts `1` through `3600` seconds (default `300`). All roles share the bundled PostgreSQL instance, so do not raise per-role limits beyond the enforced range. If requests stall under concurrent runs, inspect service and PostgreSQL logs for pool exhaustion before changing these values.

## Security boundary

`BEHAVE_AS` defaults to `local`, which bypasses subscription entitlement gating for policies that opt into a local exemption, which currently includes every defined entitlement. `local` is a broader product behavior profile: it can also enable blocks intentionally disabled in hosted mode, select self-host model routing, and change diagnostics or telemetry behavior. This is appropriate for single-tenant self-hosting. Any multi-tenant or hosted deployment must set `BEHAVE_AS=cloud` for backend entitlement enforcement, but that setting is not a complete hosted-mode switch: the bundled frontend is compiled in local mode. Cloud mode also expects the hosted model catalog, subscription tiers, and payment controls. Do not treat this image as a turnkey multi-tenant hosted distribution. Use the supported cloud deployment and build, and review its full security boundary.

The browser-facing nginx and Next.js processes run under Unix identities that are separate from backend services. The frontend receives an explicit runtime environment allowlist and connects to PostgreSQL through a passwordless local peer role restricted to the Better Auth tables and columns it needs. It does receive `BETTER_AUTH_SECRET`, configured `AUTH_*` social-login client secrets, and optional OpenAI, transcription, and legacy-JWT values because the Next.js server uses them. Those values remain server-side and are not baked into the browser bundle. The frontend does not receive the PostgreSQL superuser password, RabbitMQ or Valkey passwords, the FalkorDB password, the internal service key, or encryption keys.

Generated database, queue, cache, memory, encryption, authentication, signing, and internal service secrets are created on first boot and stored in `/data/config/runtime.env` as `root:root` mode `0600`. Reusing the named volume reuses those secrets. Supplying a different value for a persisted secret on a later boot fails instead of silently rotating it. A volume created before the internal service key existed gets one the first time a newer image starts.

### Suspected secret exposure

There is no supported in-place rotation for the generated secrets in `/data/config/runtime.env`. If that file or a plaintext backup is exposed, isolate the installation and revoke external provider and OAuth credentials. Create a replacement installation on a new volume, transfer only non-secret agent definitions through supported export/import flows, and reconnect credentials. Every backup from the old installation contains the same generated secrets, so restoring an older one does not rotate them. Do not edit `runtime.env`, selectively mix state directories, or treat a same-installation backup as secret-exposure recovery.

These controls limit compromise between co-located processes, but Docker daemon administrators and anyone who can read the data volume remain fully trusted. Treat the host environment file, `/data`, backups, and unredacted diagnostic output as secret-bearing material.

Only port `3000` should be published. Internal AppService RPC is bound to the container's loopback interface and requires the internal service key, and Valkey traffic requires authentication. On Linux, Docker-managed forwarding can bypass firewall policy expressed only through tools such as UFW. The loopback address in `--publish 127.0.0.1:3000:3000` is the exposure control; changing it to a non-loopback address can expose the app regardless of an INPUT-chain rule.

## Optional processes

FalkorDB is mandatory. Bot services and their internal linking manager default off. After configuring a supported chat adapter and its public routes, enable both optional processes with:

```dotenv
AUTOGPT_ENABLE_BOT_SERVICES=true
```

For Discord, configure `AUTOPILOT_BOT_DISCORD_TOKEN`. Telegram requires both `AUTOPILOT_BOT_TELEGRAM_TOKEN` and `AUTOPILOT_BOT_TELEGRAM_WEBHOOK_SECRET`, plus a public HTTPS webhook registered with Telegram. Leave the toggle `false` until the chosen adapter credentials and routes are ready. This setting stops processes; it does not make the image smaller.

## Persistence

The named volume mounted at `/data` contains all durable appliance state:

| Path                                   | Contents                                                       |
| -------------------------------------- | -------------------------------------------------------------- |
| `/data/config`                         | Generated runtime secrets and backend configuration            |
| `/data/postgres`                       | Authentication and platform data                               |
| `/data/rabbitmq`                       | Queue state                                                    |
| `/data/valkey`                         | Three-node Valkey state                                        |
| `/data/falkordb`                       | Graphiti memory data                                           |
| `/data/workspaces`                     | User workspaces                                                |
| `/data/store-media`                    | Marketplace images and videos when GCS is not configured       |
| `/data/home` and `/data/frontend-home` | Application home directories                                   |
| `/data/cache`                          | Regenerable backend and Next.js caches (excluded from backups) |

Do not mount one volume into two running AutoGPT containers. Use a different named volume for every installation.

To confirm which volume a container uses:

```bash
docker inspect --format \
  '{{range .Mounts}}{{if eq .Destination "/data"}}{{.Name}}{{end}}{{end}}' \
  autogpt
```

## Cold backup

The block below stops the running appliance before archiving its coupled service state. It uses the running container's exact local image ID captured before the stop, writes to a unique partial file, and promotes it to the final timestamped name only after `tar` succeeds. This produces a stopped-volume snapshot. If a state service exceeds its five-second shutdown cap, the snapshot reflects a crash stop rather than a fully graceful shutdown. Rehearse restoration and verify service recovery before relying on it. The appliance remains unavailable while `tar` creates and gzip-compresses the archive; duration depends on `/data`, host storage, and CPU performance. Before stopping it, ensure the host filesystem that contains `BACKUP_DIR` has room for a complete compressed archive. The block enforces owner-only mode `0700` on that directory, including when it already exists:

Start the appliance and verify full health before backing it up. The block intentionally refuses an already stopped or crashed appliance because it must own the coordinated transition from running to stopped state.

There is no supported consistent hot-backup procedure for this coupled volume. If this outage is unacceptable, use a distributed deployment and the service-native backup procedures for its independently managed data services.

```bash
(
  set -euo pipefail
  BACKUP_IMAGE_ID="$(docker inspect --format '{{.Image}}' autogpt)"
  BACKUP_IMAGE_REF="$(docker inspect --format '{{.Config.Image}}' autogpt)"
  BACKUP_IMAGE_DIGEST="$(docker image inspect --format \
    '{{if .RepoDigests}}{{index .RepoDigests 0}}{{end}}' \
    "${BACKUP_IMAGE_ID}")"
  BACKUP_VOLUME="$(docker inspect --format \
    '{{range .Mounts}}{{if eq .Destination "/data"}}{{.Name}}{{end}}{{end}}' \
    autogpt)"
  BACKUP_DIR="${BACKUP_DIR:-${PWD}/autogpt-backups}"
  RESTART_AFTER_BACKUP="${RESTART_AFTER_BACKUP:-true}"
  BACKUP_COMPLETE=false
  ARTIFACTS_STARTED=false
  LOCK_HELD=false
  MANAGE_CONTAINER=false
  BACKUP_FILE=''
  PARTIAL_FILE=''
  CHECKSUM_FILE=''
  CHECKSUM_PARTIAL=''

  if [[ "${RESTART_AFTER_BACKUP}" != true && \
        "${RESTART_AFTER_BACKUP}" != false ]]; then
    echo "RESTART_AFTER_BACKUP must be true or false" >&2
    exit 1
  fi
  : "${BACKUP_VOLUME:?Container has no named volume mounted at /data}"
  BACKUP_VOLUME_LABELS="$(docker volume inspect --format '{{json .Labels}}' \
    "${BACKUP_VOLUME}")"
  if [[ "${BACKUP_VOLUME_LABELS}" == *'"com.docker.volume.anonymous"'* || \
        "${BACKUP_VOLUME}" =~ ^[0-9a-f]{64}$ ]]; then
    echo "Refusing backup because /data uses an anonymous volume" >&2
    exit 1
  fi
  mkdir -p "${BACKUP_DIR}"
  BACKUP_DIR="$(cd "${BACKUP_DIR}" && pwd -P)"
  chmod 700 "${BACKUP_DIR}"
  LOCK_CONTAINER=autogpt-backup-lock

  # Invoked by the EXIT and signal traps below.
  # shellcheck disable=SC2329
  finish_backup() {
    local exit_status="$1"
    local container_running
    trap - EXIT HUP INT TERM
    if [[ "${exit_status}" -ne 0 && "${ARTIFACTS_STARTED}" == true && \
          "${BACKUP_COMPLETE}" != true ]]; then
      if ! rm -f \
        "${BACKUP_DIR}/${PARTIAL_FILE}" \
        "${BACKUP_DIR}/${CHECKSUM_PARTIAL}" \
        "${BACKUP_DIR}/${BACKUP_FILE}" \
        "${BACKUP_DIR}/${CHECKSUM_FILE}"; then
        echo "Backup failed and partial files could not be removed" >&2
        exit_status=1
      else
        echo "Backup failed; no incomplete backup artifacts were kept" >&2
      fi
    fi
    container_running=''
    if [[ "${MANAGE_CONTAINER}" == true ]]; then
      container_running="$(docker inspect --format '{{.State.Running}}' \
        autogpt 2>/dev/null || true)"
    fi
    if [[ "${MANAGE_CONTAINER}" == true && \
          ( "${exit_status}" -ne 0 || \
            "${RESTART_AFTER_BACKUP}" == true ) ]]; then
      if [[ "${container_running}" != true ]] && \
         ! docker start autogpt >/dev/null; then
        echo "AutoGPT is not running; automatic restart failed" >&2
        exit_status=1
      fi
    fi
    if [[ "${LOCK_HELD}" == true ]] && \
       ! docker rm --volumes "${LOCK_CONTAINER}" >/dev/null; then
      echo "Backup finished but its lock container could not be removed" >&2
      exit_status=1
    fi
    exit "${exit_status}"
  }

  trap 'finish_backup "$?"' EXIT
  trap 'finish_backup 129' HUP
  trap 'finish_backup 130' INT
  trap 'finish_backup 143' TERM

  if docker create --name "${LOCK_CONTAINER}" \
    --entrypoint /bin/true "${BACKUP_IMAGE_ID}" >/dev/null; then
    LOCK_HELD=true
  else
    echo "Refusing backup because another backup may be running or its lock is stale" >&2
    exit 1
  fi
  BACKUP_FILE="autogpt-data-$(date -u +%Y%m%dT%H%M%SZ).tgz"
  PARTIAL_FILE="${BACKUP_FILE}.partial"
  CHECKSUM_FILE="${BACKUP_FILE}.sha256"
  CHECKSUM_PARTIAL="${CHECKSUM_FILE}.partial"
  if [[ -e "${BACKUP_DIR}/${BACKUP_FILE}" || \
        -e "${BACKUP_DIR}/${PARTIAL_FILE}" || \
        -e "${BACKUP_DIR}/${CHECKSUM_FILE}" || \
        -e "${BACKUP_DIR}/${CHECKSUM_PARTIAL}" ]]; then
    echo "Refusing to overwrite an existing backup: ${BACKUP_FILE}" >&2
    exit 1
  fi
  if [[ "$(docker inspect --format '{{.State.Running}}' autogpt)" != true ]]; then
    echo "Refusing backup because the autogpt container is not running" >&2
    exit 1
  fi

  MANAGE_CONTAINER=true
  docker stop autogpt
  umask 077
  ARTIFACTS_STARTED=true
  touch "${BACKUP_DIR}/${PARTIAL_FILE}"
  chmod 600 "${BACKUP_DIR}/${PARTIAL_FILE}"

  docker run --rm \
    --network none \
    --entrypoint tar \
    --volume "${BACKUP_VOLUME}:/data:ro" \
    --volume "${BACKUP_DIR}:/backup" \
    "${BACKUP_IMAGE_ID}" \
    --exclude='./cache' -czf "/backup/${PARTIAL_FILE}" -C /data .

  if [[ "${RESTART_AFTER_BACKUP}" == true ]]; then
    docker start autogpt >/dev/null
  fi

  BACKUP_SHA256="$(docker run --rm \
    --network none \
    --entrypoint sha256sum \
    --volume "${BACKUP_DIR}:/backup:ro" \
    "${BACKUP_IMAGE_ID}" \
    "/backup/${PARTIAL_FILE}" | awk '{print $1}')"
  if [[ ! "${BACKUP_SHA256}" =~ ^[0-9a-f]{64}$ ]]; then
    echo "Backup checksum is not a valid SHA-256 digest" >&2
    exit 1
  fi
  printf '%s  %s\n' "${BACKUP_SHA256}" "${BACKUP_FILE}" \
    > "${BACKUP_DIR}/${CHECKSUM_PARTIAL}"
  mv "${BACKUP_DIR}/${PARTIAL_FILE}" "${BACKUP_DIR}/${BACKUP_FILE}"
  mv "${BACKUP_DIR}/${CHECKSUM_PARTIAL}" \
    "${BACKUP_DIR}/${CHECKSUM_FILE}"
  BACKUP_COMPLETE=true
  printf 'Backup written to %s with checksum %s\n' \
    "${BACKUP_DIR}/${BACKUP_FILE}" "${BACKUP_SHA256}"
  printf 'Image reference: %s\nImage digest: %s\nLocal image ID: %s\n' \
    "${BACKUP_IMAGE_REF}" "${BACKUP_IMAGE_DIGEST:-unavailable}" \
    "${BACKUP_IMAGE_ID}"
)
```

By default, the block restarts the unchanged installation as soon as the archive completes, before calculating its checksum. The exit trap also attempts a restart if a backup command fails. For an upgrade, export `RESTART_AFTER_BACKUP=false` only for that one block and immediately `unset` it afterward, whether the backup succeeds or fails. A successful upgrade backup then leaves the appliance stopped at the cutover snapshot. With the default setting, verify that it is running again:

```bash
docker inspect --format '{{.State.Status}}' autogpt
```

The atomic lock is a stopped helper container named `autogpt-backup-lock`, so it serializes backups of `autogpt` even when callers choose different backup directories. Catchable exits and signals remove it. After a shell is killed with `SIGKILL` or the host crashes, first verify that no backup process is still running; then remove only a stale lock with `docker rm --volumes autogpt-backup-lock` before retrying. Inspect `BACKUP_DIR` for stale `*.partial` files from the interrupted run and remove them only after the same check. They can contain plaintext secrets and are not valid backups.

The block writes the checksum to `<archive>.sha256` and prints the container's configured image reference, an immutable repository digest when available, and the host-local image ID. Record an immutable tag or digest that resolves on the restoring host, the environment file, and the Git commit beside the archive. For a local-only build, preserve the image separately with an immutable registry tag or `docker save`, and load it before restoring. The archive is plaintext and contains user content, provider credentials, auth keys, and database passwords. Encrypt it with an approved backup mechanism and remove unencrypted staging copies.

The anonymous-volume guard also rejects a 64-character lowercase hexadecimal volume name as a conservative fallback for Docker engines that omit the anonymous-volume label. Use a conventional descriptive name for a manually created volume.

## Restore into a new volume

Restore into a new named volume so the source remains recoverable. Set `BACKUP_FILE` to the timestamped archive name and `RESTORE_IMAGE` to the immutable tag or digest recorded with that backup. If the archive is not under `./autogpt-backups`, also set `BACKUP_DIR` before running the block:

```bash
BACKUP_FILE=autogpt-data-YYYYMMDDTHHMMSSZ.tgz
RESTORE_IMAGE=significantgravitas/autogpt@sha256:RECORDED_DIGEST
# BACKUP_DIR=/absolute/path/to/autogpt-backups
```

```bash
(
  set -euo pipefail
  : "${BACKUP_FILE:?Set BACKUP_FILE to the timestamped archive filename}"
  : "${RESTORE_IMAGE:?Set RESTORE_IMAGE to the recorded immutable image}"
  BACKUP_DIR="${BACKUP_DIR:-${PWD}/autogpt-backups}"
  CHECKSUM_FILE="${BACKUP_FILE}.sha256"
  DEFAULT_RESTORE_VOLUME="autogpt-data-restored-$(date -u +%Y%m%dT%H%M%SZ)-$$-${RANDOM}${RANDOM}"
  RESTORE_VOLUME="${RESTORE_VOLUME:-${DEFAULT_RESTORE_VOLUME}}"
  RESTORE_OWNER_LABEL="org.agpt.restore.owner"
  RESTORE_OWNER="restore-$(date -u +%Y%m%dT%H%M%SZ)-$$-${RANDOM}${RANDOM}"
  RESTORE_CREATED=false
  RESTORE_COMPLETE=false

  if [[ "${BACKUP_FILE}" == */* ]]; then
    echo "BACKUP_FILE must be a filename within BACKUP_DIR" >&2
    exit 1
  fi
  if [[ ! -d "${BACKUP_DIR}" ]]; then
    echo "Backup directory does not exist: ${BACKUP_DIR}" >&2
    exit 1
  fi
  BACKUP_DIR="$(cd "${BACKUP_DIR}" && pwd -P)"
  if [[ ! -f "${BACKUP_DIR}/${BACKUP_FILE}" ]]; then
    echo "Backup archive does not exist: ${BACKUP_DIR}/${BACKUP_FILE}" >&2
    exit 1
  fi
  if [[ ! -f "${BACKUP_DIR}/${CHECKSUM_FILE}" ]]; then
    echo "Backup checksum does not exist: ${BACKUP_DIR}/${CHECKSUM_FILE}" >&2
    exit 1
  fi
  EXPECTED_SHA256="$(awk 'NR == 1 {print $1}' \
    "${BACKUP_DIR}/${CHECKSUM_FILE}")"
  if [[ ! "${EXPECTED_SHA256}" =~ ^[0-9a-f]{64}$ ]]; then
    echo "Backup checksum is not a valid SHA-256 digest" >&2
    exit 1
  fi
  ACTUAL_SHA256="$(docker run --rm \
    --network none \
    --entrypoint sha256sum \
    --volume "${BACKUP_DIR}:/backup:ro" \
    "${RESTORE_IMAGE}" \
    "/backup/${BACKUP_FILE}" | awk '{print $1}')"
  if [[ "${ACTUAL_SHA256}" != "${EXPECTED_SHA256}" ]]; then
    echo "Backup checksum verification failed" >&2
    exit 1
  fi
  if docker volume inspect "${RESTORE_VOLUME}" >/dev/null 2>&1; then
    echo "Refusing to reuse existing volume: ${RESTORE_VOLUME}" >&2
    exit 1
  fi

  # Invoked by the EXIT and signal traps below.
  # shellcheck disable=SC2329
  finish_restore() {
    local exit_status="$1"
    local current_owner
    trap - EXIT HUP INT TERM
    if [[ "${RESTORE_CREATED}" == true && \
          "${RESTORE_COMPLETE}" != true ]]; then
      if ! current_owner="$(docker volume inspect \
        --format "{{ index .Labels \"${RESTORE_OWNER_LABEL}\" }}" \
        "${RESTORE_VOLUME}" 2>/dev/null)" || \
          [[ "${current_owner}" != "${RESTORE_OWNER}" ]]; then
        echo "Restore failed; refusing to remove a volume whose ownership cannot be verified: ${RESTORE_VOLUME}" >&2
        exit_status=1
      elif docker volume rm "${RESTORE_VOLUME}" >/dev/null; then
        echo "Restore failed; the partial restore volume was removed" >&2
      else
        echo "Restore failed; remove the partial volume after inspection: docker volume rm ${RESTORE_VOLUME}" >&2
        exit_status=1
      fi
    fi
    exit "${exit_status}"
  }

  trap 'finish_restore "$?"' EXIT
  trap 'finish_restore 129' HUP
  trap 'finish_restore 130' INT
  trap 'finish_restore 143' TERM
  docker volume create \
    --label "${RESTORE_OWNER_LABEL}=${RESTORE_OWNER}" \
    "${RESTORE_VOLUME}" >/dev/null
  if ! CREATED_OWNER="$(docker volume inspect \
    --format "{{ index .Labels \"${RESTORE_OWNER_LABEL}\" }}" \
    "${RESTORE_VOLUME}" 2>/dev/null)" || \
      [[ "${CREATED_OWNER}" != "${RESTORE_OWNER}" ]]; then
    echo "Refusing to populate a restore volume whose ownership cannot be verified: ${RESTORE_VOLUME}" >&2
    exit 1
  fi
  RESTORE_CREATED=true

  docker run --rm \
    --network none \
    --entrypoint tar \
    --volume "${RESTORE_VOLUME}:/data" \
    --volume "${BACKUP_DIR}:/backup:ro" \
    "${RESTORE_IMAGE}" \
    -xzf "/backup/${BACKUP_FILE}" -C /data

  RESTORE_COMPLETE=true
  printf 'Restored %s into volume %s\n' \
    "${BACKUP_FILE}" "${RESTORE_VOLUME}"
)
```

A per-run ownership label is checked after volume creation and again before failure cleanup. If another run wins the same volume name, this restore refuses to populate or remove that volume.

Use only an archive and checksum obtained through a trusted backup process. A matching untrusted checksum detects accidental corruption but does not prove who created the archive. Restore extraction has no network access, but `tar` runs as root and preserves archive ownership and mode bits, including setuid bits. Do not extract an archive from an untrusted source or assume network isolation makes malicious archive content safe.

Validate the restored layout without starting application services or allowing network access. Set `RESTORE_VOLUME` to the volume printed above and reuse the same `RESTORE_IMAGE`:

```bash
(
  set -euo pipefail
  : "${RESTORE_VOLUME:?Set RESTORE_VOLUME to the restored volume name}"
  : "${RESTORE_IMAGE:?Set RESTORE_IMAGE to the recorded immutable image}"

  docker run --rm \
    --network none \
    --entrypoint /bin/sh \
    --volume "${RESTORE_VOLUME}:/data:ro" \
    "${RESTORE_IMAGE}" \
    -ceu '
      test -s /data/config/runtime.env
      test -s /data/config/backend.json
      test -s /data/postgres/PG_VERSION
      test -s /data/postgres/postgresql.conf
      test -s /data/postgres/pg_hba.conf
      test -d /data/rabbitmq/mnesia
      test -d /data/valkey/17000
      test -d /data/valkey/17001
      test -d /data/valkey/17002
      test -d /data/falkordb
      test -d /data/workspaces
      test -d /data/store-media
      test -d /data/home
      test -d /data/frontend-home
      quote="$(printf "\047")"
      setting="^[[:space:]]*listen_addresses([[:space:]]*=[[:space:]]*|[[:space:]]+)"
      hba_file_setting="^[[:space:]]*hba_file([[:space:]]*=[[:space:]]*|[[:space:]]+)"
      unsafe_setting="^[[:space:]]*(shared_preload_libraries|local_preload_libraries|"
      unsafe_setting="${unsafe_setting}session_preload_libraries|archive_mode|"
      unsafe_setting="${unsafe_setting}archive_command)"
      unsafe_setting="${unsafe_setting}([[:space:]]*=[[:space:]]*|[[:space:]]+)"
      include="^[[:space:]]*include(_if_exists|_dir)?([[:space:]]+|[[:space:]]*=)"
      end="[[:space:]]*(#.*)?$"
      set -- /data/postgres/postgresql.conf
      if test -f /data/postgres/postgresql.auto.conf; then
        set -- "$@" /data/postgres/postgresql.auto.conf
      fi
      active_listen="$(grep -hiE "${setting}" "$@" || true)"
      test "$(printf "%s\n" "${active_listen}" | grep -c .)" -eq 1
      printf "%s\n" "${active_listen}" | grep -Eiq "${setting}[[:space:]]*${quote}127[.]0[.]0[.]1${quote}${end}"
      if grep -Eiq "${include}" "$@" || \
          grep -Eiq "${hba_file_setting}" "$@" || \
          grep -Eiq "${unsafe_setting}" "$@"; then
        exit 1
      fi

      active_hba="$(grep -Ev "^[[:space:]]*(#|$)" /data/postgres/pg_hba.conf || true)"
      test "$(printf "%s\n" "${active_hba}" | grep -c .)" -eq 6
      hba_rule="^[[:space:]]*(local[[:space:]]+(all|replication)[[:space:]]+all[[:space:]]+peer|host[[:space:]]+(all|replication)[[:space:]]+all[[:space:]]+(127[.]0[.]0[.]1/32|::1/128)[[:space:]]+scram-sha-256)${end}"
      if printf "%s\n" "${active_hba}" | grep -Ev "${hba_rule}"; then
        exit 1
      fi
      for required_hba_rule in \
        "^[[:space:]]*local[[:space:]]+all[[:space:]]+all[[:space:]]+peer${end}" \
        "^[[:space:]]*host[[:space:]]+all[[:space:]]+all[[:space:]]+127[.]0[.]0[.]1/32[[:space:]]+scram-sha-256${end}" \
        "^[[:space:]]*host[[:space:]]+all[[:space:]]+all[[:space:]]+::1/128[[:space:]]+scram-sha-256${end}" \
        "^[[:space:]]*local[[:space:]]+replication[[:space:]]+all[[:space:]]+peer${end}" \
        "^[[:space:]]*host[[:space:]]+replication[[:space:]]+all[[:space:]]+127[.]0[.]0[.]1/32[[:space:]]+scram-sha-256${end}" \
        "^[[:space:]]*host[[:space:]]+replication[[:space:]]+all[[:space:]]+::1/128[[:space:]]+scram-sha-256${end}"
      do
        printf "%s\n" "${active_hba}" | grep -Eq "${required_hba_rule}"
      done
    '
)
```

The check also rejects PostgreSQL configuration that enables non-loopback listening, loads external configuration fragments or libraries, redirects `hba_file`, configures WAL archiving, or weakens the generated local `peer` and loopback `scram-sha-256` access rules. It does not prove that each database can start. A full recovery rehearsal boots live schedules, stored credentials, and executors, and some services fetch runtime data during startup. Perform it only on a dedicated egress-filtered host or network after revoking or replacing production provider and integration credentials. There is no generic appliance switch that safely disables every possible outbound action. Retain both volumes until the restore is accepted.

Never selectively mix service directories from different backups.

After accepting the restore, make sure no other container uses the `autogpt` name or host port. Set `ENV_FILE` to the recorded environment file's absolute host path. Set `PUBLISH_SPEC` to the original publish mapping when it was not `127.0.0.1:3000:3000`. For a Docker Engine local-model installation, also set `ADD_HOST_SPEC=host.docker.internal:host-gateway`; leave it empty otherwise. Then launch the restored installation with the recorded image and volume:

```bash
ENV_FILE=/absolute/path/to/autogpt.env
RESTORE_VOLUME=autogpt-data-restored-YYYYMMDDTHHMMSSZ-PID-RANDOM
RESTORE_IMAGE=significantgravitas/autogpt@sha256:RECORDED_DIGEST
# PUBLISH_SPEC=127.0.0.1:3300:3000
# ADD_HOST_SPEC=host.docker.internal:host-gateway
```

```bash
(
  set -euo pipefail
  : "${ENV_FILE:?Set ENV_FILE to the recorded host environment-file path}"
  : "${RESTORE_VOLUME:?Set RESTORE_VOLUME to the restored volume name}"
  : "${RESTORE_IMAGE:?Set RESTORE_IMAGE to the recorded immutable image}"
  PUBLISH_SPEC="${PUBLISH_SPEC:-127.0.0.1:3000:3000}"
  ADD_HOST_SPEC="${ADD_HOST_SPEC:-}"
  NETWORK_DOCKER_ARGS=(--publish "${PUBLISH_SPEC}")
  if [[ -n "${ADD_HOST_SPEC}" ]]; then
    NETWORK_DOCKER_ARGS+=(--add-host "${ADD_HOST_SPEC}")
  fi

  [[ "${ENV_FILE}" = /* && -f "${ENV_FILE}" ]] || {
    printf 'ENV_FILE must be an existing absolute host path: %s\n' \
      "${ENV_FILE}" >&2
    exit 1
  }
  if ! docker volume inspect "${RESTORE_VOLUME}" >/dev/null 2>&1; then
    echo "Restored volume does not exist: ${RESTORE_VOLUME}" >&2
    exit 1
  fi
  if docker container inspect autogpt >/dev/null 2>&1; then
    echo "Refusing to replace an existing container named autogpt" >&2
    exit 1
  fi

  docker run --detach --name autogpt \
    --restart unless-stopped \
    --shm-size 2g \
    --ulimit nofile=65536:65536 \
    --log-driver json-file \
    --log-opt max-size=50m \
    --log-opt max-file=5 \
    "${NETWORK_DOCKER_ARGS[@]}" \
    --env-file "${ENV_FILE}" \
    --volume "${RESTORE_VOLUME}:/data" \
    "${RESTORE_IMAGE}"
)
```

## Upgrade and rollback

Before an upgrade:

1. Record the running image reference and image ID.
2. Pull or build the new image while the old appliance remains available.
3. Run `export RESTART_AFTER_BACKUP=false`, then run the Cold backup block once. Immediately run `unset RESTART_AFTER_BACKUP` afterward, whether the backup succeeds or fails. A successful backup leaves the appliance stopped; a failed backup restarts the unchanged installation.
4. Remove only the stopped container with `docker rm autogpt`.
5. Repeat the Quick start run command with the same environment file, named volume, publish mapping, `--add-host`, and other original launch options, but the new image reference.
6. Wait for full health, then test login, memory, one agent execution, streaming, WebSockets, and persistence across one restart.

Useful image evidence is available with:

```bash
docker inspect --format '{{.Config.Image}} {{.Image}}' autogpt
```

Startup applies database migrations before publishing readiness. Do not run an older image against a volume already migrated by a newer image. Rollback means running the prior image with its matching pre-upgrade archive restored into a new volume.

## Health and troubleshooting

Docker health checks every bundled dependency and application role:

```bash
docker inspect --format '{{.State.Health.Status}}' autogpt
docker exec autogpt autogpt-healthcheck
docker logs --follow --tail 100 autogpt
```

`GET /healthz` checks nginx only; it is not proof that the whole appliance is ready. Once bootstrap has applied migrations and published readiness, the watchdog allows 600 seconds for initial full health; if that deadline expires, it stops the container and `--restart unless-stopped` begins another startup attempt.

After migrations, each boot also publishes the public skills catalog from GitHub; it supplies the Skills Hub skills and the expert roster. The step is best-effort: if GitHub is unreachable it gives up after at most 10 minutes, logs a warning, and startup continues without the catalog. Set `AUTOGPT_PUBLISH_SKILLS=0` to skip it, for example on an egress-filtered host.

| Symptom                                                                           | What to check                                                                                                                                                                                                                                                                                                                                                   |
| --------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| The browser cannot connect after `docker run --rm "${IMAGE}"`                     | A bare run does not publish a port. Use the complete Quick start command.                                                                                                                                                                                                                                                                                       |
| Port `3300` opens but auth actions fail                                           | Use `--publish 127.0.0.1:3300:3000` and set `AUTOGPT_PUBLIC_URL=http://localhost:3300`, then replace the container.                                                                                                                                                                                                                                             |
| Signup shows **Email Not Allowed**                                                | Inspect the API response or container logs to distinguish closed registration from an allowlist miss. Set `AUTH_ALLOW_NEW_ACCOUNTS=true` with an exact-address `AUTH_SIGNUP_ALLOWLIST=owner@example.com`, replace the container, create the intended accounts, and close signup again.                                                                          |
| The container remains `starting` or becomes `unhealthy`                           | First boot can take several minutes. Run `autogpt-healthcheck` and inspect container logs for the first failed service.                                                                                                                                                                                                                                         |
| The container is OOM-killed or repeatedly restarts during startup                 | The appliance uses about 5–6 GiB before workload headroom. On Docker Desktop, increase the VM memory allocation under **Settings → Resources**, or in `.wslconfig` with the Windows WSL 2 backend.                                                                                                                                                              |
| Startup refuses to continue after an interrupted migration                        | Follow the empty-install versus existing-install recovery procedure in [Quick start](#quick-start). The restart-looping container cannot reliably run `docker exec`; do not mark the migration applied or rolled back until you verify which database changes completed.                                                                                        |
| Startup rejects `DB_CONNECTION_LIMIT`, `DB_CONNECT_TIMEOUT`, or `DB_POOL_TIMEOUT` | Use an integer in the supported range: `1`–`5`, `1`–`600`, and `1`–`3600`, respectively.                                                                                                                                                                                                                                                                        |
| Startup rejects legacy JWT secrets                                                | Remove `JWT_VERIFY_KEY` and `SUPABASE_JWT_SECRET` for a fresh Better Auth installation. Set `AUTOGPT_ENABLE_LEGACY_AUTH=true` only for an intentional legacy-auth migration, and set both legacy variables to the same shared secret of at least 32 characters.                                                                                                 |
| A run stays `RUNNING` without progress after a restart                            | The container stopped while the run was in flight. Its message was dropped and the row was not reconciled; start a new run.                                                                                                                                                                                                                                     |
| Requests stall for minutes under concurrent runs                                  | Inspect backend and PostgreSQL logs for connection-pool exhaustion. `DB_CONNECTION_LIMIT` cannot be raised above its default maximum of `5`; lowering `DB_POOL_TIMEOUT` makes pool exhaustion fail sooner but does not add capacity. Reduce concurrency or move to a distributed deployment when the fixed pools are insufficient.                              |
| AutoPilot returns a provider `401`                                                | Configure the key for the selected transport. The default remote route needs `OPEN_ROUTER_API_KEY`; complete remote memory also needs `OPENAI_API_KEY`.                                                                                                                                                                                                         |
| Local chat works but memory ingestion fails                                       | Install the configured embedding model and confirm its `/v1/embeddings` endpoint works. Under the local transport Graphiti defaults to `hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M` and `nomic-embed-text`; if the server does not serve those slugs, set and install `GRAPHITI_LLM_MODEL`, `GRAPHITI_RERANKER_MODEL`, and `GRAPHITI_EMBEDDER_MODEL` explicitly. |
| Ollama cannot be reached                                                          | Keep the host-gateway option, ensure Ollama listens on an address Docker can reach, and test `/api/tags` from inside the container.                                                                                                                                                                                                                             |
| The container exits after a persistent health failure                             | The watchdog intentionally stops the appliance. Keep `--restart unless-stopped` so Docker can recover it.                                                                                                                                                                                                                                                       |
| Data appears missing after replacement                                            | The new container is using another or anonymous `/data` volume. Inspect its mount and reattach the original named volume.                                                                                                                                                                                                                                       |
| Restore launch reports the name `autogpt` or the host port is already in use      | Inspect the leftover container and its `/data` mount. Free the intended host port, then run `docker rm autogpt` only after confirming the restored volume and launch settings are the intended replacement.                                                                                                                                                     |

## Known limitations

* One container is one failure, maintenance, scaling, and security boundary.
* The bundled frontend is compiled in local mode. Setting backend `BEHAVE_AS=cloud` does not create a supported multi-tenant hosted deployment.
* PostgreSQL, Valkey, RabbitMQ, FalkorDB, browser tooling, and the application compete for the same host resources.
* Valkey and FalkorDB have no appliance-level memory ceiling or eviction policy; their persisted working sets can grow until host memory or disk is exhausted. Monitor both resources and back up before capacity changes.
* Each backend role's Prisma pool has at most five PostgreSQL connections. The scheduler also has two SQLAlchemy job-store pools of three connections each. FalkorDB is configured for at most 25 queued queries and a 1-second query timeout. These fixed ceilings limit concurrency in the single-container distribution.
* All durable services share one volume and one backup schedule.
* There is no supported in-place conversion from the appliance to the multi-container or hosted deployment. Provision the destination separately and use agent export/import where supported; accounts, run history, schedules, credentials, and memory are not migrated automatically.
* Uploaded files are not scanned for malware. Unlike the hosted platform, this image bundles no antivirus daemon, so treat every upload as trusted input.
* Required email verification is unsupported.
* The prebuilt frontend cannot configure Google Picker public keys at runtime.
* Remote TLS termination is operator-supplied.
* The local `bash_exec` fallback depends on host support for Bubblewrap user, network and PID namespaces, and on a host `/proc` the sandbox can mount its own copy of: an appliance started with Docker's default masked `/proc` runs no command, and reports the setting to change (`--security-opt systempaths=unconfined`, or `procMount: Unmasked` on Kubernetes). Do not make the entire appliance privileged to work around a host that disables them.


# AutoGPT Platform Installer

The release installer runs the published AutoGPT Platform appliance as one Docker container. It does not clone the repository, build AutoGPT, install Docker, elevate privileges, or accept Docker Desktop license terms.

The appliance exposes one loopback-only port. Application state and generated secrets live in a named Docker volume; installer identity and runtime configuration live in a dedicated private state directory.

## Prerequisites

Before running the installer:

* Install and start Docker from the [official Docker Engine](https://docs.docker.com/engine/install/) or [Docker Desktop](https://docs.docker.com/desktop/) documentation.
* Select a local Docker endpoint: `unix://` on Linux and macOS, `npipe://` on Windows. Remote and TCP contexts are rejected.
* Configure the daemon for Linux containers on `amd64` or `arm64`.
* Allow about 25 GB of free disk; at least 8 GB RAM is recommended.
* Have Bash, curl, and `sha256sum` or `shasum` available for the bootstrap, or PowerShell and `curl.exe` on Windows. Docker Compose, Git, Node.js, and npm are not required.

Docker Desktop is a separate product with its own license terms. AutoGPT does not install it or grant a Docker license.

## Install

Each command below uses a unique temporary file, executes it only after the HTTPS download succeeds, and removes it afterward. Do not stream a network response directly into a shell.

### Linux and macOS

```bash
(
  installer="$(mktemp)" &&
  trap 'rm -f "$installer"' EXIT &&
  curl --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL \
    -o "$installer" https://setup.agpt.co/install.sh &&
  bash "$installer"
)
```

### Windows

```powershell
& {
  $installer = Join-Path ([IO.Path]::GetTempPath()) "autogpt-install-$([guid]::NewGuid().ToString('N')).ps1"
  try {
    curl.exe --proto '=https' --proto-redir '=https' --tlsv1.2 -fsSL -o $installer https://setup.agpt.co/install.ps1
    if ($LASTEXITCODE -eq 0) {
      powershell.exe -NoProfile -ExecutionPolicy Bypass -File $installer
    }
  } finally {
    Remove-Item -LiteralPath $installer -Force -ErrorAction SilentlyContinue
  }
}
```

### Options

Add a flag after `bash "$installer"` on Linux and macOS, or after `-File $installer` on Windows.

| Goal                            | Linux/macOS                              | Windows                                 |
| ------------------------------- | ---------------------------------------- | --------------------------------------- |
| Current published appliance     | *(no flag)*                              | *(no flag)*                             |
| Specific published version      | `--release=vX.Y.Z`                       | `-Release vX.Y.Z`                       |
| Appliance release-tag form      | `--release=autogpt-platform-beta-vX.Y.Z` | `-Release autogpt-platform-beta-vX.Y.Z` |
| Hardware and Docker checks only | `--preflight-only`                       | `-PreflightOnly`                        |
| Print image selection only      | `--resolve-only`                         | `-ResolveOnly`                          |
| Skip RAM/disk checks            | `--skip-preflight`                       | `-SkipPreflight`                        |
| Custom private state directory  | `--dir=PATH`                             | `-Dir PATH`                             |

`--skip-preflight` does not skip the local-endpoint, Linux-container, or architecture checks.

The default state directory is `$XDG_CONFIG_HOME/autogpt`, or `$HOME/.config/autogpt` when `XDG_CONFIG_HOME` is unset, and `%LOCALAPPDATA%\AutoGPT` on Windows. A custom directory must be user-owned and private; the installer rejects symlink paths and shared or unsafe locations.

## Artifact and Runtime Contract

With no release flag, the installer pulls `significantgravitas/autogpt:latest`. An explicit `vX.Y.Z` selects the matching version tag. After pulling, the installer:

1. Requires the expected OCI title and source repository plus a well-formed 40-hex source revision label.
2. Requires a Linux image matching the local daemon's `amd64` or `arm64` architecture.
3. Resolves exactly one native `RepoDigest` and runs that immutable digest, never the mutable tag.
4. Creates an installer-owned, labelled `autogpt-platform-data` volume.
5. Starts `autogpt` with `127.0.0.1:3000`, the private environment file, restart and stop policies, log rotation, shared memory, and file-descriptor limits.

The bootstrap authenticates transport with HTTPS, and the installer pins the pulled image by digest after checking its appliance metadata. It does not independently verify a publisher signature or protect against compromise of the image-publishing credentials. Signed release artifacts are a follow-up, not a claim made by this installer.

The installer refuses to adopt an unlabelled container or volume. A rerun is a no-op, or starts a stopped container, only when the installer identity, environment hash, immutable image digest, process, port, mount, privilege, restart, logging, memory, and limit settings all match. Drift fails closed.

If established installer lifecycle state exists but its named volume is missing, the installer refuses to create an empty replacement. An interrupted first pull has no established marker and can be retried safely. Restore a previously established volume or choose a new state directory.

## Runtime Configuration

The private `autogpt.env` initially contains:

```dotenv
AUTOGPT_PUBLIC_URL=http://localhost:3000
```

Add provider keys and other appliance variables there. The installer binds the environment file's SHA-256 hash to the container label. To apply a deliberate configuration change, stop and remove only the container, then rerun the same installer release:

```bash
docker stop --time 360 autogpt
docker rm autogpt
```

Do not remove `autogpt-platform-data`; it contains accounts, agents, generated secrets, and application state.

## First Run

After the installer reports a healthy container, open <http://localhost:3000>. Registration starts open so you can create the intended account. Promote it:

```bash
docker exec autogpt autogpt-admin promote you@example.com
```

Then set this in `autogpt.env`, recreate the container as described above, and verify registration is closed:

```dotenv
AUTH_ALLOW_NEW_ACCOUNTS=false
```

Keep the default loopback binding. To serve other machines, place AutoGPT behind a TLS reverse proxy and set `AUTOGPT_PUBLIC_URL` to the exact public URL.

## Upgrades

Before an upgrade, back up `autogpt-platform-data` as described in [Cold backup](https://agpt.co/docs/platform/self-hosting/single-container#cold-backup). Stop and remove only the `autogpt` container, then rerun the installer with the intended release. The installer will reuse the named volume only when its ownership labels and the private installer identity still match.

## Maintainer Release Gates

`https://setup.agpt.co/install.sh`, `https://setup.agpt.co/install.ps1`, and `https://setup.agpt.co/install.bat` redirect to the files of the same name in `autogpt_platform/installer/` on `master`, so the hosted installers change whenever those files change on `master`. Repository CI cannot prove this public bootstrap handoff, so each release must keep every gate below passing:

* Only a published, non-prerelease `autogpt-platform-beta-vX.Y.Z` release publishes images. Its run smoke-tests and scans both architectures, then pushes `sha-<commit>` and `vX.Y.Z` and moves `:latest` forward. Pushes to `dev` and manual dispatches build, test, and scan without publishing.
* The release's tag commit contains the full installer, publication workflow, and helper, and its release-triggered run succeeded.
* Both public tags expose Linux `amd64` and `arm64` manifests and the expected OCI identity:

  ```bash
  docker buildx imagetools inspect significantgravitas/autogpt:vX.Y.Z
  docker buildx imagetools inspect significantgravitas/autogpt:latest
  ```
* Fetch each hosted installer into a new temporary file from an external machine and compare it with the released repository file. On each supported operating system, perform a clean install against the public image, wait for health, verify the loopback endpoint, rerun to prove exact-contract idempotency, and confirm no mutable tag was used to create the container.

## Installing from source (Compose)

The scripts below are the other supported path: they clone the repository and start every service with Docker Compose. Use them for development, or for a fully offline install with a local LLM. The appliance described above is the image documented in [Run AutoGPT in one Docker container](https://agpt.co/docs/platform/self-hosting/single-container); these scripts do not use it.

### Manual Installation

If you prefer, you can manually download and run the installer scripts:

* **Linux/macOS:** `setup-autogpt.sh`
* **Windows:** `setup-autogpt.bat`

These scripts are located in the `autogpt_platform/installer/` directory. Run `./setup-autogpt.sh` or `setup-autogpt.bat` from there. Inside a clone, a script uses that checkout; otherwise it clones the repository into a new `AutoGPT` folder first.

Both create the three `.env` files if they are missing and generate the secrets `.env.default` leaves blank (`ENCRYPTION_KEY`, `UNSUBSCRIBE_SECRET_KEY`, `INTERNAL_API_KEY`, `BAN_RECORD_HASH_KEY`, `BETTER_AUTH_SECRET`, and the passwords of the database, RabbitMQ, Redis and FalkorDB), the same as `make init-env`. Running a script again never changes a value you set; it does replace a service password that still holds the value this repository used to ship, and restarts the stack, which empties RabbitMQ's queues. So to upgrade an install that is running, follow [Upgrading: service passwords are generated per install](https://agpt.co/docs/platform/self-hosting/getting-started#upgrading-service-passwords-are-generated-per-install) instead of running a script again. If you are upgrading an install that ran without its own `ENCRYPTION_KEY`, read [Upgrading: secrets are generated per install](https://agpt.co/docs/platform/self-hosting/getting-started#upgrading-secrets-are-generated-per-install) first so your connected integrations move to the new key.

### Running fully offline with a local LLM (Ollama)

Both installer scripts accept an opt-in flag that installs [Ollama](https://ollama.com), pulls a default chat model, and wires `backend/.env` so AutoPilot runs **without any cloud API keys**. This is useful for air-gapped or privacy-sensitive deployments — see [Running AutoPilot on a self-hosted LLM](https://agpt.co/docs/platform/using-ai-services/copilot-local-llm) for the full reference.

#### Linux / macOS

```bash
cd autogpt_platform/installer
./setup-autogpt.sh --with-ollama
# Optional overrides:
#   --ollama-model=qwen3:14b-q4_K_M
#   --ollama-host=http://gpu-rig.lab:11434   # use an existing Ollama
```

#### Windows

```cmd
cd autogpt_platform\installer
setup-autogpt.bat /with-ollama
REM Optional overrides:
REM   /ollama-model=qwen3:14b-q4_K_M
REM   /ollama-host=http://gpu-rig.lab:11434
```

The installer:

1. Installs Ollama (skipped if already present, or if `--ollama-host` points at an existing one).
2. Configures `OLLAMA_HOST=0.0.0.0:11434` + `OLLAMA_CONTEXT_LENGTH=262144` so containers can reach it and so AutoPilot's \~8 k system prompt isn't truncated by Ollama's 4 k default; 262,144 tokens is the default model's native window.
3. Pulls the chat model (default `hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M`).
4. Appends a marker-bounded block to `autogpt_platform/backend/.env` with `CHAT_USE_LOCAL=true` plus the `CHAT_BASE_URL` / `CHAT_API_KEY` / `CHAT_*_MODEL` overrides.

Re-running with `--with-ollama` is idempotent — the wiring block is rewritten in place.

## Troubleshooting

1. Confirm `docker info` succeeds against a local Linux-container daemon.
2. If an image pull fails just after release, wait for public manifest publication and retry; the installer never falls back to a source build.
3. If the installer reports state or runtime drift, preserve the named volume, inspect the existing container, and follow the explicit upgrade procedure.
4. Check `docker logs --tail 100 autogpt` when health checks fail.


# Advanced Setup

The advanced steps below are intended for people with sysadmin experience. If you are not comfortable with these steps, please refer to the [basic setup guide](https://agpt.co/docs/platform/self-hosting/getting-started).

## Introduction

For the advanced setup, first follow the [manual setup](https://agpt.co/docs/platform/self-hosting/getting-started#manual-setup) to get the server up and running. Once you have the server running, you can follow the steps below to configure the server for your specific needs. These steps apply to the Docker Compose setup; the [single-container image](https://agpt.co/docs/platform/self-hosting/single-container) is configured with the environment variables you pass to `docker run`.

## Configuration

### Setting config via environment variables

The server uses environment variables to store configs. Each part of the platform reads its own `.env` file inside `autogpt_platform/`:

* `backend/.env` for the backend services
* `frontend/.env` for the frontend
* `.env` for Docker Compose itself

The valid options are listed, with a comment for each, in the `.env.default` file next to each `.env`. `make init-env` creates any missing `.env` from its `.env.default` and generates the secrets that `.env.default` leaves blank:

```bash
cd autogpt_platform
make init-env
```

Then edit the `.env` files to change what you need. Do not copy `.env.default` over an existing `.env`: that erases your generated `ENCRYPTION_KEY`, and the integration credentials stored under it can no longer be read.

With Docker Compose, the `environment:` entries in `docker-compose.platform.yml` take precedence over the `.env` files. They connect the services to each other by their Compose names and set the database URLs, so change those settings in `docker-compose.platform.yml`. When you run the backend outside Docker, you can also set the environment variables directly in your shell. Refer to your operating system's documentation on how to set environment variables in the current session.

## Database selection

### PostgreSQL

We use PostgreSQL 15 with the pgvector extension as the database. Docker Compose runs it as the `db` service, keeps its data in `autogpt_platform/data/db/data`, and applies the Prisma migrations through the `migrate` service every time you run `docker compose up`.

To use your own PostgreSQL server instead:

1. Make sure the `vector` and `pg_trgm` extensions are available on it; the migrations create them.
2. Run `autogpt_platform/db/init/00-init.sql` against the database once. It creates the `platform` schema and an empty `auth.users` table that older migrations reference.
3. Point `DATABASE_URL` and `DIRECT_URL` at it, keeping `schema=platform` (in `docker-compose.platform.yml` under Docker, or in `backend/.env` when you run the backend directly), and point the frontend's `DATABASE_URL` at the same database.

The `migrate` service, or `make migrate` outside Docker, then applies the migrations.

## Redis

The platform uses Redis for caching, distributed locks, rate limits, and the streams that carry agent output to the browser.

The Docker Compose stack runs its own Redis Cluster: three `redis:7` shards on ports `17000` to `17002` of `127.0.0.1`, joined by a one-shot `redis-init` service. They require the `REDIS_PASSWORD` that `make init-env` generates in `backend/.env`. `make start-core` starts it along with the other dependencies.

### Using an external Redis cluster

The backend connects with a cluster client only, so the deployment must have cluster mode enabled. A standalone server, with cluster mode disabled, does not work.

The cluster also needs:

* **Redis 7.0 or later, or a compatible engine such as Valkey.** The backend uses sharded pub/sub (`SPUBLISH`, `SSUBSCRIBE`), which Redis 7.0 introduced, along with Streams and Lua scripts. It uses no Redis modules.
* **Shard addresses the backend can reach.** With `REDIS_USE_ANNOUNCED_ADDRESS=true`, the backend connects to each shard at the address the cluster announces, so those addresses must resolve from where the backend runs. Without it, the backend connects to every shard at `REDIS_HOST` and keeps only the announced port, which works only when every shard is reachable on that one host.
* **A private network between the backend and every shard.** The backend connects without TLS and does not send a username. It sends `REDIS_PASSWORD` when one is set, and a cluster without a password works too. Nothing on the connection is encrypted, so don't route it over a network you don't trust.

Point `REDIS_HOST` and `REDIS_PORT` at any node of the cluster, and set `REDIS_PASSWORD` if the cluster has one.

In the Compose stack, `REDIS_HOST`, `REDIS_PORT` and `REDIS_USE_ANNOUNCED_ADDRESS` are set in the `x-backend-env` block of `autogpt_platform/docker-compose.platform.yml`, which takes precedence over `backend/.env`, so change them there. `REDIS_PASSWORD` is read from `backend/.env`. Point `backend/.env` at the cluster too, with `REDIS_HOST` or with `REDIS_CLUSTER_HOST`, which the backend reads first: while the one it reads names the bundled cluster (`localhost`, as `.env.default` has it), `make init-env` gives a blank `REDIS_PASSWORD` a generated value, which a cluster without a password refuses. The bundled shards still start, because the backend services wait for `redis-0` to be healthy.

## AutoGPT Agent Server Advanced set up

To run the backend server outside Docker with Poetry, follow [Backend Development](https://agpt.co/docs/platform/self-hosting/getting-started#backend-development).


# Deployment Environment Variables

This page is for running the Docker Compose stack from [Manual Setup](https://agpt.co/docs/platform/self-hosting/getting-started#manual-setup) on a server that people reach from other machines. It lists only the settings you must change for that, and why. Every setting, with its default and what it does, is described where it is set:

* [`autogpt_platform/.env.default`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/.env.default)
* [`autogpt_platform/backend/.env.default`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/.env.default)
* [`autogpt_platform/frontend/.env.default`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/frontend/.env.default)

To put the single-container image on a server, see [Run AutoGPT in One Docker Container](https://agpt.co/docs/platform/self-hosting/single-container) or the [installer](https://agpt.co/docs/platform/self-hosting/installer) instead: they take one public URL and work out the rest.

## Where settings live

`make init-env` (run in `autogpt_platform/`) copies each `.env.default` to `.env` and fills in the secrets they leave blank. Make your changes in the `.env` files. Never edit `.env.default`: it is public, and the next update overwrites it.

| File                             | Read by                                                                                                                           |
| -------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- |
| `autogpt_platform/.env`          | Docker Compose itself. It fills the `${...}` values in the compose files: the database password, and the two frontend URLs below. |
| `autogpt_platform/backend/.env`  | Every backend service, and the Redis, RabbitMQ and FalkorDB containers.                                                           |
| `autogpt_platform/frontend/.env` | The frontend, which also runs the login service (Better Auth).                                                                    |

Inside Docker, the compose files set some values themselves, and those win over `backend/.env` and `frontend/.env`: the hostnames of the other services, `DATABASE_URL`, `DIRECT_URL`, `JWT_JWKS_URL` and `FRONTEND_BASE_URL` for the backend, and `DATABASE_URL`, `AGPT_SERVER_URL`, `AGPT_WS_SERVER_URL` and `NEXT_PUBLIC_FRONTEND_BASE_URL` for the frontend. Changing one of those in `backend/.env` or `frontend/.env` does nothing under Docker. The two URLs among them are taken from `autogpt_platform/.env`, which is why they go there below.

## 1. Generate your secrets

```bash
cd AutoGPT/autogpt_platform
make init-env
```

This generates `ENCRYPTION_KEY`, `UNSUBSCRIBE_SECRET_KEY`, `INTERNAL_API_KEY`, `BETTER_AUTH_SECRET`, the Web Push key pair (`VAPID_PRIVATE_KEY` and `VAPID_PUBLIC_KEY`), and the passwords of the database, RabbitMQ, Redis and FalkorDB, for your install only. There is nothing to generate by hand. Most of them are required: without `ENCRYPTION_KEY` the backend refuses to start, without `POSTGRES_PASSWORD` Docker Compose refuses to start, without the FalkorDB password its container exits, without the RabbitMQ password the backend cannot log in to it, and without `BETTER_AUTH_SECRET` sign-in fails. The rest can be empty: `INTERNAL_API_KEY` is then derived from `ENCRYPTION_KEY`, and without `REDIS_PASSWORD` or `UNSUBSCRIBE_SECRET_KEY` the backend logs a warning and runs with Redis open to the other containers and email unsubscribe links unsigned.

The database password is in three places: `POSTGRES_PASSWORD` in `autogpt_platform/.env`, which Docker uses for the database and for every connection string, and its copies `DB_PASS` in `backend/.env` and the password in `DATABASE_URL` in `frontend/.env`, which only matter outside Docker. To change it, follow [Upgrading: service passwords are generated per install](https://agpt.co/docs/platform/self-hosting/getting-started#upgrading-service-passwords-are-generated-per-install).

Set one thing yourself: `VAPID_CLAIM_EMAIL` in `backend/.env`, to `mailto:` an address you read. Push services use it to contact you about this server's notifications. Leave `NEXT_PUBLIC_VAPID_PUBLIC_KEY` in `frontend/.env` blank: the frontend fetches the public key from the backend.

## 2. Set your public URLs

Every default points at `localhost`, which only works in a browser on the server itself. From any other machine, people can still sign up and log in, but the browser then looks for the backend on its own machine: live updates never connect, and the API refuses the calls the browser makes to it directly, such as chatting with Otto. Set these to where people reach the frontend and the backend.

The examples use `https://autogpt.example.com` for the frontend and `https://api.autogpt.example.com` for the backend, behind a reverse proxy (see [step 3](#3-put-it-behind-https)). Without one, use the server's address and the published ports instead: `http://<server>:3000` for the frontend, `http://<server>:8006` for the backend (`http://<server>:8006/api` in `NEXT_PUBLIC_AGPT_SERVER_URL`) and `ws://<server>:8001/ws` for the WebSocket.

| File                    | Setting                          | Example                               | What it is for                                                                                                        |
| ----------------------- | -------------------------------- | ------------------------------------- | --------------------------------------------------------------------------------------------------------------------- |
| `autogpt_platform/.env` | `FRONTEND_BASE_URL`              | `https://autogpt.example.com`         | Links the backend sends people: OAuth redirects, emails, Stripe                                                       |
| `autogpt_platform/.env` | `NEXT_PUBLIC_FRONTEND_BASE_URL`  | `https://autogpt.example.com`         | The frontend's own address                                                                                            |
| `frontend/.env`         | `BETTER_AUTH_URL`                | `https://autogpt.example.com`         | The login service's own address, used in password-reset and verification links and social sign-in callbacks           |
| `frontend/.env`         | `BETTER_AUTH_INTERNAL_URL`       | `http://localhost:3000`               | Where the frontend's server reaches its own login service. Always `http://localhost:3000` under Docker                |
| `frontend/.env`         | `NEXT_PUBLIC_AGPT_SERVER_URL`    | `https://api.autogpt.example.com/api` | The backend API, as the browser reaches it                                                                            |
| `frontend/.env`         | `NEXT_PUBLIC_AGPT_WS_SERVER_URL` | `wss://api.autogpt.example.com/ws`    | The WebSocket server, as the browser reaches it                                                                       |
| `backend/.env`          | `PLATFORM_BASE_URL`              | `https://api.autogpt.example.com`     | Webhook and MCP URLs the backend hands to other services                                                              |
| `backend/.env`          | `BACKEND_CORS_ALLOW_ORIGINS`     | `["https://autogpt.example.com"]`     | Origins the API and WebSocket server accept calls from (a JSON list; the default only allows `http://localhost:3000`) |

Some of these lines are not in the files yet, so add them: `FRONTEND_BASE_URL` and `NEXT_PUBLIC_FRONTEND_BASE_URL` in `autogpt_platform/.env`, `BACKEND_CORS_ALLOW_ORIGINS` in `backend/.env`, and `BETTER_AUTH_INTERNAL_URL` in `frontend/.env`. Leave out the trailing `/`.

Without `BETTER_AUTH_INTERNAL_URL`, the frontend's server calls `BETTER_AUTH_URL` to fetch a signed-in visitor's token. That works only if the frontend container can resolve your public hostname, reach it, and trust its certificate. With a name only your network's clients know about, or a self-signed or internal certificate, it cannot: sign-up then fails, and the sign-up page stays where it is without an error.

Give `FRONTEND_BASE_URL`, `NEXT_PUBLIC_FRONTEND_BASE_URL` and `BETTER_AUTH_URL` the same value. The backend sends password-reset and verification emails only for links on `FRONTEND_BASE_URL`; to allow other origins as well, list them in `TRUSTED_FRONTEND_ORIGINS` in `backend/.env`.

The `NEXT_PUBLIC_*` values are built into the frontend, so rebuild it after changing one:

```bash
docker compose up -d --build
```

Leave `JWT_JWKS_URL` alone under Docker: the backend fetches the login keys from the frontend over the Docker network (`http://frontend:3000`), and the compose file sets that for you. If you run the backend and frontend on different machines, read [Auth transport security](https://agpt.co/docs/platform/self-hosting/getting-started#auth-transport-security-jwks-over-untrusted-networks) first.

## 3. Put it behind HTTPS

Docker publishes three ports to the network: the frontend on `3000`, the API on `8006` and the WebSocket server on `8001`. They speak plain HTTP, and logins and session cookies go over them. Anything other people use should be behind a reverse proxy (nginx, Caddy, Traefik) that terminates TLS. With the example names:

| Public address                                       | Proxy to                                       |
| ---------------------------------------------------- | ---------------------------------------------- |
| `https://autogpt.example.com`                        | `http://127.0.0.1:3000`                        |
| `https://api.autogpt.example.com/ws`                 | `http://127.0.0.1:8001` (WebSocket upgrade on) |
| everything else on `https://api.autogpt.example.com` | `http://127.0.0.1:8006`                        |

For example, in a `Caddyfile`:

```
autogpt.example.com {
	reverse_proxy 127.0.0.1:3000
}

api.autogpt.example.com {
	reverse_proxy /ws* 127.0.0.1:8001
	reverse_proxy 127.0.0.1:8006
}
```

Use two hostnames, not two paths on one: the frontend serves its own routes under `/api` (logins go to `/api/auth`), so it cannot share a host with the backend's `/api`.

Then close `3000`, `8001` and `8006` to everything but the proxy, with your firewall or a cloud security group. The other ports the stack publishes (Postgres, Redis, RabbitMQ, FalkorDB and ClamAV) are bound to `127.0.0.1` only.

`TRUSTED_PROXY_COUNT` in `backend/.env` is the number of proxies that add an `X-Forwarded-For` entry in front of the backend. The default, `3`, is for the hosted platform: set `1` for a single reverse proxy, or `0` with none. Only the External API (`/api/v2`) uses it, for its per-IP rate limits.

The frontend finds the visitor's address separately: for its per-IP limits on sign-in and password-reset attempts, the per-visitor limit on store search, and the sign-in history and IP blocks. Set `TRUST_X_FORWARDED_FOR=true` in `frontend/.env` when the proxy sets `X-Forwarded-For` to the visitor's address, replacing any value the request arrived with. Caddy does that by default. In nginx, use `proxy_set_header X-Forwarded-For $remote_addr;`, not `$proxy_add_x_forwarded_for`, which keeps what the visitor sent. Without the setting, sign-in and password-reset attempts are limited only per email address, all visitors share one store-search limit, and sign-ins record no IP address.

If the header can carry more than one address, because there is a chain of proxies or one that adds to the header instead of replacing it, set `TRUSTED_PROXIES` in `frontend/.env` instead: your proxies' addresses, as a comma-separated list of IP addresses or CIDR ranges, for example `10.0.0.0/8,172.16.0.0/12`. The visitor is then the first address from the right of the header that the list does not cover. A non-empty list trusts the header on its own, so it does not need `TRUST_X_FORWARDED_FOR`. An entry that is not an IP address or CIDR range stops the frontend from starting. Making the proxy replace the header is still the better choice where you can.

## 4. Decide who can sign up

Anyone who can reach the frontend can create an account. To limit that, set one of these in `frontend/.env`:

* `AUTH_SIGNUP_ALLOWLIST`: a comma-separated list of the addresses and `@domains` allowed to sign up, for example `@example.com,me@example.org`.
* `AUTH_ALLOW_NEW_ACCOUNTS=false`: no new accounts at all, once yours exists.

Sign-up does not check email addresses unless you set `AUTH_REQUIRE_EMAIL_VERIFICATION=true`. That, and password reset, need the backend's mailer: set `POSTMARK_SERVER_API_TOKEN` and `POSTMARK_SENDER_EMAIL` in `backend/.env`. There is no SMTP setting for login emails.

## 5. Register OAuth callback URLs

Integrations (GitHub, Google and the others in `backend/.env`) send people back to the frontend. Register this callback with each provider:

```
https://autogpt.example.com/auth/integrations/oauth_callback
```

That is `FRONTEND_BASE_URL` followed by `/auth/integrations/oauth_callback`, with no internal port. The client IDs and secrets go in `backend/.env`.

Signing in with Google, GitHub or Discord is set up separately, with the `AUTH_*_CLIENT_ID` and `AUTH_*_CLIENT_SECRET` pairs in `frontend/.env`. Their callback is `BETTER_AUTH_URL` followed by `/api/auth/callback/<provider>`, for example `https://autogpt.example.com/api/auth/callback/google`.

## Using your own database or Redis

The compose files point every backend service at the bundled `db`, `redis-0` and `rabbitmq` containers, and set `DB_HOST`, `REDIS_HOST`, `REDIS_PORT` (`17000`), `RABBITMQ_HOST`, `DATABASE_URL` and `DIRECT_URL` in their `environment:` sections. Those override `backend/.env`, so pointing the stack at a managed service takes a `docker-compose.override.yml` that sets them per service, not an `.env` change. Override `REDIS_PORT` along with `REDIS_HOST`, or the backend still connects to port `17000`. `DIRECT_URL` is the connection that database migrations use; give it a direct connection, not one through a pooler such as PgBouncer. The backend expects a Redis Cluster, not a single Redis server.

For Redis there is a shorter way: the backend reads `REDIS_CLUSTER_HOST` and `REDIS_CLUSTER_PORT` before `REDIS_HOST` and `REDIS_PORT`, and the compose files do not set them, so setting those two in `backend/.env` is enough.

## Checklist

* [ ] `make init-env` in `autogpt_platform/`
* [ ] A real `mailto:` `VAPID_CLAIM_EMAIL` in `backend/.env`
* [ ] `FRONTEND_BASE_URL` and `NEXT_PUBLIC_FRONTEND_BASE_URL` added to `autogpt_platform/.env`
* [ ] `BETTER_AUTH_URL`, `BETTER_AUTH_INTERNAL_URL`, `NEXT_PUBLIC_AGPT_SERVER_URL` and `NEXT_PUBLIC_AGPT_WS_SERVER_URL` in `frontend/.env`
* [ ] `PLATFORM_BASE_URL` and `BACKEND_CORS_ALLOW_ORIGINS` (added) in `backend/.env`
* [ ] A TLS reverse proxy in front of `3000`, `8001` and `8006`, those ports firewalled, `TRUSTED_PROXY_COUNT` set, and in `frontend/.env` either `TRUST_X_FORWARDED_FOR=true` if the proxy replaces `X-Forwarded-For`, or `TRUSTED_PROXIES` if it does not
* [ ] Sign-ups limited, if the server is public
* [ ] `docker compose up -d --build`
* [ ] From another machine: sign up, log in, and check the browser console shows no `localhost` connection errors

## Related documentation

* [Getting Started](https://agpt.co/docs/platform/self-hosting/getting-started): the full setup, upgrades and the Makefile
* [Advanced Setup](https://agpt.co/docs/platform/self-hosting/advanced_setup)
* [OAuth & SSO](https://agpt.co/docs/platform/api-and-integrations/oauth-guide)


# Client IP Addresses

## Overview

A few parts of the AutoGPT Platform count or record callers by their IP address:

* [Rate limits](https://agpt.co/docs/platform/using-the-platform/rate-limits) that count per IP address: store search when signed out, signing in and account emails, and calls to the External API (v2) without a key.
* The sign-in history on an account's page under **Admin → Users**, which lists the IP addresses it signed up and signed in from.
* IP blocks, which an admin sets on that page to refuse sign-ups and sign-ins from an address.

This page explains where the backend and the frontend each get a caller's IP address, and what to set on a self-hosted install so it is the visitor's real one. On AutoGPT Cloud there is nothing to set.

## The backend

The backend's API server uses the address of the connection it receives. It takes the address from the `X-Forwarded-For` header instead only when the connection comes from an address listed in `FORWARDED_ALLOW_IPS`, a setting of the server (uvicorn) that defaults to `127.0.0.1,::1`.

If a reverse proxy sits in front of the backend, set `FORWARDED_ALLOW_IPS` on the backend to the address it connects from — not necessarily the proxy's own address. A proxy on the host that reaches the backend through its published port (`8006` by default under Docker Compose) connects from the Docker network's gateway, not from `127.0.0.1`. Find it with `docker network inspect app-network --format '{{(index .IPAM.Config 0).Gateway}}'` (it varies per install; Docker assigns the subnet). A proxy running in its own container on the same network connects with its own container address instead.

The setting takes a comma-separated list of addresses or CIDR ranges, so `FORWARDED_ALLOW_IPS=172.18.0.0/16` covers a Docker subnet whose gateway address Docker may reassign.

Once the backend trusts that address, let nothing else reach it there: the backend reads `X-Forwarded-For` from any connection that comes from a trusted address. Under Docker Compose, publish the backend's port on the host's loopback only (`ports: ["127.0.0.1:8006:8006"]`), so only a proxy on the host can reach it, or drop the mapping and run the proxy in a container on the same network.

### Limits on the External API

The External API's per-IP limits, which only [API v2](https://agpt.co/docs/platform/using-the-platform/rate-limits#api-v2) has, don't use the connection address. They read `X-Forwarded-For` and take the entry `TRUSTED_PROXY_COUNT` places from the right, because everything further left is whatever the caller sent. The default, `3`, is AutoGPT Cloud's own chain: Cloudflare appends the caller's address, and Google's load balancer appends two more.

Set `TRUSTED_PROXY_COUNT` on the backend to the number of entries your own proxies add — `1` for a single nginx or Caddy — or `0` to ignore the header and count by the address the backend already uses, as [the backend](#the-backend) describes. When the header has fewer entries than the setting, the limit falls back to that same address, which behind a proxy that `FORWARDED_ALLOW_IPS` doesn't list is the proxy's, so every caller shares one count; when the setting is higher than the entries your proxies add, it counts by an entry the caller can choose. This reading takes the header from whatever connects, so with a setting above `0`, let callers reach the backend only through your proxies, as [the backend](#the-backend) describes. The [single-container image](https://agpt.co/docs/platform/self-hosting/single-container) sets `TRUSTED_PROXY_COUNT=1` itself.

## The frontend

The frontend's server treats `X-Forwarded-For` as the visitor's address only when it runs on Vercel, when `TRUST_X_FORWARDED_FOR=true` is set on the frontend, or when `TRUSTED_PROXIES` is. Without one of them, the frontend has no visitor address to pass on.

* Set `TRUST_X_FORWARDED_FOR=true` when the proxy in front of the frontend sets `X-Forwarded-For` to the visitor's address, replacing any value the request arrived with.
* Set `TRUSTED_PROXIES` when the header can carry more than one address: a chain of proxies, or one that appends to a header the request already carried. It takes your proxies' IP addresses or CIDR ranges, comma-separated, and the visitor is then the first address from the right that the list doesn't cover. An entry that isn't an address or a range stops the frontend's server from starting.

The single-container image sets `TRUST_X_FORWARDED_FOR=true` itself, because its built-in nginx sets the header that way.

## From the frontend to the backend

Browsers reach the backend through the frontend's server, so the backend sees the frontend's address, not the visitor's. For store search, which the backend limits per IP address when the visitor is signed out, the frontend sends the visitor's address along in a signed token in the `X-Client-IP-Token` header, and the backend counts by that address.

* The token is signed with the frontend's sign-in key, which the backend already checks through `JWT_JWKS_URL`, and is valid for 60 seconds.
* When the frontend has no visitor address (see [the frontend](#the-frontend)), it sends no token. The backend then counts by the connection's address, so all signed-out store searches through one frontend server share one count.

## Signing in

Everything on the sign-in path reads the visitor's address through Better Auth, the frontend's sign-in library (1.7.16), which parses `X-Forwarded-For` itself. **Without `TRUSTED_PROXIES` it finds an address only when the header carries exactly one**; with several it finds none and logs a warning. With `TRUSTED_PROXIES` set, it takes the first address from the right that the list doesn't cover. Three of these five uses also need the frontend to trust the header (Vercel, `TRUST_X_FORWARDED_FOR=true` or `TRUSTED_PROXIES`), as [the frontend](#the-frontend) describes.

| What reads the address                                                                                                                            | Needs the header trusted | With no address                                            |
| ------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------ | ---------------------------------------------------------- |
| The [authentication API's own limits](https://agpt.co/docs/platform/using-the-platform/rate-limits#the-authentication-api)                        | No                       | One shared count for every caller                          |
| The [sign-in and password-reset attempt limits](https://agpt.co/docs/platform/using-the-platform/rate-limits#signing-in-and-resetting-a-password) | Yes                      | Only the per-email-address limits apply                    |
| The [per-IP cap on account emails](https://agpt.co/docs/platform/using-the-platform/rate-limits#account-emails)                                   | No                       | The cap doesn't apply; the per-address ones still do       |
| The sign-in history under **Admin → Users**                                                                                                       | Yes                      | No address is recorded                                     |
| IP blocks                                                                                                                                         | Yes                      | No address to match; blocks on an email domain still apply |

**Set `X-Forwarded-For` to the visitor's address rather than appending to it**, and set `TRUST_X_FORWARDED_FOR=true` on the frontend. Caddy replaces the header by default; in nginx the line is `proxy_set_header X-Forwarded-For $remote_addr;`. Without it, two things can go wrong:

* nginx's `$proxy_add_x_forwarded_for` appends the visitor's address to whatever arrived. A browser sends no `X-Forwarded-For`, so one nginx gives exactly one entry — but a second proxy in the chain, or a request that already carried the header, makes it two, and unless `TRUSTED_PROXIES` is set, the five uses above find no address (see the table's last column).
* With no `proxy_set_header X-Forwarded-For` line at all, nginx passes the header through as it arrived, so whatever the request carried is what Better Auth reads.

The backend deletes the sign-in history of an account after 90 days, or after the number of days in `AUTH_IP_EVENT_RETENTION_DAYS` (1 to 3650).

## What to set

| Your install                                              | On the frontend                                                                                                                                         | On the backend                                                                                                                                                                                     |
| --------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| AutoGPT Cloud                                             | Nothing                                                                                                                                                 | Nothing                                                                                                                                                                                            |
| Single-container image                                    | Nothing                                                                                                                                                 | Nothing                                                                                                                                                                                            |
| Docker Compose, browsers connect to the frontend directly | Leave `TRUST_X_FORWARDED_FOR` and `TRUSTED_PROXIES` unset                                                                                               | `TRUSTED_PROXY_COUNT=0`                                                                                                                                                                            |
| Behind a reverse proxy                                    | `TRUST_X_FORWARDED_FOR=true`, if the proxy sets `X-Forwarded-For` to the visitor's address alone; otherwise `TRUSTED_PROXIES=<your proxies' addresses>` | `FORWARDED_ALLOW_IPS=<the address it connects from>` and `TRUSTED_PROXY_COUNT=<entries your proxies add>`, if the proxy is also in front of the backend, and the backend reachable only through it |

On any install that serves the public, put the frontend behind a reverse proxy that sets `X-Forwarded-For` to the visitor's address alone, replacing any value the request arrived with, or list the proxies in `TRUSTED_PROXIES`. Either way, let browsers reach the frontend only through that proxy, because the frontend then believes the header whoever sends it.


# Create a Basic Agent

## **Overview**

This guide walks through creating a simple question-answer AI agent using AutoGPT's visual builder. This is a basic example that can be expanded into more complex agents.

## **Prerequisites**

### **Cloud-Hosted AutoGPT**

If you're using the cloud-hosted version at [agpt.co](https://agpt.co), you're ready to go! AI blocks come with **built-in credits** — no API keys required to get started. If you'd prefer to use your own API keys, you can add them via **Profile → Integrations**.

### **Self-Hosted (Docker)**

If you're running AutoGPT yourself, you'll need to add your own API keys. Where they go depends on how you installed it.

**Docker Hub image** (`significantgravitas/autogpt`): the backend reads these keys from the container's environment. Put them in an environment file, for example `autogpt.env` (or pass each one with `-e`):

```bash
# autogpt.env
OPENAI_API_KEY=sk-your-key-here
ANTHROPIC_API_KEY=sk-ant-your-key-here
# Add other provider keys as needed
```

Then replace the container so it starts with those keys, keeping the same `autogpt-data` volume:

```bash
docker stop autogpt && docker rm autogpt
# then rerun your original docker run command with --env-file autogpt.env added
```

**Appliance installer**: add the keys to the installer's private `autogpt.env`, then recreate the container as described in [Runtime Configuration](https://agpt.co/docs/platform/self-hosting/installer#runtime-configuration).

**Docker Compose from source**: add the same keys to `autogpt_platform/backend/.env`, then restart the services from `autogpt_platform/`:

```bash
docker compose down && docker compose up -d
```

AutoPilot has its own provider settings; see [Models and memory](https://agpt.co/docs/platform/self-hosting/single-container#models-and-memory).

**Note:** The Calculator example below doesn't require any API credentials — it's a good way to test your setup before adding AI blocks.

## **Example Agent: Q\&A (with AI)**

A step-by-step guide to creating a simple Q\&A agent using input and output blocks.

## **Components Required**

1. Input Block
2. AI Text Generator Block
3. Output Block

## **Step-by-Step Instructions**

### **1. Set Up the Basic Structure**

1. Add an Input Block
2. Add an AI Text Generator Block
3. Add an Output Block

### **2. Connect the Components**

1. Connect the Input Block to the AI Text Generator's Prompt
2. Connect the AI Text Generator's response to the Output Block's value

### **3. Configure Block Names**

* Name the Input Block: "question"
* Name the Output Block: "answer"

### **4. Save the Agent**

1. Click the Save button
2. Name your agent (e.g., "question and answer")

### **5. Test the Agent**

1. Click the Run button
2. Enter a question in the input field (e.g., "How far is Earth from Pluto?")
3. View the results through either:
   * The "View More" option
   * The "Agent Outputs" section

## **Viewing Results**

You can access the AI's response in two ways:

* Click "View More" for detailed results
* Check the "Agent Outputs" section for the response

## **Example Agent: Calculator (without AI)**

A step-by-step guide to creating a simple calculator agent using input and output blocks.

\##**Components Required**

* Input Block (2 instances)
* Calculator Block
* Output Block

## **Setup Instructions**

### **1. Adding Input Blocks**

1. Add two input blocks, positioned one below the other
2. Name the first input block "a"
3. Name the second input block "b"

### **2. Adding Calculator Block**

1. Add a calculator block to your workspace
2. Position it after the input blocks

### **3. Adding Output Block**

1. Add an output block
2. Name it "results"

### **4. Connecting the Blocks**

1. Connect the "a" input block to the "a" input on the calculator block
2. Connect the "b" input block to the "b" input on the calculator block
3. Connect the calculator block's result to the value input of the output block

### **5. Saving Your Agent**

1. Name your agent (e.g., "Simple Calculate Agent")
2. Save the configuration

## **Testing Your Calculator**

### **Running Calculations**

1. Enter values in both input blocks
2. Select the desired operation (e.g., multiply)
3. Click the "Run" button to execute the calculation

### **Viewing Results**

There are two ways to view the calculation results:

1. Click "View More" to see the detailed output
2. Check the "Agent Outputs" section, which displays results from the output block

## **Example Calculation**

* Input A: 227
* Input B: 17
* Operation: Multiply
* Expected output will be shown in the results section

## **Tips**

* Always save your agent after making changes
* Verify all connections are properly made before running
* Use the "View More" option for detailed output information

## **Note**

While these are basic example, you can enhance the agent with additional blocks and functionality to create more complex interactions.


# Edit an Agent

## **Overview**

This guide explains how to access and edit existing agents in AutoGPT, whether they're your own creations or downloaded from the marketplace.

## **Steps to Edit an Agent**

### **1. Access the Monitor Tab**

* Navigate to the Monitor Tab in the AutoGPT builder
* You'll see a list of all your agents, including:
  * Agents you've created
  * Agents downloaded from the marketplace

### **2. Select the Agent**

* Locate the agent you want to edit from the list
* Click on the agent name to select it

### **3. Enter Edit Mode**

* Look for the pencil icon next to the selected agent
* Click the pencil icon to open the editor

### **4. Modify the Agent**

* The agent will load in the editor with all its existing components
* Make your desired modifications to the agent's configuration

### **5. Save Changes**

* After making your modifications, save the updated agent

## **Note**

* All agents can be edited, regardless of whether they were created by you or downloaded from the marketplace
* Changes are saved to your local instance


# Delete an Agent

## **Overview**

Is your AutoGPT Monitor getting cluttered or did you create an agent you no longer see? Learn how to quickly delete unwanted agents.

## **Steps to Delete an Agent**

1. **Locate the Agent**
   * Navigate to the Monitor Tab in the AutoGPT builder
   * Find the agent you want to delete from the list
2. **Select the Agent**
   * Click on the agent you wish to delete
3. **Delete the Agent**
   * Look for the trash icon on the right side of the interface
   * Click the trash icon
   * A confirmation dialog will appear asking "Are you sure you want to delete this agent?"
   * Click "Yes, delete" to confirm

Once confirmed, the agent will be immediately removed from your list.

**Note**: This action cannot be undone, so make sure you want to permanently delete the agent before confirming.


# Download & Import an Agent

## **Overview**

This guide explains how to download an agent from the AutoGPT marketplace and import it into your locally hosted instance.

## **Prerequisites**

* A running self-hosted AutoGPT instance
* Access to the public marketplace at [platform.agpt.co/marketplace](https://platform.agpt.co/marketplace)

## **Step-by-Step Process**

### **1. Download the Agent**

1. Open the public marketplace and click the agent you want
2. Under "Want to use this agent locally?", click **Download here**
3. The agent file (JSON) saves to your computer

### **2. Import the Agent**

1. In your self-hosted instance, open **Agents**
2. Click **Import**
3. On the **AutoGPT agent** tab, select the downloaded agent file
4. Check the agent name and description
5. Click **Upload**

### **3. Verify Import**

* The agent opens in the Builder
* It also appears in your **Agents** library

## **Important Notes**

* Before running it, connect the credentials its blocks need under **Settings → Integrations**
* Deployment-level provider keys and OAuth app credentials are set as environment variables instead; see [Self-Hosted Credentials](https://agpt.co/docs/platform/using-the-platform/integrations-and-credentials#self-hosted-credentials)


# Submit an Agent to the Marketplace

## **Prerequisites**

* A completed agent built using the AutoGPT Builder
* Your agent must be saved before submission

## **Submission Steps**

1. **Access the Submission Form**
   * Navigate to the marketplace
   * Click the "Submit Agent" button
2. **Select Your Agent**
   * Use the dropdown menu to select your completed agent
3. **Fill Out Required Information**
   * Add a detailed description of your agent
   * Enter the author name
   * Add at least one keyword to help users find your agent
   * Select the most relevant category for your agent
4. **Review Terms**
   * Read and agree to the marketplace terms
5. **Submit for Review**
   * Click the "Submit" button to complete your submission

## **After Submission**

* Your agent will enter a "pending" state
* The AutoGPT team will review your submission
* If approved, your agent will appear in the marketplace as a new listing

## **Tips for a Successful Submission**

* Provide a clear, detailed description of what your agent does
* Choose relevant keywords that accurately describe your agent's functionality
* Ensure your agent is fully tested and working as intended before submission
* Select the most appropriate category to help users find your agent


# Agent Blocks Overview

## **Overview**

This guide explains how to create a reusable agent block that can be used as a component in other agents.

## **What Are Agent Blocks?**

Agent blocks are pre-configured, reusable AI workflows that can be used as components within larger automation systems. Think of them as "smart building blocks" - each agent block is itself a complete workflow that can:

* Accept specific inputs
* Process data using AI and traditional automation
* Produce defined outputs
* Be easily reused in different contexts

The power of agent blocks lies in their modularity. Once you create an agent with a specific capability (like translating text or analyzing sentiment), you can reuse it as a single block in other workflows. This means you can:

* Combine multiple agent blocks to create more complex automations
* Reuse proven workflows without rebuilding them
* Share agent blocks with other users
* Create hierarchical systems where specialized agents work together

For example, a content creation workflow might combine several agent blocks:

* A research agent block that gathers information
* A writing agent block that creates the initial draft
* An editing agent block that polishes the content
* A formatting agent block that prepares the final output

## **Creating the Base Agent**

### **Required Components**

1. Input Block
2. AI Text Generator Block
3. Output Block

### **Step-by-Step Setup**

1. **Add and Configure Blocks**
   * Add an Input Block
   * Add an AI Text Generator Block
   * Add an Output Block
2. **Connect Components**
   * Connect Input's result to AI Text Generator's Prompt
   * Connect AI Text Generator's response to Output's value
3. **Name the Components**
   * Name the Input Block: "question"
   * Name the Output Block: "answer"
4. **Save the Agent**
   * Choose a descriptive name (e.g., "Weather Agent")
   * Click Save

## **Converting to a Block**

1. **Access the Block Menu**
   * Go to the Builder interface
   * Click the Blocks menu
   * Click the agent tag or search the name of your agent
2. **Using the Agent Block**
   * Click on the agent block to add to your workflow
   * Save the new agent with a descriptive name (e.g., "Weather Agent")

## **Testing the Agent Block**

1. **Run the Agent**
   * Enter a test question (e.g., "How far is the Earth from the Moon?")
   * Click Run
2. **View Results**
   * Option 1: Check "Agent Outputs" section\*
   * Option 2: Click "View More" for detailed results

\*Note: if there is no output block then the "Agent Outputs" button will show up blank. You can see the output under view more or at bottom of the block.

## **Advanced Usage**

* You can make more complex agents by combining multiple agent blocks
* Chain different agents together for more sophisticated workflows

## **Note**

This is a basic example that can be expanded upon to create more complex agent blocks with additional functionality.


# Build your own Blocks

This guide will walk you through the process of creating and testing a new block for the AutoGPT Agent Server, using the WikipediaSummaryBlock as an example.

!!! tip "New SDK-Based Approach" For a more comprehensive guide using the new SDK pattern with ProviderBuilder and advanced features like OAuth and webhooks, see the [Block SDK Guide](https://agpt.co/docs/platform/building-blocks/block-sdk-guide).

## Understanding Blocks and Testing

Blocks are reusable components that can be connected to form a graph representing an agent's behavior. Each block has inputs, outputs, and a specific function. Proper testing is crucial to ensure blocks work correctly and consistently.

## Block Auto-Discovery

All block modules are **automatically discovered and imported** at startup. The block loader in `backend/blocks/__init__.py` uses `Path(__file__).parent.rglob("*.py")` to find every `.py` file in the `blocks/` directory tree. Files named `__init__.py` and those starting with `test_` are excluded.

This means:

* You do **not** need to manually register your block anywhere — just create the file and your `Block` subclass will be picked up automatically.
* Any **module-level side effects** (e.g., global registrations, print statements) in your block files will execute on import. Keep block packages clean and avoid side-effect-heavy code at module scope.
* Block auto-discovery does not replace provider setup. For a new API-key integration, follow the [provider auth setup](#api-key-only-provider-auth-recommended-pattern) below: add the provider name, credentials, display metadata, and [integration icon](#integration-icon-required). Frontend provider data is loaded dynamically; no manual frontend provider registration is needed.

## Creating and Testing a New Block

Follow these steps to create and test a new block:

1. **Create a new Python file** for your block in the `autogpt_platform/backend/backend/blocks` directory. Name it descriptively and use snake\_case. For example: `get_wikipedia_summary.py`.
2. **Import necessary modules and create a class that inherits from `Block`**. Make sure to include all necessary imports for your block.

   Every block should contain the following:

   ```python
   from backend.blocks._base import Block, BlockSchemaInput, BlockSchemaOutput, BlockOutput
   ```

   Example for the Wikipedia summary block:

   ```python
   from backend.blocks._base import Block, BlockSchemaInput, BlockSchemaOutput, BlockOutput
   from backend.utils.get_request import GetRequest
   import requests

   class WikipediaSummaryBlock(Block, GetRequest):
       # Block implementation will go here
   ```
3. **Define the input and output schemas** using `BlockSchema`. These schemas specify the data structure that the block expects to receive (input) and produce (output).

   * The input schema defines the structure of the data the block will process. Each field in the schema represents a required piece of input data.
   * The output schema defines the structure of the data the block will return after processing. Each field in the schema represents a piece of output data.

   Example:

   ```python
   class Input(BlockSchemaInput):
       topic: str  # The topic to get the Wikipedia summary for

   class Output(BlockSchemaOutput):
       summary: str  # The summary of the topic from Wikipedia
   ```
4. **Implement the `__init__` method, including test data and mocks:**

   !!! important Use UUID generator (e.g. <https://www.uuidgenerator.net/>) for every new block `id` and *do not* make up your own. Alternatively, you can run this python code to generate an uuid: `print(__import__('uuid').uuid4())`

   ```python
   def __init__(self):
       super().__init__(
           # Unique ID for the block, used across users for templates
           # If you are an AI leave it as is or change to "generate-proper-uuid"
           id="xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx",
           input_schema=WikipediaSummaryBlock.Input,  # Assign input schema
           output_schema=WikipediaSummaryBlock.Output,  # Assign output schema

               # Provide sample input, output and test mock for testing the block

           test_input={"topic": "Artificial Intelligence"},
           test_output=("summary", "summary content"),
           test_mock={"get_request": lambda url, json: {"extract": "summary content"}},
       )
   ```

   * `id`: A unique identifier for the block.
   * `input_schema` and `output_schema`: Define the structure of the input and output data.

   Let's break down the testing components:

   * `test_input`: This is a sample input that will be used to test the block. It should be a valid input according to your Input schema.
   * `test_output`: This is the expected output when running the block with the `test_input`. It should match your Output schema. For non-deterministic outputs or when you only want to assert the type, you can use Python types instead of specific values. In this example, `("summary", str)` asserts that the output key is "summary" and its value is a string.
   * `test_mock`: This is crucial for blocks that make network calls. It provides a mock function that replaces the actual network call during testing.

   In this case, we're mocking the `get_request` method to always return a dictionary with an 'extract' key, simulating a successful API response. This allows us to test the block's logic without making actual network requests, which could be slow, unreliable, or rate-limited.
5. **Implement the `run` method with error handling.** This should contain the main logic of the block:

   ```python
   def run(self, input_data: Input, **kwargs) -> BlockOutput:
       try:
           topic = input_data.topic
           url = f"https://en.wikipedia.org/api/rest_v1/page/summary/{topic}"

           response = self.get_request(url, json=True)
           yield "summary", response['extract']

       except requests.exceptions.HTTPError as http_err:
           raise RuntimeError(f"HTTP error occurred: {http_err}")
   ```

   * **Try block**: Contains the main logic to fetch and process the Wikipedia summary.
   * **API request**: Send a GET request to the Wikipedia API.
   * **Error handling**: Handle various exceptions that might occur during the API request and data processing. We don't need to catch all exceptions, only the ones we expect and can handle. The uncaught exceptions will be automatically yielded as `error` in the output. Any block that raises an exception (or yields an `error` output) will be marked as failed. Prefer raising exceptions over yielding `error`, as it will stop the execution immediately.
   * **Yield**: Use `yield` to output the results. Prefer to output one result object at a time. If you are calling a function that returns a list, you can yield each item in the list separately. You can also yield the whole list as well, but do both rather than yielding the list. For example: If you were writing a block that outputs emails, you'd yield each email as a separate result object, but you could also yield the whole list as an additional single result object. Yielding output named `error` will break the execution right away and mark the block execution as failed.
   * **kwargs**: The `kwargs` parameter is used to pass additional arguments to the block. It is not used in the example above, but it is available to the block. You can also have args as inline signatures in the run method ala `def run(self, input_data: Input, *, user_id: str, **kwargs) -> BlockOutput:`. Available kwargs are:
     * `user_id`: The ID of the user running the block.
     * `graph_id`: The ID of the agent that is executing the block. This is the same for every version of the agent
     * `graph_exec_id`: The ID of the execution of the agent. This changes every time the agent has a new "run"
     * `node_exec_id`: The ID of the execution of the node. This changes every time the node is executed
     * `node_id`: The ID of the node that is being executed. It changes every version of the graph, but not every time the node is executed.
     * `execution_context`: An `ExecutionContext` object containing user\_id, graph\_exec\_id, workspace\_id, and session\_id. Required for file handling.

### Handling Files in Blocks

When your block needs to work with files (images, videos, documents), use `store_media_file()` from `backend.util.file`. This function handles downloading, validation, virus scanning, and storage.

**Import:**

```python
from backend.data.execution import ExecutionContext
from backend.util.file import store_media_file
from backend.util.type import MediaFileType
```

**The `return_format` parameter determines what you get back:**

| Format                   | Use When                                             | Returns                                              |
| ------------------------ | ---------------------------------------------------- | ---------------------------------------------------- |
| `"for_local_processing"` | Processing with local tools (ffmpeg, MoviePy, PIL)   | Local file path (e.g., `"image.png"`)                |
| `"for_external_api"`     | Sending content to external APIs (Replicate, OpenAI) | Data URI (e.g., `"data:image/png;base64,..."`)       |
| `"for_block_output"`     | Returning output from your block                     | Smart: `workspace://` in CoPilot, data URI in graphs |

**Examples:**

```python
async def run(
    self,
    input_data: Input,
    *,
    execution_context: ExecutionContext,
    **kwargs,
) -> BlockOutput:
    # PROCESSING: Need to work with file locally (ffmpeg, MoviePy, PIL)
    local_path = await store_media_file(
        file=input_data.video,
        execution_context=execution_context,
        return_format="for_local_processing",
    )
    # local_path = "video.mp4" - use with Path, ffmpeg, subprocess, etc.
    full_path = get_exec_file_path(execution_context.graph_exec_id, local_path)

    # EXTERNAL API: Need to send content to an API like Replicate
    image_b64 = await store_media_file(
        file=input_data.image,
        execution_context=execution_context,
        return_format="for_external_api",
    )
    # image_b64 = "data:image/png;base64,iVBORw0..." - send to external API

    # OUTPUT: Returning result from block to user/next block
    result_url = await store_media_file(
        file=generated_image_url,
        execution_context=execution_context,
        return_format="for_block_output",
    )
    yield "image_url", result_url
    # In CoPilot: result_url = "workspace://abc123" (persistent, context-efficient)
    # In graphs:  result_url = "data:image/png;base64,..." (for next block/display)
```

**Key points:**

* `for_block_output` is the **only** format that auto-adapts to execution context
* Always use `for_block_output` for block outputs unless you have a specific reason not to
* Never manually check for `workspace_id` - let `for_block_output` handle the logic
* The function handles URLs, data URIs, `workspace://` references, and local paths as input

### Field Types

#### oneOf fields

`oneOf` allows you to specify that a field must be exactly one of several possible options. This is useful when you want your block to accept different types of inputs that are mutually exclusive.

Example:

```python
attachment: Union[Media, DeepLink, Poll, Place, Quote] = SchemaField(
    discriminator='discriminator',
    description="Attach either media, deep link, poll, place or quote - only one can be used"
)
```

The `discriminator` parameter tells AutoGPT which field to look at in the input to determine which type it is.

In each model, you need to define the discriminator value:

```python
class Media(BaseModel):
    discriminator: Literal['media']
    media_ids: List[str]

class DeepLink(BaseModel):
    discriminator: Literal['deep_link']
    direct_message_deep_link: str
```

#### OptionalOneOf fields

`OptionalOneOf` is similar to `oneOf` but allows the field to be optional (None). This means the field can be either one of the specified types or None.

Example:

```python
attachment: Union[Media, DeepLink, Poll, Place, Quote] | None = SchemaField(
    discriminator='discriminator',
    description="Optional attachment - can be media, deep link, poll, place, quote or None"
)
```

The key difference is the `| None` which makes the entire field optional.

### Blocks with authentication

Our system supports auth offloading for API keys and OAuth2 authorization flows. Adding a block with API key authentication is straight-forward, as is adding a block for a service that we already have OAuth2 support for.

Implementing the block itself is relatively simple. On top of the instructions above, you're going to add a `credentials` parameter to the `Input` model and the `run` method:

```python
from backend.data.model import (
    APIKeyCredentials,
    OAuth2Credentials,
    Credentials,
)

from backend.blocks._base import Block, BlockOutput, BlockSchemaInput, BlockSchemaOutput
from backend.data.model import CredentialsField
from backend.integrations.providers import ProviderName


# API Key auth:
class BlockWithAPIKeyAuth(Block):
    class Input(BlockSchemaInput):
        # Note that the type hint below is require or you will get a type error.
        # The first argument is the provider name, the second is the credential type.
        credentials: CredentialsMetaInput[
            Literal[ProviderName.GITHUB], Literal["api_key"]
        ] = CredentialsField(
            description="The GitHub integration can be used with "
            "any API key with sufficient permissions for the blocks it is used on.",
        )

    # ...

    def run(
        self,
        input_data: Input,
        *,
        credentials: APIKeyCredentials,
        **kwargs,
    ) -> BlockOutput:
        ...

# OAuth:
class BlockWithOAuth(Block):
    class Input(BlockSchemaInput):
        # Note that the type hint below is require or you will get a type error.
        # The first argument is the provider name, the second is the credential type.
        credentials: CredentialsMetaInput[
            Literal[ProviderName.GITHUB], Literal["oauth2"]
        ] = CredentialsField(
            required_scopes={"repo"},
            description="The GitHub integration can be used with OAuth.",
        )

    # ...

    def run(
        self,
        input_data: Input,
        *,
        credentials: OAuth2Credentials,
        **kwargs,
    ) -> BlockOutput:
        ...

# API Key auth + OAuth:
class BlockWithAPIKeyAndOAuth(Block):
    class Input(BlockSchemaInput):
        # Note that the type hint below is require or you will get a type error.
        # The first argument is the provider name, the second is the credential type.
        credentials: CredentialsMetaInput[
            Literal[ProviderName.GITHUB], Literal["api_key", "oauth2"]
        ] = CredentialsField(
            required_scopes={"repo"},
            description="The GitHub integration can be used with OAuth, "
            "or any API key with sufficient permissions for the blocks it is used on.",
        )

    # ...

    def run(
        self,
        input_data: Input,
        *,
        credentials: Credentials,
        **kwargs,
    ) -> BlockOutput:
        ...
```

The credentials will be automagically injected by the executor in the back end.

The `APIKeyCredentials` and `OAuth2Credentials` models are defined [here](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/data/model.py). To use them in e.g. an API request, you can either access the token directly:

```python
# credentials: APIKeyCredentials
response = requests.post(
    url,
    headers={
        "Authorization": f"Bearer {credentials.api_key.get_secret_value()})",
    },
)

# credentials: OAuth2Credentials
response = requests.post(
    url,
    headers={
        "Authorization": f"Bearer {credentials.access_token.get_secret_value()})",
    },
)
```

or use the shortcut `credentials.auth_header()`:

```python
# credentials: APIKeyCredentials | OAuth2Credentials
response = requests.post(
    url,
    headers={"Authorization": credentials.auth_header()},
)
```

The backend discovers provider names from the `ProviderName` enum and the SDK's `AutoRegistry`. The `_auth.py` pattern below uses a `ProviderName` member, so add the new provider to that enum. SDK integrations can instead register provider names through `ProviderBuilder`; see the [Block SDK Guide](https://agpt.co/docs/platform/building-blocks/block-sdk-guide).

<details>

<summary><code>ProviderName</code> definition</summary>

```python
--8<-- "autogpt_platform/backend/backend/integrations/providers.py:ProviderName"
```

</details>

#### API-Key-Only Provider Auth (Recommended Pattern)

For integrations that only use API key authentication (no OAuth), keep credential definitions in `_auth.py` and register display metadata separately. The setup is:

1. **Add to `ProviderName` enum** in `backend/integrations/providers.py`
2. **Create `_auth.py`** in your block package with credentials type, field factory, and test credentials
3. **Create the block** using the credentials field from `_auth.py`
4. **Create `_config.py`** with the provider description and supported auth types for the settings UI
5. **Add the integration icon** as described [below](#integration-icon-required)

Here's the complete `_auth.py` pattern (using ZeroBounce as a reference):

```python
from typing import Literal

from pydantic import SecretStr

from backend.data.model import APIKeyCredentials, CredentialsField, CredentialsMetaInput
from backend.integrations.providers import ProviderName

# Type aliases for your provider
MyProviderCredentials = APIKeyCredentials
MyProviderCredentialsInput = CredentialsMetaInput[
    Literal[ProviderName.MY_PROVIDER],
    Literal["api_key"],
]


# Field factory for use in block Input schemas
def MyProviderCredentialsField() -> MyProviderCredentialsInput:
    return CredentialsField(
        description="The My Provider integration requires an API key.",
    )


# Test credentials for block tests
TEST_CREDENTIALS = APIKeyCredentials(
    id="01234567-89ab-cdef-0123-456789abcdef",
    provider="my_provider",
    api_key=SecretStr("mock-my-provider-api-key"),
    title="Mock My Provider API key",
    expires_at=None,
)

TEST_CREDENTIALS_INPUT = {
    "provider": TEST_CREDENTIALS.provider,
    "id": TEST_CREDENTIALS.id,
    "type": TEST_CREDENTIALS.type,
    "title": TEST_CREDENTIALS.title,
}
```

Then use it in your block:

```python
from ._auth import MyProviderCredentials, MyProviderCredentialsField, MyProviderCredentialsInput

class MyBlock(Block):
    class Input(BlockSchemaInput):
        credentials: MyProviderCredentialsInput = MyProviderCredentialsField()
        # ... other inputs

    async def run(
        self,
        input_data: Input,
        *,
        credentials: MyProviderCredentials,
        **kwargs,
    ) -> BlockOutput:
        api_key = credentials.api_key.get_secret_value()
        # ... use the API key
        yield "result", ...
```

Register the provider metadata in `_config.py`, following `backend/blocks/zerobounce/_config.py`:

```python
from backend.integrations.providers import ProviderName
from backend.sdk import ProviderBuilder

my_provider = (
    ProviderBuilder(ProviderName.MY_PROVIDER.value)
    .with_description("A short description of the integration")
    .with_supported_auth_types("api_key")
    .build()
)
```

This metadata tells the settings UI which connection methods to offer. It does not replace the credentials declared in `_auth.py`. The block loader imports `_config.py` automatically, and `.build()` registers the provider. OAuth, webhooks, and cost tracking use additional `ProviderBuilder` methods described in the [Block SDK Guide](https://agpt.co/docs/platform/building-blocks/block-sdk-guide).

#### Multiple credentials inputs

Multiple credentials inputs are supported, under the following conditions:

* The name of each of the credentials input fields must end with `_credentials`.
* The names of the credentials input fields must match the names of the corresponding parameters on the `run(..)` method of the block.
* If more than one of the credentials parameters are required, `test_credentials` is a `dict[str, Credentials]`, with for each required credentials input the parameter name as the key and suitable test credentials as the value.

#### Adding an OAuth2 service integration

To add support for a new OAuth2-authenticated service, you'll need to add an `OAuthHandler`. All our existing handlers and the base class can be found [here](https://github.com/Significant-Gravitas/AutoGPT/tree/master/autogpt_platform/backend/backend/integrations/oauth).

Every handler must implement the following parts of the [`BaseOAuthHandler`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/integrations/oauth/base.py) interface:

```python
--8<-- "autogpt_platform/backend/backend/integrations/oauth/base.py:BaseOAuthHandler1"
--8<-- "autogpt_platform/backend/backend/integrations/oauth/base.py:BaseOAuthHandler2"
--8<-- "autogpt_platform/backend/backend/integrations/oauth/base.py:BaseOAuthHandler3"
--8<-- "autogpt_platform/backend/backend/integrations/oauth/base.py:BaseOAuthHandler4"
--8<-- "autogpt_platform/backend/backend/integrations/oauth/base.py:BaseOAuthHandler5"
--8<-- "autogpt_platform/backend/backend/integrations/oauth/base.py:BaseOAuthHandler6"
```

As you can see, this is modeled after the standard OAuth2 flow.

Aside from implementing the `OAuthHandler` itself, adding a handler into the system requires two more things:

* Adding the handler class to `HANDLERS_BY_NAME` under [`integrations/oauth/__init__.py`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/integrations/oauth/__init__.py)

```python
--8<-- "autogpt_platform/backend/backend/integrations/oauth/__init__.py:HANDLERS_BY_NAMEExample"
```

* Adding `{provider}_client_id` and `{provider}_client_secret` to the application's `Secrets` under [`util/settings.py`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/util/settings.py)

```python
--8<-- "autogpt_platform/backend/backend/util/settings.py:OAuthServerCredentialsExample"
```

#### Adding to the frontend

**Integration Icon (Required)**

When adding a new integration provider, you **must** add a PNG icon at:

```
autogpt_platform/frontend/public/integrations/{provider_name}.png
```

The frontend block menu dynamically loads icons using the URL `/integrations/{integration.name}.png` (see `PaginatedIntegrationList.tsx`). If the icon file is missing, the block will show a **broken image** in the builder UI.

Use the same `provider_name` that matches your `ProviderName` enum value (lowercase). For example, if your provider is `ProviderName.SLACK`, the icon should be at `frontend/public/integrations/slack.png`.

**Frontend Provider Registration**

No manual frontend provider registration is required. The credentials provider context fetches provider names from the backend, and the integrations UI uses the description and `supported_auth_types` returned by `GET /integrations/providers`. Set those fields in the backend provider configuration as shown above.

Block credential inputs derive their accepted credential types from the block's input schema. `CredentialsProviderName` is a string type; `CredentialsType` describes authentication methods, not provider names, so neither needs a new frontend enum entry for a provider.

The credentials list has an optional `providerIcons` map in `frontend/src/components/contextual/CredentialsInput/helpers.ts`; unlisted providers use a fallback icon. This is separate from the PNG asset required by the block menu.

#### Example: GitHub integration

* GitHub blocks with API key + OAuth2 support: [`blocks/github`](https://github.com/Significant-Gravitas/AutoGPT/tree/master/autogpt_platform/backend/backend/blocks/github/)

```python
--8<-- "autogpt_platform/backend/backend/blocks/github/issues.py:GithubCommentBlockExample"
```

* GitHub OAuth2 handler: [`integrations/oauth/github.py`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/integrations/oauth/github.py)

```python
--8<-- "autogpt_platform/backend/backend/integrations/oauth/github.py:GithubOAuthHandlerExample"
```

#### Example: Google integration

* Google OAuth2 handler: [`integrations/oauth/google.py`](https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/integrations/oauth/google.py)

```python
--8<-- "autogpt_platform/backend/backend/integrations/oauth/google.py:GoogleOAuthHandlerExample"
```

You can see that google has defined a `DEFAULT_SCOPES` variable, this is used to set the scopes that are requested no matter what the user asks for.

```python
--8<-- "autogpt_platform/backend/backend/blocks/google/_auth.py:GoogleOAuthIsConfigured"
```

You can also see that `GOOGLE_OAUTH_IS_CONFIGURED` is used to disable the blocks that require OAuth if the oauth is not configured. This is in the `__init__` method of each block. This is because there is no api key fallback for google blocks so we need to make sure that the oauth is configured before we allow the user to use the blocks.

### Webhook-triggered Blocks

Webhook-triggered blocks allow your agent to respond to external events in real-time. These blocks are triggered by incoming webhooks from third-party services rather than being executed manually.

Creating and running a webhook-triggered block involves three main components:

* The block itself, which specifies:
  * Inputs for the user to select a resource and events to subscribe to
  * A `credentials` input with the scopes needed to manage webhooks
  * Logic to turn the webhook payload into outputs for the webhook block
* The `WebhooksManager` for the corresponding webhook service provider, which handles:
  * (De)registering webhooks with the provider
  * Parsing and validating incoming webhook payloads
* The credentials system for the corresponding service provider, which may include an `OAuthHandler`

There is more going on under the hood, e.g. to store and retrieve webhooks and their links to nodes, but to add a webhook-triggered block you shouldn't need to make changes to those parts of the system.

#### Creating a Webhook-triggered Block

To create a webhook-triggered block, follow these additional steps on top of the basic block creation process:

1. **Define `webhook_config`** in your block's `__init__` method.
2. **Define event filter input** in your block's Input schema. This allows the user to select which specific types of events will trigger the block in their agent.
   * The name of the input field (`events` in this case) must match `webhook_config.event_filter_input`.
   * The event filter itself must be a Pydantic model with only boolean fields.
3. **Include payload field** in your block's Input schema.
4. **Define `credentials` input** in your block's Input schema.
   * Its scopes must be sufficient to manage a user's webhooks through the provider's API
   * See [Blocks with authentication](#blocks-with-authentication) for further details
5. **Process webhook payload** and output relevant parts of it in your block's `run` method.

#### Adding a Webhooks Manager

To add support for a new webhook provider, you'll need to create a WebhooksManager that implements the `BaseWebhooksManager` interface:

```python
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager1"

--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager2"
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager3"
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager4"
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager5"
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/_base.py:BaseWebhooksManager6"
```

!!! info "Signature verification (`verify_signature`)" If the upstream provider signs its deliveries (e.g. GitHub's `X-Hub-Signature-256`, Airtable's `X-Airtable-Content-MAC`), override `verify_signature` and use `hmac.compare_digest` for the comparison. Raise `fastapi.HTTPException(403)` on missing/invalid signatures.

```
If the provider has no signing scheme (consumer wearables, simple
"POST to this URL" tools), leave the default in place. The webhook
URL's UUID is then the bearer secret — document that for users.
```

And add a reference to your `WebhooksManager` class in `load_webhook_managers`:

```python
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/__init__.py:load_webhook_managers"
```

#### Example: GitHub Webhook Integration

<details>

<summary>GitHub Webhook triggers: <a href="https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/blocks/github/triggers.py"><code>blocks/github/triggers.py</code></a></summary>

```python
--8<-- "autogpt_platform/backend/backend/blocks/github/triggers.py:GithubTriggerExample"
```

</details>

<details>

<summary>GitHub Webhooks Manager: <a href="https://github.com/Significant-Gravitas/AutoGPT/blob/master/autogpt_platform/backend/backend/integrations/webhooks/github.py"><code>integrations/webhooks/github.py</code></a></summary>

```python
--8<-- "autogpt_platform/backend/backend/integrations/webhooks/github.py:GithubWebhooksManager"
```

</details>

## Key Points to Remember

* **Unique ID**: Give your block a unique ID in the **init** method.
* **Input and Output Schemas**: Define clear input and output schemas.
* **Error Handling**: Implement error handling in the `run` method.
* **Output Results**: Use `yield` to output results in the `run` method.
* **Testing**: Provide test input and output in the **init** method for automatic testing.

## Understanding the Testing Process

The testing of blocks is handled by `test_block.py`, which does the following:

1. It calls the block with the provided `test_input`. If the block has a `credentials` field, `test_credentials` is passed in as well.
2. If a `test_mock` is provided, it temporarily replaces the specified methods with the mock functions.
3. It then asserts that the output matches the `test_output`.

For the WikipediaSummaryBlock:

* The test will call the block with the topic "Artificial Intelligence".
* Instead of making a real API call, it will use the mock function, which returns `{"extract": "summary content"}`.
* It will then check if the output key is "summary" and its value is a string.

This approach allows us to test the block's logic comprehensively without relying on external services, while also accommodating non-deterministic outputs.

## Security Best Practices for SSRF Prevention

When creating blocks that handle external URL inputs or make network requests, it's crucial to use the platform's built-in SSRF protection mechanisms. The `backend.util.request` module provides a secure `Requests` wrapper class that should be used for all HTTP requests.

### Using the Secure Requests Wrapper

```python
from backend.util.request import requests

class MyNetworkBlock(Block):
    def run(self, input_data: Input, **kwargs) -> BlockOutput:
        try:
            # The requests wrapper automatically validates URLs and blocks dangerous requests
            response = requests.get(input_data.url)
            yield "result", response.text
        except ValueError as e:
            # URL validation failed
            raise RuntimeError(f"Invalid URL provided: {e}")
        except requests.exceptions.RequestException as e:
            # Request failed
            raise RuntimeError(f"Request failed: {e}")
```

The `Requests` wrapper provides these security features:

1. **URL Validation**:
   * Blocks requests to private IP ranges (RFC 1918)
   * Validates URL format and protocol
   * Resolves DNS and checks IP addresses
   * Supports whitelisting trusted origins
2. **Secure Defaults**:
   * Disables redirects by default
   * Raises exceptions for non-200 status codes
   * Supports custom headers and validators
3. **Protected IP Ranges**: The wrapper denies requests to these networks:

   ```python
   --8<-- "autogpt_platform/backend/backend/util/request.py:BLOCKED_IP_NETWORKS"
   ```

### Custom Request Configuration

If you need to customize the request behavior:

```python
from backend.util.request import Requests

# Create a custom requests instance with specific trusted origins
custom_requests = Requests(
    trusted_origins=["api.trusted-service.com"],
    raise_for_status=True,
    extra_headers={"User-Agent": "MyBlock/1.0"}
)
```

### Error Handling

Blocks should raise appropriate exceptions for errors that users can fix. The executor classifies errors based on whether they inherit from `ValueError` - these are treated as "expected failures" (user-fixable) rather than system errors.

#### Block Exception Classes

Import from `backend.util.exceptions`:

```python
from backend.util.exceptions import BlockInputError, BlockExecutionError
```

| Exception             | Use Case                                                         | Example                                                    |
| --------------------- | ---------------------------------------------------------------- | ---------------------------------------------------------- |
| `BlockInputError`     | Invalid user input, validation failures, missing required fields | Bad API key format, invalid URL, missing credentials       |
| `BlockExecutionError` | Runtime failures the user can address                            | API errors, auth failures, resource not found, rate limits |
| `ValueError`          | Simple cases (auto-wrapped to `BlockExecutionError`)             | Basic validation errors                                    |

#### Raising Exceptions

```python
from backend.util.exceptions import BlockInputError, BlockExecutionError

class MyBlock(Block):
    async def run(self, input_data: Input, **kwargs) -> BlockOutput:
        # Input validation - use BlockInputError
        if not input_data.api_key:
            raise BlockInputError(
                message="API key is required",
                block_name=self.name,
                block_id=self.id,
            )

        try:
            result = await self.call_api(input_data)
            yield "result", result
        except AuthenticationError as e:
            # API/runtime errors - use BlockExecutionError
            raise BlockExecutionError(
                message=f"Authentication failed: {e}",
                block_name=self.name,
                block_id=self.id,
            ) from e
```

#### What NOT to Catch

Don't catch errors that require system admin intervention:

* Out of money/credits
* Unreachable infrastructure
* Database connection failures
* Internal server errors from your own services

Let these propagate as unexpected errors so they get proper attention.

### Data Models

Use pydantic base models over dict and typeddict where possible. Avoid untyped models for block inputs and outputs as much as possible

### File Input

You can use MediaFileType to handle the importing and exporting of files out of the system. Explore how its used through the system before using it in a block schema.

## Tips for Effective Block Testing

1. **Provide realistic test\_input**: Ensure your test input covers typical use cases.
2. **Define appropriate test\_output**:
   * For deterministic outputs, use specific expected values.
   * For non-deterministic outputs or when only the type matters, use Python types (e.g., `str`, `int`, `dict`).
   * You can mix specific values and types, e.g., `("key1", str), ("key2", 42)`.
3. **Use test\_mock for network calls**: This prevents tests from failing due to network issues or API changes.
4. **Consider omitting test\_mock for blocks without external dependencies**: If your block doesn't make network calls or use external resources, you might not need a mock.
5. **Consider edge cases**: Include tests for potential error conditions in your `run` method.
6. **Update tests when changing block behavior**: If you modify your block, ensure the tests are updated accordingly.

By following these steps, you can create new blocks that extend the functionality of the AutoGPT Agent Server.

## Standalone Unit Tests

In addition to the inline `test_input`/`test_output`/`test_mock` approach described above, you can write standalone unit tests for more complex validation. Place test files alongside your block as `{block_name}_test.py` (e.g., `my_block_test.py`).

!!! warning "Test file naming and auto-discovery" The block loader in `backend/blocks/__init__.py` skips files whose names start with `test_` but still auto-imports files ending in `_test.py` at startup. Keep `_test.py` modules free of module-level side effects (no top-level `patch(...)` / network calls / fixtures-with-side-effects), or name your file `test_{block_name}.py` to opt out of auto-import entirely.

### Test Structure

Two patterns are supported:

**1. Drive the block directly** (mirror `backend/blocks/slack/slack_test.py`) — gives you full control over inputs, mocks, and output assertions:

```python
import pytest
from unittest.mock import AsyncMock, MagicMock, patch

from backend.blocks.my_provider._auth import TEST_CREDENTIALS, TEST_CREDENTIALS_INPUT
from backend.blocks.my_provider.my_block import MyBlock


async def _collect_outputs(block, input_data, credentials):
    outputs: dict[str, object] = {}
    async for name, value in block.run(input_data, credentials=credentials):
        outputs[name] = value
    return outputs


@pytest.mark.asyncio
async def test_my_block_success():
    block = MyBlock()
    input_data = MyBlock.Input(
        credentials=TEST_CREDENTIALS_INPUT,
        query="test query",
    )
    mock_resp = MagicMock()
    mock_resp.json.return_value = {"result": "test data"}

    # Patch where the symbol is *used*. The block ecosystem uses
    # `backend.util.request.Requests` (httpx under the hood), not stdlib `requests`.
    with patch(
        "backend.blocks.my_provider.my_block.Requests.post",
        new_callable=AsyncMock,
        return_value=mock_resp,
    ):
        outputs = await _collect_outputs(block, input_data, TEST_CREDENTIALS)

    assert outputs["result"] == "test data"
```

**2. Run the block's inline `test_input` / `test_output` / `test_mock`** via the framework helper. The helper takes a block instance only and reads the test data defined on the block itself:

```python
import pytest

from backend.blocks.my_provider.my_block import MyBlock
from backend.util.test import execute_block_test


@pytest.mark.asyncio
async def test_my_block_inline_fixtures():
    await execute_block_test(MyBlock())
```

### Key Points

* **`TEST_CREDENTIALS_INPUT`** (from `_auth.py`) is used to construct the `Input` object — it contains the credential metadata (provider, id, type).
* **`TEST_CREDENTIALS`** (from `_auth.py`) is passed to `block.run(..., credentials=...)` — it contains the actual mock API key/token.
* **`execute_block_test(block)`** runs the block against its own inline `test_input` / `test_output` / `test_mock` attributes (set in `__init__`). It does **not** accept `input_data=` or `credentials=` and does **not** return outputs.
* The block attribute for test credentials is `test_credentials` (not `test_credentials_input`) when using the inline test pattern in `__init__`.
* Use `pytest.mark.asyncio` for async block `run()` methods. Mock the HTTP layer where it is *used* — typically `backend.util.request.Requests` (or `httpx.AsyncClient`), not stdlib `requests`.

### Running Tests

```bash
# Run a specific block's standalone tests
poetry run pytest backend/blocks/my_provider/my_block_test.py -xvs

# Run all block tests (inline test_input/test_output validation)
poetry run pytest backend/blocks/test/test_block.py -xvs

# Test a specific block by name (inline tests)
poetry run pytest 'backend/blocks/test/test_block.py::test_available_blocks[MyBlock]' -xvs
```

## Block Documentation Sync

After creating or modifying blocks, you must regenerate the block documentation to keep it in sync with the code.

### Generating Documentation

```bash
cd autogpt_platform/backend
poetry run python scripts/generate_block_docs.py
```

For provider packages, the generator writes one page per Python module:

```
docs/integrations/block-integrations/{provider}/{module}.md
```

For example, `backend/blocks/zerobounce/validate_emails.py` generates `docs/integrations/block-integrations/zerobounce/validate_emails.md`. Top-level block modules are grouped into category pages such as `docs/integrations/block-integrations/basic.md`.

### CI Enforcement

The **"Block Documentation Sync Check"** CI workflow (`.github/workflows/docs-block-sync.yml`) runs on every PR that touches files in `backend/blocks/` or `docs/integrations/`. It runs the generator in `--check` mode and fails the build if docs are out of sync.

If CI fails with a docs sync error, run the generator locally, commit the updated docs, and push.

### Manual Sections

The generated docs support manually-written content that is preserved across regeneration. Use these markers in the generated markdown files:

```markdown
<!-- MANUAL: use_case -->
Your custom usage examples here. This will not be overwritten.
<!-- END MANUAL -->
```

Use the generator-supported block sections `how_it_works`, `use_case`, and `extras`, or file-level `file_description` and `additional_content`. Keep the existing markers rather than inventing section names. These sections hold usage examples, caveats, and integration notes that cannot be generated from block metadata.


# Block SDK Guide

This guide explains how to create new blocks for the AutoGPT Platform using the SDK pattern with advanced features.

## Overview

Blocks are reusable components that perform specific tasks in AutoGPT workflows. They can integrate with external services, process data, or perform any programmatic operation.

## Basic Structure

### 1. Create Provider Configuration

First, create a `_config.py` file to configure your provider using the `ProviderBuilder`:

!!! note "Simple API key provider" \`\`\`python from backend.sdk import BlockCostType, ProviderBuilder

````
my_provider = (
    ProviderBuilder("my_provider")
    .with_api_key("MY_PROVIDER_API_KEY", "My Provider API Key")
    .with_base_cost(1, BlockCostType.RUN)
    .build()
)
```
````

For OAuth providers:

!!! note "OAuth provider configuration" \`\`\`python from backend.sdk import BlockCostType, ProviderBuilder from .\_oauth import MyProviderOAuthHandler

````
my_provider = (
    ProviderBuilder("my_provider")
    .with_oauth(
        MyProviderOAuthHandler,
        scopes=["read", "write"],
        client_id_env_var="MY_PROVIDER_CLIENT_ID",
        client_secret_env_var="MY_PROVIDER_CLIENT_SECRET",
    )
    .with_base_cost(1, BlockCostType.RUN)
    .build()
)
```
````

### 2. Create the Block Class

Create your block file (e.g., `my_block.py`):

```python
import uuid
from backend.sdk import (
    APIKeyCredentials,
    Block,
    BlockCategory,
    BlockOutput,
    BlockSchema,
    BlockSchemaInput,
    BlockSchemaOutput,
    CredentialsMetaInput,
    SchemaField,
)
from ._config import my_provider


class MyBlock(Block):
    class Input(BlockSchemaInput):
        credentials: CredentialsMetaInput = my_provider.credentials_field(
            description="API credentials for My Provider"
        )
        query: str = SchemaField(description="The query to process")
        limit: int = SchemaField(
            description="Number of results",
            default=10,
            ge=1,
            le=100,
        )
        advanced_option: str = SchemaField(
            description="Advanced setting",
            default="",
            advanced=True,
        )

    class Output(BlockSchemaOutput):
        results: list = SchemaField(description="List of results")
        count: int = SchemaField(description="Total count")

    def __init__(self):
        super().__init__(
            id=str(uuid.uuid4()),
            description="Brief description of what this block does",
            categories={BlockCategory.SEARCH},
            input_schema=self.Input,
            output_schema=self.Output,
        )

    async def run(
        self,
        input_data: Input,
        *,
        credentials: APIKeyCredentials,
        **kwargs
    ) -> BlockOutput:
        results = await self.process_data(
            input_data.query,
            input_data.limit,
            credentials
        )

        yield "results", results
        yield "count", len(results)

    async def process_data(self, query, limit, credentials):
        pass
```

!!! note "Input Schema Fields" - **`credentials`**: Use `my_provider.credentials_field()` to add provider authentication - **`query`**: Simple string field with description - **`limit`**: Integer field with validation constraints (`ge=1`, `le=100`) - **`advanced_option`**: Marked with `advanced=True` to hide from basic UI

!!! note "Output Schema Fields" - **`results`**: List of results from the block - **`count`**: Total count of results - The `error` output pin is already defined on `BlockSchemaOutput`

!!! note "Block Initialization" - **`id`**: Generate a unique ID using `uuid.uuid4()` - **`description`**: Brief description of what the block does - **`categories`**: Choose from `BlockCategory` enum (e.g., SEARCH, AI, PRODUCTIVITY) - **`input_schema` / `output_schema`**: Assign the Input and Output classes

!!! note "Run Method" - Implement your block logic in `process_data()` helper method - Use `credentials.api_key.get_secret_value()` to access the API key - Use `yield` to output results - **Do NOT wrap your logic in try/except** — the executor framework handles errors at a higher level. Raise exceptions (e.g., `BlockExecutionError`, `BlockInputError`) for user-fixable errors; let unexpected errors propagate naturally. See [Error Handling in new\_blocks.md](https://agpt.co/docs/platform/building-blocks/new_blocks#error-handling) for details.

## Key Components Explained

### Provider Configuration

!!! tip "Simple API Key Integrations" For integrations that only use API key authentication, define credentials in `_auth.py` and use a small `_config.py` to register the provider description and supported auth types for the settings UI. See [API-Key-Only Provider Auth](https://agpt.co/docs/platform/building-blocks/new_blocks#api-key-only-provider-auth-recommended-pattern) in the main block guide for the complete pattern.

The `ProviderBuilder` is available for advanced use cases (OAuth, webhooks, cost tracking). It allows you to:

* **`.with_api_key()`**: Add API key authentication
* **`.with_oauth()`**: Add OAuth authentication
* **`.with_base_cost()`**: Set what a run costs when it uses the platform's own key for this provider (for example the one `.with_api_key()` reads from the environment); runs on a user's own key are free
* **`.with_webhook_manager()`**: Add webhook support
* **`.with_user_password()`**: Add username/password auth

### Block Schema

* **Input/Output classes**: Define the data structure using `BlockSchema`
* **SchemaField**: Define individual fields with validation
* **CredentialsMetaInput**: Special field for handling credentials

### Block Implementation

1. **Unique ID**: Generate using `uuid.uuid4()`
2. **Categories**: Choose from `BlockCategory` enum (e.g., SEARCH, AI, PRODUCTIVITY)
3. **async run()**: Main execution method that yields outputs
4. **Error handling**: Error output pin is already defined on BlockSchemaOutput

## Advanced Features

### Testing

Add test configuration to your block:

!!! note "Test Configuration" `python def __init__(self): super().__init__( # ... other config ... test_input={ "query": "test query", "limit": 5, "credentials": { "provider": "my_provider", "id": str(uuid.uuid4()), "type": "api_key" } }, test_output=[ ("results", ["result1", "result2"]), ("count", 2) ], test_mock={ "process_data": lambda *args, **kwargs: ["result1", "result2"] } )`

### OAuth Support

Create an OAuth handler in `_oauth.py`:

!!! note "OAuth Handler Implementation" \`\`\`python from backend.integrations.oauth.base import BaseOAuthHandler

````
class MyProviderOAuthHandler(BaseOAuthHandler):
    PROVIDER_NAME = "my_provider"

    def _get_authorization_url(self, scopes: list[str], state: str) -> str:
        # Implement URL generation for OAuth flow
        pass

    def _exchange_code_for_token(self, code: str, scopes: list[str]) -> dict:
        # Implement token exchange logic
        pass
```
````

### Webhook Support

Create a webhook manager in `_webhook.py`:

!!! note "Webhook Manager Implementation" \`\`\`python from backend.integrations.webhooks.\_base import BaseWebhooksManager

````
class MyProviderWebhookManager(BaseWebhooksManager):
    PROVIDER_NAME = "my_provider"

    async def validate_event(self, event: dict) -> bool:
        # Implement event validation logic
        pass
```
````

## File Organization

```
backend/blocks/my_provider/
├── __init__.py          # Export your blocks
├── _config.py           # Provider configuration
├── _oauth.py           # OAuth handler (optional)
├── _webhook.py         # Webhook manager (optional)
├── _api.py             # API client wrapper (optional)
├── models.py           # Data models (optional)
└── my_block.py         # Block implementations
```

## Best Practices

1. **Error Handling**: Use `BlockInputError` for validation failures and `BlockExecutionError` for runtime errors (import from `backend.util.exceptions`). These inherit from `ValueError` so the executor treats them as user-fixable. See [Error Handling in new\_blocks.md](https://agpt.co/docs/platform/building-blocks/new_blocks#error-handling) for details.
2. **Credentials**: Use the provider's `credentials_field()` method
3. **Validation**: Use SchemaField constraints (ge, le, min\_length, etc.)
4. **Categories**: Choose appropriate categories for discoverability
5. **Advanced Fields**: Mark complex options as `advanced=True`
6. **Async Operations**: Use `async`/`await` for I/O operations
7. **API Clients**: Use `Requests()` from SDK or external libraries
8. **Testing**: Include test inputs/outputs for validation

## Common Patterns

### Making API Requests

```python
from backend.sdk import Requests

async def run(self, input_data: Input, *, credentials: APIKeyCredentials, **kwargs):
    headers = {
        "Authorization": f"Bearer {credentials.api_key.get_secret_value()}",
        "Content-Type": "application/json"
    }

    response = await Requests().post(
        "https://api.example.com/endpoint",
        headers=headers,
        json={"query": input_data.query}
    )

    data = response.json()
    yield "results", data.get("results", [])
```

### Multiple Auth Types

```python
async def run(
    self,
    input_data: Input,
    *,
    credentials: OAuth2Credentials | APIKeyCredentials,
    **kwargs
):
    if isinstance(credentials, OAuth2Credentials):
        # Handle OAuth credentials
        token = credentials.access_token.get_secret_value()
    else:
        # Handle API key credentials
        token = credentials.api_key.get_secret_value()
```

!!! note "Authentication Types" - **`OAuth2Credentials`**: Access token via `credentials.access_token.get_secret_value()` - **`APIKeyCredentials`**: API key via `credentials.api_key.get_secret_value()`

### Handling Files

When your block works with files (images, videos, documents), use `store_media_file()`:

```python
from backend.data.execution import ExecutionContext
from backend.util.file import store_media_file
from backend.util.type import MediaFileType

async def run(
    self,
    input_data: Input,
    *,
    execution_context: ExecutionContext,
    **kwargs,
):
    # PROCESSING: Need local file path for tools like ffmpeg, MoviePy, PIL
    local_path = await store_media_file(
        file=input_data.video,
        execution_context=execution_context,
        return_format="for_local_processing",
    )

    # EXTERNAL API: Need base64 content for APIs like Replicate, OpenAI
    image_b64 = await store_media_file(
        file=input_data.image,
        execution_context=execution_context,
        return_format="for_external_api",
    )

    # OUTPUT: Return to user/next block (auto-adapts to context)
    result = await store_media_file(
        file=generated_url,
        execution_context=execution_context,
        return_format="for_block_output",
    )
    yield "image_url", result
```

!!! note "File Handling Patterns" - **PROCESSING**: Use `"for_local_processing"` when you need a local file path for tools like ffmpeg, MoviePy, PIL - **EXTERNAL API**: Use `"for_external_api"` when sending content to APIs like Replicate or OpenAI (returns base64 data URI) - **OUTPUT**: Use `"for_block_output"` to return results - this automatically adapts: `workspace://` in CoPilot, data URI in graphs

**Return format options:**

* `"for_local_processing"` - Local file path for processing tools
* `"for_external_api"` - Data URI for external APIs needing base64
* `"for_block_output"` - **Always use for outputs** - automatically picks best format

## Testing Your Block

```bash
# Run all block tests
poetry run pytest backend/blocks/test/test_block.py -xvs

# Test specific block
poetry run pytest 'backend/blocks/test/test_block.py::test_available_blocks[MyBlock]' -xvs
```

## Integration Checklist

* [ ] Add provider to `ProviderName` in `backend/integrations/providers.py` if using that enum in credentials; SDK integrations can register names through `ProviderBuilder`
* [ ] Define credentials with `_auth.py` helpers or the SDK provider configuration, and register the description and supported auth types in `_config.py`
* [ ] Implement block class with Input/Output schemas
* [ ] Generate unique block ID with `uuid.uuid4()`
* [ ] Choose appropriate block categories
* [ ] Implement `async run()` method
* [ ] Handle errors with `BlockInputError`/`BlockExecutionError` (don't wrap in try/except)
* [ ] Add test configuration (inline `test_input`/`test_output` and/or standalone `{name}_test.py`)
* [ ] Add integration icon PNG at `frontend/public/integrations/{provider_name}.png`
* [ ] Run `cd autogpt_platform/backend && poetry run python scripts/generate_block_docs.py` to generate docs
* [ ] Test the block
* [ ] Document any special requirements

## Example Blocks for Reference

* **Simple API**: `/backend/blocks/firecrawl/` - Basic API key authentication
* **OAuth + API**: `/backend/blocks/linear/` - OAuth and API key support
* **Webhooks**: `/backend/blocks/exa/` - Includes webhook manager

Study these examples to understand different patterns and approaches for building blocks.


# Using Google Gemini

This guide covers integrating Google Gemini models with AutoGPT using OpenRouter.

***

## Prerequisites

1. Make sure you have completed the [AutoGPT Setup Guide](https://agpt.co/docs/platform/getting-started) and have AutoGPT running locally at `http://localhost:3000`.
2. You have an **OpenRouter API key** from [OpenRouter](https://openrouter.ai/keys).

***

## Getting Your API Key

AutoGPT routes all Gemini models through OpenRouter. You need an OpenRouter API key:

1. Visit [OpenRouter Keys](https://openrouter.ai/keys)
2. Sign in or create an account
3. Click **"Create Key"**
4. Copy the generated key for use in AutoGPT

***

## Setup Steps

### 1. Start AutoGPT Locally

Follow the official guide: [AutoGPT Getting Started Guide](https://agpt.co/docs/platform/getting-started)

Ensure AutoGPT is running and accessible at: <http://localhost:3000>

### 2. Open the Visual Builder

Open your browser and navigate to: <http://localhost:3000/build>

Or click **"Build"** in the navigation bar.

### 3. Add an AI Text Generator Block

1. Click the **"Blocks"** button on the left sidebar.
2. In the search bar, type `AI Text Generator`.
3. Drag the block into the canvas.

### 4. Select a Gemini Model

Click the AI Text Generator block to configure it.

In the **LLM Model** dropdown, select one of the available Gemini models:

| Model                         | Model ID                               |
| ----------------------------- | -------------------------------------- |
| Gemini 3.1 Pro Preview        | `google/gemini-3.1-pro-preview`        |
| Gemini 3.1 Flash Lite Preview | `google/gemini-3.1-flash-lite-preview` |
| Gemini 3 Flash Preview        | `google/gemini-3-flash-preview`        |
| Gemini 2.5 Pro                | `google/gemini-2.5-pro`                |
| Gemini 2.5 Flash              | `google/gemini-2.5-flash`              |
| Gemini 2.5 Flash Lite         | `google/gemini-2.5-flash-lite`         |
| Gemini 2.0 Flash 001          | `google/gemini-2.0-flash-001`          |
| Gemini 2.0 Flash Lite 001     | `google/gemini-2.0-flash-lite-001`     |

> Select the models prefixed with `google/` in the dropdown.

### 5. Configure Your Credentials

Inside the **AI Text Generator** block:

1. **API Key**: Enter your OpenRouter API key
2. **Prompt**: Enter your desired prompt text

Get your API key from: <https://openrouter.ai/keys>

> Save your API key as a credential in AutoGPT for easy reuse across multiple blocks.

### 6. Save Your Agent

Click the **"Save"** button at the top-right of the builder interface:

1. Give your agent a descriptive name (e.g., `gemini_research_agent`)
2. Click **"Save Agent"** to confirm

### 7. Run Your Agent

From the workspace:

1. Click **"Run"** next to your saved agent
2. The request will be sent to the selected Gemini model

### 8. View the Output

1. Scroll to the **AI Text Generator** block
2. Check the **Output** panel below it
3. Copy, export, or pass the result to additional blocks

***

## Gemini-Specific Features

### Multimodal Capabilities

Gemini models support multiple input types:

* **Text**: Standard text prompts and completions
* **Images**: Upload and analyze images
* **Code**: Programming and technical reasoning
* **Long Context**: Large context windows for document analysis

***

## Expand Your Agent

Enhance your workflow with additional blocks:

* **Tools** – Fetch URLs, call APIs, scrape data
* **Memory** – Retain context across interactions
* **Document Processing** – Analyze PDFs, text files
* **Web Search** – Combine with real-time information
* **Chains** – Create multi-step reasoning pipelines

***

## Pricing

Gemini models are priced through OpenRouter. Check current rates at: [OpenRouter Google Models](https://openrouter.ai/google)

Pricing varies by model tier and usage volume.

***

## Troubleshooting

### API Key Issues

* Ensure you're using an **OpenRouter API key**, not a Google AI Studio key
* Verify the key has sufficient credits
* Check that the key is entered correctly without extra spaces

### Model Not Available

* Gemini models are accessed through OpenRouter
* Ensure you've selected a model with the `google/` prefix in the dropdown

### Rate Limiting

* Free tier has request limits per minute
* Upgrade to paid tier for production usage
* Consider using `google/gemini-2.5-flash-lite` for lower-cost, high-volume tasks

### Context Length Errors

* Each Gemini model has a maximum context window
* Split large tasks across multiple blocks for very long documents

***

## Additional Resources

* [Google AI Studio Documentation](https://ai.google.dev/gemini-api/docs)
* [Gemini API Quickstart](https://ai.google.dev/gemini-api/docs/quickstart)
* [Model Capabilities](https://ai.google.dev/gemini-api/docs/models)
* [OpenRouter Documentation](https://openrouter.ai/docs)
* [AutoGPT Platform Docs](https://agpt.co/docs/platform)

***

You are now set up to use Google Gemini models in AutoGPT.


# Using Ollama

> **Important**: Ollama integration is only available when self-hosting the AutoGPT platform. It cannot be used with the cloud-hosted version.

Follow these steps to set up and run Ollama with the AutoGPT platform.

## Prerequisites

1. Make sure you have gone through and completed the [AutoGPT Setup](https://agpt.co/docs/platform/self-hosting/getting-started) steps, if not please do so before continuing with this guide.
2. Before starting, ensure you have [Ollama installed](https://ollama.com/download) on your machine.

## Setup Steps

### 1. Launch Ollama

To properly set up Ollama for network access, choose one of these methods:

**Method A: Using Ollama Desktop App (Recommended)**

1. Open the Ollama desktop application
2. Go to **Settings** and toggle **"Expose Ollama to the network"** ![Expose Ollama to Network](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-176653a5ce1009deb727823b5a1b6575198aecb2%2FOllama-Expose-Network.png?alt=media)
3. Click on the model name field in the "New Chat" window
4. Search for "llama3.2" (or your preferred model) ![Select llama3.2 model](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-327d424be0cbe891231fef42b1128294aca0f74f%2FOllama-Select-llama3.2.png?alt=media)
5. Click on it to start the download and load the model to be used

??? note "Method B: Using Docker (Alternative)"

````
If you prefer to run Ollama via Docker instead of the desktop app, you can use the official [Ollama Docker image](https://hub.docker.com/r/ollama/ollama):

1. **Start Ollama container** (choose based on your hardware):

   **CPU only:**
   ```bash
   docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
   ```

   **With NVIDIA GPU** (requires [NVIDIA Container Toolkit](https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/latest/install-guide.html)):
   ```bash
   docker run -d --gpus=all -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
   ```

   **With AMD GPU:**
   ```bash
   docker run -d --device /dev/kfd --device /dev/dri -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama:rocm
   ```

   **Download your desired model:**
   ```bash
   docker exec -it ollama ollama run llama3.2
   ```

!!! note
    The Docker method automatically exposes Ollama on `0.0.0.0:11434`, making it accessible to AutoGPT. More models can be found on the [Ollama library](https://ollama.com/library).
````

??? warning "Method C: Using Ollama Via Command Line (Legacy)"

````
For users still using the traditional CLI approach or older Ollama installations:

1. **Set the host environment variable:**

   **Windows (Command Prompt):**
   ```cmd
   set OLLAMA_HOST=0.0.0.0:11434
   ```
   
   **Linux/macOS (Terminal):**
   ```bash
   export OLLAMA_HOST=0.0.0.0:11434
   ```

2. **Start the Ollama server:**
   ```bash
   ollama serve
   ```

3. **Open a new terminal/command window** and download your desired model:
   ```bash
   ollama pull llama3.2
   ```

!!! note
    This will download the [llama3.2](https://ollama.com/library/llama3.2) model. Keep the terminal with `ollama serve` running in the background throughout your session.
````

### 2. Start the AutoGPT Platform

Navigate to the autogpt\_platform directory and start all services:

```bash
cd autogpt_platform
docker compose up -d --build
```

This command starts both the backend and frontend services. Once running, visit <http://localhost:3000> to access the platform. After registering/logging in, navigate to the build page at <http://localhost:3000/build>.

### 3. Using Ollama with AutoGPT

Now that both Ollama and the AutoGPT platform are running, we can use Ollama with AutoGPT:

1. Add an AI Text Generator block to your workspace (it can work with any AI LLM block but for this example will be using the AI Text Generator block): ![Add AI Text Generator Block](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-d9c41db4a510f2fe7a8256fe04d124b42c84ad07%2FSelect-AI-block.png?alt=media)
2. **Configure the API Key field**: Enter any value (e.g., "dummy" or "not-needed") since Ollama doesn't require authentication.
3. In the "LLM Model" dropdown, select "llama3.2" (This is the model we downloaded earlier) ![Select Ollama Model](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-cd39e1b4e6cbe94d2bdefa2478d0c96311c5cf91%2FOllama-Select-Llama32.png?alt=media)

   > **Compatible Models**: The following Ollama models are available in AutoGPT by default:
   >
   > * `llama3.2` (Recommended for most use cases)
   > * `llama3.3`
   > * `llama3`
   > * `llama3.1:405b`
   > * `dolphin-mistral:latest`
   >
   > **Note**: To use other models, follow [Add Custom Models (Advanced)](#add-custom-models-advanced) below.
4. **Set your local IP address** in the "Ollama Host" field:

   **To find your local IP address:**

   **Windows (Command Prompt):**

   ```cmd
   ipconfig
   ```

   **Linux/macOS (Terminal):**

   ```bash
   ip addr show
   ```

   or

   ```bash
   ifconfig
   ```

   Look for your IPv4 address (e.g., `192.168.0.39`), then enter it with port `11434` in the "Ollama Host" field:

   ```
   192.168.0.39:11434
   ```

   ![Ollama Remote Host](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-25a57b9adfa36b7a27de172d35a3d63bd82c12be%2FOllama-Remote-Host.png?alt=media)

   > **Important**: Since AutoGPT runs in Docker containers, you must use your host machine's IP address instead of `localhost` or `127.0.0.1`. Docker containers cannot reach `localhost` on the host machine.
5. Add prompts to your AI block, save the graph, and run it: ![Add Prompt](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-deeddc7cc8f13f62484fe145d67396d17b58a828%2FOllama-Add-Prompts.png?alt=media)

That's it! You've successfully setup the AutoGPT platform and made a LLM call to Ollama. ![Ollama Output](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-06cb9f7a8a23600bc33f73d7997df5a23c8a56e0%2FOllama-Output.png?alt=media)

### Using Ollama on a Remote Server with AutoGPT

For running Ollama on a remote server, simply make sure the Ollama server is running and is accessible from other devices on your network/remotely through the port 11434.

**To find your local IP address of the system running Ollama:**

**Windows (Command Prompt):**

```cmd
ipconfig
```

**Linux/macOS (Terminal):**

```bash
ip addr show
```

or

```bash
ifconfig
```

Look for your IPv4 address (e.g., `192.168.0.39`).

Then you can use the same steps above but you need to add the Ollama server's IP address to the "Ollama Host" field in the block settings like so:

```
192.168.0.39:11434
```

![Ollama Remote Host](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-25a57b9adfa36b7a27de172d35a3d63bd82c12be%2FOllama-Remote-Host.png?alt=media)

## Add Custom Models (Advanced)

Model definitions are centralized in the LLM catalog — see [Managing LLM Models](https://agpt.co/docs/platform/contributing/managing-llm-models) for the full field reference and workflow. To add a custom Ollama model:

1. **Add a catalog entry** in `autogpt_platform/backend/backend/data/llm_registry/catalog.py`, next to the other Ollama models:

   ```python
   CatalogModel(
       slug="The-model-name-from-ollama",  # bare name, exactly as Ollama serves it
       display_name="Your Model",
       provider="ollama",
       context_window=8192,  # adjust for your model
       cost=CatalogModelCost(run_credits=1),
   ),
   ```

   Ollama models use bare model names (no `vendor/` prefix) — the name must match what `ollama list` shows. A run cost of `1` is fine for local usage; cost tracking is disabled for self-hosted instances.
2. **Also add one `LLMModel` name line** in `autogpt_platform/backend/backend/data/llm_registry/llm_models.py` (Ollama section) — that identifier is what block schemas serialize; every model FACT (metadata, costs) lives in the catalog entry itself, and an import-time check refuses to boot if an enum name has no catalog entry. The catalog entry is what centralizes the model's metadata and makes it routable for AutoPilot.
3. **Rebuild the backend**:

   ```bash
   docker compose up -d --build
   ```

   The prebuilt single-container image cannot pick up a new catalog entry; build it from source as described in [Run AutoGPT in One Docker Container](https://agpt.co/docs/platform/self-hosting/single-container#get-an-image).
4. **Pull the model in Ollama**:

   ```bash
   ollama pull your-model-name
   ```

## Troubleshooting

If you encounter any issues, verify that:

* Ollama is properly installed and running with `ollama serve`
* Docker is running before starting the platform
* If running Ollama outside Docker, ensure it's set to `0.0.0.0:11434` for network access

### Common Issues

#### Connection Refused / Cannot Connect to Ollama

* **Most common cause**: Using `localhost` or `127.0.0.1` in the Ollama Host field
* **Solution**: Use your host machine's IP address (e.g., `192.168.0.39:11434`)
* **Why**: AutoGPT runs in Docker containers and cannot reach `localhost` on the host
* **Find your IP**: Use `ipconfig` (Windows) or `ifconfig` (Linux/macOS)
* **Test Ollama is running**: `curl http://localhost:11434/api/tags` should work from your host machine

#### Model Not Found

* Pull the model manually:

  ```bash
  ollama pull llama3.2
  ```
* If using a custom model, ensure it's registered in the LLM catalog (`autogpt_platform/backend/backend/data/llm_registry/catalog.py`) and `autogpt_platform/backend/backend/data/llm_registry/llm_models.py` as described in [Add Custom Models (Advanced)](#add-custom-models-advanced) above

#### Docker Issues

* Ensure Docker daemon is running:

  ```bash
  docker ps
  ```
* Try rebuilding:

  ```bash
  docker compose up -d --build
  ```

#### API Key Errors

* Remember that Ollama doesn't require authentication - any value works for the API key field

#### Model Selection Issues

* Look for models with "ollama" in their description in the dropdown
* Only the models listed in the "Compatible Models" section are guaranteed to work


# AutoPilot on a self-hosted LLM (no API keys)

> **Important**: This page covers the **AutoPilot chat path** — the conversational agent on `/copilot`. For the *block-layer* AI Text Generator block (used inside agent graphs you build yourself), see [Running Ollama with AutoGPT](https://agpt.co/docs/platform/using-ai-services/ollama). The two paths read different env vars, so configuring one does not configure the other.
>
> Self-hosting only — the cloud `agpt.co` deployment routes AutoPilot through Anthropic / OpenRouter and ignores the variables below.

This guide makes the AutoPilot chat work **without an Anthropic, OpenAI, or OpenRouter key** by routing it through any **OpenAI-compatible HTTP endpoint you control**.

The transport is called `local` because it's the typical case, but `CHAT_BASE_URL` is just a URL — every deployment shape below works equally well:

| Scenario                                                                                                                                                                                                    | `CHAT_BASE_URL`                         |
| ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------- |
| Ollama on the same Docker host (most common)                                                                                                                                                                | `http://192.168.1.42:11434/v1` (LAN IP) |
| Ollama on the same Docker host, via Docker Desktop                                                                                                                                                          | `http://host.docker.internal:11434/v1`  |
| Ollama on a separate LAN box                                                                                                                                                                                | `http://ollama.lab.local:11434/v1`      |
| Ollama behind an HTTPS reverse proxy on the public internet                                                                                                                                                 | `https://ollama.example.com/v1`         |
| [vLLM](https://docs.vllm.ai/en/latest/serving/openai_compatible_server.html), [LocalAI](https://localai.io/), [LM Studio](https://lmstudio.ai/), [LiteLLM proxy](https://docs.litellm.ai/docs/simple_proxy) | their respective `/v1` URLs             |
| A managed OpenAI-compatible API you don't pay AutoGPT for                                                                                                                                                   | its `/v1` URL                           |

Anything that speaks the OpenAI `/v1/chat/completions` shape — including `tools=[...]` for function calling — will work. The rest of this guide uses Ollama as the running example because it's the easiest, but substitute your own endpoint anywhere you see `http://...:11434/v1`.

## How it works

AutoPilot's `ChatConfig` (`backend/backend/copilot/config.py`) recognises four chat transports. When `CHAT_USE_LOCAL=true`:

| Transport behaviour                                                                                                                       | Local                            |
| ----------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------- |
| Routes the baseline (fast) path to `CHAT_BASE_URL` over OpenAI-compatible HTTP                                                            | ✅                                |
| Supports the SDK / extended-thinking path (Claude Agent SDK)                                                                              | ❌ — auto-downgrades to fast      |
| `api_key` falls back to `OPEN_ROUTER_API_KEY` / `OPENAI_API_KEY` if `CHAT_API_KEY` is unset                                               | ❌ — explicit `CHAT_API_KEY` only |
| Aux + advanced models (`title_model`, `simulation_model`, `fast_advanced_model`) inherit `fast_standard_model` if left at a cloud default | ✅                                |
| Allows non-`anthropic/*` SDK model slugs (vendor validator skipped)                                                                       | ✅                                |

The downgrade is logged at WARNING when an `extended_thinking` request arrives — there is no 500. The frontend toggle should already be hidden because the `CHAT_MODE_OPTION` feature flag defaults off in self-hosted deployments.

On the managed cloud platform (`BEHAVE_AS=cloud`), `CHAT_*_MODEL` env vars are the *bottom* layer of model resolution: the `copilot-model-routing` flag's per-user override → the LLM catalog's routing cell (`backend/data/llm_registry/catalog.py`) → env default, with slugs unknown to the catalog or disabled in it refused at serve time.

**On self-hosted installs — any transport — the catalog's routing cells are skipped entirely**: they are the cloud deployment's config traveling in the shipped file, and they never override your `CHAT_*_MODEL` configuration. Resolution here is the `copilot-model-routing` flag → `CHAT_*_MODEL`, exactly the pre-catalog behavior; your env vars stay authoritative. See [Managing LLM Models](https://agpt.co/docs/platform/contributing/managing-llm-models).

## Required environment variables

In `autogpt_platform/backend/.env` (for the single-container image, the same lines go in its `--env-file`; see [Run AutoGPT in One Docker Container](https://agpt.co/docs/platform/self-hosting/single-container#ollama-or-another-local-openai-compatible-server)):

```bash
# Turn on the local transport
CHAT_USE_LOCAL=true

# Where the OpenAI-compatible endpoint lives. From inside the docker
# containers this must NOT be 127.0.0.1 / localhost — use the host's LAN
# IP (e.g. 192.168.1.42) or, if you've added the directive to compose,
# host.docker.internal:host-gateway.
CHAT_BASE_URL=http://192.168.1.42:11434/v1

# Any non-empty string — Ollama doesn't validate it. The local transport
# deliberately does NOT fall back to OPENAI_API_KEY (which is usually
# present for graphiti / embedders), so this must be set explicitly.
CHAT_API_KEY=ollama

# The chat model. Bare model names ONLY — provider/model slugs (e.g.
# `anthropic/claude-...`) are passed through verbatim and Ollama can't
# resolve them. See "Picking a model" below.
CHAT_FAST_STANDARD_MODEL=hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M

# Optional — override for the advanced tier. If you leave it out, the
# local transport derives title_model, simulation_model, AND
# CHAT_FAST_ADVANCED_MODEL from CHAT_FAST_STANDARD_MODEL automatically
# (see _apply_local_aux_models in backend/backend/copilot/config.py),
# so the advanced toggle never sends a cloud-only slug to Ollama. Set
# it explicitly only if you want a bigger model for the advanced tier
# and have the VRAM for it.
CHAT_FAST_ADVANCED_MODEL=qwen3:14b-q4_K_M
```

## Picking a model

The platform's chat loop calls **OpenAI-style tool-calling** on every turn, streams responses, and ships an \~8 k-token system prompt. Pick a model that handles all three.

| Tier               | Recommended Ollama tag                      | Why                                                                                                                                                                                     | Footprint                                                              |
| ------------------ | ------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------- |
| **Default**        | `hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M` | Official Ornith GGUF; agentic 9B model with OpenAI-compatible tool calling; 262,144-token native context; reasoning model (the chat UI renders its thinking separately from the answer) | \~5.8 GB model file; allow additional RAM for context and the KV cache |
| **Tight RAM**      | `qwen3:4b`                                  | Smaller; native tools; set `think: false` to avoid the unclosed-`<think>` tool-call render bug                                                                                          | \~3-4 GB resident                                                      |
| **GPU / advanced** | `qwen3:14b-q4_K_M`                          | Best tool-selection accuracy in this size class                                                                                                                                         | \~12 GB VRAM                                                           |

Pull whichever you choose:

```bash
ollama pull hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M
```

## Context window — set it once, on the backend

Ollama defaults `num_ctx` to **4096 tokens regardless of the model's advertised window** ([ollama/ollama#2714](https://github.com/ollama/ollama/issues/2714)). That's smaller than AutoPilot's system prompt + tool schemas — without a larger window Ollama only sees the *end* of the instructions and responses are incoherent or 500 outright.

Set the window **once, on the server**, via `OLLAMA_CONTEXT_LENGTH`. There is **no AutoGPT-side context config** to keep in sync: AutoPilot reads the backend's *actual* loaded window back at runtime — Ollama `/api/ps`, llama.cpp `/props`, vLLM / LM Studio `/v1/models` — and compacts the conversation under it. Backends that don't report a window (LiteLLM proxy, Jan, text-generation-webui) fall back to assuming 32k.

The default Ornith model has a 262,144-token native window, so the installer sets `OLLAMA_CONTEXT_LENGTH=262144`. This maximizes available conversation history but substantially increases KV-cache RAM/VRAM use. Operators using a custom model or constrained hardware can lower it, but should keep at least 24k: below that, the system prompt + tools leave almost no room for conversation and AutoPilot logs a warning.

The installer sets `OLLAMA_CONTEXT_LENGTH` for you. Manual setup per platform:

**Linux** (systemd drop-in):

```ini
# /etc/systemd/system/ollama.service.d/host.conf
[Service]
Environment="OLLAMA_HOST=0.0.0.0:11434"
Environment="OLLAMA_CONTEXT_LENGTH=262144"
```

Then `sudo systemctl daemon-reload && sudo systemctl restart ollama`.

**macOS** (launchctl, persists across logins for launchd-spawned processes):

```bash
launchctl setenv OLLAMA_HOST 0.0.0.0:11434
launchctl setenv OLLAMA_CONTEXT_LENGTH 262144
# Then restart Ollama — either:
brew services restart ollama        # if installed via the brew formula
# …or quit the menu-bar app and relaunch it (the .dmg install)
```

**Windows** (user-scope env vars, persists across reboots):

```powershell
setx OLLAMA_HOST "0.0.0.0:11434"
setx OLLAMA_CONTEXT_LENGTH "262144"
# Then quit Ollama from the system tray and relaunch it
# (setx writes to HKCU but does NOT update already-running processes).
```

Verify on any platform with `ollama ps` (the `CONTEXT` column should show your value, e.g. 262144). If you change it, AutoPilot picks up the new window automatically on the next turn — nothing else to update.

## Networking — same host, different host, or remote

The endpoint can be on the same machine, on the LAN, or anywhere internet-reachable. Pick whichever matches your deployment shape:

### Same host as the AutoGPT containers

How containers reach the host depends on whether you're on Docker Desktop (macOS / Windows) or native Docker (Linux):

**macOS + Windows (Docker Desktop)** — every container already has a `host.docker.internal` entry pointing at the host. No extra wiring:

```bash
CHAT_BASE_URL=http://host.docker.internal:11434/v1
```

Still set `OLLAMA_HOST=0.0.0.0:11434` so the .app/tray-managed Ollama accepts the connection from the Desktop network — by default it binds only to `127.0.0.1`.

**Linux (native Docker)** — there's no auto-injected `host.docker.internal`. Pick one:

1. **Use the LAN IP** in `CHAT_BASE_URL` — simplest, works everywhere.
2. **Bind Ollama to all interfaces:** `OLLAMA_HOST=0.0.0.0:11434` (set in the systemd unit or a drop-in), so containers reach it via the bridge gateway.
3. **Add `extra_hosts: ["host.docker.internal:host-gateway"]`** to the chat services in `autogpt_platform/docker-compose.yml`.

The bundled installer does these for you on a fresh box:

| Platform | Command                                    |
| -------- | ------------------------------------------ |
| Linux    | `installer/setup-autogpt.sh --with-ollama` |
| macOS    | `installer/setup-autogpt.sh --with-ollama` |
| Windows  | `installer\setup-autogpt.bat /with-ollama` |

### Different LAN box (dedicated GPU server, NAS, …)

Set `CHAT_BASE_URL` to the box's hostname or IP:

```bash
CHAT_BASE_URL=http://gpu-rig.lab.local:11434/v1
```

On the Ollama box, set `OLLAMA_HOST=0.0.0.0:11434` so it accepts non-loopback connections, and either open port 11434 in the firewall for your AutoGPT host's IP or put both behind a private VPN / WireGuard mesh.

### Remote / public-internet endpoint

Two approaches, in increasing order of "please do this":

1. **Trusted private network** (Tailscale, WireGuard, ZeroTier, corporate VPN). Treat the remote endpoint exactly like a LAN box.
2. **Public HTTPS with auth** — terminate TLS at a reverse proxy (Caddy, nginx, Cloudflare Tunnel) in front of Ollama / vLLM / whatever, and require a bearer token. Set:

   ```bash
   CHAT_BASE_URL=https://ollama.example.com/v1
   CHAT_API_KEY=<the-bearer-the-proxy-checks>
   ```

> **Do not** expose raw Ollama on the public internet. Ollama itself performs **no authentication** — anyone who can reach `:11434` can use (and exhaust) your model. Always front it with a proxy that enforces a token.

## Other platform features that use the local transport

The `local` transport isn't just for AutoPilot chat. The same client flows to every backend helper that needs an LLM, so a single `CHAT_USE_LOCAL=true` install also covers:

* **Dry-run block simulator** — when a user clicks "Test" in the agent builder, blocks role-play their execution against an LLM rather than hitting external APIs. Uses `ChatConfig.simulation_model` (auto-derived to `fast_standard_model` under local).
* **Onboarding business-understanding extraction** — the post-signup Tally form is extracted into structured suggestions via the LLM. Uses `ChatConfig.title_model`.
* **Long-run prompt compression** — the chat / agent loop summarizes message history when context grows beyond a threshold.
* **Marketplace semantic search** — the store generates embeddings for agent descriptions to power hybrid (lexical + semantic) ranking. Hybrid search degrades gracefully to lexical-only when no embedding backend is available.

### Embeddings (marketplace search, agent uploads)

The store's embedding model is overridable via env so deployments with a compatible backend (vLLM, LiteLLM proxy, Ollama with an embedding model pulled, Azure OpenAI) can swap models without a code change. **The replacement model must emit 1536-dim vectors** — the pgvector column is declared `vector(1536)` in `schema.prisma` and inserts with any other dim hard-fail.

```bash
# Default — OpenAI text-embedding-3-small (1536 dim):
STORE_EMBEDDING_MODEL=text-embedding-3-small

# Example: nomic-embed-text on Ollama emits 768 dims natively, so it
# DOES NOT fit the existing schema — picking it would break every
# publish + reindex. Use a 1536-dim model instead, e.g.
# text-embedding-ada-002 (OpenAI legacy) or one of the LiteLLM proxy's
# 1536-dim shims. Custom-dim support would need a schema migration
# beyond the scope of this guide.
```

> **pgvector dimension is fixed in the schema, not configurable at runtime.** A model that emits a different vector length will succeed at the embedding call and fail at every subsequent `INSERT`. If you need a different dim, you'll need to fork the schema and migrate existing rows — it's not a runtime knob.

If you don't configure an embedding backend at all, marketplace hybrid search auto-degrades to lexical-only (no semantic ranking) — not fatal, just less smart.

## Verifying the wiring

After `docker compose up -d`:

```bash
# 1. CHAT_USE_LOCAL is in the live container env
docker exec autogpt_platform-copilot_executor-1 env | grep ^CHAT_
#   CHAT_USE_LOCAL=true
#   CHAT_BASE_URL=http://192.168.1.42:11434/v1
#   ...

# 2. Send a turn from the UI, then confirm baseline routing in the log
docker logs autogpt_platform-copilot_executor-1 | grep -E "Using.*service"
#   [CoPilotExecutor|...] Using baseline service (mode=default)

# 3. Confirm Ollama saw the request — per platform:

# Linux (systemd-managed Ollama):
journalctl -u ollama --since "1 minute ago" | grep "POST"
#   [GIN] ... | 200 | 7.5s |  ... | POST "/v1/chat/completions"

# macOS (brew formula):
tail -F "$(brew --prefix)/var/log/ollama.log" | grep "POST"
# macOS (.app from ollama.com): logs live in ~/.ollama/logs/server.log
tail -F ~/.ollama/logs/server.log | grep "POST"

# Windows: the Ollama tray app writes to %LOCALAPPDATA%\Ollama\server.log
powershell -Command "Get-Content $env:LOCALAPPDATA\Ollama\server.log -Wait | Select-String POST"
```

If `Using baseline service` appears and Ollama logs a 200, the end-to-end path is working — any remaining errors are model / RAM / quantization concerns rather than config-routing bugs.

## Troubleshooting

**Frontend shows "The assistant encountered an error"** — check the copilot\_executor log for the upstream error. Common causes:

* `model requires more system memory (X GiB) than is available (Y GiB)` → free RAM (stop ClamAV, raise VM memory) or pick a smaller model
* `model "..." not found` → `ollama pull <slug>` first
* `connection refused` → containers can't reach the host on `:11434`; see "Networking — same host, different host, or remote" above

**`api_key` is `None` even though I set `OPENAI_API_KEY`** — by design. The local transport requires an explicit `CHAT_API_KEY` so a stray cloud key set for graphiti / embedders doesn't silently bind to your local backend as the bearer token.

**Title generation fails / returns "Untitled chat"** — `title_model` should auto-inherit `fast_standard_model` under the local transport. If you've explicitly set `CHAT_TITLE_MODEL=openai/gpt-4o-mini` somewhere, remove it.

**Slow first response** — Ollama loads the model into RAM on the first request, which can take 5-15 s for 8 B models on CPU. Subsequent requests are much faster while the model stays resident.

**Every AutoPilot turn takes minutes on CPU** — expected on CPU-only hosts, not a hang. AutoPilot ships an \~8 k-token system prompt and the model must *prefill* (compute KV-cache state for) every token of that prompt before the first output token is emitted. On 4 CPU cores an 8 B Q4 model prefills at roughly **3-4 tokens/sec**, so a fresh turn takes \~35-45 min just to start generating. Title generation (\~70-token prompt) finishes in seconds because there's almost nothing to prefill. A consumer GPU brings this down to seconds. If you're CPU-only and just want to validate the install end-to-end, tail the Ollama server log (see the per-platform commands in "Verifying the wiring" above) and watch for the `POST /v1/chat/completions` line — once it appears with a 200, prefill finished and the model is generating.

## Dream pass + memory under local transport

The graphiti memory layer and the nightly dream pass both ride the same self-hosted backend `CHAT_USE_LOCAL=true` points at. Three things you should know:

### Dream pass runs sync-baseline only

The dream pass's batch path (Anthropic batch, OpenAI batch) is provider-locked and unavailable on local backends. `CHAT_USE_LOCAL=true` forces `execution_path="sync_baseline"` regardless of which API keys might be set elsewhere on the box — your local LLM handles all three phases (consolidate / recombine / sanitize) on the same endpoint as chat. Cost-log rows label `provider="ollama"` so the admin platform-costs dashboard distinguishes them from cloud spend.

### Memory uses the chat models by default

When `CHAT_USE_LOCAL=true`, `GraphitiConfig._apply_local_graphiti_models` rewrites the cloud OpenAI defaults to local Ollama equivalents:

| Setting                   | Cloud default            | Local default                               |
| ------------------------- | ------------------------ | ------------------------------------------- |
| `GRAPHITI_LLM_MODEL`      | `gpt-6-luna`             | `hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M` |
| `GRAPHITI_RERANKER_MODEL` | `gpt-6-luna`             | `hf.co/ornith-ai/Ornith-1.5-9B-GGUF:Q4_K_M` |
| `GRAPHITI_EMBEDDER_MODEL` | `text-embedding-3-small` | `nomic-embed-text`                          |

The LLM + reranker reuse the same Ornith 1.5 9B model the `--with-ollama` installer already pulls for chat, so no extra `ollama pull` is needed unless you've overridden them. The embedder is a separate model — see the next section.

You can pin your own slugs at any time by setting the matching `GRAPHITI_*_MODEL` env var; the validator only touches slots still at their cloud default, including the previous `gpt-4.1-mini` default in existing `.env` files. A custom slug (`qwen3:8b`, `hf.co/...`, `my-registry.io/model:tag`) passes through untouched.

### Embeddings require an embedding model pulled into Ollama

Ollama doesn't ship an embedding model in its default model set, so graphiti's per-turn entity extraction will 404 on `/v1/embeddings` until you pull one:

```bash
ollama pull nomic-embed-text
```

Without it, chat still works, but `graphiti.add_episode(...)` fails silently per turn — the agent loses memory of the conversation between sessions. With it pulled, graphiti round-trips embeddings against the same Ollama endpoint as the LLM, and warm-context retrieval works end-to-end on the local stack.

If you'd rather use a different embedding model (e.g. `mxbai-embed-large` for higher recall at higher disk cost), pull that and set `GRAPHITI_EMBEDDER_MODEL=<slug>` to override the local default.

### Community rebuild stays on sync tier

`graphiti_config.community_rebuild_use_flex_tier=True` (the default) is treated as a *request*, not a guarantee. OpenAI's flex tier only delivers the \~50% discount through OpenRouter's pass-through to OpenAI / Google upstreams, so on local + Anthropic transports the flex client is silently swapped for the regular `OpenAIClient` (logged at INFO). The weekly community rebuild still runs — at full sync price, which on local Ollama is `$0`.

### Subscription mode caveat

If you also use Claude Code subscription (`CHAT_USE_CLAUDE_CODE_SUBSCRIPTION=true`) for the chat path, the dream pass needs a separate `ANTHROPIC_API_KEY` set in the environment. The Claude Code OAuth token authenticates the chat CLI only; per Anthropic's Feb-2026 ToS update, OAuth tokens **cannot** call the Messages API directly. Without `ANTHROPIC_API_KEY`, the dream pass writes an `errored` JobStatus with a friendly hint pointing you at this section.

A separate Anthropic Agent-SDK credit pool launches **2026-06-15** ($20 Pro / $100 Max-5x / $200 Max-20x at standard API rates, one-time opt-in). Once that lands, subscription users will have the option of routing the dream pass through the Agent SDK instead of the Messages API — coverage tracked as a post-Jun-15 follow-up.


# Nightly skill learning

AutoPilot and Experts can turn work they actually verified into reusable skills. This page describes what the first release does, what it does not do, and how to inspect and control it. The feature is off by default and enabled per cohort with the `dream-skill-learning-enabled` flag. The dreaming pipeline runs learning after its memory stages when this flag is enabled. Learning also has an independent nightly job, so it can run without enabling other memory stages. Both paths share the same lease and revision ledger.

## What happens

1. **During work** the chat services record a bounded reference to each completed user turn as a *learning source revision*: message references, typed tool outcomes (an exit code, a completed run, a passing validation), and the user's explicit, unqualified confirmations. The record includes the persisted user message that started the turn, so a confirmation is attributed to a real stored message and never to an invented reference. No model writes a lesson at this point, and recording never blocks a reply.
2. **Overnight** (03:00 in the user's timezone, with a capped catch-up after downtime) a per-user job reviews eligible revisions. A source is eligible only when it still exists, still belongs to the same owner and Expert, is not excluded, learning is not paused for that Expert, and it carries a concrete outcome signal. Plans, unanswered questions, and unsupported "done" claims are skipped without a model call. Idle accounts cost nothing: with no new eligible work the pass exits before any model call.
3. The reviewer model (routed and billed like ordinary work) looks for work worth keeping: repeatable multi-step workflows, non-obvious error recoveries, and user corrections that improve recurring work. Trivial successes, generic advice, chat logs, and duplicate procedures are skipped. It proposes one bounded change: update an existing skill, create a meaningfully distinct one, or skip. Deterministic checks then require a valid slug, the required sections (`Steps`, `Verification`), a concrete verification statement, and citations of evidence spans that carry a checked outcome. Rejected metadata is never persisted. An existing skill can be rewritten only when its complete body was included in the review. Skills outside the bounded body window still appear by name and description to prevent duplicate creation.
4. **Publication** re-checks everything live inside one database transaction: source eligibility, epoch and revision, the skill's own policy, and the head version (compare-and-swap). A concurrent human edit, pause, or exclusion produces a conflict or a refusal, never an overwrite. Creation also checks that the target file or current version has not appeared since review. Malformed existing files are preserved. The workspace `SKILL.md` is written afterwards, inside the registry's per-owner write lock and only while the head still names that version: a write resumed after a newer human correction is abandoned rather than placed on top of it. An interrupted write is finished (or abandoned) by the next run without a second model call. Reading the skill also retries its current pending write, even with background learning disabled; an owner use-pause still prevents loading it.
5. **Retrieval** pins the exact version a conversation loads. A load is recorded as a load, never as a success. An existing conversation sees an overnight update at its next user turn without starting a new chat.

Every completed write to a skill — overnight, during work, an owner edit, a restore, or an import — appends an immutable version with its origin and the contributing source revisions. A version restored from history inherits the restored content's sources.

Learned skills stay private to the account and Expert that did the work. Personal conversations teach the account's personal assistant; an Expert's conversation teaches only that Expert. The learning process never creates a marketplace listing or automatically shares a skill. Existing imported skills require the owner's decision before an automated change is applied.

## Evidence and states

Evidence labels are concrete: **Worked once in the source**, **Requested by user**, **Loaded N times · Outcome unknown**, **Reported as working by you**. "Passed checks in N later uses" is reserved for recorded checks and is not produced by an owner's report.

Recorded verification can be retrieved outside the newest 120 messages. Up to 40 retained verification references and nearby context are fetched within the same owner and source revision. Complete proof takes priority within the 24,000-character evidence budget; missing or oversized proof is still refused.

| State                    | Meaning                                                                                    |
| ------------------------ | ------------------------------------------------------------------------------------------ |
| Ready to use             | Published and passed the applicable checks                                                 |
| Needs your decision      | A proposal for a human-controlled skill or an uncertain match                              |
| Blocked by content check | A credential-like value was found; only the pattern class and an ordinal step are recorded |
| Paused (learning)        | Future automated changes are off for the skill or Expert                                   |
| Paused (not in use)      | The owner stopped using the skill; history is kept                                         |
| Archived                 | Superseded, stale, or invalidated by a revoked source                                      |
| Deleted                  | The owner deleted the skill; its history is kept, archived                                 |

## Controls

Learned skills can contain a concise `SKILL.md` entrypoint together with reusable scripts, reference material, fixtures, and templates. The reviewer uses code and material visible in verified evidence, and records the limits of what was checked. A simple procedure can remain a single Markdown file. Supporting files are saved with the immutable version, so retrying a save, applying an update, or restoring a version preserves the corresponding package. Older versions created before file snapshots were introduced retain their existing Markdown-only restore behavior.

The Changes and decision views show added, changed, and removed package files with bounded text previews. The instructions editor changes the entrypoint; supporting file changes shown in a proposal are retained when applying an edited alternative. New scripts are not executed automatically during dreaming. A later task loads the package into its working directory and runs the applicable checks.

Discovery triggers may contain up to 512 characters each. The per-turn index displays a shortened combined hint when necessary; the full phrases remain in the saved skill. Metadata and package constraints are checked before a version is committed. A temporary storage failure retries the saved package without another review; a permanent validation failure is settled instead of retried indefinitely.

* **Expert page → Skills**: a recent-change line, per-skill learning lines, and a detail sheet with Summary, Changes (before/after by step, with the raw Markdown diff on request), Sources, and History. The sheet offers *Automatic improvements*, *Pause learning*, *Stop using this skill*, *Edit skill* (applies immediately), *Report an outcome* (evidence for a later review), and *Restore* (a new version; future use only).
* **Settings → Memory**: a learning history filtered by scope, origin, and state, and one list of open decisions across Experts. Personal (AutoPilot) skills open the same detail sheet here, with the same controls, since they have no Expert page.
* **Chat**: a once-per-load "Skill loaded" chip naming the exact version and origin. It links to that exact skill and version: the Expert page for an Expert skill, Settings → Memory for a personal one. A conversation also offers "Exclude from learning".

Editing always starts from the current version (restore a historical one first to build on it). The version the editor saw is submitted with the edit and checked under the same write lock, so a change that landed while the owner was typing — overnight or from another tab — makes the save a conflict with the draft kept, never a silent overwrite of that change. A human edit turns automatic improvements off for that skill unless the editor keeps them on. An owner restore also turns them off and records a suppression for the undone behaviour, so the same change is not reapplied silently; a near-identical proposal becomes a labelled decision instead. Excluding a source makes every version that depends on it unavailable, restores the newest independent version when one exists, and otherwise pauses the skill with an explanation. That fallback restore leaves automatic improvements off but does not suppress the behavior: independent valid evidence can support a new proposal for the owner to decide. A source the viewer can no longer open shows **Evidence not visible to you** without a title or link.

Deleting a skill ends its history. Its versions stay in History, archived, after a *Deleted* entry, and excluding one of their sources later restores nothing. The deleted behaviour is suppressed as an undone change is, so learning never reapplies it and a near-identical proposal becomes a decision. A genuinely different skill can still be learned under the same name; it starts a new history with the default controls.

## Adapters

The learner never inspects an application's schema. A source adapter implements `revalidate(source_id, revision, scope, approval_event_id)` and `load_evidence(...)`; approval-aware kinds also expose an approval checkpoint (event id, actor, approved revision). Publication is conditional on that live answer; a static approved flag in a queued payload is not enough. The first release ships the ordinary-chat adapter only.

## Operators

`GET /api/skill-learning/status` reports the backlog, the oldest pending source, the last review and last applied change, reviews still retrying, and the last 30 days of review cost. Every review disposition — applied, skipped, no novel procedure, deferred, conflict, blocked by content check, provider error, budget exhausted, stale eligibility, inaccessible evidence, suppressed — is kept per source revision in the review ledger.

`POST /api/skill-learning/run` runs the same bounded learning pass immediately for the authenticated account. It preserves the normal billing, scope, content, and ownership checks. A second run with no new evidence makes no model calls. Runs renew their lease between sources and check it again after each model review; losing the lease leaves the source pending without publishing the proposed change.

Validated paid review output can be retried without another model call, including when the current budget cannot fund new calls. Its checkpoint is limited to 512 KiB and seven days; owner, source, approval, and target state are checked again before applying it. Uncacheable failures and ambiguous crashes consume at most three model-call reservations per source revision and policy. After that limit the revision is skipped; new verified evidence can be considered in a later revision. A reservation does not prove that the provider completed a call.

At the saved-skill limit (150 for the account or for each Expert), learning saves nothing that would need another saved slot: a new skill, or an edit that would move an installed copy into the saved budget. The revision is recorded as paused before any version exists, and its paid review is kept for the retry above, so it is saved once there is room. If another save takes the last slot between that check and the write, the new version waits as a pending write and is saved, without another review, once there is room. Improvements to skills already saved continue.

Owner-approved content-check exceptions are stored with the immutable version as exact match hashes, file paths, and occurrence counts. Restoring or improving a version preserves only retained approved occurrences. New, duplicated, relocated, and seeded values still require the applicable checks.

Every registry package write replaces the whole package in one change: every file is stored first, then the package's files are swapped in a single database transaction. A failed or interrupted write leaves the previous package exactly as it was; retry it to apply the change. Versioned pending writes stay unavailable until recovery completes. Repeating source exclusion also resumes any interrupted head repair, while preserving an owner use-pause.

## Not in the first release

A morning digest, per-section edit protection, selective forgetting cascades, automatic sharing between Experts, skill merges or renames, age-based archiving, additional source adapters, and any automatic execution of a newly written recipe.


# Using AI/ML API

Follow these steps to connect **AI/ML API** with the **AutoGPT** platform for high-performance AI text generation.

***

## ✅ Prerequisites

1. Make sure you have gone through and completed the [AutoGPT Setup Guide](https://agpt.co/docs/platform/getting-started), and AutoGPT is running locally at `http://localhost:3000`.
2. You have an **API key** from [AI/ML API](https://aimlapi.com/app/keys?utm_source=autogpt\&utm_medium=github\&utm_campaign=integration).

***

## ⚙️ Setup Steps

### 1. Start AutoGPT Locally

Follow the official guide: [📖 AutoGPT Getting Started Guide](https://agpt.co/docs/platform/getting-started)

Make sure AutoGPT is running and accessible at: <http://localhost:3000>

> 💡 Keep AutoGPT running in a terminal or Docker throughout the session.

![Step 1 AutoGPT Running](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-66600f610577f157ad1dd892bed5ab0e5fe956be%2FStep%201%20AutoGPT%20Running.png?alt=media)

***

### 2. Open the Visual Builder

Open your browser and go to: <http://localhost:3000/build>

Or click **“Build”** in the navigation bar.

![Step 2 Build Screen](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-45d6c6700fb00b0f9f5da71febafe0826b173de4%2FStep%202%20Build%20Screen.png?alt=media)

***

### 3. Add an AI Text Generator Block

1. Click the **"Blocks"** button on the left sidebar.

![Step 3 AI Block](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-b8123cfc66231d0d2ad86935a758f881f5cecabc%2FStep%203%20AI%20Block.png?alt=media)

2. In the search bar, type `AI Text Generator`.
3. Drag the block into the canvas.

![Step 4 AI Generator Block](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-92a882351a30c4e238a94d9910f8718e3bf79022%2FStep%204%20AI%20Generator%20Block.png?alt=media)

***

### 4. Select an AI/ML API Model

Click the AI Text Generator block to configure it.

In the **LLM Model** dropdown, select the model currently available from AI/ML API:

![Step 5 AIMLAPI Models](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-3f7727da6df7f7cab000ac088b1dbf5068d1470d%2FStep%205%20AIMLAPI%20Models.png?alt=media)

| Model                        | Model ID                                  |
| ---------------------------- | ----------------------------------------- |
| Llama 3.3 70B Instruct Turbo | `meta-llama/Llama-3.3-70B-Instruct-Turbo` |

> ✅ This model is available via the OpenAI-compatible API from [AI/ML API](https://aimlapi.com/app/?utm_source=autogpt\&utm_medium=github\&utm_campaign=integration)

***

### 5. Configure the Prompt and API Key

Inside the **AI Text Generator** block:

1. Enter your prompt text in the **Prompt** field.
2. Enter your **AI/ML API Key** in the designated field.

🔐 You can get your key from: [https://aimlapi.com/app/keys/](https://aimlapi.com/app/keys?utm_source=autogpt\&utm_medium=github\&utm_campaign=integration)

![Key Placeholder](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-43ea616f510784399a2cdf80964b770e9ae9d69b%2FStep%206.1%20Key%20Placeholder.png?alt=media)

![Key Empty](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-95363da76c133300574a0d6e6cef7b232713c61a%2FStep%206.2%20No%20Fill%20Key%20Placeholder.png?alt=media)

![Key Filled](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-072a61727ada6c20edf9785143d283c3c6b4fef5%2FStep%206.3%20Filled%20Key%20Placeholder.png?alt=media)

![Overview](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-f4b605ae8905e9e3b82c0b01195c534f6a099bfc%2FStep%206.4%20Overview.png?alt=media)

***

### 6. Save Your Agent

Click the **“Save”** button at the top-right of the builder interface:

1. Give your agent a name (e.g., `aimlapi_test_agent`).
2. Click **“Save Agent”** to confirm.

![Save Agent](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-275e812567e24e9216124926daedfe40e4f19883%2FStep%207.1%20Save.png?alt=media)

> 💡 Saving allows reuse, scheduling, and chaining in larger workflows.

***

### 7. Run Your Agent

From the workspace:

1. Press **“Run”** next to your saved agent.
2. The request will be sent to the selected AI/ML API model.

![Run Agent](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-c4d784933109996b06e1d079440c75f0df119aa0%2FStep%208%20Run.png?alt=media)

***

### 8. View the Output

1. Scroll to the **AI Text Generator** block.
2. Check the **Output** panel below it.
3. You can copy, export, or pass the result to further blocks.

![Agent Output](https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-7176c5edc07cc12e9608109bc2cf2274f11bd522%2FStep%209%20Output.png?alt=media)

***

## 🔄 Expand Your Agent

Now that AI/ML API is connected, expand your workflow by chaining additional blocks:

* 🔧 **Tools** – fetch URLs, call APIs, scrape data
* 🧠 **Memory** – retain context across interactions
* ⚙️ **Actions / Chains** – create full pipelines

***

🎉 You’re now generating AI responses using enterprise-grade models from **AI/ML API** in **AutoGPT**!


# Using D-ID

1. **ElevenLabs**
   * Select any voice from the voice list: <https://api.elevenlabs.io/v1/voices>
   * Copy the voice\_id
   * Use it as a string in the voice\_id field in the CreateTalkingAvatarClip Block
2. **Microsoft Azure Voices**
   * Select any voice from the voice gallery: <https://speech.microsoft.com/portal/voicegallery>
   * Click on the "Sample code" tab on the right
   * Copy the voice name, for example: config.SpeechSynthesisVoiceName ="en-GB-AbbiNeural"
   * Use this string en-GB-AbbiNeural in the voice\_id field in the CreateTalkingAvatarClip Block
3. **Amazon Polly Voices**
   * Select any voice from the voice list: <https://docs.aws.amazon.com/polly/latest/dg/available-voices.html>
   * Copy the voice name / ID
   * Use it as string in the voice\_id field in the CreateTalkingAvatarClip Block


# AutoGPT Platform API

Run, build and manage AutoGPT agents from your own code. One REST API, the same on AutoGPT Cloud and on a self-hosted instance.

The AutoGPT Platform API lets your code do what you do in the AutoGPT web app: run agents from your library, read their outputs, build new agents, schedule them, answer their human-in-the-loop reviews, and manage files and credentials. The same API ships with AutoGPT Cloud and with every self-hosted instance, so an integration written against one works against the other by changing a single URL.

This section documents **API v2**. v1 is deprecated and stops working on **2027-02-01**; its last day of service is 2027-01-31. See [Migrate from v1](https://agpt.co/docs/platform/api-and-integrations/api-guide/migrate-from-v1).

## Start here

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Quickstart</strong></td><td>Make your first call and run an agent in about five minutes.</td><td><a href="https://agpt.co/docs/platform/api-and-integrations/api-guide/quickstart">Quickstart</a></td></tr><tr><td><strong>Build with AI coding agents</strong></td><td>Copy-paste prompts, llms.txt and MCP set-up for Claude Code, Codex, Cursor and others.</td><td><a href="https://agpt.co/docs/platform/api-and-integrations/api-guide/ai-coding-agents">Build with AI coding agents</a></td></tr><tr><td><strong>Run agents</strong></td><td>Inputs, credentials, the run lifecycle, outputs, reviews, schedules and files.</td><td><a href="https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents">Run agents</a></td></tr><tr><td><strong>Build agents</strong></td><td>Create and version agent graphs from code.</td><td><a href="https://agpt.co/docs/platform/api-and-integrations/api-guide/building-agents">Build agents</a></td></tr><tr><td><strong>MCP server</strong></td><td>Give Claude, Cursor or any MCP client tools to find, build and run agents.</td><td><a href="https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server">MCP server</a></td></tr><tr><td><strong>API reference</strong></td><td>Every endpoint, parameter and response, generated from the OpenAPI spec.</td><td><a href="https://agpt.co/docs/platform/api-and-integrations/api-reference">API reference</a></td></tr></tbody></table>

## Base URL

Every endpoint in these docs is relative to the base URL of your instance. Put it in `AUTOGPT_API_URL` and every example on this site works unchanged.

| Where AutoGPT runs              | Base URL (`AUTOGPT_API_URL`)         | Create API keys at                                                               |
| ------------------------------- | ------------------------------------ | -------------------------------------------------------------------------------- |
| AutoGPT Cloud                   | `https://backend.agpt.co/api/v2`     | [platform.agpt.co/settings/api-keys](https://platform.agpt.co/settings/api-keys) |
| Self-hosted with Docker Compose | `http://localhost:8006/api/v2`       | `http://localhost:3000/settings/api-keys`                                        |
| Self-hosted single container    | `http://localhost:3000/_agpt/api/v2` | `http://localhost:3000/settings/api-keys`                                        |

Self-hosted on another machine or domain? Replace `localhost` and the port with yours. [Cloud and self-hosted](https://agpt.co/docs/platform/api-and-integrations/api-guide/environments) explains how to find and check the right URL.

## Your first request

Create an API key with the **Identity** permission, then:

```bash
export AUTOGPT_API_URL="https://backend.agpt.co/api/v2"
export AUTOGPT_API_KEY="agpt_..."

curl -s "$AUTOGPT_API_URL/me" -H "X-API-Key: $AUTOGPT_API_KEY"
```

The response names the account, organization and permissions the key acts with. The [Quickstart](https://agpt.co/docs/platform/api-and-integrations/api-guide/quickstart) continues from here to a finished agent run.

## How the API works

* **Authentication.** Send an API key in the `X-API-Key` header, or an API key or OAuth access token as `Authorization: Bearer`. Each key carries only the permissions you grant it. See [Authentication and permissions](https://agpt.co/docs/platform/api-and-integrations/api-guide/authentication).
* **Organizations.** Every request acts inside one organization, fixed by the key. Add `X-Team-Id` to act inside one of its teams.
* **Running agents.** You run agents that are in your library. A run is asynchronous: starting one returns `202` and a run ID, and you poll the run until it reaches a final status. See [Run agents](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents).
* **One list shape.** Every list endpoint takes `limit` and `cursor` and returns `{"items", "next_cursor", "total_count"}`.
* **One error shape.** Every non-2xx response is `{"error": {"code", "message", "details"}}`. Branch on `code`.
* **Limits.** 200 requests per minute per user, plus lower limits on a few expensive endpoints. Every response carries `X-RateLimit-*` headers.
* **Safe retries.** Send an `Idempotency-Key` when you start a run, and a retry returns the original run instead of starting (and paying for) a second one.

[Errors, rate limits, and pagination](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions) covers these conventions in full.

## Machine-readable resources

For tools and AI agents, everything on this site is available as plain text:

| Resource                                            | URL                                                                                                                      |
| --------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------ |
| OpenAPI 3.1 spec (served by every instance)         | `$AUTOGPT_API_URL/openapi.json`, e.g. [backend.agpt.co/api/v2/openapi.json](https://backend.agpt.co/api/v2/openapi.json) |
| Interactive API explorer (served by every instance) | `$AUTOGPT_API_URL/docs` (Swagger UI) and `$AUTOGPT_API_URL/redoc`                                                        |
| Index of every docs page, for LLMs                  | [agpt.co/docs/llms.txt](https://agpt.co/docs/llms.txt)                                                                   |
| Every docs page in one file                         | [agpt.co/docs/llms-full.txt](https://agpt.co/docs/llms-full.txt)                                                         |
| Any docs page as Markdown                           | Append `.md` to its URL                                                                                                  |
| Docs search for AI agents (MCP)                     | `https://agpt.co/docs/~gitbook/mcp`                                                                                      |
| The platform's own MCP server                       | `$AUTOGPT_API_URL/mcp`, see [MCP server](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server)        |

## Versions

| Version | Status                                                                   | Path                   |
| ------- | ------------------------------------------------------------------------ | ---------------------- |
| **v2**  | Current. Use it for everything new.                                      | `/api/v2/...`          |
| v1      | Deprecated. Stops working on 2027-02-01; last day of service 2027-01-31. | `/external-api/v1/...` |

Within v2, changes are additive: new endpoints, new optional parameters and new response fields can appear at any time, so ignore fields you don't recognise. Anything that would break a working integration ships as a new version.

## Get help

* Report bugs and request endpoints on [GitHub](https://github.com/Significant-Gravitas/AutoGPT/issues).
* Ask questions in the [AutoGPT Discord](https://discord.com/invite/autogpt).
* Building a product for other AutoGPT users? Use [OAuth](https://agpt.co/docs/platform/api-and-integrations/oauth-guide) instead of asking users for API keys.


# Quickstart

Create an API key, add a sample agent, run it and read its output in about five minutes. Works the same on AutoGPT Cloud and self-hosted.

In about five minutes you will create an API key, add a small sample agent to your library through the API, run it, and read its result. The sample agent uses no AI model and no third-party account, so it runs the same on AutoGPT Cloud and on a brand-new self-hosted instance.

**You need**

* An AutoGPT account on [AutoGPT Cloud](https://platform.agpt.co) or on your self-hosted instance. New accounts finish a short onboarding in the app before the settings pages open.
* cURL, Python 3.9+ with `requests`, or Node.js 20+.
* On AutoGPT Cloud only: an active plan or trial and a credit balance above zero, or runs are refused with `402 payment_required`. Self-hosted instances don't bill.

{% hint style="info" %}
Want your coding agent to do this for you? Paste the set-up prompt from [Build with AI coding agents](https://agpt.co/docs/platform/api-and-integrations/api-guide/ai-coding-agents) into Claude Code, Codex, Cursor or Copilot.
{% endhint %}

{% stepper %}
{% step %}

### Create an API key

1. In the AutoGPT app, open **Settings → AutoGPT API Keys**: [platform.agpt.co/settings/api-keys](https://platform.agpt.co/settings/api-keys) on Cloud, or `http://localhost:3000/settings/api-keys` on a self-hosted instance.
2. Click **Create Key** and name it `Quickstart`.
3. Tick these permissions: **Identity**, **Write Graph**, **Read Library**, **Write Library**, **Run Agent**, **Read Run**. (Write Library lets the full script at the end remove its sample agent again.)
4. Click **Create Key**, then copy the key. It starts with `agpt_` and is shown only once.

Put the key and your instance's base URL in environment variables. Every example in these docs reads them:

{% tabs %}
{% tab title="AutoGPT Cloud" %}

```bash
export AUTOGPT_API_URL="https://backend.agpt.co/api/v2"
export AUTOGPT_API_KEY="agpt_..."
```

{% endtab %}

{% tab title="Self-hosted (Docker Compose)" %}

```bash
export AUTOGPT_API_URL="http://localhost:8006/api/v2"
export AUTOGPT_API_KEY="agpt_..."
```

{% endtab %}

{% tab title="Self-hosted (single container)" %}

```bash
export AUTOGPT_API_URL="http://localhost:3000/_agpt/api/v2"
export AUTOGPT_API_KEY="agpt_..."
```

{% endtab %}
{% endtabs %}

If your instance runs on another host or port, change the URL to match. [Cloud and self-hosted](https://agpt.co/docs/platform/api-and-integrations/api-guide/environments) explains how to work it out.

The cURL examples use Bash syntax; on Windows, run them in Git Bash or WSL. To use the Python or TypeScript scripts from PowerShell, set the variables with `$env:AUTOGPT_API_URL = "..."` and `$env:AUTOGPT_API_KEY = "agpt_..."`. In a project, keep both in a `.env` file that's in `.gitignore`:

```dotenv
AUTOGPT_API_URL=https://backend.agpt.co/api/v2
AUTOGPT_API_KEY=agpt_...
```

{% endstep %}

{% step %}

### Check the key

```bash
curl -s "$AUTOGPT_API_URL/me" -H "X-API-Key: $AUTOGPT_API_KEY"
```

You should get your account back:

```json
{
  "user_id": "2a9c2855-921d-421e-960b-dacb3a712a08",
  "email": "you@example.com",
  "name": "Ada",
  "timezone": "Europe/London",
  "organization": { "id": "5dad3c98-5c39-4782-b816-f9f6f2c53fe2", "name": "Ada", "is_personal": true },
  "team": null,
  "scopes": ["IDENTITY", "WRITE_GRAPH", "READ_LIBRARY", "WRITE_LIBRARY", "RUN_AGENT", "READ_RUN"],
  "credential_type": "api_key"
}
```

If you get something else, fix it before going on:

| You got                         | It means                                                                                                                                                                |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `401 unauthorized`              | The key is wrong or revoked, or the header name is not `X-API-Key`.                                                                                                     |
| `403 forbidden`                 | The key lacks **Identity**, or you are no longer a member of the organization it was created in. The message says which.                                                |
| `404`                           | `AUTOGPT_API_URL` is wrong. It must end in `/api/v2`.                                                                                                                   |
| `429` with `5 requests per 60s` | The API didn't recognise a key, so the request counted as anonymous: after five `401`s in a minute, you get this instead. Check the key and header, then wait a minute. |
| A connection error              | The instance isn't running at that address.                                                                                                                             |
| {% endstep %}                   |                                                                                                                                                                         |

{% step %}

### Add a sample agent

An agent is a graph of blocks: `nodes` are the blocks, and `links` connect one block's output to another's input. This one takes a name, puts it into a greeting with a text template, and returns the greeting.

```bash
curl -s -X POST "$AUTOGPT_API_URL/graphs" \
  -H "X-API-Key: $AUTOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "name": "Hello from the API",
    "description": "Greets whoever you name. Created by the AutoGPT API quickstart.",
    "nodes": [
      {"id": "name-input", "block_id": "c0a8e994-ebf1-4a9c-a4d8-89d09c86741b",
       "input_default": {"name": "name", "title": "Your name", "value": "World"}},
      {"id": "greeting-template", "block_id": "db7d8f02-2f44-4c55-ab7a-eae0941f0c30",
       "input_default": {"format": "Hello, {{ name }}!", "values": {}}},
      {"id": "greeting-output", "block_id": "363ae599-353e-4804-937e-b2ee3cef3da4",
       "input_default": {"name": "greeting", "title": "Greeting"}}
    ],
    "links": [
      {"id": "name-to-template", "source_id": "name-input", "source_name": "result",
       "sink_id": "greeting-template", "sink_name": "values_#_name"},
      {"id": "template-to-output", "source_id": "greeting-template", "source_name": "output",
       "sink_id": "greeting-output", "sink_name": "value"}
    ]
  }'
```

The response is the saved graph, with an `id`, `"version": 1`, and the `input_schema` and `output_schema` the API worked out from the input and output blocks. Save the ID:

```bash
export GRAPH_ID="992cb167-d6e3-4d7f-9dc3-002e34252de0"   # the "id" from the response
```

Creating a graph also adds it to your library. You run agents through their **library agent**, which has its own ID:

```bash
curl -s "$AUTOGPT_API_URL/graphs/$GRAPH_ID/library-agent" -H "X-API-Key: $AUTOGPT_API_KEY"
```

```json
{
  "id": "3acb5782-a2d9-4c3d-830a-6928317b280f",
  "graph_id": "992cb167-d6e3-4d7f-9dc3-002e34252de0",
  "graph_version": 1,
  "name": "Hello from the API",
  "input_schema": {
    "type": "object",
    "properties": { "name": { "title": "Your name", "default": "World" } },
    "required": []
  },
  "output_schema": {
    "type": "object",
    "properties": { "greeting": { "title": "Greeting" } },
    "required": ["greeting"]
  }
}
```

The response has more fields than shown here. Save the library agent ID:

```bash
export AGENT_ID="3acb5782-a2d9-4c3d-830a-6928317b280f"   # the "id" from the response
```

{% endstep %}

{% step %}

### Run it

```bash
curl -s -X POST "$AUTOGPT_API_URL/library/agents/$AGENT_ID/runs" \
  -H "X-API-Key: $AUTOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: quickstart-$(date +%s)" \
  -d '{"inputs": {"name": "Ada"}}'
```

`inputs` maps each property in the agent's `input_schema` to a value. The API answers `202 Accepted` straight away with the new run, before it starts:

```json
{
  "id": "34cc713f-7b02-4622-95c7-5c8ea1a8b213",
  "graph_id": "992cb167-d6e3-4d7f-9dc3-002e34252de0",
  "graph_version": 1,
  "status": "QUEUED",
  "started_at": null,
  "ended_at": null,
  "inputs": { "name": "Ada" },
  "cost_cents": 0,
  "duration_seconds": 0.0,
  "node_exec_count": 0
}
```

The `Idempotency-Key` makes the request safe to retry: sending it again with the same key returns this run instead of starting a second one.

```bash
export RUN_ID="34cc713f-7b02-4622-95c7-5c8ea1a8b213"   # the "id" from the response
```

{% endstep %}

{% step %}

### Get the result

Runs are asynchronous. Ask for the run until its `status` is `COMPLETED`, `FAILED` or `TERMINATED`:

```bash
curl -s "$AUTOGPT_API_URL/runs/$RUN_ID" -H "X-API-Key: $AUTOGPT_API_KEY"
```

This agent finishes in a second or two:

```json
{
  "id": "34cc713f-7b02-4622-95c7-5c8ea1a8b213",
  "status": "COMPLETED",
  "started_at": "2026-10-08T14:29:24.277000Z",
  "ended_at": "2026-10-08T14:29:25.098000Z",
  "inputs": { "name": "Ada" },
  "outputs": { "greeting": ["Hello, Ada!"] },
  "cost_cents": 0,
  "duration_seconds": 0.74,
  "node_exec_count": 3,
  "node_executions": [ "..." ]
}
```

`outputs` maps each output name to a **list** of values, because an output block can fire more than once in a run. The greeting is `outputs["greeting"][0]`.
{% endstep %}
{% endstepper %}

You have run an agent through the API.

## The whole flow as one script

Each script creates the sample agent, runs it with an idempotency key, waits for it with a deadline, fails unless the output is exactly `{"greeting": ["Hello, Ada!"]}`, and removes the sample agent from your library again. The graph and its run stay on your account. If a request fails before the script has the agent's ID, remove the agent in the app.

The scripts show the flow, not production code: they don't retry, and they don't branch on error codes. [Errors, rate limits, and pagination](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions) covers both.

{% tabs %}
{% tab title="Python" %}
{% code title="quickstart.py" lineNumbers="true" %}

```python
"""AutoGPT API quickstart: create a sample agent, run it, print its output, clean up.

Needs: pip install requests (and python-dotenv to read a .env file)
Env:   AUTOGPT_API_URL, AUTOGPT_API_KEY (permissions: Identity, Write Graph,
       Read Library, Write Library, Run Agent, Read Run)
"""

import os
import time
import uuid

import requests

try:
    from dotenv import load_dotenv

    load_dotenv()
except ImportError:
    pass

API_URL = os.environ["AUTOGPT_API_URL"].rstrip("/")
HEADERS = {"X-API-Key": os.environ["AUTOGPT_API_KEY"]}
FINAL_STATUSES = {"COMPLETED", "FAILED", "TERMINATED"}

HELLO_AGENT = {
    "name": "Hello from the API",
    "description": "Greets whoever you name. Created by the AutoGPT API quickstart.",
    "nodes": [
        {
            "id": "name-input",
            "block_id": "c0a8e994-ebf1-4a9c-a4d8-89d09c86741b",  # Agent Input
            "input_default": {"name": "name", "title": "Your name", "value": "World"},
        },
        {
            "id": "greeting-template",
            "block_id": "db7d8f02-2f44-4c55-ab7a-eae0941f0c30",  # Fill Text Template
            "input_default": {"format": "Hello, {{ name }}!", "values": {}},
        },
        {
            "id": "greeting-output",
            "block_id": "363ae599-353e-4804-937e-b2ee3cef3da4",  # Agent Output
            "input_default": {"name": "greeting", "title": "Greeting"},
        },
    ],
    "links": [
        {
            "id": "name-to-template",
            "source_id": "name-input",
            "source_name": "result",
            "sink_id": "greeting-template",
            "sink_name": "values_#_name",
        },
        {
            "id": "template-to-output",
            "source_id": "greeting-template",
            "source_name": "output",
            "sink_id": "greeting-output",
            "sink_name": "value",
        },
    ],
}


def api(method: str, path: str, timeout: float = 30, **kwargs):
    response = requests.request(
        method, f"{API_URL}{path}", headers=HEADERS | kwargs.pop("headers", {}),
        timeout=timeout, **kwargs,
    )
    if not response.ok:
        raise RuntimeError(f"{method} {path} -> {response.status_code}: {response.text}")
    return response.json() if response.content else None


def wait_for_run(run_id: str, timeout_s: float = 300) -> dict:
    deadline = time.monotonic() + timeout_s
    delay, status = 1.0, "unknown"
    while (remaining := deadline - time.monotonic()) > 0:
        run = api("GET", f"/runs/{run_id}", timeout=min(30, remaining))
        status = run["status"]
        if status in FINAL_STATUSES:
            return run
        if status == "REVIEW":
            raise RuntimeError(f"Run {run_id} is waiting for a human review")
        time.sleep(max(0, min(delay, deadline - time.monotonic())))
        delay = min(delay * 1.5, 10)
    raise TimeoutError(f"Run {run_id} still {status} after {timeout_s}s")


def node_errors(run: dict) -> list[str]:
    return [
        message
        for node in run.get("node_executions") or []
        if node["status"] == "FAILED"
        for message in node["outputs"].get("error", [])
    ]


me = api("GET", "/me")
print(f"Authenticated as {me['email']} in {me['organization']['name']}")

graph = api("POST", "/graphs", json=HELLO_AGENT)
agent = None
try:
    agent = api("GET", f"/graphs/{graph['id']}/library-agent")
    print(f"Created agent {agent['id']}")
    run = api(
        "POST",
        f"/library/agents/{agent['id']}/runs",
        json={"inputs": {"name": "Ada"}},
        headers={"Idempotency-Key": str(uuid.uuid4())},
    )
    print(f"Started run {run['id']} ({run['status']})")

    run = wait_for_run(run["id"])
    if run["status"] != "COMPLETED" or run["outputs"] != {"greeting": ["Hello, Ada!"]}:
        raise RuntimeError(f"Run {run['id']} {run['status']}: {node_errors(run) or run['outputs']}")
    print(f"Run {run['status']}: {run['outputs']['greeting'][0]}")
finally:
    if agent:
        api("DELETE", f"/library/agents/{agent['id']}")
        print("Removed the sample agent from the library")
```

{% endcode %}

Run it with `python quickstart.py`. With `python-dotenv` installed it also reads a `.env` file in the current folder. It prints:

```
Authenticated as you@example.com in Ada
Created agent 8f21cc9c-7345-4bc3-acea-125c4588fd2a
Started run d4436ae4-b15f-4dd3-aa9c-66996befd0fb (QUEUED)
Run COMPLETED: Hello, Ada!
Removed the sample agent from the library
```

{% endtab %}

{% tab title="TypeScript" %}
{% code title="quickstart.mts" lineNumbers="true" %}

```typescript
// AutoGPT API quickstart: create a sample agent, run it, print its output, clean up.
// Needs: Node.js 20+. Run with: npx tsx quickstart.mts
// Env:   AUTOGPT_API_URL, AUTOGPT_API_KEY (permissions: Identity, Write Graph,
//        Read Library, Write Library, Run Agent, Read Run)

const API_URL = process.env.AUTOGPT_API_URL!.replace(/\/$/, "");
const API_KEY = process.env.AUTOGPT_API_KEY!;
const FINAL_STATUSES = new Set(["COMPLETED", "FAILED", "TERMINATED"]);

const HELLO_AGENT = {
  name: "Hello from the API",
  description: "Greets whoever you name. Created by the AutoGPT API quickstart.",
  nodes: [
    {
      id: "name-input",
      block_id: "c0a8e994-ebf1-4a9c-a4d8-89d09c86741b", // Agent Input
      input_default: { name: "name", title: "Your name", value: "World" },
    },
    {
      id: "greeting-template",
      block_id: "db7d8f02-2f44-4c55-ab7a-eae0941f0c30", // Fill Text Template
      input_default: { format: "Hello, {{ name }}!", values: {} },
    },
    {
      id: "greeting-output",
      block_id: "363ae599-353e-4804-937e-b2ee3cef3da4", // Agent Output
      input_default: { name: "greeting", title: "Greeting" },
    },
  ],
  links: [
    {
      id: "name-to-template",
      source_id: "name-input",
      source_name: "result",
      sink_id: "greeting-template",
      sink_name: "values_#_name",
    },
    {
      id: "template-to-output",
      source_id: "greeting-template",
      source_name: "output",
      sink_id: "greeting-output",
      sink_name: "value",
    },
  ],
};

async function api(
  method: string,
  path: string,
  body?: unknown,
  headers: Record<string, string> = {},
  timeoutMs = 30_000,
) {
  const response = await fetch(`${API_URL}${path}`, {
    method,
    headers: { "X-API-Key": API_KEY, "Content-Type": "application/json", ...headers },
    body: body === undefined ? undefined : JSON.stringify(body),
    signal: AbortSignal.timeout(timeoutMs),
  });
  if (!response.ok) {
    throw new Error(`${method} ${path} -> ${response.status}: ${await response.text()}`);
  }
  return response.status === 204 ? null : response.json();
}

async function waitForRun(runId: string, timeoutMs = 300_000) {
  const deadline = Date.now() + timeoutMs;
  let delay = 1000;
  let status = "unknown";
  for (let remaining = timeoutMs; remaining > 0; remaining = deadline - Date.now()) {
    const run = await api("GET", `/runs/${runId}`, undefined, {}, Math.min(30_000, remaining));
    status = run.status;
    if (FINAL_STATUSES.has(status)) return run;
    if (status === "REVIEW") throw new Error(`Run ${runId} is waiting for a human review`);
    const pause = Math.max(0, Math.min(delay, deadline - Date.now()));
    await new Promise((resolve) => setTimeout(resolve, pause));
    delay = Math.min(delay * 1.5, 10_000);
  }
  throw new Error(`Run ${runId} still ${status} after ${timeoutMs} ms`);
}

function nodeErrors(run: { node_executions?: { status: string; outputs: Record<string, unknown[]> }[] }) {
  return (run.node_executions ?? [])
    .filter((node) => node.status === "FAILED")
    .flatMap((node) => node.outputs.error ?? []);
}

const me = await api("GET", "/me");
console.log(`Authenticated as ${me.email} in ${me.organization.name}`);

const graph = await api("POST", "/graphs", HELLO_AGENT);
let agent: { id: string } | undefined;
try {
  agent = await api("GET", `/graphs/${graph.id}/library-agent`);
  console.log(`Created agent ${agent!.id}`);
  let run = await api(
    "POST",
    `/library/agents/${agent!.id}/runs`,
    { inputs: { name: "Ada" } },
    { "Idempotency-Key": crypto.randomUUID() },
  );
  console.log(`Started run ${run.id} (${run.status})`);

  run = await waitForRun(run.id);
  const expected = JSON.stringify({ greeting: ["Hello, Ada!"] });
  if (run.status !== "COMPLETED" || JSON.stringify(run.outputs) !== expected) {
    const errors = nodeErrors(run);
    throw new Error(`Run ${run.id} ${run.status}: ${JSON.stringify(errors.length ? errors : run.outputs)}`);
  }
  console.log(`Run ${run.status}: ${run.outputs.greeting[0]}`);
} finally {
  if (agent) {
    await api("DELETE", `/library/agents/${agent.id}`);
    console.log("Removed the sample agent from the library");
  }
}
```

{% endcode %}

Save it as `quickstart.mts` (the `.mts` extension lets it use top-level `await`) and run `npx tsx quickstart.mts`. On Node.js 23.6 or later you can run it directly, and load a `.env` file at the same time: `node --env-file=.env quickstart.mts`. It prints:

```
Authenticated as you@example.com in Ada
Created agent 01322f04-808c-40ba-af2f-a71ac8133d6e
Started run fd13103e-6caa-428b-9c1e-18196d0ff7f2 (QUEUED)
Run COMPLETED: Hello, Ada!
Removed the sample agent from the library
```

{% endtab %}
{% endtabs %}

The step-by-step version above leaves the sample agent in your library. Remove it in the app, or with `DELETE /library/agents/{agent_id}`.

## Next steps

* **Run your own agents.** List your library with `GET /library/agents` (needs **Read Library**), read an agent's `input_schema` from `GET /library/agents/{agent_id}`, and run it the same way. Add **Read Integrations** to the key to check which credentials an agent needs. [Run agents](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents) covers credentials, files, human reviews, schedules and failures.
* **Build agents in code.** [Build agents](https://agpt.co/docs/platform/api-and-integrations/api-guide/building-agents) explains blocks, links and versions.
* **Handle errors and limits.** [Errors, rate limits, and pagination](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions).
* **Connect an AI tool.** [MCP server](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server) lets Claude, Cursor and other MCP clients do all of this conversationally.


# Build with AI coding agents

Copy-paste prompts, llms.txt, Markdown docs, MCP servers, an AGENTS.md snippet and an Agent Skill that let Claude Code, Codex, Cursor or Copilot integrate AutoGPT for you.

These docs are written to be read by coding agents as well as people. Give your agent one of the prompts below and it can wire AutoGPT into your project, check its own work against your instance, and tell you what it verified.

## Set up an integration

Paste this into Claude Code, Codex, Cursor, Copilot or any agent that can run commands in your project. Before you do:

1. [Create an API key](https://agpt.co/docs/platform/api-and-integrations/api-guide/authentication#create-an-api-key) with **Identity, Read Library, Write Library, Write Graph, Run Agent, Read Run** and **Read Integrations**. That covers the prompt's checks, including creating and deleting a sample agent; your finished integration may need fewer.
2. Put `AUTOGPT_API_URL` and `AUTOGPT_API_KEY` in the environment the agent works in, or in the project's `.env`. The agent never needs to see the key.

{% prompt description="Integrate the AutoGPT Platform API into this project" icon="rectangle-terminal" openInAIProviders="true" defaultExpanded="full" %}

```markdown
Integrate the AutoGPT Platform API (v2) into this project.

Before writing code, read:
1. The docs index: https://agpt.co/docs/llms.txt. Read these "AutoGPT Platform API" pages
   (append .md to any docs URL for Markdown): Quickstart, Authentication and permissions,
   Run agents, and Errors, rate limits, and pagination.
2. The OpenAPI spec of the instance we use: $AUTOGPT_API_URL/openapi.json. Use only
   endpoints, fields and enum values that appear there. An agent's own input and output
   names, and a graph's node settings, aren't in the spec: take them from the agent's
   input_schema and output_schema and from the docs. The spec doesn't list every status
   code; the Errors page does. Don't use /external-api/v1.

Configuration:
- Read the base URL from AUTOGPT_API_URL and the key from AUTOGPT_API_KEY. If the project
  keeps them in a .env file, load it the way this project's stack normally does. If either
  is missing, stop and ask me for it. Don't print, log or commit the key. Keep both
  configurable: the same code has to work against AutoGPT Cloud
  (https://backend.agpt.co/api/v2) and a self-hosted instance.
- Send the key as the X-API-Key header on every request.
- The key needs Identity, Read Library, Write Library, Write Graph, Run Agent, Read Run
  and Read Integrations for the steps below. GET /me lists what it has under scopes.

Rules the integration must follow:
- The client's first call is GET /me, retried like any read. If it still isn't 200,
  stop and report it: 401 means a bad key (after five in a minute they turn into 429
  "5 requests per 60s"), 404 a bad base URL, 403 a missing permission or no access to
  the organization or team (error.message says which).
- Run agents with POST /library/agents/{agent_id}/runs, using the library agent ID, not
  the graph ID. Send an Idempotency-Key header on every run you start. Let callers pass
  their own key (such as a job ID) and generate one only when they don't.
- Build inputs from the agent's input_schema (properties and required). A run or
  schedule with an unknown input name, or a required input left out or null, is a 422
  whose error.details.errors names each one, up to 20.
- A run is asynchronous. Poll GET /runs/{run_id} with backoff until status is COMPLETED,
  FAILED or TERMINATED, under one overall deadline that also bounds each request and each
  sleep. Treat REVIEW as waiting on a person, never as finished: by default, stop
  polling and report the run ID so someone can answer the review.
- COMPLETED doesn't guarantee success: check that the outputs you need exist, and collect
  `error` outputs from node_executions with status FAILED.
- Outputs map each output name to a list of values.
- Lists are paginated: follow next_cursor until it is null. GET /library/agents leaves
  input_schema empty; read it from GET /library/agents/{agent_id}.
- Errors look like {"error": {"code", "message", "details"}}. Branch on error.code.
  Retries: reads on 429 (after Retry-After), 500, 502, 503 and network errors; a run start
  on the same, plus 409, always resending the same Idempotency-Key; any other write on
  429 only.
- Before an agent's first run, read GET /library/agents/{agent_id}/credentials. An empty
  list means it needs none. Otherwise pass credentials_inputs keyed by field_name, and
  when several credentials match, let the caller choose instead of picking one.

Then:
1. Say which language, HTTP client and file layout you'll use, matching this project.
2. Implement a small client: identity check, list library agents, start a run, wait for it,
   return its outputs or raise with the node errors. If the project has no obvious place
   to call agents from yet, stop at the client and say where you'd wire it in.
3. Prove it works against the real instance: create the sample "Hello from the API" agent
   from the Quickstart, run it with {"name": "Ada"}, and check the output is
   {"greeting": ["Hello, Ada!"]}. Afterwards remove the library agent you created, by its
   ID because names aren't unique, with DELETE /library/agents/{agent_id}, even if the
   check fails. Its graph and run stay on the account; that's expected.
4. Add tests that don't touch the network. Record only response status codes and bodies,
   never request headers or the key, and mark hand-written fixtures as synthetic.
5. Report only what you verified: the GET /me result (email and permissions, not the key),
   the run ID and output from step 3, the files you changed, and anything you couldn't do.
```

{% endprompt %}

## Connect your coding agent to AutoGPT

To have your assistant run and build agents directly instead of writing code, connect it to the [MCP server](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server). This prompt sets it up:

{% prompt description="Connect this coding agent to the AutoGPT MCP server" icon="plug" openInAIProviders="true" defaultExpanded="full" %}

```markdown
Connect yourself to the AutoGPT Platform MCP server.

- Server URL: $AUTOGPT_API_URL/mcp/ (keep the trailing slash). On AutoGPT Cloud that is
  https://backend.agpt.co/api/v2/mcp/.
- Transport: Streamable HTTP. Auth: the header "Authorization: Bearer <key>", with the key
  read from the AUTOGPT_API_KEY environment variable. Never write the key itself into a
  config file that is committed.
- Instructions for each client: https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server.md

Before changing any MCP configuration file, read it and merge the "autogpt" entry without
removing other servers. Then confirm the connection: list the server's tools, call
find_library_agent with query "hello", and tell me how many tools you see and what the
call returned. If the tool list is shorter than you expect, the API key lacks
permissions: tell me which tools are missing.
```

{% endprompt %}

## Docs in machine-readable form

| Resource                                                         | Use it for                                                                                                                                                                                          |
| ---------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [agpt.co/docs/llms.txt](https://agpt.co/docs/llms.txt)           | An index of every docs page with a one-line summary. Start here.                                                                                                                                    |
| [agpt.co/docs/llms-full.txt](https://agpt.co/docs/llms-full.txt) | The full text of the docs, in parts of 100 pages (`/llms-full.txt/1`, `/llms-full.txt/2`, ...).                                                                                                     |
| Any page + `.md`                                                 | That page as Markdown, e.g. [.../api-guide/quickstart.md](https://agpt.co/docs/platform/api-and-integrations/api-guide/quickstart.md). Sending `Accept: text/markdown` to the normal URL works too. |
| `$AUTOGPT_API_URL/openapi.json`                                  | The exact API the instance runs, as OpenAPI 3.1, served without a key. Prefer it to anything remembered from training data.                                                                         |
| The API reference pages                                          | One page per endpoint, each with a self-contained OpenAPI description of that endpoint. See [API reference](https://agpt.co/docs/platform/api-and-integrations/api-reference).                      |
| `https://agpt.co/docs/~gitbook/mcp`                              | An MCP server for these docs, with search and page tools.                                                                                                                                           |

Add the docs server to Claude Code with:

```bash
claude mcp add --transport http autogpt-docs https://agpt.co/docs/~gitbook/mcp
```

For Codex, add `[mcp_servers.autogpt-docs]` with `url = "https://agpt.co/docs/~gitbook/mcp"` to `~/.codex/config.toml`. Other clients take the same URL. The docs server only reads documentation. The [platform's MCP server](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server) is the one that acts on your account.

## Add AutoGPT rules to your repository

Coding agents read standing instructions from `AGENTS.md` (Codex, Cursor, Copilot and most others) or `CLAUDE.md` (Claude Code). Paste this section into the one your project uses:

{% code title="AGENTS.md" %}

```markdown
## AutoGPT Platform API

- Use API v2 only. Base URL from AUTOGPT_API_URL (AutoGPT Cloud:
  https://backend.agpt.co/api/v2). Key from AUTOGPT_API_KEY, sent as X-API-Key.
  Never print, log or commit the key.
- Check endpoints and fields against $AUTOGPT_API_URL/openapi.json and the docs at
  https://agpt.co/docs/llms.txt before using them. Don't guess.
- Run agents by library agent ID: POST /library/agents/{agent_id}/runs, always with an
  Idempotency-Key header. Get a graph's library agent with GET /graphs/{graph_id}/library-agent.
  GET /library/agents leaves input_schema empty: read it from GET /library/agents/{agent_id}.
- Build inputs from input_schema (properties and required). An unknown input name, or a
  required input left out or null, is a 422 naming each (up to 20) in error.details.errors.
- Runs are asynchronous: poll GET /runs/{run_id} with backoff and a deadline until COMPLETED,
  FAILED or TERMINATED. REVIEW waits for a person. COMPLETED can still lack outputs: check
  them, and read `error` outputs from node_executions with status FAILED.
- outputs maps each output name to a list of values.
- Lists: limit (max 100) + cursor; follow next_cursor until null.
- Errors: {"error": {"code", "message", "details"}}. Branch on code. Retry reads on 429
  (honour Retry-After), 500, 502, 503 and network errors; run starts the same plus 409,
  with the same Idempotency-Key; other writes on 429 only.
- Limits: 200 requests/min per user; 60 run starts/min.
```

{% endcode %}

## Install the Agent Skill

An [Agent Skill](https://agentskills.io) gives an agent the same rules, but loads them only when a task involves AutoGPT. Save this as `.claude/skills/autogpt-api/SKILL.md` in your project for Claude Code, or in your agent's skills folder:

{% code title="SKILL.md" %}

```markdown
---
name: autogpt-api
description: Integrate with the AutoGPT Platform API v2 - run AutoGPT agents, read their outputs, build agent graphs, manage files, schedules and credentials, on AutoGPT Cloud or a self-hosted instance. Use when code calls AutoGPT, agpt.co, backend.agpt.co or /api/v2.
---

# AutoGPT Platform API v2

## Before writing code
1. Fetch https://agpt.co/docs/llms.txt and read the "AutoGPT Platform API" pages you need (append .md to a docs URL for Markdown).
2. Fetch $AUTOGPT_API_URL/openapi.json and use only the endpoints and fields in it.

## Configuration
- AUTOGPT_API_URL: base URL ending in /api/v2. Cloud: https://backend.agpt.co/api/v2. Self-hosted: http://localhost:8006/api/v2 (Docker Compose) or http://localhost:3000/_agpt/api/v2 (single container).
- AUTOGPT_API_KEY: starts with agpt_. Send as X-API-Key. Never print, log or commit it.
- Check both with GET /me before anything else (401 bad key, 404 bad URL, 403 missing permission).

## Running an agent
1. Find it: GET /library/agents (items[].id is the library agent ID). From a graph ID: GET /graphs/{graph_id}/library-agent.
2. Inputs: keys of input_schema.properties from GET /library/agents/{agent_id} (the list leaves input_schema empty). An unknown name, or a required input left out or null, is a 422 whose error.details.errors names each, up to 20. File inputs (format "file") take a file_uri from POST /files/upload.
3. Credentials: GET /library/agents/{agent_id}/credentials. Pass credentials_inputs {field_name: {id, provider, type}} from matching_credentials.
4. Start: POST /library/agents/{agent_id}/runs with {"inputs": {...}, "credentials_inputs": {...}} and an Idempotency-Key header. Answers 202 with the run.
5. Wait: GET /runs/{run_id} with backoff and one overall deadline until COMPLETED, FAILED or TERMINATED. REVIEW means a person must answer (GET /runs/reviews, POST /runs/{run_id}/reviews): by default stop polling and report the run ID; stop the run with POST /runs/{run_id}/stop if nobody will answer.
6. Result: outputs maps each output name to a list. COMPLETED without the outputs you need is a failure: read `error` from node_executions with status FAILED, and if there is none, check the run's inputs.

## Conventions
- Lists: ?limit=1..100&cursor=; response {items, next_cursor, total_count}; follow next_cursor until null.
- Errors: {"error": {"code", "message", "details"}}; branch on code. Retry reads on 429 (Retry-After), 500, 502, 503 and network errors; run starts the same plus 409, resending the same Idempotency-Key; other writes on 429 only.
- Rate limits: 200 req/min per user; runs 60/min; uploads 20 per 5 min; search 30/min.
- 402 payment_required on AutoGPT Cloud: no active plan or a zero balance.

## Building agents
Graph = nodes (block_id + input_default) + links (source_id/source_name -> sink_id/sink_name). POST /graphs creates version 1 and adds it to the library; PUT /graphs/{graph_id} with the full graph (no id needed) saves the next version, even if nothing changed. Inputs: AgentInputBlock c0a8e994-ebf1-4a9c-a4d8-89d09c86741b. Outputs: AgentOutputBlock 363ae599-353e-4804-937e-b2ee3cef3da4; outputs record exactly what reaches its value pin. Shape text with FillTextTemplateBlock db7d8f02-2f44-4c55-ab7a-eae0941f0c30, whose format is a sandboxed Jinja2 template (filters such as upper work). Fill one key of a dict input with sink_name values_#_key. Discover blocks with GET /blocks (all pages; search can be empty on a new self-hosted instance).
```

{% endcode %}

## What agents get wrong, and the fix

| Mistake                                                                | Fix                                                                                                                                 |
| ---------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Calling `/external-api/v1/...` endpoints remembered from training data | Use v2 and check the instance's `openapi.json`.                                                                                     |
| A base URL that doesn't end in `/api/v2`, such as the bare `/api`      | Use the URL from the [base URL table](https://agpt.co/docs/platform/api-and-integrations/api-guide/environments#base-urls) exactly. |
| Running with the graph ID                                              | Runs take the library agent ID. Look it up with `GET /graphs/{graph_id}/library-agent`.                                             |
| Treating the `202` from starting a run as the result                   | Poll `GET /runs/{run_id}` until a final status.                                                                                     |
| Polling forever, or every 100 ms                                       | Back off from about 1 s to 10 s and set a deadline. Every poll counts toward the 200-per-minute limit.                              |
| Reading `outputs["x"]` as a string                                     | It's a list. Use `outputs["x"][0]` or the last element.                                                                             |
| Trusting `COMPLETED`                                                   | Check the outputs exist, and read `error` outputs from failed nodes.                                                                |
| Retrying `POST .../runs` without an idempotency key                    | Send `Idempotency-Key`, or a retry starts and bills a second run.                                                                   |
| Retrying other writes after a `5xx`                                    | The write may have happened. Retry only on `429`, and check before repeating.                                                       |
| Sending an input name the agent doesn't have                           | A `422`. Take names from `input_schema.properties`.                                                                                 |
| Leaving out a required input, or sending it as `null`                  | A `422`. Send every name in `input_schema.required`.                                                                                |
| Treating an MCP tool result as a success because `is_error` isn't set  | Some failures arrive as an ordinary result whose JSON is `{"type": "error", "message": ...}`. Check `is_error` and `type`.          |
| Getting `429` with `5 requests per 60s`                                | Requests aren't carrying a valid key, so they count as anonymous. Fix the header.                                                   |


# Cloud and self-hosted

Point the same integration at AutoGPT Cloud or a self-hosted instance: base URLs, how to check them, and what differs when you host AutoGPT yourself.

AutoGPT Cloud and self-hosted AutoGPT run the same API. An integration only needs to know two things: the instance's base URL and an API key created on that instance. Keep both in configuration, not in code:

```bash
AUTOGPT_API_URL=https://backend.agpt.co/api/v2
AUTOGPT_API_KEY=agpt_...
```

## Base URLs

| Where AutoGPT runs                                                                                          | `AUTOGPT_API_URL`                    |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------ |
| AutoGPT Cloud                                                                                               | `https://backend.agpt.co/api/v2`     |
| Self-hosted with Docker Compose ([setup guide](https://agpt.co/docs/platform/self-hosting/getting-started)) | `http://localhost:8006/api/v2`       |
| Self-hosted single container ([setup guide](https://agpt.co/docs/platform/self-hosting/single-container))   | `http://localhost:3000/_agpt/api/v2` |

For an instance on another machine or domain:

* **Docker Compose:** the API is served by the `rest_server` service on port `8006`. Use the address where that port is reachable, plus `/api/v2`, e.g. `https://autogpt-api.example.com/api/v2` behind a reverse proxy.
* **Single container:** use the container's `AUTOGPT_PUBLIC_URL` plus `/_agpt/api/v2`, e.g. `https://autogpt.example.com/_agpt/api/v2`.

The web app, where you create API keys, is on port `3000` in both self-hosted setups: `http://localhost:3000/settings/api-keys`.

## Check the URL and key

Run this before writing any code:

```bash
curl -s -w "\nHTTP %{http_code}\n" "$AUTOGPT_API_URL/me" -H "X-API-Key: $AUTOGPT_API_KEY"
```

| Result                               | Meaning                                                                                                                                               |
| ------------------------------------ | ----------------------------------------------------------------------------------------------------------------------------------------------------- |
| `HTTP 200` with your email           | The URL and key are right.                                                                                                                            |
| `HTTP 401`                           | The URL is right, but the key is not valid **on this instance**. Keys from AutoGPT Cloud don't work on a self-hosted instance, and the reverse.       |
| `HTTP 403`                           | The key works but lacks the **Identity** permission. Any other endpoint the key may use proves the URL too.                                           |
| `HTTP 404`                           | Wrong path. Check the table above. If `$AUTOGPT_API_URL/openapi.json` also returns `404`, the instance runs a release from before API v2: upgrade it. |
| `HTTP 429` with `5 requests per 60s` | The request didn't carry a valid key, so it counted as anonymous. Fix the key and wait a minute.                                                      |
| No HTTP status                       | Nothing is listening at that address, or TLS failed.                                                                                                  |

Every instance also serves its own reference for the API version it runs: the OpenAPI spec at `$AUTOGPT_API_URL/openapi.json` and an interactive explorer at `$AUTOGPT_API_URL/docs`.

## What's different on a self-hosted instance

The endpoints, requests and responses are the same. What differs is the account and the environment around them:

| Topic                  | AutoGPT Cloud                                                                              | Self-hosted                                                                                                                                                                                                                                                                                             |
| ---------------------- | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Accounts and API keys  | Created at platform.agpt.co                                                                | Created in your instance's app. Keys only work on the instance that issued them.                                                                                                                                                                                                                        |
| Billing                | Runs need an active plan and a positive balance, or they fail with `402 payment_required`. | No billing: runs are never refused or charged for, and `GET /credits` returns a fixed placeholder balance.                                                                                                                                                                                              |
| AI model blocks        | Platform-provided model access is available.                                               | Blocks that call model providers need provider keys configured on the instance, or credentials each user adds. See [AutoPilot on a self-hosted LLM](https://agpt.co/docs/platform/using-ai-services/copilot-local-llm) and [Advanced Setup](https://agpt.co/docs/platform/self-hosting/advanced_setup). |
| Marketplace            | The public AutoGPT marketplace.                                                            | The instance's own marketplace, separate from AutoGPT Cloud's.                                                                                                                                                                                                                                          |
| Search (`GET /search`) | Indexed.                                                                                   | Uses the instance's own search index. A new instance may return few or no results until it's indexed.                                                                                                                                                                                                   |
| OAuth apps             | Registered by the AutoGPT team.                                                            | Register your own with `poetry run oauth-tool generate-app` in the backend. See [OAuth & SSO](https://agpt.co/docs/platform/api-and-integrations/oauth-guide).                                                                                                                                          |
| Share links            | `https://platform.agpt.co/share/...`                                                       | Built from the instance's public URL (`FRONTEND_BASE_URL` with Docker Compose, `AUTOGPT_PUBLIC_URL` in the single container), so set it to an address your readers can open.                                                                                                                            |
| Rate limits            | As documented.                                                                             | The same limits.                                                                                                                                                                                                                                                                                        |

### Behind a reverse proxy

Authenticated requests are rate-limited per user, so a proxy doesn't affect them. Unauthenticated requests are limited to 5 per minute **per client IP**, and behind a proxy every client can appear to come from the proxy's address and share that one allowance. If you rely on unauthenticated traffic, set `TRUSTED_PROXY_COUNT` in the backend's environment to the number of proxies in front of it, so the API reads the client address from `X-Forwarded-For`.

Serve the API over HTTPS whenever it is reachable from another machine. API keys travel in a request header and are as sensitive as a password.

## One integration for both

Read the base URL and key from configuration, and the same code runs against either:

{% tabs %}
{% tab title="Python" %}

```python
import os

API_URL = os.environ.get("AUTOGPT_API_URL", "https://backend.agpt.co/api/v2").rstrip("/")
HEADERS = {"X-API-Key": os.environ["AUTOGPT_API_KEY"]}
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
const API_URL = (process.env.AUTOGPT_API_URL ?? "https://backend.agpt.co/api/v2").replace(/\/$/, "");
const HEADERS = { "X-API-Key": process.env.AUTOGPT_API_KEY! };
```

{% endtab %}
{% endtabs %}

Things that legitimately vary by instance, and should be read at runtime rather than hard-coded: block IDs other than the core ones, agent and graph IDs, credential IDs, and marketplace agents. A graph JSON that uses a block missing from the instance fails with `400 bad_request` when you create it.


# Authentication and permissions

Create and use API keys, choose the permissions each integration needs, and control which organization and team a request acts in.

Every request to the AutoGPT Platform API must carry a credential. There are two kinds:

| Credential             | Use it when                                                          | How to send it                                              |
| ---------------------- | -------------------------------------------------------------------- | ----------------------------------------------------------- |
| **API key**            | Your own scripts, servers and agents act on your account.            | `X-API-Key: agpt_...` (or `Authorization: Bearer agpt_...`) |
| **OAuth access token** | Your app acts for *other* AutoGPT users, who sign in and approve it. | `Authorization: Bearer agpt_xt_...`                         |

API keys are the right choice for almost every integration. Use OAuth only when you are building a product that other AutoGPT users connect to; see [OAuth & SSO](https://agpt.co/docs/platform/api-and-integrations/oauth-guide).

## Create an API key

1. Sign in to AutoGPT and open **Settings → AutoGPT API Keys**:
   * AutoGPT Cloud: [platform.agpt.co/settings/api-keys](https://platform.agpt.co/settings/api-keys)
   * Self-hosted: `http://localhost:3000/settings/api-keys` (or your instance's address)
2. Click **Create key**. Give it a name you will recognise later, such as the name of the service that uses it.
3. Tick the [permissions](#permissions) the integration needs, and nothing else.
4. Copy the key and store it in a secret manager or an environment variable. Keys start with `agpt_` and **are shown only once**.

The key belongs to the organization you have selected in the app when you create it. To use another organization, switch to it first, then create the key.

To change what a key can do, create a new key with the permissions you want and delete the old one. Deleting a key revokes it: the next request that uses it fails with `401`.

## Send the key

Send the key in the `X-API-Key` header:

{% tabs %}
{% tab title="cURL" %}

```bash
curl -s "$AUTOGPT_API_URL/me" -H "X-API-Key: $AUTOGPT_API_KEY"
```

{% endtab %}

{% tab title="Python" %}

```python
import os
import requests

response = requests.get(
    f"{os.environ['AUTOGPT_API_URL']}/me",
    headers={"X-API-Key": os.environ["AUTOGPT_API_KEY"]},
    timeout=30,
)
response.raise_for_status()
print(response.json())
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
const response = await fetch(`${process.env.AUTOGPT_API_URL}/me`, {
  headers: { "X-API-Key": process.env.AUTOGPT_API_KEY! },
});
if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
console.log(await response.json());
```

{% endtab %}
{% endtabs %}

`Authorization: Bearer <key>` works too. Use it with tools that can only send a bearer token, such as most MCP clients.

Use the base URL exactly as given, with `https` for AutoGPT Cloud, so no redirect is involved: most HTTP clients send a custom header such as `X-API-Key` on to wherever a redirect points.

{% hint style="danger" %}
An API key is a password to your account. Keep it on servers and in secret stores. Never put it in browser code, a mobile app, a public repository or a log line. If a key leaks, revoke it on the API keys page and create a new one.
{% endhint %}

## API-key validation limits on v1

The deprecated `/external-api/v1` API limits failed and in-flight cryptographic key checks to 60 per client address and key prefix in a 60-second window. IPv6 addresses in the same `/64` share a budget; IPv4 addresses are counted individually. This applies to both `X-API-Key` and API keys sent as Bearer tokens. Successful authentication refunds its reservation; concurrent requests still occupy reservations until validation completes. A burst of valid requests can therefore receive `429` while earlier requests are still being verified. Callers sharing an address and key prefix share this budget; other prefixes have independent budgets. Excess attempts receive `429` with `Retry-After`. v2 has its own [pre-verification limits](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions#rate-limits).

For self-hosting, this limit applies automatically when Redis is available and the server has a valid client address. Set Uvicorn's `FORWARDED_ALLOW_IPS` to your own reverse proxies' addresses, never `*`, and restrict direct backend access. Bundled Nginx passes its connection's remote address to Uvicorn over loopback. If another proxy sits in front of Nginx, configure trusted client-address restoration there; otherwise its callers share a budget for each key prefix. Verify separate caller budgets and resistance to forged forwarding headers through the complete deployed chain.

## Check what a key can do

`GET /me` needs the **Identity** permission and answers who the key acts as, in which organization and team, and with which permissions:

```json
{
  "user_id": "6f1c2d3e-...",
  "email": "you@example.com",
  "name": "Ada Lovelace",
  "timezone": "Europe/London",
  "organization": { "id": "b9a8...", "name": "Ada's workspace", "is_personal": true },
  "team": null,
  "scopes": ["IDENTITY", "READ_LIBRARY", "RUN_AGENT", "READ_RUN"],
  "credential_type": "api_key"
}
```

Call it first when you set up an integration. It proves the URL, the key and the header are all right before you do anything else.

## Permissions

A key can only call the endpoints its permissions cover. A request without the right permission fails with `403` and code `forbidden`, and the message names what is missing:

```json
{ "error": { "code": "forbidden", "message": "Missing required permission(s): RUN_AGENT", "details": null } }
```

Grant each key the smallest set that works. These sets cover the common integrations:

| Integration                                                                                                                   | Permissions to tick                                                                                                                                                                                                                           |
| ----------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Run existing agents and read their results                                                                                    | Identity, Read Library, Read Integrations, Run Agent, Read Run. Read Integrations lets you check which [credentials](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents#supply-credentials-it-needs) an agent needs. |
| …and answer human-in-the-loop reviews                                                                                         | add Read Run Review, Write Run Review                                                                                                                                                                                                         |
| …and pass files to agents                                                                                                     | add Read Files, Write Files                                                                                                                                                                                                                   |
| …and run agents on a schedule                                                                                                 | add Read Schedule, Write Schedule                                                                                                                                                                                                             |
| Build and update agents                                                                                                       | Identity, Read Block, Read Graph, Write Graph, Read Library. To try them too, add Run Agent and Read Run, and Write Library to remove them from your library.                                                                                 |
| Supply third-party credentials an agent needs                                                                                 | Read Integrations, Manage Integrations                                                                                                                                                                                                        |
| An AI coding agent working on your behalf over [MCP](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server) | Identity, Read Library, Write Library, Read Graph, Write Graph, Read Block, Run Agent, Read Run, Read Files, Write Files, Read Schedule, Write Schedule                                                                                       |
| Billing dashboards                                                                                                            | Read Credits                                                                                                                                                                                                                                  |

The app shows each permission in title case (**Run Agent**); the API and OAuth use the constant (`RUN_AGENT`).

### What each permission allows

| Permission            | Allows                                                                                                                                                       |
| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `IDENTITY`            | `GET /me`: the user, organization, team and permissions of the credentials.                                                                                  |
| `READ_BLOCK`          | `GET /blocks`: list blocks with their input and output schemas and costs.                                                                                    |
| `READ_GRAPH`          | `GET /graphs`, `GET /graphs/{graph_id}`, its versions and the blocks it uses.                                                                                |
| `WRITE_GRAPH`         | `POST /graphs`, `PUT /graphs/{graph_id}` (new version), set the active version, change graph settings.                                                       |
| `READ_LIBRARY`        | List and get library agents, folders and presets; `GET /graphs/{graph_id}/library-agent`.                                                                    |
| `WRITE_LIBRARY`       | Update, fork and remove library agents; add marketplace agents to the library; create, move and delete folders; create, update and delete presets.           |
| `RUN_AGENT`           | `POST /library/agents/{agent_id}/runs` and `POST /library/presets/{preset_id}/execute`: start a run.                                                         |
| `READ_RUN`            | `GET /runs`, `GET /runs/{run_id}`: list runs and read their status and outputs.                                                                              |
| `WRITE_RUN`           | `POST /runs/{run_id}/stop`, `DELETE /runs/{run_id}`.                                                                                                         |
| `SHARE_RUN`           | Turn a run's public share link on and off (also needs `READ_RUN`).                                                                                           |
| `READ_RUN_REVIEW`     | `GET /runs/reviews`: list human-in-the-loop reviews.                                                                                                         |
| `WRITE_RUN_REVIEW`    | `POST /runs/{run_id}/reviews`: approve or reject them.                                                                                                       |
| `READ_SCHEDULE`       | `GET /schedules`.                                                                                                                                            |
| `WRITE_SCHEDULE`      | `POST /schedules` (also needs `RUN_AGENT`), `DELETE /schedules/{schedule_id}`.                                                                               |
| `READ_FILES`          | List workspace files, read their metadata, download them.                                                                                                    |
| `WRITE_FILES`         | Upload and delete workspace files.                                                                                                                           |
| `READ_INTEGRATIONS`   | List your third-party credentials; list the credentials an agent needs.                                                                                      |
| `MANAGE_INTEGRATIONS` | Add API-key, username/password and host-scoped credentials.                                                                                                  |
| `DELETE_INTEGRATIONS` | Delete credentials.                                                                                                                                          |
| `READ_STORE`          | Read your marketplace profile and submissions.                                                                                                               |
| `WRITE_STORE`         | Edit your marketplace profile; create, edit and delete submissions; upload their media.                                                                      |
| `READ_CREDITS`        | Read the credit balance, transactions, invoices, subscription and cost summary.                                                                              |
| `USE_TOOLS`           | MCP tools that act from platform infrastructure: web search (which counts against your AutoPilot usage allowance), web fetch and searching feature requests. |

Three endpoints need two permissions at once: `POST /schedules` needs `WRITE_SCHEDULE` and `RUN_AGENT`, `POST /library/presets/setup-trigger` needs `WRITE_LIBRARY` and `RUN_AGENT`, because a webhook trigger starts runs, and sharing a run needs `READ_RUN` and `SHARE_RUN`. For the same reason, `RUN_AGENT` is needed as well as `WRITE_LIBRARY` by `PATCH /library/presets/{preset_id}` when it sets `is_active: true` or gives an active trigger new `inputs`, `trigger_config` or `credentials_inputs`, and by `POST /library/presets` for an active preset of an agent with a webhook trigger.

A preset of a webhook trigger keeps the trigger's settings in `trigger_config`, apart from the agent's own `inputs`. Its secret settings, such as a generic webhook's `secret_token`, are returned only by the request that creates the trigger. Later reads list them in `hidden_inputs` and leave them out of `trigger_config`; an update whose `trigger_config` leaves them out keeps them.

Activating a version, with `PUT /graphs/{graph_id}` or by setting the active version, moves the agent's webhook triggers onto it only if the credential also has `RUN_AGENT`: a trigger runs the version it is attached to, so moving it decides what its next event runs. Without `RUN_AGENT` the triggers keep running the version they were on.

These need a valid credential but no particular permission: browsing the public marketplace (`GET /marketplace/agents`, `/marketplace/creators` and their detail pages) and `GET /search` over public content (marketplace agents, blocks, integrations and documentation). Searching your own content costs the matching permission: `content_types=LIBRARY_AGENT` needs `READ_LIBRARY`, and `WORKSPACE_FILE` needs `READ_FILES`.

`EXECUTE_GRAPH` and `EXECUTE_BLOCK` belong to the deprecated v1 API. v2 does not use them; `RUN_AGENT` replaces `EXECUTE_GRAPH`.

## Organizations and teams

Every request acts inside exactly one organization, and the key decides which: it keeps the organization it was created in for its whole life. There is no per-request organization parameter. A key created before organizations existed acts in your personal organization.

What a request creates belongs to that organization, and its runs are billed to that organization's balance. It can only see and change that organization's agents, graphs, folders, runs and schedules: anything in another organization answers `404`, as if it did not exist, and search leaves it out. To work in several organizations, create one key in each.

A key works only while you are an active member of its organization, and of its team if it is restricted to one. Being removed from an organization revokes the keys you created in it. Leaving a team, or being removed from it, revokes your keys restricted to that team, and deleting a team revokes every key restricted to it.

Two kinds of data belong to you rather than to an organization, so every key you create reaches them, whatever organization it acts in:

* **Workspace files** (`/files`): one workspace per account.
* **Integration credentials** (`/integrations/credentials`): stored per account.

Rows created before organizations existed carry no organization, and stay visible to their owner from every organization.

Saving or activating a version of a graph needs every version of that graph to be yours and in the key's organization; otherwise the request gets `403`. A graph version with no organization counts as your personal organization's here, so only a key in your personal organization can change such a graph. Activating a version moves only that organization's library entry and webhook triggers onto it. `PATCH /library/agents/{agent_id}` with `graph_version` likewise answers `403` when the version is one of yours outside the key's organization, and `404` for a marketplace agent's version that isn't approved.

In an organization other than your personal one, reading the organization's balance, transactions and invoices (`GET /credits`, `/credits/transactions`, `/credits/invoices`) needs the owner or billing manager role, as it does in the app; other members get `403`.

### Act inside a team

An organization can contain teams. By default a request acts organization-wide, and what it creates is visible to every member of the organization. To act inside one team, send its ID in `X-Team-Id`:

```bash
curl -s "$AUTOGPT_API_URL/library/agents" \
  -H "X-API-Key: $AUTOGPT_API_KEY" \
  -H "X-Team-Id: $TEAM_ID"
```

`GET /me` with the same header confirms the team. Sending `X-Team-Id` for a team you are not an active member of, or one that belongs to another organization, fails with `403`.

Keys created on the API keys page act organization-wide until a request sends `X-Team-Id`. A key can also be restricted to a single team when it is created. A restricted key acts in its team on every request and rejects an `X-Team-Id` naming any other team with `403`; `GET /me` shows the team.

A team decides where what a request creates lives and whose balance its runs are billed to. It doesn't narrow what the request can read: a key acting in a team still sees everything in the organization that you can see in the app.

OAuth access tokens act in your personal organization. There is no way yet to choose another organization when you approve an app.

## Common authentication errors

| Status and code    | Message                                                                       | Fix                                                                                                                                                                                                            |
| ------------------ | ----------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `401 unauthorized` | `Missing authentication. Provide API key or access token.`                    | Send the `X-API-Key` header. Check the header name and that your HTTP client isn't dropping it on a redirect.                                                                                                  |
| `401 unauthorized` | `Invalid API key`                                                             | The key is wrong, revoked (also when you leave its [organization or team](#organizations-and-teams)), or from another instance: keys from AutoGPT Cloud don't work on a self-hosted instance, and the reverse. |
| `403 forbidden`    | `Missing required permission(s): ...`                                         | Keys can't be edited: create a key with the named permissions and delete the old one.                                                                                                                          |
| `403 forbidden`    | `These credentials belong to an organization you are not an active member of` | You left the organization the key was created in. Create a new key.                                                                                                                                            |
| `404 not_found`    | `... not found`                                                               | The resource doesn't exist, or belongs to an organization or team this key can't see.                                                                                                                          |
| `429` (v1)         | `Too many API key authentication attempts. Try again shortly.`                | Wait the number of seconds in `Retry-After` before retrying. See [v1 API-key validation limits](#api-key-validation-limits-on-v1).                                                                             |

## OAuth access tokens

OAuth lets other AutoGPT users connect your app to their accounts without handing you an API key. The user approves a set of scopes, which are the same permissions listed above, and your app receives an access token to send as `Authorization: Bearer agpt_xt_...`. Access tokens last one hour; use the refresh token to get a new one. The full flow is in [OAuth & SSO](https://agpt.co/docs/platform/api-and-integrations/oauth-guide).


# Run agents

Find an agent, give it inputs, credentials and files, start a run, wait for it, read its outputs, and handle reviews, failures and schedules.

Everything here works with any agent in your library: ones you built in the app, ones you added from the marketplace, and ones you created with the API.

## How a run works

You start a run with `POST /library/agents/{agent_id}/runs`. The API answers `202 Accepted` at once, before the agent does anything, and the run carries on in the background. You follow it by reading `GET /runs/{run_id}` until it reaches a final status.

```mermaid
stateDiagram-v2
    [*] --> QUEUED: POST /library/agents/{agent_id}/runs
    QUEUED --> RUNNING
    RUNNING --> REVIEW: a block asks a person to review
    REVIEW --> RUNNING: POST /runs/{run_id}/reviews
    RUNNING --> COMPLETED
    RUNNING --> FAILED
    QUEUED --> TERMINATED: POST /runs/{run_id}/stop
    RUNNING --> TERMINATED: POST /runs/{run_id}/stop
    REVIEW --> TERMINATED: POST /runs/{run_id}/stop
    COMPLETED --> [*]
    FAILED --> [*]
    TERMINATED --> [*]
```

| `status`     | Final? | Meaning                                                                                                                     | What your code should do                                                   |
| ------------ | ------ | --------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------- |
| `INCOMPLETE` | No     | Created but not handed to an executor yet.                                                                                  | Keep waiting.                                                              |
| `QUEUED`     | No     | Waiting for an executor.                                                                                                    | Keep waiting.                                                              |
| `RUNNING`    | No     | Executing blocks.                                                                                                           | Keep waiting.                                                              |
| `REVIEW`     | No     | Paused until a person approves or rejects something. It waits indefinitely.                                                 | [Answer the review](#human-in-the-loop-reviews), or alert someone who can. |
| `COMPLETED`  | Yes    | Finished. **This does not guarantee every block succeeded**; see [Check that a run succeeded](#check-that-a-run-succeeded). | Read `outputs`.                                                            |
| `FAILED`     | Yes    | Stopped by an error the run could not continue past.                                                                        | Read the errors in `node_executions`.                                      |
| `TERMINATED` | Yes    | Stopped, by you or by the platform.                                                                                         | Nothing further happens.                                                   |

## Find the agent

You need the **library agent ID**, which is not the same as the graph ID. List your library (needs **Read Library**):

```bash
curl -s "$AUTOGPT_API_URL/library/agents?limit=100" -H "X-API-Key: $AUTOGPT_API_KEY"
```

Each item has the `id` to run it with, its `name`, `description`, and the `graph_id` and `graph_version` it runs. The list leaves `input_schema` and `output_schema` empty; get the full agent with `GET /library/agents/{agent_id}` to read them. If you know an agent's graph ID, `GET /graphs/{graph_id}/library-agent` returns the full library agent directly.

There is no filter by name. To find an agent by name, read every page and match on `name` yourself. Names aren't unique, so handle more than one match, and once you've found the right agent, store its `id` and use that from then on:

```python
def find_agent_by_name(name: str) -> dict:
    matches, params = [], {"limit": 100}
    while True:
        response = requests.get(f"{API_URL}/library/agents", headers=HEADERS, params=params, timeout=30)
        response.raise_for_status()
        page = response.json()
        matches += [a for a in page["items"] if a["name"].casefold() == name.casefold()]
        if not page["next_cursor"]:
            break
        params["cursor"] = page["next_cursor"]
    if len(matches) != 1:
        raise LookupError(f"{len(matches)} library agents are named {name!r}")
    response = requests.get(f"{API_URL}/library/agents/{matches[0]['id']}", headers=HEADERS, timeout=30)
    response.raise_for_status()
    return response.json()
```

Other ways to find agents:

* `GET /search?query=invoice&content_types=LIBRARY_AGENT` searches your library by meaning (needs **Read Library**). It's for discovery, not lookup: results depend on the instance's search index, which can lag behind your library or, on a new self-hosted instance, be empty.
* `GET /marketplace/agents?search_query=invoice` searches the public marketplace. Add one to your library with `POST /marketplace/agents/{username}/{agent_name}/add-to-library` (needs **Write Library**), then run the library agent it returns.

## Work out its inputs

Read the agent's `input_schema` from `GET /library/agents/{agent_id}` (the list leaves it empty). It is a JSON Schema object. Each property is one input, its key is the name you pass in `inputs`, and `required` lists the inputs without a default:

```json
{
  "type": "object",
  "properties": {
    "topic": { "title": "Topic", "advanced": false, "secret": false },
    "max_words": { "title": "Max words", "type": "integer", "default": 300, "advanced": true, "secret": false },
    "document": {
      "title": "Document",
      "anyOf": [{ "type": "string", "format": "file" }, { "type": "null" }],
      "advanced": false,
      "secret": false
    }
  },
  "required": ["topic", "document"]
}
```

So `inputs` for this agent is `{"topic": "...", "document": "..."}`, with `max_words` optional.

* `type` is present when the agent declares one. Inputs made with the general-purpose input block have none and accept any JSON value; send what the input's `title` and `description` ask for.
* `"format": "file"` marks an input that takes a [file reference](#pass-files-to-an-agent). Other formats, such as `long-text`, are hints for the app's form: send a plain string.
* An input can be `required` while its type also allows `null`, like `document` above. Send a value for it: `null` counts as missing.
* `advanced: true` marks an optional input the app tucks away under advanced settings. `secret: true` marks a value the app masks, such as a password. Neither changes how you send it.
* Starting a run or creating a schedule checks `inputs` against `input_schema`. A name the agent doesn't have, or a `required` input left out or `null`, is a [`422`](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions#validation-errors) and nothing starts; `details.errors` has one entry per input, up to 20, with `loc` `["body", "inputs", "<name>"]`.

Turning on **Advanced** now makes a workflow input optional even without a default. This also applies to existing workflows. To require a value, turn off Advanced and clear the input's default.

When a run omits an optional input with no default, connected blocks use their own pin defaults. A block with a required input and no default may skip execution. A block that runs a child workflow can still start that workflow, allowing its other starting blocks to run. Keep a Google Drive picker required when a connected block needs its file and credentials.

## Supply credentials it needs

Agents that call third-party services (an AI model provider, GitHub, Google, ...) need credentials from your account. Ask which ones (needs **Read Integrations**). An agent that needs none returns an empty list:

```bash
curl -s "$AUTOGPT_API_URL/library/agents/$AGENT_ID/credentials" -H "X-API-Key: $AUTOGPT_API_KEY"
```

```json
{
  "items": [
    {
      "field_name": "openai_api_key_credentials",
      "provider": "openai",
      "supported_types": ["api_key"],
      "required_scopes": [],
      "matching_credentials": [
        {
          "id": "e60aba2b-5bd5-464c-9f13-2b6c200010e3",
          "type": "api_key",
          "provider": "openai",
          "title": "My OpenAI key",
          "username": null,
          "scopes": [],
          "expires_at": null,
          "is_managed": false
        }
      ]
    }
  ],
  "next_cursor": null,
  "total_count": 1
}
```

For each requirement, pick one of its `matching_credentials` and pass it under the requirement's `field_name`. When several match, let whoever owns the integration choose, for example by `title`, and store the choice; picking the first one silently can use the wrong account:

```json
{
  "inputs": { "question": "Say hi" },
  "credentials_inputs": {
    "openai_api_key_credentials": {
      "id": "e60aba2b-5bd5-464c-9f13-2b6c200010e3",
      "provider": "openai",
      "type": "api_key"
    }
  }
}
```

A requirement can be optional: the agent's builder may let some blocks run without their credentials. The graph's `credentials_input_schema`, from `GET /graphs/{graph_id}` (needs **Read Graph**), lists the requirements that must be filled under `required`.

If a requirement has no matching credentials, add one first:

* **API keys, passwords and custom headers:** `POST /integrations/credentials` (needs **Manage Integrations**), with `type` set to `api_key`, `user_password` or `host_scoped`:

  ```bash
  curl -s -X POST "$AUTOGPT_API_URL/integrations/credentials" \
    -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
    -d '{"type": "api_key", "provider": "openai", "api_key": "sk-...", "title": "My OpenAI key"}'
  ```
* **OAuth providers** (Google, GitHub and the like): connect them in the app under **Settings → Integrations**. OAuth connections can't be created through the API. [OAuth apps](https://agpt.co/docs/platform/api-and-integrations/oauth-guide#integration-setup-wizard) can send their users through the integration setup wizard instead.

On AutoGPT Cloud, some providers have **platform-provided credentials** (`"is_managed": true`), such as built-in AI model access. You can pass them like your own.

{% hint style="warning" %}
A run with a missing credential is still accepted. It fails when the block that needs the credential runs, so always check the requirements before the first run. Without **Read Integrations** you can't check, so only skip this for agents you know need no credentials.
{% endhint %}

## Start the run

```bash
curl -s -X POST "$AUTOGPT_API_URL/library/agents/$AGENT_ID/runs" \
  -H "X-API-Key: $AUTOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: report-2026-10-08" \
  -d '{"inputs": {"topic": "Q3 results"}, "credentials_inputs": {}}'
```

* Needs **Run Agent**. Limited to 60 run starts per minute per user.
* Returns `202` with the run (`"status": "QUEUED"`). Keep its `id`.
* Always send an `Idempotency-Key` from code that retries. A retry with the same key gets the original run back instead of a second, paid run. See [Idempotent runs](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions#idempotent-runs).
* On AutoGPT Cloud, `402 payment_required` means the account has no active plan or its credit balance is zero.

## Wait for it to finish

Read the run until its status is `COMPLETED`, `FAILED` or `TERMINATED`. Poll every one to five seconds, back off on long runs, and keep everything inside one deadline: each request's timeout and each sleep are cut to the time that's left. (A `requests` timeout limits each wait for the server, not a whole slow response; if you need a hard limit, use a client with an overall timeout.) A run in `REVIEW` waits for a person and never finishes on its own.

{% tabs %}
{% tab title="Python" %}

```python
import time

import requests

FINAL = {"COMPLETED", "FAILED", "TERMINATED"}


def wait_for_run(run_id: str, timeout_s: float = 600) -> dict:
    deadline = time.monotonic() + timeout_s
    delay, status = 1.0, "unknown"
    while (remaining := deadline - time.monotonic()) > 0:
        response = requests.get(
            f"{API_URL}/runs/{run_id}", headers=HEADERS, timeout=min(30, remaining)
        )
        response.raise_for_status()
        run = response.json()
        status = run["status"]
        if status in FINAL:
            return run
        if status == "REVIEW":
            raise RuntimeError(f"Run {run_id} is waiting for a human review")
        time.sleep(max(0, min(delay, deadline - time.monotonic())))
        delay = min(delay * 1.5, 10)
    raise TimeoutError(f"Run {run_id} still {status} after {timeout_s}s")
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
const FINAL = new Set(["COMPLETED", "FAILED", "TERMINATED"]);

async function waitForRun(runId: string, timeoutMs = 600_000) {
  const deadline = Date.now() + timeoutMs;
  let delay = 1000;
  let status = "unknown";
  for (let remaining = timeoutMs; remaining > 0; remaining = deadline - Date.now()) {
    const response = await fetch(`${API_URL}/runs/${runId}`, {
      headers: HEADERS,
      signal: AbortSignal.timeout(Math.min(30_000, remaining)),
    });
    if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
    const run = await response.json();
    status = run.status;
    if (FINAL.has(status)) return run;
    if (status === "REVIEW") throw new Error(`Run ${runId} is waiting for a human review`);
    await new Promise((r) => setTimeout(r, Math.max(0, Math.min(delay, deadline - Date.now()))));
    delay = Math.min(delay * 1.5, 10_000);
  }
  throw new Error(`Run ${runId} still ${status} after ${timeoutMs} ms`);
}
```

{% endtab %}
{% endtabs %}

Every poll counts toward the 200-requests-per-minute limit, which is shared by all your keys. If you follow many runs at once, list them in one request instead: `GET /runs?statuses=QUEUED&statuses=RUNNING`.

If your deadline passes and you no longer want the result, stop the run so it doesn't keep spending: `POST /runs/{run_id}/stop`.

## Read the outputs

`GET /runs/{run_id}` includes `outputs` once the run finishes. It maps the name of each of the agent's outputs (the keys of its `output_schema`) to a **list** of values, because an output can be produced more than once in one run:

```json
{
  "id": "34cc713f-7b02-4622-95c7-5c8ea1a8b213",
  "status": "COMPLETED",
  "outputs": { "greeting": ["Hello, Ada!"] },
  "cost_cents": 0,
  "duration_seconds": 0.74,
  "node_exec_count": 3,
  "node_executions": [
    {
      "node_id": "95dc9385-9f05-4c35-8a2e-8d67118afe87",
      "status": "COMPLETED",
      "inputs": { "name": "greeting", "value": "Hello, Ada!" },
      "outputs": { "output": ["Hello, Ada!"] },
      "started_at": "2026-10-08T14:29:24.883000Z",
      "ended_at": "2026-10-08T14:29:24.918000Z"
    }
  ]
}
```

While the run is going, `outputs` and `node_executions` hold what has finished so far, and can be empty. Most agents produce each output once, so read `outputs["name"][0]`, or the last element for the latest value. An output the run never produced is missing from `outputs`. Outputs that are files arrive as `workspace://` references; see [Get files back](#get-files-back).

`node_executions` lists every block that ran, with its inputs and outputs, which is what you need to debug a run. The schema allows it to be `null`; treat that as no detail being available. `cost_cents` is what the run cost.

### Check that a run succeeded

`COMPLETED` means the run reached its end. It doesn't mean every block succeeded. When a block fails it produces an `error` output instead of its normal outputs. If the agent doesn't route that error anywhere, the run still completes, just without the outputs that depended on the failed block:

```json
{
  "status": "COMPLETED",
  "outputs": {},
  "node_executions": [
    { "status": "COMPLETED", "outputs": { "result": ["Say hi"] } },
    {
      "status": "FAILED",
      "outputs": { "error": ["Error calling LLM: Error code: 401 - Incorrect API key provided"] }
    }
  ]
}
```

So treat a run as successful only when it is `COMPLETED` **and** the outputs you need are present. When they aren't, collect the errors. If there are none, check that the run got every required input:

```python
errors = [
    message
    for node in run["node_executions"] or []
    if node["status"] == "FAILED"
    for message in node["outputs"].get("error", [])
]
```

A `FAILED` run carries its errors the same way.

## Human-in-the-loop reviews

Agents can include a human-in-the-loop block that pauses the run until someone approves or rejects a piece of data. The run then has status `REVIEW` and waits until it gets an answer.

List what's waiting (needs **Read Run Review**):

```bash
curl -s "$AUTOGPT_API_URL/runs/reviews?run_id=$RUN_ID&status=WAITING" -H "X-API-Key: $AUTOGPT_API_KEY"
```

```json
{
  "items": [
    {
      "node_exec_id": "6b7c132e-ff6c-4654-8a86-3e5484fe6e65",
      "run_id": "5ff77dcc-f4c0-4ec6-afb8-a0073b56620f",
      "graph_id": "e45fade7-f015-43e5-a95f-ce90eeff7ea2",
      "graph_version": 1,
      "payload": "Ship it on Friday",
      "instructions": "Draft announcement",
      "editable": true,
      "status": "WAITING",
      "requested_at": "2026-10-08T14:34:51.245000Z",
      "reviewed_at": null,
      "processed": false,
      "reviewer_comment": null
    }
  ],
  "next_cursor": null,
  "total_count": 1
}
```

`payload` is the data under review and `instructions` says what it is. Leave out `run_id` to see waiting reviews across all your runs.

Answer **every** waiting review of the run in one request (needs **Write Run Review**). The request fails if it leaves one out.

```bash
curl -s -X POST "$AUTOGPT_API_URL/runs/$RUN_ID/reviews" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
  -d '{
    "reviews": [
      {
        "node_exec_id": "6b7c132e-ff6c-4654-8a86-3e5484fe6e65",
        "approved": true,
        "edited_payload": "Ship it on Monday",
        "message": "Moved to Monday"
      }
    ]
  }'
```

```json
{ "run_id": "5ff77dcc-f4c0-4ec6-afb8-a0073b56620f", "approved_count": 1, "rejected_count": 0 }
```

* `approved: true` sends the data (or your `edited_payload`, when the review is `editable`) down the block's approved path, and the run continues.
* `approved: false` sends the data down the block's rejected path instead, so the steps after an approval don't run. What happens next depends on what the agent's builder connected to the rejected path.
* `auto_approve_future: true` approves this block's future reviews automatically. It only applies to an approval, and ignores `edited_payload`.

After you answer, the run moves back to `RUNNING`; keep waiting for it as usual. Reviews can also be answered in the AutoGPT app.

### When your integration can't answer reviews

A run in `REVIEW` waits until someone answers, however long that takes. Decide up front what your integration does when it sees one:

* **Hand it to a person.** Tell someone the run is waiting (the review shows up in the AutoGPT app for the account that owns the run), stop polling, and check back later. The run continues once they answer.
* **Answer it yourself**, if your product has its own approval step: show the `payload` and `instructions` to your user and send their decision with `POST /runs/{run_id}/reviews`.
* **Give up.** `POST /runs/{run_id}/stop` ends the run as `TERMINATED`.
* **Don't ask at all.** If the agent may run unattended, turn its reviews off with `PATCH /graphs/{graph_id}/settings` and `{"human_in_the_loop_safe_mode": false}`, and every review is approved automatically. See [Build agents](https://agpt.co/docs/platform/api-and-integrations/api-guide/building-agents#human-in-the-loop-blocks).

## Pass files to an agent

Upload the file to your workspace (needs **Write Files**; 20 uploads per 5 minutes):

```bash
curl -s -X POST "$AUTOGPT_API_URL/files/upload" \
  -H "X-API-Key: $AUTOGPT_API_KEY" \
  -F "file=@brief.pdf"
```

```json
{
  "id": "1d458946-1b77-4e62-b13f-67fd5b1ce100",
  "name": "brief.pdf",
  "path": "/brief.pdf",
  "mime_type": "application/pdf",
  "size_bytes": 48211,
  "created_at": "2026-10-08T14:41:08.120000Z",
  "updated_at": "2026-10-08T14:41:08.120000Z",
  "file_uri": "workspace://1d458946-1b77-4e62-b13f-67fd5b1ce100#application/pdf"
}
```

Pass `file_uri` as the value of the file input:

```json
{ "inputs": { "document": "workspace://1d458946-1b77-4e62-b13f-67fd5b1ce100#application/pdf" } }
```

* Uploads are virus-scanned and count toward your storage quota. A file can be up to 100 MB on AutoGPT Cloud; a larger one gets `413 payload_too_large`.
* Uploading a file whose name is already in the workspace fails with `409 conflict`. Add `?overwrite=true` to replace it. The replacement gets a **new** `id` and `file_uri`.
* `GET /files` lists the workspace and `DELETE /files/{file_id}` removes a file (needs **Read Files** and **Write Files**).

### Get files back

An output that is a file arrives as a `workspace://<file_id>#<mime type>` reference. Download it with the ID between `workspace://` and `#` (needs **Read Files**):

```bash
curl -s "$AUTOGPT_API_URL/files/1d458946-1b77-4e62-b13f-67fd5b1ce100/download" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -o result.pdf
```

## Run on a schedule

Schedules run a graph on a cron expression (needs **Write Schedule** and **Run Agent**). Note that schedules take the **graph ID**, not the library agent ID:

```bash
curl -s -X POST "$AUTOGPT_API_URL/schedules" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
  -d '{
    "graph_id": "eb760d4c-a524-4726-9707-a46bcf75bf99",
    "name": "Daily hello",
    "cron": "0 9 * * *",
    "timezone": "Europe/London",
    "inputs": {"name": "Ada"},
    "credentials_inputs": {}
  }'
```

```json
{
  "id": "57aabad0-a2c4-43fa-8faf-36cc746e6985",
  "name": "Daily hello",
  "graph_id": "eb760d4c-a524-4726-9707-a46bcf75bf99",
  "graph_version": 1,
  "cron": "0 9 * * *",
  "timezone": "Europe/London",
  "inputs": { "name": "Ada" },
  "next_run_time": "2026-10-09T09:00:00+01:00"
}
```

* `cron` takes the standard five fields: minute, hour, day of month, month, day of week. An invalid expression fails with `400`.
* `timezone` is an IANA name. Without it, the schedule uses the account's time zone.
* `graph_version` defaults to the active version.
* `GET /schedules?graph_id=...` lists schedules and `DELETE /schedules/{schedule_id}` removes one. Each scheduled run shows up in `GET /runs` like any other run.

## Manage runs

| Task                     | Request                                                                                                                                                                                                                                 | Permission           |
| ------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------- |
| List runs, newest first  | `GET /runs?graph_id=...&statuses=FAILED&started_after=2026-10-01T00:00:00Z`                                                                                                                                                             | Read Run             |
| Get one run with outputs | `GET /runs/{run_id}`                                                                                                                                                                                                                    | Read Run             |
| Stop a run               | `POST /runs/{run_id}/stop` waits up to about 15 seconds for the run to stop, then returns it. If it still isn't `TERMINATED`, keep polling. A run that already finished (`COMPLETED`, `FAILED` or `TERMINATED`) answers `409 conflict`. | Write Run            |
| Delete a run             | `DELETE /runs/{run_id}`                                                                                                                                                                                                                 | Write Run            |
| Share a run publicly     | `POST /runs/{run_id}/share` returns a `share_url` anyone with the link can open                                                                                                                                                         | Read Run + Share Run |
| Stop sharing             | `DELETE /runs/{run_id}/share`                                                                                                                                                                                                           | Read Run + Share Run |

Repeat `statuses` to match several, e.g. `?statuses=COMPLETED&statuses=FAILED`.

## Costs

Every run reports `cost_cents` once it finishes. `GET /credits` returns your balance, and `GET /credits/cost-summary` breaks spending down by agent and by day (both need **Read Credits**). Self-hosted instances don't bill: runs cost nothing and the balance is a fixed placeholder.


# Build agents

Create, update and version agents from code: find blocks, wire nodes and links, declare inputs and outputs, and handle credentials and reviews.

An agent is a **graph**: a set of **nodes**, each an instance of a **block**, joined by **links** that carry one node's output into another node's input. The API takes the same graph JSON the visual builder saves, so an agent created through the API opens in the builder, and the reverse.

Building needs **Read Block** (to discover blocks), **Write Graph** (to save), and usually **Read Graph** and **Read Library**. To try the agent as well, add **Run Agent** and **Read Run**, and **Write Library** to remove it from your library afterwards.

{% hint style="info" %}
To start from an agent that already works, build it in the visual builder, read it with `GET /graphs/{graph_id}`, then change the JSON. It's the fastest way to learn which inputs a block needs.
{% endhint %}

## Anatomy of a graph

```json
{
  "name": "Hello from the API",
  "description": "Greets whoever you name.",
  "nodes": [
    {
      "id": "name-input",
      "block_id": "c0a8e994-ebf1-4a9c-a4d8-89d09c86741b",
      "input_default": { "name": "name", "title": "Your name", "value": "World" }
    },
    {
      "id": "greeting-template",
      "block_id": "db7d8f02-2f44-4c55-ab7a-eae0941f0c30",
      "input_default": { "format": "Hello, {{ name }}!", "values": {} }
    },
    {
      "id": "greeting-output",
      "block_id": "363ae599-353e-4804-937e-b2ee3cef3da4",
      "input_default": { "name": "greeting", "title": "Greeting" }
    }
  ],
  "links": [
    { "id": "name-to-template", "source_id": "name-input", "source_name": "result",
      "sink_id": "greeting-template", "sink_name": "values_#_name" },
    { "id": "template-to-output", "source_id": "greeting-template", "source_name": "output",
      "sink_id": "greeting-output", "sink_name": "value" }
  ]
}
```

| Field                              | Meaning                                                                                                                                                                    |
| ---------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `nodes[].id`                       | Any string unique within the request. Links refer to nodes by it. The API replaces it with a generated UUID when it saves the graph.                                       |
| `nodes[].block_id`                 | Which block this node runs. Find IDs with `GET /blocks`.                                                                                                                   |
| `nodes[].input_default`            | Fixed values for the block's inputs. Keys are properties of the block's `input_schema`. Inputs fed by a link can be left out.                                              |
| `nodes[].metadata`                 | Optional. The builder stores the node's position here (`{"position": {"x": 0, "y": 0}}`).                                                                                  |
| `links[].id`                       | Any string unique within the request. Required, like a node's `id`.                                                                                                        |
| `links[].source_id`, `source_name` | The node and output pin the data comes from. Pins are the properties of the block's `output_schema`.                                                                       |
| `links[].sink_id`, `sink_name`     | The node and input pin it goes to. Pins are the properties of the block's `input_schema`.                                                                                  |
| `links[].is_static`                | Optional. A static link re-delivers its last value to every later execution of the sink, instead of delivering each value once. Links from input blocks are always static. |

## Find blocks

`GET /blocks` lists every block on the instance, several hundred of them, so read all the pages. Each block has an `id`, a `name`, a `description`, `categories`, an `input_schema` and an `output_schema` (both JSON Schema), a `block_type` and its `costs`.

```python
def list_blocks() -> list[dict]:
    blocks, params = [], {"limit": 100}
    while True:
        response = requests.get(f"{API_URL}/blocks", headers=HEADERS, params=params, timeout=30)
        response.raise_for_status()
        page = response.json()
        blocks += page["items"]
        if not page["next_cursor"]:
            return blocks
        params["cursor"] = page["next_cursor"]


def find_blocks(blocks: list[dict], *words: str) -> list[dict]:
    return [
        block
        for block in blocks
        if all(word.casefold() in f"{block['name']} {block['description']}".casefold() for word in words)
    ]


blocks = list_blocks()
for block in find_blocks(blocks, "word", "count"):
    print(block["id"], block["name"], "-", block["description"])
```

A block's `name` is its class name, such as `WordCharacterCountBlock`. The [block reference](https://agpt.co/docs/integrations) describes each block under a spaced-out title without the suffix, such as **Word Character Count**, so drop `Block` and add the spaces to match the two. The block's `input_schema` and `output_schema` from `GET /blocks` are what the API checks your graph against.

`GET /search?query=count%20words&content_types=BLOCK` finds blocks by meaning, using the instance's search index. A new self-hosted instance usually hasn't built that index, so expect to filter the full list there.

## Inputs and outputs

What a graph takes and returns is defined by its input and output blocks. The API builds the graph's `input_schema` and `output_schema` from them.

| Block                      | `block_id`                             | Use it for                                                                                                       |
| -------------------------- | -------------------------------------- | ---------------------------------------------------------------------------------------------------------------- |
| `AgentInputBlock`          | `c0a8e994-ebf1-4a9c-a4d8-89d09c86741b` | Any input.                                                                                                       |
| `AgentShortTextInputBlock` | `7fcd3bcb-8e1b-4e69-903d-32d3d4a92158` | A line of text.                                                                                                  |
| `AgentLongTextInputBlock`  | `90a56ffb-7024-4b2b-ab50-e26c5e5ab8ba` | A paragraph or more.                                                                                             |
| `AgentNumberInputBlock`    | `96dae2bb-97a2-41c2-bd2f-13a3b5a8ea98` | A whole number. A decimal is truncated (`2.5` becomes `2`), not rejected, so use `AgentInputBlock` for decimals. |
| `AgentToggleInputBlock`    | `cbf36ab5-df4a-43b6-8a7f-f7ed8652116e` | A true/false switch.                                                                                             |
| `AgentDropdownInputBlock`  | `655d6fdf-a334-421c-b733-520549c07cd1` | One of a fixed set of options.                                                                                   |
| `AgentDateInputBlock`      | `7e198b09-4994-47db-8b4d-952d98241817` | A date.                                                                                                          |
| `AgentTimeInputBlock`      | `2a1c757e-86cf-4c7e-aacf-060dc382e434` | A time of day.                                                                                                   |
| `AgentFileInputBlock`      | `95ead23f-8283-4654-aef3-10c053b74a31` | A file, passed as a `workspace://` reference.                                                                    |
| `AgentTableInputBlock`     | `5603b273-f41e-4020-af7d-fbc9c6a8d928` | Rows of data.                                                                                                    |
| `AgentOutputBlock`         | `363ae599-353e-4804-937e-b2ee3cef3da4` | A result of the run.                                                                                             |

Every input block takes `name` (the key callers use in `inputs`), and optionally `title`, `description` and `value` (the default). An input with a default becomes optional. Each input block sends what it receives out of its `result` pin. A run started through the REST API without an input that has no default still starts; that input sends nothing, so the steps after it don't run.

An output block takes `name` (the key in the run's `outputs`) and receives its data on its `value` pin. A run's `outputs` record exactly the value that arrives on that pin, so format text with a block such as `FillTextTemplateBlock` before it reaches the output block. The output block's own `format` field doesn't change what the API returns.

`FillTextTemplateBlock` is the usual way to shape text. Its `format` is a [Jinja2](https://jinja.palletsprojects.com/en/stable/templates/) template rendered in a sandbox, so filters, conditions and loops work: `{{ ticket | upper }}`, `{{ tags | join(", ") }}`, `{% if urgent %}URGENT: {% endif %}`. Some changes, such as upper-casing text, have no block of their own. Values go in as they are; set `escape_html` to `true` when the result is HTML.

## Dict, list and object pins

Some inputs are a dictionary, a list or an object, and a link can fill a single entry of one. Append a separator and the key to the pin name:

| To fill                         | Write `sink_name` as  | Example                                |
| ------------------------------- | --------------------- | -------------------------------------- |
| A key of a dictionary input     | `<pin>_#_<key>`       | `values_#_name` sets `values["name"]`  |
| An item of a list input         | `<pin>_$_<index>`     | `items_$_0` sets `items[0]`            |
| An attribute of an object input | `<pin>_@_<attribute>` | `payload_@_title` sets `payload.title` |

The quickstart's agent uses `values_#_name` to put the input into the template's `values` dictionary, which the template then reads as `{{ name }}`.

## Create the agent

```bash
curl -s -X POST "$AUTOGPT_API_URL/graphs" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
  --data @hello_agent.json
```

The API validates the graph before saving it. On success it returns `201` with the saved graph: generated node IDs, `"version": 1`, `"is_active": true`, and the computed `input_schema`, `output_schema` and `credentials_input_schema`. The graph is added to your library automatically; get the library agent to run it with `GET /graphs/{graph_id}/library-agent`.

An invalid graph fails with `400` and a message naming the problem. Nodes in the message carry the IDs the API generated, not the ones you sent:

```json
{
  "error": {
    "code": "bad_request",
    "message": "Link ('99299fca-...', 'no_such_pin') <-> ('4685959d-...', 'value'), `no_such_pin` invalid, Allowed fields: {'result'}",
    "details": null
  }
}
```

Common causes: a `block_id` that doesn't exist on this instance, a pin name that isn't in the block's schema, or a link to a node ID that isn't in `nodes`.

## Credentials

A block that calls a third-party service declares a credentials input. You don't put credentials in the graph. The graph's `credentials_input_schema` lists what the agent needs, and each run supplies them in `credentials_inputs`. See [Supply credentials it needs](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents#supply-credentials-it-needs).

## Update an agent

Graphs are versioned, and a saved version never changes. `PUT /graphs/{graph_id}` with a complete graph definition, in the same shape as for `POST /graphs`, saves it as the next version. The body needs no `id` or `version`:

```bash
curl -s -X PUT "$AUTOGPT_API_URL/graphs/$GRAPH_ID" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
  --data @hello_agent_v2.json
```

* The new version becomes the **active** one unless you send `"is_active": false`, and your library agent moves to it, keeping its ID.
* Every `PUT` saves a new version, even when nothing changed. A deploy script should skip the call when its graph JSON is the same as last time.
* To update an agent you made earlier, [find it by name](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents#find-the-agent) and use its `graph_id`.
* `GET /graphs/{graph_id}/versions` lists every version. `GET /graphs/{graph_id}?version=2` reads one.
* `PUT /graphs/{graph_id}/versions/active` with `{"active_graph_version": 1}` rolls back.
* A run uses the version its library agent points at. `PATCH /library/agents/{agent_id}` with `{"graph_version": 1}` pins it to a version, and `{"auto_update_version": true}` makes it follow the active one. An agent added from the marketplace can be pinned only to a version approved there; any other answers `404`.

## Human-in-the-loop blocks

The `HumanInTheLoopBlock` (`8b2a7b3c-6e9d-4a5f-8c1b-2e3f4a5b6c7d`) pauses the run until someone reviews its `data`. Its `name` input becomes the review's `instructions`. Connect `approved_data` to the steps that should follow an approval and `rejected_data` to the steps that should follow a rejection. Runs pause in `REVIEW` until [the review is answered](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents#human-in-the-loop-reviews).

To let such an agent run unattended, turn reviews off for the graph, and every review is approved automatically:

```bash
curl -s -X PATCH "$AUTOGPT_API_URL/graphs/$GRAPH_ID/settings" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
  -d '{"human_in_the_loop_safe_mode": false}'
```

## Copy an existing agent

* `POST /library/agents/{agent_id}/fork` copies one of your library agents into a new, independent graph you can change (needs **Write Library**).
* `POST /marketplace/agents/{username}/{agent_name}/add-to-library` adds a marketplace agent to your library. Fork it to edit it.

## Let an AI build it

The [MCP server](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server) has tools that turn a plain-language description into a working agent. `get_agent_building_guide` returns the building guide, `create_agent` and `edit_agent` validate, fix and save graph JSON, and `validate_agent_graph` and `fix_agent_graph` check graph JSON without saving it.


# Errors, rate limits, and pagination

The rules every AutoGPT API v2 endpoint follows: the error shape and codes, rate limits and retries, cursor pagination, idempotent runs and status codes.

Every v2 endpoint follows the conventions on this page. Write your client against them once and it handles every endpoint.

## Errors

Every response from the API that is not `2xx` has the same body:

```json
{
  "error": {
    "code": "not_found",
    "message": "Run #4b1f0c7e-... not found",
    "details": null
  }
}
```

* `code` is a stable, snake\_case identifier. Branch on it.
* `message` is for people. It can be reworded at any time, so don't parse it.
* `details` carries structured context when there is any, and is `null` otherwise.
* Something in front of the API, such as a proxy or a wrong base URL, can answer with an HTML or empty body. Treat an error body that isn't this JSON as an unexpected error, and log its status.

### Error codes

| Status | `code`                  | What it means                                                                                                                                                                              | Retry?                                                                                  |
| ------ | ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------- |
| 400    | `bad_request`           | The request is malformed: a bad cursor, an invalid graph, a value the operation can't accept.                                                                                              | No. Fix the request.                                                                    |
| 401    | `unauthorized`          | No credential, or an invalid or revoked one.                                                                                                                                               | No. Fix the key.                                                                        |
| 402    | `payment_required`      | The account can't pay for this: no active plan, or a credit balance of zero. AutoGPT Cloud only.                                                                                           | No. Top up or subscribe, then retry.                                                    |
| 403    | `forbidden`             | The credential lacks a permission, or isn't a member of the requested organization or team.                                                                                                | No. Grant the permission.                                                               |
| 404    | `not_found`             | No such resource in the organization and team this request acts in.                                                                                                                        | No.                                                                                     |
| 405    | `method_not_allowed`    | The path exists but not with this HTTP method.                                                                                                                                             | No.                                                                                     |
| 409    | `conflict`              | The request clashes with the current state, e.g. a file or folder name already in use, stopping a run that already finished, or a run with the same `Idempotency-Key` still being created. | Only the idempotency case: retry the same run start, with the same key, after a second. |
| 413    | `payload_too_large`     | The request body, or an uploaded file, is over the size limit (see [Formats](#formats)).                                                                                                   | No.                                                                                     |
| 422    | `validation_error`      | The body or query parameters failed validation (`details.errors` lists up to 20 failing fields), or an `Idempotency-Key` was reused for a different request.                               | No. Fix the request, or use a new key.                                                  |
| 428    | `precondition_required` | Something must be set up first; the message says what.                                                                                                                                     | After doing it.                                                                         |
| 429    | `rate_limit_exceeded`   | A rate limit was hit.                                                                                                                                                                      | Yes, after `Retry-After` seconds.                                                       |
| 500    | `internal_error`        | Something failed on the server. The message names the operation but not the cause.                                                                                                         | Yes, with backoff. Only retry a run start if you sent an `Idempotency-Key`.             |
| 502    | `upstream_error`        | A service AutoGPT depends on failed.                                                                                                                                                       | Yes, with backoff.                                                                      |
| 503    | `service_unavailable`   | A dependency is down or not configured on this instance, e.g. the store that holds `Idempotency-Key`s.                                                                                     | Yes, with backoff. A run start is safe to retry with the same key: it didn't start.     |

### Validation errors

A `422` lists up to 20 failing fields in `details.errors`, each with `type`, `loc` and `msg`; if more failed, a last entry with `type` `too_many_errors` says how many were left out. `loc` is the path to the field:

```json
{
  "error": {
    "code": "validation_error",
    "message": "Invalid data for POST /api/v2/schedules",
    "details": {
      "errors": [
        {
          "type": "missing",
          "loc": ["body", "cron"],
          "msg": "Field required"
        }
      ]
    }
  }
}
```

## Rate limits

| Limit               | Applies to                                                                                                                                                              | Window    |
| ------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------- |
| 200 requests        | Every authenticated request, per user                                                                                                                                   | 1 minute  |
| 5 requests          | Every unauthenticated request, per client IP, except reading the docs                                                                                                   | 1 minute  |
| 60 requests         | Unauthenticated reads of `/openapi.json`, `/docs` and `/redoc`, per client IP                                                                                           | 1 minute  |
| 300 requests        | Requests carrying the same key or token, per client IP, counted before it is checked                                                                                    | 1 minute  |
| 30 failed sign-ins  | Requests carrying the same invalid key or token, per client IP. Past it, that key or token gets `429` until the window rolls over.                                      | 1 minute  |
| 300 failed sign-ins | Requests carrying any invalid key or token, per client IP. Past it, every request from that address that carries a key or token gets `429` until the window rolls over. | 1 minute  |
| 60 requests         | Starting runs, per user: `POST /library/agents/{agent_id}/runs` and `POST /library/presets/{preset_id}/execute` together                                                | 1 minute  |
| 60 requests         | `GET /credits/subscription`, per user                                                                                                                                   | 1 minute  |
| 30 requests         | `GET /search`, per user                                                                                                                                                 | 1 minute  |
| 20 requests         | `POST /files/upload`, per user                                                                                                                                          | 5 minutes |
| 10 requests         | `POST /marketplace/submissions/media`, per user                                                                                                                         | 5 minutes |

The per-user limits are per user, not per key: every key and token for the same account shares them. The sign-in limits are counted per client IP, before the key or token is checked. Each window is fixed and starts on a clock boundary, so a full window empties at the next minute (or five-minute) mark rather than one request at a time.

Every response carries your position in the window that applies to it: the endpoint's own limit for the endpoints in the table that have one, and the 200-per-minute window for everything else.

| Header                  | Meaning                                 |
| ----------------------- | --------------------------------------- |
| `X-RateLimit-Limit`     | Requests allowed in the current window. |
| `X-RateLimit-Remaining` | Requests left in the current window.    |
| `X-RateLimit-Reset`     | Seconds until the window resets.        |

Header names are case-insensitive, and proxies may change their capitalisation (`X-Ratelimit-Limit`), so look them up case-insensitively. A `429` adds `Retry-After`, in seconds, and its `X-RateLimit-*` headers describe whichever limit was hit:

```http
HTTP/1.1 429 Too Many Requests
Retry-After: 23
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 0
X-RateLimit-Reset: 23

{"error": {"code": "rate_limit_exceeded", "message": "Rate limit exceeded (60 requests per 60s). Try again shortly.", "details": null}}
```

### Retry safely

What you can retry depends on the request:

| Request                                              | Retry on                                                                                                                                                 |
| ---------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Reads (`GET`)                                        | `429`, `500`, `502`, `503`, and network errors.                                                                                                          |
| Starting a run with an `Idempotency-Key`             | The same, plus `409 conflict` (the first attempt is still starting the run). Always resend the same key.                                                 |
| Every other write (`POST`, `PUT`, `PATCH`, `DELETE`) | `429` only. The request was refused before it did anything. After a `5xx` or a network error the write may have happened, so check before you repeat it. |

Wait `Retry-After` seconds when it is present; otherwise back off exponentially with jitter. Give up after five attempts, or sooner if you're working to a deadline: inside a polling loop, pass a smaller `timeout` and fewer attempts so the retries fit in the time that's left. Don't retry any other `4xx`: it will fail the same way.

This helper takes the set of statuses to retry. Pass `READS` for reads, `RUN_STARTS` for a run start that carries an `Idempotency-Key`, and `OTHER_WRITES` for everything else:

{% tabs %}
{% tab title="Python" %}

```python
import random
import time

import requests

READS = frozenset({429, 500, 502, 503})  # network errors are retried too
RUN_STARTS = READS | {409}  # resend the same Idempotency-Key
OTHER_WRITES = frozenset({429})  # refused before it ran


def request_with_retries(method, url, retry_on, *, max_attempts=5, **kwargs):
    kwargs.setdefault("timeout", 30)
    for attempt in range(1, max_attempts + 1):
        last = attempt == max_attempts
        try:
            response = requests.request(method, url, **kwargs)
        except (requests.ConnectionError, requests.Timeout):
            if last or retry_on is OTHER_WRITES:
                raise
            time.sleep(min(2**attempt, 30) + random.uniform(0, 1))
            continue
        if response.status_code not in retry_on or last:
            return response
        retry_after = response.headers.get("Retry-After")
        delay = float(retry_after) if retry_after else min(2**attempt, 30)
        time.sleep(delay + random.uniform(0, 1))
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
export const READS = new Set([429, 500, 502, 503]); // network errors are retried too
export const RUN_STARTS = new Set([...READS, 409]); // resend the same Idempotency-Key
export const OTHER_WRITES = new Set([429]); // refused before it ran

const sleep = (ms: number) => new Promise((r) => setTimeout(r, ms));

export async function requestWithRetries(
  url: string,
  init: RequestInit,
  retryOn: Set<number>,
  maxAttempts = 5,
): Promise<Response> {
  for (let attempt = 1; ; attempt++) {
    const last = attempt === maxAttempts;
    let response: Response;
    try {
      response = await fetch(url, { ...init, signal: AbortSignal.timeout(30_000) });
    } catch (error) {
      if (last || retryOn === OTHER_WRITES) throw error;
      await sleep((Math.min(2 ** attempt, 30) + Math.random()) * 1000);
      continue;
    }
    if (!retryOn.has(response.status) || last) return response;
    const retryAfter = response.headers.get("Retry-After");
    const delay = retryAfter ? Number(retryAfter) : Math.min(2 ** attempt, 30);
    await sleep((delay + Math.random()) * 1000);
  }
}
```

{% endtab %}
{% endtabs %}

Retrying `POST /library/agents/{agent_id}/runs` after a timeout or `5xx` can start a second run, which you also pay for, unless you send an [`Idempotency-Key`](#idempotent-runs).

## Pagination

List endpoints take the same two query parameters and return the same envelope.

| Parameter | Meaning                                                                    |
| --------- | -------------------------------------------------------------------------- |
| `limit`   | Items per page, from 1 to 100. Defaults to 20.                             |
| `cursor`  | The `next_cursor` from the previous page. Leave it out for the first page. |

```json
{
  "items": [ { "id": "..." } ],
  "next_cursor": "eyJ2IjoxLCJrIjoicCIsInAiOjJ9",
  "total_count": 137
}
```

* Pass `next_cursor` back as `cursor` to get the next page. It is `null` on the last page.
* Cursors are opaque: don't decode, build or edit them. A malformed cursor is rejected with `400 bad_request`.
* Use a cursor only on the endpoint that returned it, with the same filters. Another endpoint may accept it and return the wrong page.
* `total_count` counts the matches across all pages. It is always present, and `null` where the source can't count: `GET /credits/transactions` (it groups the charges of one run into one item) and `GET /credits/invoices`.
* `GET /credits/invoices` is the one list that doesn't page: its `next_cursor` is always `null`. Raise `limit` to see further back. The helpers below read that one page and stop.

Read every page like this:

{% tabs %}
{% tab title="Python" %}

```python
def list_all(path, params=None):
    params = dict(params or {}, limit=100)
    while True:
        response = requests.get(
            f"{API_URL}{path}", headers=HEADERS, params=params, timeout=30
        )
        response.raise_for_status()
        page = response.json()
        yield from page["items"]
        if not page["next_cursor"]:
            return
        params["cursor"] = page["next_cursor"]


for agent in list_all("/library/agents"):
    print(agent["id"], agent["name"])
```

{% endtab %}

{% tab title="TypeScript" %}

```typescript
async function* listAll<T>(path: string, params: Record<string, string> = {}) {
  const query = new URLSearchParams({ ...params, limit: "100" });
  while (true) {
    const response = await fetch(`${API_URL}${path}?${query}`, {
      headers: HEADERS,
      signal: AbortSignal.timeout(30_000),
    });
    if (!response.ok) throw new Error(`${response.status}: ${await response.text()}`);
    const page = (await response.json()) as { items: T[]; next_cursor: string | null };
    yield* page.items;
    if (!page.next_cursor) return;
    query.set("cursor", page.next_cursor);
  }
}

for await (const agent of listAll<{ id: string; name: string }>("/library/agents")) {
  console.log(agent.id, agent.name);
}
```

{% endtab %}
{% endtabs %}

## Idempotent runs

Starting a run costs money, and a request that times out tells you nothing about whether the run started. Send an `Idempotency-Key` header with `POST /library/agents/{agent_id}/runs` or `POST /library/presets/{preset_id}/execute`, and a retry with the same key returns the run the first request started instead of starting another.

```bash
curl -s -X POST "$AUTOGPT_API_URL/library/agents/$AGENT_ID/runs" \
  -H "X-API-Key: $AUTOGPT_API_KEY" \
  -H "Content-Type: application/json" \
  -H "Idempotency-Key: order-1234-summary" \
  -d '{"inputs": {"topic": "Q3 results"}}'
```

* Use a value that identifies the job, such as an order ID or a UUID you store with it. Up to 255 characters. A key made up fresh for each call protects only that call's own retries, so a library should let its callers pass the key.
* A key lasts 24 hours and is scoped to your user and organization.
* A key is bound to the request it first came with: the agent or preset, and the whole body. The first request with a key starts the run, and once it has recorded that run, every later request with that key and the same agent or preset and body returns `202` and the same run. The same key with another agent or preset, or a different body, is `422 validation_error`. To start a different run, use a new key.
* If the first request is still starting the run, a duplicate gets `409 conflict`. Wait a moment and retry with the same key.
* If the key can't be checked (the store that holds keys is unreachable), the request is `503 service_unavailable` and no run starts. Retry with the same key.
* If `409` persists, the first request probably started a run but couldn't record it under the key, and the key stays blocked until it expires. Don't start the job again under a new key until you've looked for that run with `GET /runs?graph_id=...&started_after=...`.
* If the first request failed before a run started, the key is released and a retry starts the run.

## Status codes

| Status           | Returned when                                                                                          |
| ---------------- | ------------------------------------------------------------------------------------------------------ |
| `200 OK`         | A read or an update succeeded.                                                                         |
| `201 Created`    | A resource was created, e.g. `POST /graphs`, `POST /schedules`, `POST /files/upload`.                  |
| `202 Accepted`   | Work was queued and continues after the response, e.g. starting or stopping a run, submitting reviews. |
| `204 No Content` | A delete succeeded. The body is empty.                                                                 |

## Formats

* Requests and responses are JSON (`Content-Type: application/json`), except uploads (`multipart/form-data`) and file downloads (the file's own type).
* A request body can be up to 10 MB. An upload can be as large as its file allows: up to the workspace file size limit for `POST /files/upload` (100 MB on AutoGPT Cloud), and up to 10 MB for `POST /marketplace/submissions/media`. A larger body gets `413 payload_too_large`, with the limit in bytes in `details.limit_bytes`.
* IDs are opaque strings. Today they are UUIDs; don't depend on that.
* Timestamps are ISO 8601 with a time zone, e.g. `2026-10-08T14:03:12.418000Z`.
* Money is in US cents in fields ending `_cents`, e.g. `balance_cents: 1250` is $12.50.
* Enum values are UPPER\_CASE strings, e.g. `"status": "COMPLETED"`.
* Fields can be added to any response at any time. Ignore the ones you don't know.


# MCP server

Connect Claude Code, Codex, Cursor, VS Code, Claude Desktop or any MCP client to AutoGPT, so an AI assistant can find, build and run your agents.

AutoGPT runs a [Model Context Protocol](https://modelcontextprotocol.io) server alongside the API. Connect an AI assistant to it and the assistant can search the marketplace and your library, build and edit agents, run them, read their results, and manage folders, schedules and files, all within the permissions of the key you give it.

| Where AutoGPT runs              | MCP server URL                            |
| ------------------------------- | ----------------------------------------- |
| AutoGPT Cloud                   | `https://backend.agpt.co/api/v2/mcp/`     |
| Self-hosted with Docker Compose | `http://localhost:8006/api/v2/mcp/`       |
| Self-hosted single container    | `http://localhost:3000/_agpt/api/v2/mcp/` |

It is `$AUTOGPT_API_URL/mcp/`. Keep the trailing slash: without it the server redirects, and some clients don't follow redirects.

* **Transport:** Streamable HTTP. Tool calls don't depend on each other: you pass the IDs from one result into the next call.
* **Authentication:** an [API key](https://agpt.co/docs/platform/api-and-integrations/api-guide/authentication#create-an-api-key) sent as `Authorization: Bearer agpt_...`. OAuth access tokens work too.
* **Tools:** the server only lists the tools the key's permissions allow. Give the key exactly the powers you want the assistant to have.

{% hint style="info" %}
This server acts on your AutoGPT account. To let an assistant **read these docs** instead, use the docs server at `https://agpt.co/docs/~gitbook/mcp`. See [Build with AI coding agents](https://agpt.co/docs/platform/api-and-integrations/api-guide/ai-coding-agents).
{% endhint %}

## Connect a client

Create an API key for the assistant first. For a coding assistant that should be able to do everything, tick **Identity, Read Library, Write Library, Read Graph, Write Graph, Read Block, Run Agent, Read Run, Read Files, Write Files, Read Schedule, Write Schedule**. Then set `AUTOGPT_API_URL` and `AUTOGPT_API_KEY` in the environment the client starts from.

{% tabs %}
{% tab title="Claude Code" %}
Add the server to a project in `.mcp.json`. Claude Code expands `${VAR}` from the environment, so the key stays out of the file:

{% code title=".mcp.json" %}

```json
{
  "mcpServers": {
    "autogpt": {
      "type": "http",
      "url": "${AUTOGPT_API_URL}/mcp/",
      "headers": {
        "Authorization": "Bearer ${AUTOGPT_API_KEY}"
      }
    }
  }
}
```

{% endcode %}

Or add it for your user from the command line. This stores the key in Claude Code's configuration:

```bash
claude mcp add --transport http --scope user autogpt "$AUTOGPT_API_URL/mcp/" \
  --header "Authorization: Bearer $AUTOGPT_API_KEY"
```

Check it with `claude mcp list`.
{% endtab %}

{% tab title="Codex" %}
Add the server to `~/.codex/config.toml`. Codex reads the key from the environment variable you name:

{% code title="\~/.codex/config.toml" %}

```toml
[mcp_servers.autogpt]
url = "https://backend.agpt.co/api/v2/mcp/"
bearer_token_env_var = "AUTOGPT_API_KEY"
```

{% endcode %}

For a self-hosted instance, change `url` to your instance's MCP server URL.
{% endtab %}

{% tab title="Cursor" %}
Add the server to `.cursor/mcp.json` in your project, or `~/.cursor/mcp.json` for every project:

{% code title=".cursor/mcp.json" %}

```json
{
  "mcpServers": {
    "autogpt": {
      "url": "https://backend.agpt.co/api/v2/mcp/",
      "headers": {
        "Authorization": "Bearer ${env:AUTOGPT_API_KEY}"
      }
    }
  }
}
```

{% endcode %}
{% endtab %}

{% tab title="VS Code" %}
Add the server to `.vscode/mcp.json`. VS Code asks for the key the first time and stores it securely:

{% code title=".vscode/mcp.json" %}

```json
{
  "servers": {
    "autogpt": {
      "type": "http",
      "url": "https://backend.agpt.co/api/v2/mcp/",
      "headers": {
        "Authorization": "Bearer ${input:autogpt-api-key}"
      }
    }
  },
  "inputs": [
    {
      "type": "promptString",
      "id": "autogpt-api-key",
      "description": "AutoGPT API key",
      "password": true
    }
  ]
}
```

{% endcode %}
{% endtab %}

{% tab title="Claude Desktop" %}
Claude Desktop starts local servers, so bridge to the remote one with [`mcp-remote`](https://www.npmjs.com/package/mcp-remote) (needs Node.js). In **Settings → Developer → Edit Config**:

{% code title="claude\_desktop\_config.json" %}

```json
{
  "mcpServers": {
    "autogpt": {
      "command": "npx",
      "args": [
        "-y",
        "mcp-remote",
        "https://backend.agpt.co/api/v2/mcp/",
        "--header",
        "Authorization:${AUTOGPT_AUTH_HEADER}"
      ],
      "env": {
        "AUTOGPT_AUTH_HEADER": "Bearer agpt_..."
      }
    }
  }
}
```

{% endcode %}

Restart Claude Desktop after saving.
{% endtab %}

{% tab title="Python" %}
With the official [MCP Python SDK](https://pypi.org/project/mcp/) (`pip install mcp`; tested with 2.3):

```python
import asyncio
import os

import httpx2
from mcp import ClientSession
from mcp.client.streamable_http import streamable_http_client

URL = os.environ["AUTOGPT_API_URL"].rstrip("/") + "/mcp/"
HEADERS = {"Authorization": f"Bearer {os.environ['AUTOGPT_API_KEY']}"}


async def main():
    async with httpx2.AsyncClient(headers=HEADERS, timeout=60) as http:
        async with streamable_http_client(URL, http_client=http) as (read, write, *_):
            async with ClientSession(read, write) as session:
                await session.initialize()
                tools = await session.list_tools()
                print([tool.name for tool in tools.tools])


asyncio.run(main())
```

On version 1 of the SDK, import `httpx` instead of `httpx2`. [Call the tools from code](#call-the-tools-from-code) carries on from here.
{% endtab %}
{% endtabs %}

Any other client that supports Streamable HTTP works the same way: point it at the URL and send the `Authorization` header.

## Tools

| Tool                                                                                                      | What it does                                                                                                                                                                         | Permissions it needs                     |
| --------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---------------------------------------- |
| `find_agent`                                                                                              | Search the public marketplace.                                                                                                                                                       | none                                     |
| `find_library_agent`                                                                                      | Search your library, or look an agent up by ID.                                                                                                                                      | Read Library                             |
| `run_agent`                                                                                               | Run or schedule a library agent, after checking its inputs and credentials.                                                                                                          | Run Agent                                |
| `view_agent_output`                                                                                       | Read the outputs of an agent's runs.                                                                                                                                                 | Read Run                                 |
| `get_agent_building_guide`                                                                                | Return the guide the agent-building tools follow.                                                                                                                                    | none                                     |
| `create_agent`                                                                                            | Validate, fix and save a new agent from graph JSON.                                                                                                                                  | Write Graph, Write Library, Read Library |
| `edit_agent`                                                                                              | Validate, fix and save a new version of an agent. Its webhook triggers move onto it only if the credential also has Run Agent.                                                       | Write Graph, Write Library               |
| `customize_agent`                                                                                         | Adapt a marketplace agent and save it to your library.                                                                                                                               | Write Graph, Write Library               |
| `validate_agent_graph`                                                                                    | Check graph JSON for errors without saving it.                                                                                                                                       | none                                     |
| `fix_agent_graph`                                                                                         | Repair common graph JSON mistakes without saving.                                                                                                                                    | none                                     |
| `list_folders`, `create_folder`, `update_folder`, `move_folder`, `delete_folder`, `move_agents_to_folder` | Organize your library.                                                                                                                                                               | Read Library or Write Library            |
| `list_schedules`, `delete_schedule`                                                                       | See and remove scheduled runs.                                                                                                                                                       | Read Schedule, Write Schedule            |
| `list_presets`, `update_preset`, `delete_preset`                                                          | See, change, pause and remove saved run settings and webhook triggers. Turning one back on, or supplying new inputs without also pausing it, also requires the Run Agent permission. | Read Library or Write Library            |
| `list_agent_triggers`                                                                                     | List an agent's webhook and scheduled triggers.                                                                                                                                      | Read Library                             |
| `setup_agent_webhook_trigger`                                                                             | Set up a webhook trigger that runs an agent on each event.                                                                                                                           | Write Library, Run Agent                 |
| `list_workspace_files`, `read_workspace_file`, `write_workspace_file`, `delete_workspace_file`            | Work with files in your workspace.                                                                                                                                                   | Read Files or Write Files                |
| `get_platform_info`                                                                                       | Your plan, credits and account details.                                                                                                                                              | Read Credits                             |
| `search_docs`, `get_doc_page`                                                                             | Search and read the AutoGPT documentation the instance has indexed.                                                                                                                  | none                                     |
| `web_search`, `web_fetch`                                                                                 | Search the web and read a public page. These spend platform resources.                                                                                                               | Use Tools                                |
| `search_feature_requests`                                                                                 | Find existing AutoGPT feature requests.                                                                                                                                              | Use Tools                                |

The tools a key can't use don't appear in its tool list at all. If an assistant says a tool is missing, add the permission to a new key and reconnect.

## Call the tools from code

An assistant learns each tool's arguments from the server, so you only need this section to call the tools from your own code. A tool returns one JSON object, sent as text in the first content part of its result. The object's `type` says what kind of answer it is and its `message` describes it in words. Results also carry a `session_id`, which changes on every call; you never send it back.

Running an agent takes three calls:

| Tool                 | Arguments                                           | What it returns                                                                                                                                                                                                                                                                                             |
| -------------------- | --------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `find_library_agent` | `query`: words from the agent's name or description | `{"type": "agents_found", "agents": [...]}`. Each agent's `id` is its library agent ID, and it comes with the agent's `input_schema` and `output_schema`.                                                                                                                                                   |
| `run_agent`          | `library_agent_id`, `inputs`                        | `{"type": "execution_started", "execution_id": "..."}`, without outputs. If an input without a default is missing, nothing runs: you get `{"type": "agent_details"}` with a `message` that names the inputs to send.                                                                                        |
| `view_agent_output`  | `library_agent_id` and `execution_id`               | `{"execution": {"status": "COMPLETED", "outputs": {...}}}`. As in the REST API, each output is a [list of values](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents#read-the-outputs). The call returns at once; while the run is still going, call it again after a few seconds. |

This script runs the quickstart's sample agent by name and prints its outputs:

{% code title="mcp\_run\_agent.py" lineNumbers="true" %}

```python
import asyncio
import json
import os
import time

import httpx2
from mcp import ClientSession
from mcp.client.streamable_http import streamable_http_client

URL = os.environ["AUTOGPT_API_URL"].rstrip("/") + "/mcp/"
HEADERS = {"Authorization": f"Bearer {os.environ['AUTOGPT_API_KEY']}"}


def payload(result) -> dict:
    text = result.content[0].text
    if result.is_error:  # isError on version 1 of the SDK
        raise RuntimeError(text)
    data = json.loads(text)
    if data["type"] == "error":
        raise RuntimeError(data["message"])
    return data


async def run_agent(session: ClientSession, name: str, inputs: dict) -> dict:
    found = payload(await session.call_tool("find_library_agent", {"query": name}))
    matches = [agent for agent in found.get("agents", []) if agent["name"] == name]
    if len(matches) != 1:
        raise LookupError(f"{len(matches)} library agents are named {name!r}")
    agent_id = matches[0]["id"]

    started = payload(
        await session.call_tool("run_agent", {"library_agent_id": agent_id, "inputs": inputs})
    )
    if started["type"] != "execution_started":
        raise RuntimeError(started["message"])

    deadline, delay = time.monotonic() + 600, 2.0
    while True:
        output = payload(
            await session.call_tool(
                "view_agent_output",
                {"library_agent_id": agent_id, "execution_id": started["execution_id"]},
            )
        )
        execution = output["execution"]
        if execution["status"] in ("COMPLETED", "FAILED", "TERMINATED", "REVIEW"):
            return execution
        if time.monotonic() > deadline:
            raise TimeoutError(f"run {started['execution_id']} is still {execution['status']}")
        await asyncio.sleep(delay)
        delay = min(delay * 1.5, 15)


async def main():
    async with httpx2.AsyncClient(headers=HEADERS, timeout=60) as http:
        async with streamable_http_client(URL, http_client=http) as (read, write, *_):
            async with ClientSession(read, write) as session:
                await session.initialize()
                execution = await run_agent(session, "Hello from the API", {"name": "Ada"})
                print(execution["status"], execution["outputs"])


asyncio.run(main())
```

{% endcode %}

It prints `COMPLETED {'greeting': ['Hello, Ada!']}`. Change the name and inputs to run one of your own agents.

* `execution.status` is the status when the call returned. While the run is still going, call `view_agent_output` again after a few seconds, backing off as it runs longer.
* Without `execution_id`, `view_agent_output` reads the agent's latest run and also lists recent runs in `available_executions`. Their statuses can lag behind, so read the status from `execution`.
* Check for failure in two places. The result's `is_error` flag is set when a call fails or is refused: an unknown tool, a missing permission, an error inside the tool. A tool that ran but couldn't do what you asked, for example because an ID doesn't exist, returns an ordinary result whose JSON is `{"type": "error", "message": "..."}`. The `payload` helper above handles both.
* `find_library_agent` returns `{"type": "no_results"}` when nothing matches.

## Good to know

* `run_agent` checks an agent's inputs before it starts a run, which the REST API doesn't do. Calling it without `inputs` is a quick way to see what an agent needs.
* A call is held to the same rules as the REST API:
  * An argument the tool doesn't list is refused, so a typo fails loudly instead of being ignored.
  * Some arguments need a permission on top of the tool's own: scheduling with `run_agent` (`schedule_name` or `cron`) needs Write Schedule, running a marketplace agent by `username_agent_slug` needs Write Library, and reading or writing agent JSON through a workspace file (`agent_json_ref`, `write_to`, `write_graph_to`) needs Read Files or Write Files.
  * The key only reaches its own organization's agents, folders, runs and schedules, as in the REST API; an ID from another organization is not found.
  * Runs, uploads and searches count against the same [rate limits](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions#rate-limits) as their REST endpoints, and a file written through `write_to` or `write_graph_to` counts as an upload. `run_agent` refuses to start a run on a zero balance, and doesn't offer `dry_run` here. `web_search` needs an active plan and counts against your AutoPilot usage allowance.
* Send the key once, in the `Authorization` header. A request that also sends `X-API-Key`, or two `Authorization` headers, is refused.
* A request to the server can be up to 10 MB, like any other API request, so `write_workspace_file` takes up to about 7 MB as `content_base64` (base64 adds a third). Upload a larger file with [`POST /files/upload`](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents), then use it by its ID.
* A tool's result is at most 100,000 characters. A longer one is cut in the middle, and `… (omitted N chars)…` marks the cut. `read_workspace_file` with `offset` or `length` returns at most 60,000 bytes of text a call, and its `message` says which characters it read, so continue from the last one.
* Runs started over MCP are ordinary runs: they show up in the app and in `GET /runs`, and they cost the same.
* On a self-hosted instance, `search_docs` returns results only after the instance has indexed its documentation, and `web_search` needs OpenRouter credentials configured on the instance.
* The server doesn't support dynamic client registration, so a client's "sign in" or "authenticate" option won't work with it. Configure the API key header instead.


# Migrate from v1

Move an integration from the deprecated v1 API to v2 by 2027-01-31, v1's last day of service: endpoint mapping, permission changes and behaviour changes.

API v1 (`/external-api/v1/...`) is deprecated and **stops working on 2027-02-01**; its last day of service is 2027-01-31. Both versions run side by side until then, on the same keys, so you can move one call at a time.

## What changes

* **Base URL.** `/external-api/v1` becomes `/api/v2`.
* **Runs go through your library.** v1 ran a graph by graph ID and version. v2 runs a **library agent**: look it up once with `GET /graphs/{graph_id}/library-agent`, then run it with `POST /library/agents/{agent_id}/runs`.
* **Permissions.** `RUN_AGENT` replaces `EXECUTE_GRAPH`, reading runs needs `READ_RUN`, and most v2 areas have their own read and write permissions. A v1 key usually lacks them, and a key's permissions can't be changed, so plan on creating a new key; see the table below.
* **Lists are paginated.** Every list endpoint takes `limit` and `cursor` and returns `{"items", "next_cursor", "total_count"}`. Code that expected a bare array must read `items` and follow `next_cursor`.
* **Errors have one shape**: `{"error": {"code", "message", "details"}}` instead of `{"detail": ...}`. See [Errors](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions#errors).
* **Requests act inside an organization.** The key decides which one; see [Organizations and teams](https://agpt.co/docs/platform/api-and-integrations/api-guide/authentication#organizations-and-teams).
* **Rate limits and retries.** v2 enforces [documented limits](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions#rate-limits) and supports `Idempotency-Key` on run creation.

## Endpoint mapping

| v1                                                                          | v2                                                                                                                                                                                           | v2 permission               |
| --------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------- |
| `GET /me`                                                                   | `GET /me`. Returns `user_id` instead of `id`, plus `organization`, `team`, `scopes` and `credential_type`.                                                                                   | `IDENTITY`                  |
| `GET /blocks`                                                               | `GET /blocks` (paginated)                                                                                                                                                                    | `READ_BLOCK`                |
| `POST /blocks/{block_id}/execute`                                           | No direct equivalent. Put the block in a one-block agent and run it.                                                                                                                         | —                           |
| `POST /graphs`                                                              | `POST /graphs`                                                                                                                                                                               | `WRITE_GRAPH`               |
| `POST /graphs/{graph_id}/execute/{graph_version}`                           | `GET /graphs/{graph_id}/library-agent`, then `POST /library/agents/{agent_id}/runs`                                                                                                          | `READ_LIBRARY`, `RUN_AGENT` |
| `GET /graphs/{graph_id}/executions/{graph_exec_id}/results`                 | `GET /runs/{run_id}`. Status and outputs in one object.                                                                                                                                      | `READ_RUN`                  |
| `GET /store/agents`                                                         | `GET /marketplace/agents`                                                                                                                                                                    | any valid key               |
| `GET /store/agents/{username}/{agent_name}`                                 | `GET /marketplace/agents/{username}/{agent_name}`                                                                                                                                            | any valid key               |
| `GET /store/creators`                                                       | `GET /marketplace/creators`                                                                                                                                                                  | any valid key               |
| `GET /store/creators/{username}`                                            | `GET /marketplace/creators/{username}`                                                                                                                                                       | any valid key               |
| `GET /integrations/credentials`, `GET /integrations/{provider}/credentials` | `GET /integrations/credentials?provider=...`                                                                                                                                                 | `READ_INTEGRATIONS`         |
| `POST /integrations/{provider}/credentials`                                 | `POST /integrations/credentials`, with `provider` in the body                                                                                                                                | `MANAGE_INTEGRATIONS`       |
| `DELETE /integrations/{provider}/credentials/{cred_id}`                     | `DELETE /integrations/credentials/{credential_id}`                                                                                                                                           | `DELETE_INTEGRATIONS`       |
| `GET /integrations/providers`                                               | No equivalent. Read the providers an agent needs from `GET /library/agents/{agent_id}/credentials`.                                                                                          | —                           |
| `POST /integrations/{provider}/oauth/initiate`, `.../oauth/complete`        | No equivalent. Users connect OAuth providers in the app, or through the [integration setup wizard](https://agpt.co/docs/platform/api-and-integrations/oauth-guide#integration-setup-wizard). | —                           |
| `POST /tools/find-agent`, `POST /tools/run-agent`                           | The `find_agent`, `find_library_agent` and `run_agent` tools on the [MCP server](https://agpt.co/docs/platform/api-and-integrations/api-guide/mcp-server), or the REST endpoints above.      | as listed there             |

## Running a graph: before and after

{% tabs %}
{% tab title="v1" %}

```bash
curl -s -X POST "https://backend.agpt.co/external-api/v1/graphs/$GRAPH_ID/execute/$GRAPH_VERSION" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
  -d '{"node_input": {"topic": "Q3 results"}}'

curl -s "https://backend.agpt.co/external-api/v1/graphs/$GRAPH_ID/executions/$EXEC_ID/results" \
  -H "X-API-Key: $AUTOGPT_API_KEY"
```

{% endtab %}

{% tab title="v2" %}

```bash
# Once: find the library agent for the graph.
AGENT_ID=$(curl -s "$AUTOGPT_API_URL/graphs/$GRAPH_ID/library-agent" \
  -H "X-API-Key: $AUTOGPT_API_KEY" | jq -r .id)

# Start the run. Inputs go under "inputs".
RUN_ID=$(curl -s -X POST "$AUTOGPT_API_URL/library/agents/$AGENT_ID/runs" \
  -H "X-API-Key: $AUTOGPT_API_KEY" -H "Content-Type: application/json" \
  -H "Idempotency-Key: q3-report" \
  -d '{"inputs": {"topic": "Q3 results"}}' | jq -r .id)

# Read status and outputs until the run is COMPLETED, FAILED or TERMINATED.
curl -s "$AUTOGPT_API_URL/runs/$RUN_ID" -H "X-API-Key: $AUTOGPT_API_KEY"
```

{% endtab %}
{% endtabs %}

The v2 run object returns everything at once: `status`, `outputs` keyed by output name, `node_executions`, `cost_cents` and timings. See [Run agents](https://agpt.co/docs/platform/api-and-integrations/api-guide/running-agents).

## Checklist

1. [Create a new key](https://agpt.co/docs/platform/api-and-integrations/api-guide/authentication#create-an-api-key) with the v2 permissions your calls need, plus `IDENTITY`, and check it with `GET /me`. Keep the old key for the calls still on v1, and delete it once nothing uses it.
2. Change the base URL to `/api/v2`.
3. Replace graph runs with library-agent runs, and send an `Idempotency-Key`.
4. Read `items` and follow `next_cursor` on every list.
5. Parse errors from `error.code`.
6. Test against your instance, then remove every `/external-api/v1` call by 2027-01-31, v1's last day of service.


# API reference

Every AutoGPT API v2 endpoint with its parameters, request body, responses and required permissions, generated from the OpenAPI specification.

The pages in this section are generated from the API's OpenAPI 3.1 specification, one page per endpoint, grouped by area. Each page lists the endpoint's parameters, request body, responses and required permission, and its Markdown version (append `.md` to the URL) contains a complete OpenAPI description of that endpoint, ready for code generators and AI agents.

## Base URL and authentication

All paths are relative to your instance's base URL:

| Where AutoGPT runs              | Base URL                             |
| ------------------------------- | ------------------------------------ |
| AutoGPT Cloud                   | `https://backend.agpt.co/api/v2`     |
| Self-hosted with Docker Compose | `http://localhost:8006/api/v2`       |
| Self-hosted single container    | `http://localhost:3000/_agpt/api/v2` |

Authenticate every request with an API key in the `X-API-Key` header, or with `Authorization: Bearer` and an API key or OAuth access token. Each endpoint's page names the permission it needs. See [Authentication and permissions](https://agpt.co/docs/platform/api-and-integrations/api-guide/authentication).

## The specification

Download the specification your code will talk to from the instance itself, since each instance serves the version it runs:

* `$AUTOGPT_API_URL/openapi.json`, which needs no key. AutoGPT Cloud: [backend.agpt.co/api/v2/openapi.json](https://backend.agpt.co/api/v2/openapi.json).
* `$AUTOGPT_API_URL/docs` is an interactive explorer (Swagger UI), and `$AUTOGPT_API_URL/redoc` a readable one.

Generate a typed client from it with any OpenAPI generator, and give the client your `$AUTOGPT_API_URL` as its base URL. Don't rely on the spec's `servers` list: it names AutoGPT Cloud and the default self-hosted addresses in the table above, not necessarily your instance's. For example:

{% tabs %}
{% tab title="TypeScript" %}

```bash
npx openapi-typescript "$AUTOGPT_API_URL/openapi.json" -o autogpt-api.d.ts
```

{% endtab %}

{% tab title="Python" %}

```bash
pipx run openapi-python-client generate --url "$AUTOGPT_API_URL/openapi.json"
```

{% endtab %}
{% endtabs %}

## Areas

| Area         | What it covers                                                            |
| ------------ | ------------------------------------------------------------------------- |
| Graphs       | Create, read and version agent graphs; graph settings.                    |
| Schedules    | Run graphs on a cron schedule.                                            |
| Blocks       | The building blocks agents are made from.                                 |
| Search       | Search marketplace agents, blocks, docs, your library and your files.     |
| Marketplace  | Browse agents and creators; manage your submissions and profile.          |
| Library      | Your agents and folders; start runs.                                      |
| Presets      | Saved inputs for running an agent, and the webhook triggers that run one. |
| Runs         | Run status, outputs, stopping, sharing and human-in-the-loop reviews.     |
| Credits      | Balance, transactions, invoices, subscription and cost summaries.         |
| Integrations | Third-party credentials your agents use.                                  |
| Files        | Upload, list, download and delete workspace files.                        |
| Identity     | Who a credential acts as: `GET /me`.                                      |

The conventions every endpoint shares, such as errors, pagination, rate limits and idempotency, are on [Errors, rate limits, and pagination](https://agpt.co/docs/platform/api-and-integrations/api-guide/api-conventions).


# OAuth & SSO

This guide explains how to integrate your application with AutoGPT Platform using OAuth 2.0. OAuth can be used for API access, Single Sign-On (SSO), or both.

For general API information and endpoint documentation, see the [AutoGPT Platform API](https://agpt.co/docs/platform/api-and-integrations/api-guide) guide and the [API reference](https://agpt.co/docs/platform/api-and-integrations/api-reference).

## Overview

AutoGPT Platform's OAuth implementation supports multiple use cases:

### OAuth for API Access

Use OAuth when your application needs to call AutoGPT APIs on behalf of users. This is the most common use case for third-party integrations.

**When to use:**

* Your app needs to run agents, access the store, or manage integrations for users
* You want user-specific permissions rather than a single API key
* Users should be able to revoke access to your app

### SSO: "Sign in with AutoGPT"

Use SSO when you want users to sign in to your app through their AutoGPT account. Request the `IDENTITY` scope to get user information.

**When to use:**

* You want to use AutoGPT as an identity provider
* Users already have AutoGPT accounts and you want seamless login
* You need to identify users without managing passwords

**Note:** SSO and API access can be combined. Request `IDENTITY` along with other scopes to both authenticate users and access APIs on their behalf.

### Integration Setup Wizard

A separate flow that guides users through connecting third-party services (GitHub, Google, etc.) to their AutoGPT account. See [Integration Setup Wizard](#integration-setup-wizard) below.

## Prerequisites

Before integrating, you need an OAuth application registered with AutoGPT Platform. For AutoGPT Cloud, contact the AutoGPT team. On a self-hosted instance, register one yourself with `poetry run oauth-tool generate-app` in `autogpt_platform/backend`, which prompts for the details and prints the SQL to add the app. Either way you get:

* **Client ID** - Public identifier for your application
* **Client Secret** - Secret key for authenticating your application (keep this secure!)
* **Registered Redirect URIs** - URLs where users will be redirected after authorization

## OAuth Flow

The OAuth flow is technically the same whether you're using it for API access, SSO, or both. The main difference is which scopes you request.

### Step 1: Redirect User to Authorization

Redirect the user to the AutoGPT authorization page with the required parameters:

```url
https://platform.agpt.co/auth/authorize?
  client_id={YOUR_CLIENT_ID}&
  redirect_uri=https://yourapp.com/callback&
  scope=IDENTITY READ_LIBRARY RUN_AGENT READ_RUN&
  state={RANDOM_STATE_TOKEN}&
  code_challenge={PKCE_CHALLENGE}&
  code_challenge_method=S256&
  response_type=code
```

#### Parameters

| Parameter               | Required | Description                                                                                                                                      |
| ----------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------------------------------ |
| `client_id`             | Yes      | Your OAuth application's client ID                                                                                                               |
| `redirect_uri`          | Yes      | URL to redirect after authorization (must match registered URI)                                                                                  |
| `scope`                 | Yes      | Space-separated list of permissions (see [Permissions](https://agpt.co/docs/platform/api-and-integrations/api-guide/authentication#permissions)) |
| `state`                 | Yes      | Random string to prevent CSRF attacks (store and verify on callback)                                                                             |
| `code_challenge`        | Yes      | PKCE code challenge (see [PKCE](#pkce-implementation))                                                                                           |
| `code_challenge_method` | Yes      | Must be `S256`                                                                                                                                   |
| `response_type`         | Yes      | Must be `code`                                                                                                                                   |

### Step 2: Handle the Callback

After the user approves (or denies) access, they'll be redirected to your `redirect_uri`:

**Success:**

```url
https://yourapp.com/callback?code=AUTHORIZATION_CODE&state=RANDOM_STATE_TOKEN
```

**Error:**

```url
https://yourapp.com/callback?error=access_denied&error_description=User%20denied%20access&state=RANDOM_STATE_TOKEN
```

Always verify the `state` parameter matches what you sent in Step 1.

If the `client_id` is unknown or the `redirect_uri` is not one of your app's registered redirect URIs, the platform shows the user an error instead and sends them nowhere, so your app gets no callback.

### Step 3: Exchange Code for Tokens

Exchange the authorization code for access and refresh tokens:

```http
POST /api/oauth/token
Content-Type: application/json

{
  "grant_type": "authorization_code",
  "code": "{AUTHORIZATION_CODE}",
  "redirect_uri": "https://yourapp.com/callback",
  "client_id": "{YOUR_CLIENT_ID}",
  "client_secret": "{YOUR_CLIENT_SECRET}",
  "code_verifier": "{PKCE_VERIFIER}"
}
```

**Response:**

```json
{
  "token_type": "Bearer",
  "access_token": "agpt_xt_...",
  "access_token_expires_at": "2025-01-15T12:00:00Z",
  "refresh_token": "agpt_rt_...",
  "refresh_token_expires_at": "2025-02-14T12:00:00Z",
  "scopes": ["IDENTITY", "READ_LIBRARY", "RUN_AGENT", "READ_RUN"]
}
```

### Step 4: Use the Access Token

Include the access token in API requests:

```http
GET /api/v2/library/agents
Authorization: Bearer agpt_xt_...
```

**For SSO:** If you requested the `IDENTITY` scope, fetch user info to identify the user:

```http
GET /api/v2/me
Authorization: Bearer agpt_xt_...
```

**Response:**

```json
{
  "user_id": "user-uuid",
  "email": "john@example.com",
  "name": "John Doe",
  "timezone": "Europe/Amsterdam",
  "organization": { "id": "org-uuid", "name": "John's workspace", "is_personal": true },
  "team": null,
  "scopes": ["IDENTITY", "READ_LIBRARY", "RUN_AGENT", "READ_RUN"],
  "credential_type": "oauth"
}
```

`user_id` is stable, so use it to identify the user in your app.

See the [API reference](https://agpt.co/docs/platform/api-and-integrations/api-reference) for all available endpoints.

### Step 5: Refresh Tokens

Access tokens expire after 1 hour. Use the refresh token to get new tokens:

```http
POST /api/oauth/token
Content-Type: application/json

{
  "grant_type": "refresh_token",
  "refresh_token": "agpt_rt_...",
  "client_id": "{YOUR_CLIENT_ID}",
  "client_secret": "{YOUR_CLIENT_SECRET}"
}
```

**Response:**

```json
{
  "token_type": "Bearer",
  "access_token": "agpt_xt_...",
  "access_token_expires_at": "2025-01-15T13:00:00Z",
  "refresh_token": "agpt_rt_...",
  "refresh_token_expires_at": "2025-02-14T12:00:00Z",
  "scopes": ["IDENTITY", "READ_LIBRARY", "RUN_AGENT", "READ_RUN"]
}
```

## Integration Setup Wizard

The Integration Setup Wizard guides users through connecting third-party services (like GitHub, Google, etc.) to their AutoGPT account. This is useful when your application needs users to have specific integrations configured.

### Redirect to the Wizard

```url
https://platform.agpt.co/auth/integrations/setup-wizard?
  client_id={YOUR_CLIENT_ID}&
  providers={BASE64_ENCODED_PROVIDERS}&
  redirect_uri=https://yourapp.com/callback&
  state={RANDOM_STATE_TOKEN}
```

#### Parameters

| Parameter      | Required | Description                                                                               |
| -------------- | -------- | ----------------------------------------------------------------------------------------- |
| `client_id`    | Yes      | Your OAuth application's client ID                                                        |
| `providers`    | Yes      | Base64-encoded JSON array of provider configurations                                      |
| `redirect_uri` | Yes      | URL to redirect after setup completes; must be one of your app's registered redirect URIs |
| `state`        | Yes      | Random string to prevent CSRF attacks                                                     |

#### Provider Configuration

The `providers` parameter is a Base64-encoded JSON array:

```javascript
const providers = [
  { provider: 'github', scopes: ['repo', 'read:user'] },
  { provider: 'google', scopes: ['https://www.googleapis.com/auth/calendar'] },
  { provider: 'slack' }  // Uses default scopes
];

const providersBase64 = btoa(JSON.stringify(providers));
```

### Handle the Callback

After setup completes:

**Success:**

```url
https://yourapp.com/callback?success=true&state=RANDOM_STATE_TOKEN
```

**Cancelled:**

```url
https://yourapp.com/callback?error=user_cancelled&error_description=User+cancelled+the+integration+setup&state=RANDOM_STATE_TOKEN
```

As with authorization, an unknown `client_id` or unregistered `redirect_uri` gets the user an error page and your app no callback.

## Provider Scopes Reference

When using the Integration Setup Wizard, you need to specify which scopes to request from each provider. Here are common providers and their scopes:

### GitHub

Documentation: <https://docs.github.com/en/apps/oauth-apps/building-oauth-apps/scopes-for-oauth-apps>

| Scope        | Description                          |
| ------------ | ------------------------------------ |
| `repo`       | Full control of private repositories |
| `read:user`  | Read user profile data               |
| `user:email` | Access user email addresses          |
| `gist`       | Create and manage gists              |
| `workflow`   | Update GitHub Actions workflows      |

**Example:**

```javascript
{ provider: 'github', scopes: ['repo', 'read:user'] }
```

### Google

Documentation: <https://developers.google.com/identity/protocols/oauth2/scopes>

| Scope                                            | Description                       |
| ------------------------------------------------ | --------------------------------- |
| `email`                                          | View email address (default)      |
| `profile`                                        | View basic profile info (default) |
| `openid`                                         | OpenID Connect (default)          |
| `https://www.googleapis.com/auth/calendar`       | Google Calendar access            |
| `https://www.googleapis.com/auth/drive`          | Google Drive access               |
| `https://www.googleapis.com/auth/gmail.readonly` | Read Gmail messages               |

**Example:**

```javascript
{ provider: 'google', scopes: ['https://www.googleapis.com/auth/calendar'] }
// Or use defaults (email, profile, openid):
{ provider: 'google' }
```

### Notion

Documentation: <https://developers.notion.com/reference/capabilities>

Notion uses a single OAuth scope that grants access based on pages the user selects during authorization.

### Linear

Documentation: <https://developers.linear.app/docs/oauth/authentication>

| Scope           | Description                 |
| --------------- | --------------------------- |
| `read`          | Read access to Linear data  |
| `write`         | Write access to Linear data |
| `issues:create` | Create issues               |

## PKCE Implementation

PKCE (Proof Key for Code Exchange) is required for all authorization requests. Here's how to implement it:

### JavaScript Example

```javascript
async function generatePkce() {
  // Generate a random code verifier
  const array = new Uint8Array(32);
  crypto.getRandomValues(array);
  const verifier = Array.from(array, b => b.toString(16).padStart(2, '0')).join('');

  // Create SHA-256 hash and base64url encode it
  const hash = await crypto.subtle.digest('SHA-256', new TextEncoder().encode(verifier));
  const challenge = btoa(String.fromCharCode(...new Uint8Array(hash)))
    .replace(/\+/g, '-')
    .replace(/\//g, '_')
    .replace(/=+$/, '');

  return { verifier, challenge };
}

// Usage:
const pkce = await generatePkce();
// Store pkce.verifier securely (e.g., in session storage)
// Use pkce.challenge in the authorization URL
```

### Python Example

```python
import hashlib
import base64
import secrets

def generate_pkce():
    # Generate a random code verifier
    verifier = secrets.token_urlsafe(32)

    # Create SHA-256 hash and base64url encode it
    digest = hashlib.sha256(verifier.encode()).digest()
    challenge = base64.urlsafe_b64encode(digest).decode().rstrip('=')

    return verifier, challenge

# Usage:
verifier, challenge = generate_pkce()
# Store verifier securely in session
# Use challenge in the authorization URL
```

## Token Management

### Token Lifetimes

| Token Type         | Lifetime   |
| ------------------ | ---------- |
| Access Token       | 1 hour     |
| Refresh Token      | 30 days    |
| Authorization Code | 10 minutes |

### Token Introspection

Check if a token is valid:

```http
POST /api/oauth/introspect
Content-Type: application/json

{
  "token": "agpt_xt_...",
  "token_type_hint": "access_token",
  "client_id": "{YOUR_CLIENT_ID}",
  "client_secret": "{YOUR_CLIENT_SECRET}"
}
```

**Response:**

```json
{
  "active": true,
  "scopes": ["IDENTITY", "READ_LIBRARY", "RUN_AGENT", "READ_RUN"],
  "client_id": "agpt_client_...",
  "user_id": "user-uuid",
  "exp": 1705320000,
  "token_type": "access_token"
}
```

### Token Revocation

Revoke a token when the user logs out:

```http
POST /api/oauth/revoke
Content-Type: application/json

{
  "token": "agpt_xt_...",
  "token_type_hint": "access_token",
  "client_id": "{YOUR_CLIENT_ID}",
  "client_secret": "{YOUR_CLIENT_SECRET}"
}
```

## Security Best Practices

1. **Store client secrets securely** - Never expose them in client-side code or version control
2. **Always use PKCE** - Required for all authorization requests
3. **Validate state parameters** - Prevents CSRF attacks
4. **Use HTTPS** - All production redirect URIs must use HTTPS
5. **Request minimal scopes** - Only request the permissions your app needs
6. **Handle token expiration** - Implement automatic token refresh
7. **Revoke tokens on logout** - Clean up when users disconnect your app

## Error Handling

### Common OAuth Errors

| Error                  | Description                     | Solution                                                                                               |
| ---------------------- | ------------------------------- | ------------------------------------------------------------------------------------------------------ |
| `invalid_client`       | Client ID not found or inactive | Verify client ID is correct                                                                            |
| `invalid_redirect_uri` | Redirect URI not registered     | Register URI with platform admin. The user sees an error and is not redirected, so no callback arrives |
| `invalid_scope`        | Requested scope not allowed     | Check allowed scopes for your app                                                                      |
| `invalid_grant`        | Code expired or already used    | Authorization codes are single-use                                                                     |
| `access_denied`        | User denied authorization       | Handle gracefully in your UI                                                                           |

### HTTP Status Codes

| Code | Meaning                              |
| ---- | ------------------------------------ |
| 200  | Success                              |
| 400  | Bad request (invalid parameters)     |
| 401  | Unauthorized (invalid/expired token) |
| 403  | Forbidden (insufficient scope)       |
| 404  | Resource not found                   |

## Support

For issues or questions about OAuth integration:

* Open an issue on [GitHub](https://github.com/Significant-Gravitas/AutoGPT)
* See the [AutoGPT Platform API](https://agpt.co/docs/platform/api-and-integrations/api-guide) guide for general API information
* Check the [API reference](https://agpt.co/docs/platform/api-and-integrations/api-reference) for endpoint details


# Managing LLM Models

## Overview

The platform manages LLM models **catalog-as-code**: one canonical, schema-validated file is the source of truth for model definitions, per-model costs, and AutoPilot (copilot) routing. There is no admin UI and no model database — you change models by editing the catalog and opening a PR, git history is the audit log, and the normal deploy pipeline propagates the change to every environment.

The catalog lives at:

```
autogpt_platform/backend/backend/data/llm_registry/catalog.py
```

Its schema is defined in `catalog_model.py` (same directory), and `catalog_test.py` contains the integrity guards — the file must parse, slugs must be unique, every provider/creator/fallback/routing reference must resolve, and costs must stay within bounds. A catalog PR that passes these tests is structurally sound by construction, which is what makes bot-reviewed catalog changes safe.

## Catalog fields

Each `CatalogModel` entry:

| Field                                  | Meaning                                                                                                                                                                                                                                                                                                                                                                              |
| -------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `slug`                                 | Canonical model identifier (e.g. `claude-sonnet-4-6`, `gpt-5.2-2025-12-11`, `moonshotai/kimi-k2.5`). Referenced by routing cells and fallbacks.                                                                                                                                                                                                                                      |
| `display_name`                         | Human-readable name shown in UIs.                                                                                                                                                                                                                                                                                                                                                    |
| `provider`                             | Who serves the model (must match a `CatalogProvider.name`). Determines which credential/API key is used.                                                                                                                                                                                                                                                                             |
| `creator`                              | Who trained the model (display metadata; must match a `CatalogCreator.name`).                                                                                                                                                                                                                                                                                                        |
| `context_window` / `max_output_tokens` | Token limits.                                                                                                                                                                                                                                                                                                                                                                        |
| `price_tier`                           | 1 (cheapest) to 3 (most expensive); used for display.                                                                                                                                                                                                                                                                                                                                |
| `is_enabled`                           | **The kill switch.** A disabled model is refused at serve time — even when the routing flag routes to it.                                                                                                                                                                                                                                                                            |
| `visibility`                           | Who may *see* the model: `GA` (everyone), `EMPLOYEES`, `ADMINS`, or `HIDDEN`. `HIDDEN` models still **serve when explicitly routed** — that is the pre-launch testing state. Informational until the catalog-driven picker lands (today a model stays out of block pickers by not having an enum line); the field is the picker's contract. Visibility never overrides `is_enabled`. |
| `fallback_model_slug`                  | Standing replacement pointer: the retirement CLI defaults `--replacement` to it, and it is reserved for future automatic failover.                                                                                                                                                                                                                                                   |
| `supports_*`                           | Capability flags (tools, JSON output, reasoning, parallel tool calls). Informational and authored opportunistically — `False` means *not asserted*, not "unsupported"; nothing consumes them at runtime yet, so only rely on authored `True` values.                                                                                                                                 |
| `cost`                                 | What users pay: flat `run_credits` and/or per-1M token **credit** rates (billing reads these). Optionally `provider_*_usd_per_1m`: what the provider charges us — the USD list price, used for in-turn cost estimates when a model is priced off its family default (e.g. Kimi K3's $3/$15).                                                                                         |

> **Cost note:** the catalog IS the billing source. `MODEL_METADATA`, `MODEL_COST`, and `TOKEN_COST` still exist as names, but they are **derived from the catalog at import** — there is nothing else to edit. One transitional artifact: `pre_catalog_costs_snapshot.json` pins the prices billed at the cutover, so changing a **pre-cutover** model's price is a deliberate two-line diff (catalog + snapshot) that shows old→new in review. New models never touch the snapshot, and the first legitimate legacy price change may simply delete the snapshot test instead (it is cutover proof, not a permanent fixture).

`CatalogPayload.routing` holds AutoPilot's routing cells — which model serves each `(mode, tier)` combination. **Cells ship empty**: an unset cell means the `CHAT_*_MODEL` env vars keep that combination, and *claiming* a cell is the explicit act of moving its control into the catalog:

```python
# Claiming thinking.standard — env vars keep the other three cells:
routing={
    "copilot": {
        "thinking": {"standard": "anthropic/claude-sonnet-4.6"},
    },
}
```

Cell values must be **transport-ready slugs** — the exact spelling the serving transport accepts (OpenRouter's vendor-prefixed dot forms, as above). The catalog's integrity tests enforce this convention.

**Cells apply only on the managed cloud deployment** (`BEHAVE_AS=cloud`). Self-hosted installs — cloud transport or local — always resolve the routing flag → env: a cell set for the cloud platform travels in the shipped file but never overrides a self-hosted operator's `CHAT_*_MODEL` configuration.

## Updating the catalog

What each change touches — this is the complete list:

| Change                              | You edit                                                                                                                     |
| ----------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- |
| Add a **block-selectable** model    | Catalog entry + one `LLMModel` name line (`llm_registry/llm_models.py`). An import-time check refuses to boot if they drift. |
| Add a **copilot-only** model        | Catalog entry.                                                                                                               |
| Change a price (post-cutover model) | Catalog entry.                                                                                                               |
| Change a price (pre-cutover model)  | Catalog entry + its snapshot line (see cost note).                                                                           |
| Kill / visibility / routing cell    | Catalog entry.                                                                                                               |

1. Edit `catalog.py` (add a model, change a cell, flip a flag).
2. Open a PR. Catalog-only diffs are reviewed by the `/review` bot — the integrity tests are the review.
3. Merge. CD propagates the change with the next deploy.

Two lanes:

* **Ordinary changes** (new models, metadata, visibility promotions) target `dev` and ride the normal release train.
* **Incident-speed changes** (kills, routing swaps) may use a `hotfix/*` branch targeting `master` — the base-branch check permits this — so the change deploys with CD immediately after merge. Reverting is `git revert` on the same lane. **Immediately merge `master` back to `dev` after a catalog hotfix**: until the back-merge lands, the next release train would silently revert your change (an emergency kill un-killing itself is the worst version of this).

Two notes. The file is public: a `HIDDEN` model is hidden from pickers, **not from anyone reading this repository** — genuinely embargoed models cannot ride this mechanism before announcement. And a catalog-only model (no enum line) simply never surfaces in blocks — it may and should still carry `cost`: copilot cost estimation uses it today and block billing picks it up automatically if the model later gains an enum line.

## How AutoPilot picks a model

Each `(mode, tier)` cell resolves through three layers, top wins:

1. **The `copilot-model-routing` feature flag** — per-user JSON flag returning model slugs; used for cohort experiments and rollouts. Optional: when the flag vendor is down, resolution falls through and only A/B targeting is lost.
2. **Catalog routing cell** — the PR-authored default above.
3. **`CHAT_*_MODEL` environment variables** — the bootstrap floor (see `.env.default`).

On the managed cloud, the catalog is the serve-time gate for layers 1–2: a slug that is unknown to the catalog or has `is_enabled: False` is refused — logged every time, reported to Sentry once per slug — and resolution falls through to the next layer. A typo'd slug in the flag therefore degrades to the default instead of erroring at users. Self-hosted installs and local transports skip the gate entirely (flag → env, their slugs are their own business). Assistant messages served by the baseline path are stamped with the model that served them and which layer picked it (`ChatMessage.model` / `routingSource`), which is what allows product-intelligence to compare model quality; the SDK path resolves through the same chain (message stamping covers the baseline path today).

## Rolling out a new model

1. Add the model to the catalog with `visibility="HIDDEN"` — registered and routable, invisible in any picker or public listing.
2. Send your test cohort (e.g. employees) to its slug on the `copilot-model-routing` PostHog flag: a variant whose JSON payload carries the slug, served by a release condition matching the cohort, in each environment's own project.
3. Watch product-intelligence quality scores segmented by the stamped model column.
4. Graduate: flip `visibility` to `GA` and set the routing cell in a catalog PR; remove the cohort's condition from the flag.

## Retiring a model

Retirement has two halves:

1. **Stop it serving**: a catalog PR setting `is_enabled: False`. On the managed cloud this is the kill switch: it beats the routing flag and hides the model from block pickers. Two caveats: if the model is also a `CHAT_*_MODEL` env default, the env floor still serves it (loudly — log + Sentry) until you change that default; and existing agent graphs referencing it keep executing and billing — the kill switch stops NEW serving, step 2 is what stops stored graphs. Self-hosted installs and local transports skip the catalog gate, so there it only hides the model from pickers: to stop AutoPilot serving it, remove its route from the `copilot-model-routing` flag and change any `CHAT_*_MODEL` default that still selects it.
2. **Migrate existing graph nodes** onto a replacement so users' agents keep working:

```bash
# dry run — prints affected node count and exits 1
python -m backend.data.llm_registry.retire <slug> --replacement <replacement-slug>

# execute (transactional, recorded, revertable)
python -m backend.data.llm_registry.retire <slug> --replacement <replacement-slug> --yes

# inspect / undo
python -m backend.data.llm_registry.retire --usage <slug>
python -m backend.data.llm_registry.retire --list
python -m backend.data.llm_registry.retire --revert <migration-id>
```

The replacement must exist in the catalog and be enabled. Every executed retirement writes a revertable `LlmModelMigration` record; only one active migration per source model is allowed at a time.

## Reading the catalog from clients

There is deliberately no public catalog API: the catalog ships inside the repo, so every deployment and self-hosted install already has the exact model list its code supports. When a frontend surface needs the live list (e.g. a catalog-driven model picker), add a small authenticated route that reads the in-process registry (`backend.data.llm_registry.registry`) — don't reach for an unauthenticated endpoint; the last one existed only to bootstrap DB-seeded installs, a problem the in-repo catalog no longer has.


# Agent Collaboration Architecture

When AutoPilot works on a request, it can hand part of the job to another agent — a teammate expert, or a fresh copy of itself with a clean context. That agent can hand off part of *its* job in turn. This document describes the limits that apply to everything started that way: which tools a handed-off job may use, how deep the chain may go, how many agents one request may use, and how much they may spend between them.

The short version: **a spawned agent can never do more than the agent that spawned it, and everything one request starts shares one budget and one head-count.** Both limits are enforced in one place in the code, and a job that would exceed either is refused before it starts, with a message the calling agent can act on.

The implementation is `autogpt_platform/backend/backend/copilot/tree.py`.

***

## A worked example

A user asks AutoPilot to draft a customer reply. AutoPilot delegates the research to an Ops expert and the tone pass to a Growth expert:

```
user types  ──▶  AutoPilot turn                 ← the root; one tree opens here
                   ├──▶ delegate → Ops          ← depth 1
                   └──▶ delegate → Growth       ← depth 1
                          └──▶ sub-session      ← depth 2
```

Four agents, one tree. Ops and Growth each get every tool AutoPilot has except the ones no delegated job should hold — connecting an integration, deleting things, hiring another expert. The sub-session Growth starts is narrower still, because it runs under Growth's own identity and shares its memory. All four turns draw on one spend ceiling and one allowance of eight agents: a fourth hop of depth would be refused, so would a ninth agent, and so would any turn starting after the ceiling is reached.

None of that is visible to the user unless a limit is hit, and then what they see is the agent finishing with what it has rather than an error.

***

## The vocabulary

Five words carry the rest of the document, plus two for the two shapes a spawn can take.

A **turn** is one agent doing one round of work: it reads a request, calls tools, and produces a response. A copilot session is a series of turns.

A **root** turn is one that no other agent started — a human typing, a schedule firing, an `AutoPilotBlock` inside a graph, a message arriving from a chat platform.

A **child** turn is one that a tool started: `run_sub_session`, `delegate_to_expert` or `handoff_to_expert`. Every child has exactly one parent.

A **tree** is a root turn plus every turn descended from it. The tree is the unit that gets a budget and a head-count. It is keyed on the root turn, not on the session, so a long-running expert thread opens a fresh tree with a fresh budget on every human message.

An **envelope** is the set of limits one turn carries: which tree it belongs to, how deep it sits, which tools it may call, whether its input is untrusted, and when it must stop. Each turn has its own, and a child's is computed from its parent's.

The two shapes get different treatment throughout:

* A **delegate** runs as a *different* expert — its own identity, its own memory, its own voice. `delegate_to_expert` and `handoff_to_expert` create delegates.
* An **isolate** runs as the *same* identity as its parent, with a clean context. `run_sub_session` creates isolates. Because an isolate shares its parent's memory and name, anything it stores the parent reads back next turn as its own, and anything it posts goes out under the parent's name.

***

## What a child may do

A child's tool set is computed from its parent's, and the computation can only take tools away:

```
child.tools = (parent's tools ∩ what the spawn asked for) − denied
```

`derive_child_envelope` (`tree.py:187`) is the only function that produces one. Nothing a model writes reaches it: the parent's own set comes from the turn that is running, not from a database row, and the subtraction of the denied list happens last, so no request shape can route around it.

**Every child loses these**, whatever kind it is (`DESCENT_DENIED_TOOLS`, `tree.py:72`):

| tool                                                                                         | why                                           |
| -------------------------------------------------------------------------------------------- | --------------------------------------------- |
| `connect_integration`                                                                        | binds the user's account to a third party     |
| `setup_agent_webhook_trigger`                                                                | registers a trigger that outlives the request |
| `update_preset`                                                                              | edits saved configuration                     |
| `delete_folder`, `delete_preset`, `delete_schedule`, `delete_skill`, `delete_workspace_file` | irreversible                                  |
| `hire_expert`, `raise_expert`, `update_expert`, `confirm_expert_change`                      | staffs the user's team                        |

None of these is part of a delegated job, so withholding them breaks nothing that worked, and it removes reach a spawned agent should never quietly have.

**An isolate additionally loses these** (`ISOLATE_DENIED_TOOLS`, `tree.py:96`): `post_to_chat_platform`, `schedule_followup`, `run_mcp_tool`, `store_skill`, `memory_store`, `add_understanding`.

The asymmetry is the point. A delegate keeps all six, because it runs under its own identity and its own memory — storing what it learned and posting a scheduled update are its job. An isolate is scratch space under someone else's name, so a memory it writes becomes the parent's memory and a message it posts appears to come from the parent.

**There is no way to grant a denied tool back.** The subtraction is last and absolute, so a parent that holds `post_to_chat_platform` still cannot pass it to an isolate. A job that genuinely needs a denied tool is one a human approves, not one an agent grants itself.

Two enforcement points, and the difference matters. The envelope's tool set is turned into a permission filter so the model is not *shown* tools it may not call, and `BaseTool.execute` (`tools/base.py:232`) *refuses* a call to anything outside the envelope. Hiding is presentation; the refusal is the control, and it covers both engines and every registered tool.

***

## How deep and how wide a tree gets

Depth is capped at **3 hops** (`MAX_DEPTH`, `tree.py:59`) and counts every spawn kind, isolates included. A fourth hop is refused with "This task is already 3 hops deep; do as much as you can yourself instead of passing it on again."

Head-count is capped at **8 turns per tree, the root included** (`tree_max_nodes`, `config.py:467`), so one request may start seven agents. This is a lifetime budget for the request, not a concurrency limit — the refusal says so, because an agent that reads "limit" assumes waiting will free a slot, and here it will not.

Both are enforced at `dispatch_turn` (`executor/utils.py`), which is the one function every turn passes through: the HTTP chat route, the scheduler, `AutoPilotBlock`, and all three spawn tools. A turn that is refused there never has any side effect — no session row, no queue message.

***

## What a tree can spend

A tree's spend ceiling is set when its first spawn opens it, from the user's subscription plan:

```
ceiling = min( the user's remaining daily/weekly budget,
               max( ½ × the plan's daily allowance, $0.50 ),
               $10.00 )
```

`resolve_root_ceiling_microdollars` (`tree.py:380`) computes it; the three constants are `tree_ceiling_fraction_of_daily`, `tree_ceiling_floor_microdollars` and `tree_ceiling_microdollars` (`config.py:442-466`). Scaling off the plan rather than a flat number is what keeps the ceiling proportionate, and it is why a user with no subscription gets zero: a plan that may not spend may not delegate.

On the code defaults, which is what production serves today — the two feature flags that can override the base limits and the tier multipliers (`copilot-cost-limits`, `copilot-tier-multipliers`) are both off there:

| Plan       | Daily allowance | Per-tree ceiling | Per-turn cap |
| ---------- | --------------: | ---------------: | -----------: |
| NO\_TIER   |           $0.00 |            $0.00 |            — |
| BASIC      |           $1.00 |            $0.50 |        $1.00 |
| PRO        |           $5.00 |            $2.50 |        $5.00 |
| MAX        |          $20.00 |           $10.00 |       $10.00 |
| BUSINESS   |          $60.00 |           $10.00 |       $10.00 |
| ENTERPRISE |          $60.00 |           $10.00 |       $10.00 |

Allowances are the `ChatConfig` base of $1.00/day times the plan's tier multiplier (`rate_limit.py:108`). The per-turn cap is a separate, older control — `min($10.00, the user's remaining budget)`, floored at $0.50 (`sdk/service.py:255`) — that bounds a single turn on the Claude/OpenRouter path. Ceilings are what a user who has spent nothing yet gets; they shrink through the day, because remaining budget is the first term of the `min`.

**Roots never touch the ledger.** A tree only exists once something is spawned, so the HTTP route, the scheduler and `AutoPilotBlock` are unchanged by any of this and pay nothing for it.

### Spend is counted, not reserved

The ledger is a Redis hash per tree — `copilot:tree:<tree_id>`, holding `ceiling`, `spent`, `nodes` and `max_nodes` — and `spent` only advances when a turn *ends*, from the same code path that feeds the per-user rate limit (`token_tracking.py:236`).

The consequence: **turns admitted at the same moment do not see each other's cost**, so a wide fan-out can overshoot. Seven children dispatched in one round all read `spent` before any of them has charged anything, and all seven are admitted. The worst case is therefore seven turns each running to its own per-turn cap — $7.00 on BASIC, $70.00 on MAX and above — not one turn's overshoot. The head-count cap is what makes that finite, which is why the two limits are enforced together and why eight is a small number.

Reserving at admission and reconciling at charge would fix it. It needs a per-query spend figure the Codex transport does not report, so it is not possible today: the SDK's own `max_budget_usd` is a per-query stop that rounds upward and does not exist on that transport at all.

### When the ledger is unreachable

Spawns fail closed and roots are unaffected. If Redis cannot be reached, a child turn is refused with "Could not account for this work right now; try again shortly"; the user's own turn runs, exactly as it does when the per-user rate limit degrades.

***

## Who may talk to whom

A child has exactly two edges: the request coming in from its parent, and its report going back. Nothing else can address it, and it can address nothing but its parent and its own children. Siblings never talk; if two children need the same data, the parent gives it to both.

There are no sibling, peer or broadcast edges, and that is a choice rather than an oversight. Two agents that can each wait on the other can deadlock, and the sub-session resume path could form exactly that shape before the creator rule below closed it. Every lateral edge is also a second place to enforce a limit the parent already enforces once.

`handoff_to_expert` is the one edge that moves ownership: the handoff turn is the last turn of the parent's tree, and every human message typed into the handed-off thread afterwards is a new root with a new tree and a new ceiling.

Three rules keep that shape honest:

* **Only the creator may resume, poll or cancel a child.** Each spawn writes `delegated_by_session_id`, and the resume path requires it to match. A session cannot resume itself and siblings cannot resume each other, which removes a self- and mutual-deadlock. Reading is deliberately looser — it keeps its existing scope-equality rule, because a same-scope reader is the same identity under the same user, and narrowing it broke a sub reporting progress and a handed-off expert reading its own task.
* **A spawn never queues into a turn already in flight.** That path appends the message to the running turn's buffer, which would execute a child's prompt inside another session's turn under *that* turn's permissions. All three spawn tools pass `allow_queue=False`, as does `AutoPilotBlock`; a busy target is refused and the caller is told to wait or start fresh.
* **A question goes to the parent, not to the human.** Only a root has a human attached, so escalation travels the same edges as reports, in the same direction, and lands once.

***

## What inherits, and what does not

Three classes, and which one a parameter falls into decides its rule.

**Ceilings** can only narrow on the way down: the tool set, depth, the tree's spend and head-count, the taint bit, the deadline, and the tenancy and billing route (which must be identical, never merely narrower). A request that asks to change one of these is clamped or refused, never granted.

**Identity-bound** state comes from *which* expert the child is, never from its parent: the expert's soul and voice, its memory namespace, its integrations and workflows, and its own weekly budget. A delegate writes to its own memory namespace, not its parent's — memory crossing between teammates is bounded by who was delegated to, not by the tree.

**Free within the ceiling** is the caller's choice: model, thinking effort, how long to wait for a result. Model tier deliberately does not inherit. A child that needs a stronger model for its narrow job should have one; what must not widen is the spend, and the ledger bounds that whatever model runs. Making tier monotone would push callers to over-provision the root so their children could be capable, which raises spend — the thing being bounded.

The expert's own weekly budget stays separate from the tree ledger on purpose. It is a per-identity guardrail its owner configured ("this expert may not burn more than X a week on schedules"); the ledger is a per-request spend bound. A breach pauses that expert's schedules everywhere, which is what the guardrail means, and folding it into the tree would hide it.

***

## Untrusted input

The envelope carries a **taint** bit: an agent is tainted if its parent was, or if it was started on untrusted input. It never clears — a new session id does not wash it, because the bit lives on the turn rather than on the session.

Taint flows down by inheritance and up by report. A parent that reads a tainted child's report is reading attacker-influenceable text and is tainted from that point. What confining a child buys is not a clean parent; it is that the *action surface* of the agent that touched the untrusted input can be made empty.

That is the case for pointing a narrow child at untrusted input: an agent with `read_workspace_file` and nothing effectful has no tool an injection can steer, and the worst it can produce is a misleading report — a bounded artefact the parent reads as data. One agent reading the same page itself gets steered mid-turn, before anyone sees anything.

**The guarantee belongs to the explicit read-only tool set, never to the default.** A child that merely inherited the default narrowing still holds `run_agent`, and `run_block`/`run_agent` reach outward-effecting blocks — including arbitrary HTTP through `SendWebRequestBlock` — most of which carry no sensitive-action flag. A descent-denied child is not an outward-safe child, and nothing here should be read as saying it is.

Today nothing in the merged code *sets* the taint bit except chat-platform sessions. The propagation exists ahead of the auto-mode approval gate — a separate, unlanded change that decides when a turn needs a human's approval — so that when it lands, a spawn cannot launder a tainted turn into a clean one.

***

## When a limit is hit

None of these produces an error page. Each returns a sentence to the calling agent, which reports to the user in its own words.

| situation                                                   | what happens                                                                                                                                                                           |
| ----------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Tree reaches its spend ceiling                              | The next spawn in that tree is refused: "This task has spent its budget; report what you have instead of starting more work." The turn already running continues and reports honestly. |
| Tree reaches 8 agents                                       | Refused, saying explicitly that this is a lifetime budget for the request and waiting will not free a slot.                                                                            |
| Fourth hop of depth                                         | Refused: do as much as you can yourself instead of passing it on again.                                                                                                                |
| A child crashes mid-turn                                    | Existing behaviour — the stream errors and the turn is `failed`. Its recorded cost is charged to the tree; nothing was reserved, so nothing leaks.                                     |
| Parent fans out past the per-user in-flight cap (15)        | Existing behaviour — the spawn is rejected before any side effect and the tree's head-count is decremented. Children are rejected, never queued behind a parent waiting on them.       |
| Two spawns race                                             | Both hit the ledger; the second either fits or is refused. Admission is increment-then-check with rollback, so a race can over-admit by one — that is the bound's stated slack.        |
| A session tries to resume or poll a child it did not create | Refused; the creator record does not match.                                                                                                                                            |
| Target session already has a turn in flight                 | Refused as busy, rather than appending to the running turn's buffer.                                                                                                                   |
| Redis unreachable                                           | Spawns fail closed; roots run.                                                                                                                                                         |
| A pre-existing child with no creator record                 | Cannot be resumed under the creator rule. A deliberate break: resuming it would mean resuming a child whose creator is unknown.                                                        |

***

## What changes for flows that work today

| flow                                                                                                                                                      | before                         | after                                                                                                                |
| --------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------ | -------------------------------------------------------------------------------------------------------------------- |
| A delegated or handed-off expert posts to a chat platform, schedules a follow-up, calls an MCP tool, stores a skill or stores memory                      | inherited from the parent      | **unchanged** — a delegate runs under its own identity, namespace and budget, so these stay in its default set       |
| A delegated or handed-off expert connects an integration, sets up a webhook trigger, edits a preset, or deletes a folder, preset, schedule, skill or file | inherited                      | **refused** — binds the account or is irreversible; rare, visible, and recoverable, never silent data loss           |
| A `run_sub_session` isolate posts outward, schedules, calls MCP, stores a skill, or writes memory                                                         | inherited                      | **refused** — this is the shared-namespace leak the design exists to close, and the change most likely to be noticed |
| A chain that used isolates to go past three hops                                                                                                          | unbounded through isolates     | **stops at depth 3** — isolates now count. A single isolate under a shallow chain is unaffected                      |
| Continuing a delegation to a teammate who is still working                                                                                                | queued into their running turn | **refused**, telling the caller to wait or start fresh                                                               |
| A sub-session's unanswered question                                                                                                                       | surfaced on Home               | goes to its parent instead — sub-sessions now record their creator, and Home excludes delegated threads              |

Whether the isolate memory-write default is too aggressive is a maintainer call; loosening it is removing two entries from `ISOLATE_DENIED_TOOLS`.

***

## What this deliberately does not do

* No orchestrator, planner, router or manager agent, and no message bus, task board or work-item model beyond the queue that exists.
* No lateral edges — no sibling, peer or broadcast communication.
* No shared memory or team-wide context; memory scoping is untouched.
* No voting, debate or multi-round negotiation.
* No budget *reservation*: the ledger counts, so nothing has to be returned.
* No per-file workspace permissions. The workspace is user-scoped and flat, and the storage layer cannot back a per-file capability; what a child gets is a path to read, not a permission.
* No cross-user spawning of any kind.

***

## Limits worth knowing about

**`run_agent` starts a fresh tree.** `run_agent` is not on the denied list, so a narrowed child keeps it, and it dispatches into the graph-executor process where the envelope does not exist. If that graph contains an `AutoPilotBlock`, the turn it starts is a *root*: unrestricted tools, depth 0, untainted, and a new tree with its own ceiling and head-count. A child's narrowing, its place under the depth bound and its share of the tree's budget are all reset. Nothing regresses against the previous behaviour, where spawned turns had no envelope at all. [#14265](https://github.com/Significant-Gravitas/AutoGPT/pull/14265) closes it by carrying the tree through `ExecutionContext` into the executor process, the same way expert identity already rides it for billing. Adding `run_agent` to the denied list is the one-line alternative, at the cost of every delegate's ability to run a graph.

**Graph spend is not on the ledger.** A graph run a child starts with `run_agent` is charged in credits to the user's wallet and to the expert's weekly budget, not to the tree. The ledger bounds LLM spend across the tree; the wallet and the weekly budget bound graph spend; they are not yet one number.

**Memory and the workspace are not tree-scoped.** Memory is shared along identity — an isolate shares its parent's namespace, and every AutoPilot turn for one user shares that user's. The workspace is user-wide. Neither can be made a tree property without rebuilding the storage layer, so the design closes the *write* side instead: isolates lose memory writes, and confining workspace writes to the writing session's own folder is a named follow-up below. A child can still read what its identity or its user can read.

**A tree bounds spend, not concurrency.** How many agents exist at once is still governed by the per-user in-flight cap of 15. Across an organisation that means total spend is bounded by the sum of users' own caps plus each tree's overshoot, with nothing summing across trees — but "3000 agents" means 3000 experts across many users and schedules, not 3000 sessions running at once under one root.

***

## Carried in the code but not reachable from any tool

So the shipped surface is not read as wider than it is:

* `tainted` propagates and is tested, but nothing reads it until the auto-mode gate lands.
* `SpawnRequest.max_seconds` has no caller, so `deadline_at` is always `None` and no deadline ever fires. There is no watcher either — the cancel function exists, nothing calls it on a timer.
* `SpawnRequest.tools` (the exact-set pin) has no caller, so the read-only quarantine shape described above is expressible in code but not selectable from any tool.
* `may_spawn=False` has no caller — all three spawn tools pass `True` — so no leaf is created in production.

***

## Designed, not built

The shape of what crosses an edge is settled and unimplemented. Today a spawn carries free text plus the existing preamble; `SpawnRequest` carries only `tools`, `may_spawn`, `shares_memory`, `max_seconds` and `born_tainted`. The intended request is a **brief** with named slots — the task written for someone who cannot see this thread, an inline payload for a child with no tool to read a reference, workspace paths as references, what the child may commit to, and what "done" looks like — and the intended response is a **report** with a status, a summary, findings that carry a verbatim quote each, the paths it wrote, and its taint bit.

Two slots earn a note. Saying what the child may commit to turns its boundary decisions into closed questions instead of guesses: in an internal evaluation, adding that list to an otherwise byte-identical prompt moved it from 9 correct verdicts out of 18 to 15. Findings that carry a quote are what make a report *checkable* rather than merely readable, which is what lets a parent audit a child without re-doing its work.

Also named and not built: the deadline watcher; block filters in the envelope (tools only today — `CopilotPermissions._parent` is a private attribute and is dropped when the queue entry is serialised); workspace write confinement; withholding the team roster from children that cannot spawn, which matters because injecting the full roster is the one part of session creation that grows with the number of experts.

***

## Where the code is

| what                                            | where                                                                     |
| ----------------------------------------------- | ------------------------------------------------------------------------- |
| Envelope, derivation, ledger, ceiling           | `copilot/tree.py`                                                         |
| The one seam every turn passes                  | `copilot/executor/utils.py::dispatch_turn`                                |
| Tool refusal                                    | `copilot/tools/base.py::BaseTool.execute`                                 |
| Charging a turn to its tree                     | `copilot/token_tracking.py`                                               |
| The running turn's envelope                     | `copilot/context.py::get_current_envelope`                                |
| Per-user daily/weekly caps and tier multipliers | `copilot/rate_limit.py`                                                   |
| Per-turn spend cap                              | `copilot/sdk/service.py::_resolve_dynamic_max_budget_usd`                 |
| The three spawn tools                           | `copilot/tools/{run_sub_session,delegate_to_expert,handoff_to_expert}.py` |
| Cross-expert chain check (loop detection)       | `copilot/tools/expert_delegation.py::chain_refusal`                       |
| Tests                                           | `copilot/tree_test.py`, `copilot/tools/sub_session_test.py`               |


# Local PC Executor Security Boundaries

Local PC execution is an experimental, explicitly selected execution target for a chat. Cloud remains the default. The companion runs on the selected computer and opens an outbound connection to the AutoGPT deployment. A phone or browser can browse that computer's folders after pairing; no native folder dialog or inbound port is required.

## Applying the Muse approach

[Meta's Muse security design](https://research.meta.ai/blog/security-and-safety-for-ai-agents-our-approach-with-muse) treats the model as potentially compromised. Its independent permission authority, isolated runtime, credential broker, and controlled network egress limit what a bad tool request can accomplish. These are separate protections: instructions to the model cannot substitute for any of them.

For this executor, the immediately applicable rule is that a model request cannot grant itself another machine, folder, or capability. Authorization lives in the authenticated platform routes and the companion's local configuration. The companion remains the final authority for whether a locally disabled operation can execute.

## Current boundaries

| Boundary                | Enforcement                                                                                                                                                                                                                                                                                                                                                                                                |
| ----------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Pairing                 | Public-client OAuth with PKCE, for the dedicated `CONNECT_LOCAL_EXECUTOR` scope: it grants the Local PC connection and nothing else, and API keys cannot carry it. The platform verifies user, client, and session ownership. Companion keychain records bind deployment, client, and credential-bearing endpoints. Legacy unscoped tokens require reauthentication; redirects cannot forward credentials. |
| Remote folder selection | One-level directory browsing returns expiring, connection-bound opaque references. A raw path supplied by a model is not a selection grant.                                                                                                                                                                                                                                                                |
| Chat binding            | A selected root grant binds machine, session, revision, canonical folder, and filesystem fingerprint. Reconnection cannot select a different execution target.                                                                                                                                                                                                                                             |
| Files                   | Each file operation validates its complete canonical path, including missing destinations. Content operations check opened descriptors and reject non-regular or multi-linked files before reading/truncating. Moves never fall back to copying across filesystems.                                                                                                                                        |
| Optional capabilities   | Shell, computer use, clipboard, and hardware require companion configuration. Platform flags or model output cannot enable them remotely. Local models and recording remain disabled previews.                                                                                                                                                                                                             |
| Computer use            | An authenticated UI decision is scoped to the user, session, machine, and advertised capabilities. Tool registration and invocation check the relevant capability.                                                                                                                                                                                                                                         |
| Transport               | Credential-bearing platform connections require HTTPS/WSS; plain HTTP/WS is reserved for explicit loopback development.                                                                                                                                                                                                                                                                                    |
| Cleanup                 | Deletion removes the persisted chat before best-effort connection cleanup. Cleanup does not create a new executor connection.                                                                                                                                                                                                                                                                              |

Folder browsing discloses directory names and paths to the paired deployment. Subsequent file contents, tool results, screenshots, and chat context can also pass through that deployment and the selected model provider. Running inference on a local model does not make this relay end-to-end private.

## What is not isolated

The companion is a process running as the operating-system user. It is not a VM or an OS sandbox. In particular:

* Enabling shell grants commands that user's ordinary file, credential, and network access. The selected folder is a working directory for commands, not a shell security boundary.
* Desktop input can act in applications outside the selected folder, and screenshots can include unrelated information on the screen.
* Descriptor checks reject existing hard-link aliases and unsafe content file types, but do not provide complete protection against another local process replacing directory ancestors, changing mounts, or adding links during use. Do not treat it as isolation from an attacker already running as the same user, or use a workspace another untrusted local process can rewrite.
* There is no independent credential broker, enforced network egress policy, taint tracking, or protection from a compromised platform account.
* Audit records aid investigation; they are not an external authorization system. A same-user attacker can access the companion and its state.

Use a dedicated OS account or disposable VM for untrusted projects or commands. Keep shell and desktop control disabled when file access is sufficient. Workflow recording remains disabled in the companion until its complete capture, consent, interpretation, and review path is ready. Local-model routing also remains disabled: policy/proxy scaffolding is not connected to the chat service, and platform-to-producer cancellation is not integrated. Its dormant handler has request/output limits and idle/total deadlines; those are not proof that a remote inference server has terminated internal work.

## Required security regression checks

Before expanding access, verify these cases at the tool boundary:

1. A Cloud chat rejects a local child connection. A Local PC chat rejects a different machine or folder in its handshake.
2. Expired browsing references, a changed connection, and mismatched pagination responses cannot select a folder. The UI clears invalid selection state.
3. File writes and moves reject outside-root destinations reached through a dangling symlink or traversal through nonexistent parents. Reads/writes reject existing hard links without accessing or truncating their shared contents; failed cross-device moves preserve the destination.
4. A screenshot or individual input grant does not authorize unrelated input actions. Revoked consent blocks subsequent calls.
5. An insecure remote transport is rejected before credentials are sent. Changed deployment/client/endpoints cannot reuse another scope's tokens; legacy records and redirects cannot forward credentials implicitly.
6. Failed session creation is compensated; a cleanup error after successful creation preserves the valid chat. Failed deletion does not detach it.

These deterministic tests remain necessary even if a model resists prompt injection in evaluations. Full Muse-style isolation would require a separate runtime and credential/egress broker on each supported OS. That is future architecture work, not a guarantee of this preview.


# What's New

What's new in Otto, your Experts and the AutoGPT Platform. We ship updates regularly and document everything here.

Release windows reflect how changes were grouped for publication and may overlap when work spans consecutive releases.

## 2026

| Date                                                                                                            | Highlights                                                                                                                          |
| --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| [November 6 – November 11](https://agpt.co/docs/platform/changelog/changelog/november-6-november-11-2026)       | Your plan before your trial, Wix for your team, Otto replies on a short brain dump, create and start a new Expert, Claude Fable 5.2 |
| [November 4](https://agpt.co/docs/platform/changelog/changelog/november-4-2026)                                 | Connect tools from the chat, the login page shows what's new, a friendlier first email, a clear Done at the end of each reply       |
| [October 27](https://agpt.co/docs/platform/changelog/changelog/october-27-2026)                                 | A brain dump that helps you answer, a calmer trial welcome, a guided first run, hire and start in one click, what pays for what     |
| [October 23](https://agpt.co/docs/platform/changelog/changelog/october-23-2026)                                 | Redesigned Team and Expert pages, an app that fits your phone, a lighter login, What's new in the app, Otto pauses at usage limits  |
| [October 8 – October 14](https://agpt.co/docs/platform/changelog/changelog/october-8-october-14-2026)           | Redesigned wallet, trial cancel keeps access, verified email at signup, Chats in the collapsed sidebar, shorter replies             |
| [September 24 – September 30](https://agpt.co/docs/platform/changelog/changelog/september-24-september-30-2026) | A bigger roster, Clay & Rock avatars, nested folders, multi-select answers, free trial on the paywall                               |
| [September 19](https://agpt.co/docs/platform/changelog/changelog/september-19-2026)                             | Meet your Experts: hire or raise an Expert, Expert pages, routines, Skills marketplace, Otto's desktop                              |
| [August 21 – September 4](https://agpt.co/docs/platform/changelog/changelog/august-21-september-4-2026)         | Chat shows its work, clickable answers, redesigned emails, memory settings                                                          |
| [July 29 – August 13](https://agpt.co/docs/platform/changelog/changelog/july-29-august-13-2026)                 | Paste screenshots into chat, voice onboarding, Claude Sonnet 5, single-container self-hosting                                       |
| [July 15 – July 22](https://agpt.co/docs/platform/changelog/changelog/july-15-july-22-2026)                     | New sidebar, composer plus menu, Telegram, workflow-building mode                                                                   |
| [June 18 – July 9](https://agpt.co/docs/platform/changelog/changelog/june-18-july-9-2026)                       | File folders, shareable chats, Discord bot                                                                                          |
| [May 7 – June 10](https://agpt.co/docs/platform/changelog/changelog/may-7-june-10-2026)                         | AutoPilot upgrades, redesigned login, live subscriptions, rebuilt settings                                                          |
| [April 10 – May 1](https://agpt.co/docs/platform/changelog/changelog/april-10-may-1-2026)                       | Artifacts panel, agent briefings, AI chat in builder                                                                                |
| [March 23 – April 9](https://agpt.co/docs/platform/changelog/changelog/march-23-april-9-2026)                   | Themed prompt categories, live timer stats, redesigned onboarding, copy your prompts                                                |
| [March 20 – March 25](https://agpt.co/docs/platform/changelog/changelog/march-20-march-25-2026)                 | Import workflows from other tools, marketplace UI polish, dry-run mode, parallel AutoPilot actions                                  |
| [March 13 – March 20](https://agpt.co/docs/platform/changelog/changelog/march-13-march-20-2026)                 | Refreshed marketplace, usage monitor, feedback button, personalized prompts                                                         |
| [March 5 – March 12](https://agpt.co/docs/platform/changelog/changelog/march-5-march-12-2026)                   | Folders, notifications, cleaner reasoning, inline outputs                                                                           |
| [February 26 – March 4](https://agpt.co/docs/platform/changelog/changelog/february-26-march-4-2026)             | Connect any app, share files, browse the web, run code, text-to-speech                                                              |
| [February 11 – 26](https://agpt.co/docs/platform/changelog/changelog/february-11-february-26-2026)              | Telegram bots, agent folders, rebuilt flow editor, major AutoPilot upgrade                                                          |
| [January 29 – February 11](https://agpt.co/docs/platform/changelog/changelog/january-29-february-11-2026)       | Voice input, persistent file workspace, Claude Opus 4.6, marketplace agent customization, rebuilt chat streaming                    |


# Your plan before your trial, Wix for your team, and Otto replies on a short brain dump

*November 6 – November 11, 2026*

**Platform versions:** `v0.11.1` · `v0.11.2`

## See your plan before you start your trial

The last step of onboarding now shows what your team will do before it asks for a card. Otto's plan sums up what Otto heard in your brain dump and lists your first three tasks in order, each with the Expert who will take it, next to your free trial and its timeline. The separate step for picking Experts is gone: the team in your plan joins when your trial starts. Home then opens on the same tasks, with **Start here** on the first one and the Expert who takes each. Remove a task you don't want, or hide the list until you need it. [#16308](https://github.com/Significant-Gravitas/AutoGPT/pull/16308)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-494f8967a20de68ea00c589d04b7baf77772e194%2Fv0112-plan-first-hero.gif?alt=media" alt="Talking to Otto during onboarding, then Otto&#x27;s plan with three tasks and the Expert for each beside the free trial, then Home opening on the same tasks"><figcaption><p>Plan first, then try it free</p></figcaption></figure>

## Wix joins the apps your team can use

Wix is now in **Connect a service**. Type **@wix** in the chat, or search for it in the dialog, sign in with your Wix account, and Otto and your Experts can work on your Wix sites. [#16650](https://github.com/Significant-Gravitas/AutoGPT/pull/16650)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-f00bec2e01f0eadb7513719c48825d27ad0bb832%2Fv0112-wix-hero.gif?alt=media" alt="Typing @wix in the chat box, choosing Connect an integration, and finding Wix, Calendly and Stripe in the Connect a service dialog"><figcaption><p>Type @ and the app, and connect it right there</p></figcaption></figure>

## Otto replies when your brain dump is too short

When what you said in onboarding is too short to plan from, such as a quick "Is this working?", the screen no longer reads like an error. It shows what Otto heard, Otto's reply and one easy question, "What do you want off your plate?", with an example for your role. **Talk** stays the main button, **Write** sits next to it, and the question stays in view while you answer. [#16654](https://github.com/Significant-Gravitas/AutoGPT/pull/16654)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-4231e40991bcde9f4c0f3d666d0969cc8e58bef6%2Fv0112-otto-replies-hero.gif?alt=media" alt="The onboarding screen showing Um, okay. Hi. Is this working?, then Otto&#x27;s reply asking What do you want off your plate?, then the pointer on Talk and Write"><figcaption><p>Otto shows what it heard and asks one easy question</p></figcaption></figure>

## Start a new Expert's chat in one click

When Otto suggests creating an Expert for something you asked for, the card now has **Create and start**. It creates the Expert and hands over the task in their own chat, the way **Hire and start** already does for hiring. Create or hire an Expert without a task and the card offers **Chat with** them, which opens their first chat with a short introduction. New Experts also show in **Recent chats** before you've talked to them, on desktop and in the phone menu. [#16689](https://github.com/Significant-Gravitas/AutoGPT/pull/16689)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-08dd3a4939451dba5da19b5de2b8d152fb0ce08e%2Fv0112-create-and-start-hero.gif?alt=media" alt="Otto&#x27;s card offering to create Nadia for the weekly SEO report, What Nadia will get opening, a click on Create and start, then Nadia working on the report with Open Nadia&#x27;s chat"><figcaption><p>Create and start hands the task to the new Expert</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **An action that needs your approval shows its card in the chat right away,** such as sending a Gmail message, instead of only after a reload, and **Needs you** on Home names the Expert who asked. ([#16697](https://github.com/Significant-Gravitas/AutoGPT/pull/16697))
* **Run a skill with a slash:** type **/** at the start of a message to see the chat's skills, and anything you type after the skill's name is passed to it. ([#14991](https://github.com/Significant-Gravitas/AutoGPT/pull/14991))
* **A few short questions you can skip:** why you're canceling a trial, how a finished task went, and a check when Otto thinks it got something wrong. ([#16348](https://github.com/Significant-Gravitas/AutoGPT/pull/16348))
* **The run card in a chat follows the run to the end,** and shows the error when it fails or stops. ([#16587](https://github.com/Significant-Gravitas/AutoGPT/pull/16587), [#16617](https://github.com/Significant-Gravitas/AutoGPT/pull/16617))
* **The side panel follows a file Otto rewrites,** so you see the new version without a click. ([#16640](https://github.com/Significant-Gravitas/AutoGPT/pull/16640))
* **A canceled trial gets a reminder** 3 days and 1 day before access ends, with **Resume my trial**. ([#16506](https://github.com/Significant-Gravitas/AutoGPT/pull/16506))
* **Middle-click or Cmd/Ctrl-click a link to an app page** in a reply to open it in a new tab. ([#16584](https://github.com/Significant-Gravitas/AutoGPT/pull/16584))
* **A workflow with a trigger can also take its own inputs.** ([#11220](https://github.com/Significant-Gravitas/AutoGPT/pull/11220))
* **New models:** Claude Fable 5.2, Meta Muse Ember and Tencent Hy4. ([#16699](https://github.com/Significant-Gravitas/AutoGPT/pull/16699), [#16700](https://github.com/Significant-Gravitas/AutoGPT/pull/16700), [#16605](https://github.com/Significant-Gravitas/AutoGPT/pull/16605))
* **New blocks:** Firecrawl's data tools for people, company and other records, 21 Treg blocks for people, company and web data, and new Exa blocks for its current API, with the Exa Research blocks working again. ([#16561](https://github.com/Significant-Gravitas/AutoGPT/pull/16561), [#16393](https://github.com/Significant-Gravitas/AutoGPT/pull/16393), [#16395](https://github.com/Significant-Gravitas/AutoGPT/pull/16395))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **The first onboarding screen introduces your team,** with each Expert's role under their name and a line on what a few of them do, and its names are easy to read on a phone. ([#16623](https://github.com/Significant-Gravitas/AutoGPT/pull/16623))
* **Otto's points on the Meet Otto screen line up.** ([#16620](https://github.com/Significant-Gravitas/AutoGPT/pull/16620))
* **A number too long for a JSON field gets a hint** to put it in quotes so every digit is kept. ([#16710](https://github.com/Significant-Gravitas/AutoGPT/pull/16710))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **The Unsubscribe link in our emails opens a page to confirm** instead of an error. ([#16670](https://github.com/Significant-Gravitas/AutoGPT/pull/16670))
* **New accounts start with onboarding,** not a plan or credits prompt, including after you switch accounts. ([#16629](https://github.com/Significant-Gravitas/AutoGPT/pull/16629))
* **Home stays put after you pay during onboarding** instead of jumping back and forth. ([#16671](https://github.com/Significant-Gravitas/AutoGPT/pull/16671))
* **Paying early during a trial starts your plan** instead of leaving the paywall up. ([#16649](https://github.com/Significant-Gravitas/AutoGPT/pull/16649))
* **An Expert's run with a failed step shows as failed,** never as done. ([#16684](https://github.com/Significant-Gravitas/AutoGPT/pull/16684))
* **Otto no longer says a connected account isn't connected** when the app turns down a request, and names the cause of a failure only when the error states it. ([#16704](https://github.com/Significant-Gravitas/AutoGPT/pull/16704), [#16586](https://github.com/Significant-Gravitas/AutoGPT/pull/16586))
* **An AI step too large for its provider stops at once** with a clear message instead of retrying. ([#16703](https://github.com/Significant-Gravitas/AutoGPT/pull/16703))
* **Optional workflow inputs work:** with Advanced on, an input can be left blank. ([#16706](https://github.com/Significant-Gravitas/AutoGPT/pull/16706))
* **A run's output file no longer replaces an earlier one with the same name,** and is saved beside it as `output (1)`. ([#16343](https://github.com/Significant-Gravitas/AutoGPT/pull/16343))
* **Chat keeps text that looks like a tag,** such as `<first name>`, and shell text like `$HOME` stays text instead of turning into math. ([#16426](https://github.com/Significant-Gravitas/AutoGPT/pull/16426), [#16559](https://github.com/Significant-Gravitas/AutoGPT/pull/16559))
* **Delete Telegram Message reports success** when the message is deleted. ([#16216](https://github.com/Significant-Gravitas/AutoGPT/pull/16216))
* **An image with the wrong file extension uploads.** ([#12017](https://github.com/Significant-Gravitas/AutoGPT/pull/12017))
* **A creator's Marketplace card counts only the workflows on their page.** ([#16614](https://github.com/Significant-Gravitas/AutoGPT/pull/16614))

</details>


# Connect tools from the chat, a login page that shows what's new, and a friendlier first email

*November 4, 2026*

**Platform versions:** `v0.11.0`

## Connect a tool without leaving the chat

Type **@** and the name of a tool you haven't connected yet, and the list now ends with **Connect an integration**. It opens the **Connect a service** dialog already searching for what you typed, and once you connect, the new account is ready to mention. The dialog itself opens on the services most people want, Google, GitHub, Notion, Linear, Discord, X, HubSpot and Airtable, with a line under each saying what it covers, and the rest follow in order of popularity. When Otto needs an account to continue, its card now names the app, shows which account it will use and lets you switch or sign in from there. [#16306](https://github.com/Significant-Gravitas/AutoGPT/pull/16306) [#16316](https://github.com/Significant-Gravitas/AutoGPT/pull/16316) [#16280](https://github.com/Significant-Gravitas/AutoGPT/pull/16280)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-3878ed3a361f451109ae7a8770470213bc1dd777%2Fv0110-connect-hero.gif?alt=media" alt="Typing @hubspot in the chat box, choosing Connect an integration, and the Connect a service dialog showing HubSpot and then the Popular services"><figcaption><p>From @ to connected, in the chat</p></figcaption></figure>

## The login page shows what's new

The **What's new** panel on the login page now lists the three latest releases from this changelog, each linking to its page. The signup page describes what you're signing up for: a team of AI experts, led by Otto, that takes work off your plate. [#16326](https://github.com/Significant-Gravitas/AutoGPT/pull/16326) [#16314](https://github.com/Significant-Gravitas/AutoGPT/pull/16314)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-800a4811c1d8b3c09fc099726084b29c03ac7457%2Fv0110-login-hero.gif?alt=media" alt="The login page with the latest changelog entries in its What&#x27;s new panel, then the signup page"><figcaption><p>The latest releases on the login page, and the new signup panel</p></figcaption></figure>

## A friendlier "Confirm your email" email

The email that confirms your address, often the first one you get from AutoGPT, now matches the rest of our emails: Otto at the top, one clear button, and three steps that show where you are in getting started. [#16279](https://github.com/Significant-Gravitas/AutoGPT/pull/16279)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-fa8a7a8fadbd78a1fd763f3d91e23b9dd8f0dac3%2Fv0110-confirm-email-hero.png?alt=media" alt="The Confirm your email address email with Otto, a Confirm email address button and three getting-started steps"><figcaption><p>The new confirmation email</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **You can tell when Otto is done:** the latest reply ends with "Done in 2m 14s" when it finished, or "Stopped after 8s" when you stopped it. ([#16225](https://github.com/Significant-Gravitas/AutoGPT/pull/16225))
* **Long tasks speak plainly and show a clock:** "Picking up where we left off…" instead of internal wording, and a timer on any step that runs for a while. ([#16226](https://github.com/Significant-Gravitas/AutoGPT/pull/16226))
* **Turn on notifications from the chat in one click,** so you hear when Otto or your Experts finish. ([#16227](https://github.com/Significant-Gravitas/AutoGPT/pull/16227))
* **Thumbs up and down work on a reply that just finished,** without a reload. ([#16228](https://github.com/Significant-Gravitas/AutoGPT/pull/16228))
* **A shorter spend check-in:** when an Expert passes the spending check-in you set, the card reads "Maria has done 300 credits of work this week" with **Keep going** or **Cancel**, and every paused run waits under one approval instead of only the newest. ([#16352](https://github.com/Significant-Gravitas/AutoGPT/pull/16352), [#16303](https://github.com/Significant-Gravitas/AutoGPT/pull/16303))
* **Hiring an Expert yourself completes the wallet's marketplace task** and earns its $1. ([#16391](https://github.com/Significant-Gravitas/AutoGPT/pull/16391))
* **New blocks:** Parallel's yes/no, choice and score decisions, answered from current web sources. ([#16310](https://github.com/Significant-Gravitas/AutoGPT/pull/16310))
* **New models:** Gemini 3.5 Flash, Gemini 3.5 Flash Lite and Gemini 3.1 Flash Lite. ([#15087](https://github.com/Significant-Gravitas/AutoGPT/pull/15087))
* **Favorites search finds every favorite,** and the library briefing counts your whole library. ([#16467](https://github.com/Significant-Gravitas/AutoGPT/pull/16467), [#16510](https://github.com/Significant-Gravitas/AutoGPT/pull/16510))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **All eight onboarding roles fit on a phone** in a two-column grid. ([#16256](https://github.com/Significant-Gravitas/AutoGPT/pull/16256))
* **A menu you open while Home is loading stays open,** such as the profile menu. ([#16342](https://github.com/Significant-Gravitas/AutoGPT/pull/16342))
* **The memory chat points you to a plan** when yours doesn't include it, instead of showing an error. ([#16177](https://github.com/Significant-Gravitas/AutoGPT/pull/16177))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **You stay signed in** through a network blip or an update. ([#15386](https://github.com/Significant-Gravitas/AutoGPT/pull/15386))
* **An open tab picks up an update** instead of leaving a button that does nothing. ([#16312](https://github.com/Significant-Gravitas/AutoGPT/pull/16312))
* **Links to app pages in a reply open** instead of showing "\[blocked]". ([#16466](https://github.com/Significant-Gravitas/AutoGPT/pull/16466))
* **A declined card on auto top-up says why** and tries your next saved card. ([#15600](https://github.com/Significant-Gravitas/AutoGPT/pull/15600))
* **The onboarding brain dump accepts real answers** it used to reject: typed answers, long ones and answers in Indic scripts. ([#16344](https://github.com/Significant-Gravitas/AutoGPT/pull/16344), [#16571](https://github.com/Significant-Gravitas/AutoGPT/pull/16571))
* **Ten X blocks accept your X connection.** ([#16388](https://github.com/Significant-Gravitas/AutoGPT/pull/16388))
* **Workflows on retired Claude models move to the closest current one** instead of the platform default. ([#16191](https://github.com/Significant-Gravitas/AutoGPT/pull/16191))

</details>


# A brain dump that helps you answer, a calmer trial welcome, and a guided first run

*October 27, 2026*

**Platform versions:** `v0.10.0`

## Tell Otto about your work, with a little help

The onboarding step where you tell Otto about your work now helps you answer. It says why it matters (Otto uses it to pick your Experts and plan your first week), and shows questions Otto might ask, picked for the role you chose a step earlier, with **Another question** when one doesn't fit. Example answers float around the page on wide screens. If your browser blocks the microphone, or there isn't one, the step tells you, switches you to typing and gives you a way to **try the microphone again**. Skipping still works, and going **Back** to write something after you skipped now takes your answer and builds your team from it. [#16252](https://github.com/Significant-Gravitas/AutoGPT/pull/16252) [#16067](https://github.com/Significant-Gravitas/AutoGPT/pull/16067) [#16009](https://github.com/Significant-Gravitas/AutoGPT/pull/16009) [#16207](https://github.com/Significant-Gravitas/AutoGPT/pull/16207)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-b359c74286f088c561b868c947694cc2652bc692%2Fv0100-brain-dump-hero.gif?alt=media" alt="The brain dump step at rest with Talk and Write, then typing with an Otto might ask question, then recording"><figcaption><p>Questions Otto might ask, picked for your role</p></figcaption></figure>

## A calmer welcome before your trial

The payment step near the end of onboarding is now one welcome card instead of a grid of plans. It names the Experts you just hired and lays out your trial on a short timeline: when it starts, when your first payment is due and the last day you can cancel without paying. [#16036](https://github.com/Significant-Gravitas/AutoGPT/pull/16036)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-37bd8f719d9eacea9c3afb563d618eefe70e2c60%2Fv0100-trial-welcome-hero.png?alt=media" alt="The onboarding trial welcome card with Otto, the hired Experts and a three-step trial timeline"><figcaption><p>The new trial welcome at the end of onboarding</p></figcaption></figure>

## A guided first run over the real app

New accounts get a short walkthrough of the app itself: it dims the page and lights up one real control at a time, Chats, Team, Files and your allowance in the wallet, and ends on a suggested first task. A few one-time tips appear later, the first time they matter, such as when you open a second chat. **Show me around** in the profile menu replays it any time. The sidebar now starts expanded, so your chats are in view from the first minute, and the wallet stays in the sidebar when you collapse it. [#16107](https://github.com/Significant-Gravitas/AutoGPT/pull/16107) [#16024](https://github.com/Significant-Gravitas/AutoGPT/pull/16024)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-ccc15c90f71932bf1f2d402171c02d0eee6d38d3%2Fv0100-first-run-hero.gif?alt=media" alt="The first-run walkthrough lighting up Chats, Team, Files and the wallet in turn"><figcaption><p>The walkthrough points at the real controls</p></figcaption></figure>

## Hire an Expert and hand over the task in one click

When Otto suggests hiring an Expert for something you asked for, the card now has one button, **Hire and start**. It hires the Expert and starts the task in their own chat, so you no longer have to say "go ahead" twice. The card then shows where the task stands, and if it couldn't start, it says why. [#16101](https://github.com/Significant-Gravitas/AutoGPT/pull/16101)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-b706e10a90cd13bd175edb9bfffddf2ecf5ae7b6%2Fv0100-hire-handoff-hero.png?alt=media" alt="Otto&#x27;s hire card with Hire and start and Not now, and below it the same card once the Expert is working on the task"><figcaption><p>The hire card, and the same card once the task has started</p></figcaption></figure>

## See what pays for what

A new **How usage and credits work** dialog answers four questions in plain words: what your chat usage covers, what automation credits are for, when your card is charged and how to get more. Open it from **How it works** in the wallet or the info icon on Billing & usage. The wallet itself is shorter, and a trial shows one line with the day your plan starts. [#16095](https://github.com/Significant-Gravitas/AutoGPT/pull/16095)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-8e84c822a6969e917869beee4c7cbac8d4d58b43%2Fv0100-usage-explainer-hero.gif?alt=media" alt="The wallet opening from the sidebar, then How it works opening the How usage and credits work dialog"><figcaption><p>One place that explains usage, credits and charges</p></figcaption></figure>

## Pick an Airtable base from a list

Otto no longer asks you to copy an ID out of a URL. After you connect Airtable, the setup card shows **Choose a base** with your bases by name, greys out the ones that step can't use and adds a search box when you have many. [#16094](https://github.com/Significant-Gravitas/AutoGPT/pull/16094)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-5e9b1ce17110bd8d45c86ca3935940ff9014f976%2Fv0100-airtable-picker-hero.png?alt=media" alt="The Airtable setup card with a Choose a base dropdown listing bases by name"><figcaption><p>Choose a base instead of pasting an ID</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **Onboarding and Otto's first greeting look sharper:** larger text, clear marks while your team is prepared, Otto's picture in the greeting and your first tasks as a grid of cards with the logos of the tools they use. ([#16236](https://github.com/Significant-Gravitas/AutoGPT/pull/16236))
* **Otto's first greeting names every problem you described,** including the ones Otto will work through with you, and each gets a suggested first task. ([#16165](https://github.com/Significant-Gravitas/AutoGPT/pull/16165))
* **Settings → Memory shows what Otto knows about your work** from onboarding, with a **Forget this** button. ([#16014](https://github.com/Significant-Gravitas/AutoGPT/pull/16014))
* **Files and Recent work show what you asked for:** Otto's working files and your Experts' skill files no longer clutter them or count toward your storage. ([#16028](https://github.com/Significant-Gravitas/AutoGPT/pull/16028), [#16039](https://github.com/Significant-Gravitas/AutoGPT/pull/16039))
* **Every step in a chat has a readable label,** and a lookup that finds nothing says so instead of showing an empty `[]`. ([#16034](https://github.com/Significant-Gravitas/AutoGPT/pull/16034))
* **A file link in a reply opens the file in the side panel** instead of downloading it. ([#16065](https://github.com/Significant-Gravitas/AutoGPT/pull/16065))
* **The paywall tells you when your scheduled workflows are paused** until you pick a plan. ([#16072](https://github.com/Significant-Gravitas/AutoGPT/pull/16072))
* **A new thinking indicator:** a single line that draws itself while Otto works. ([#15941](https://github.com/Significant-Gravitas/AutoGPT/pull/15941))
* **New models:** Kimi K3.1 Pro and GPT-6.1 Terra. ([#16096](https://github.com/Significant-Gravitas/AutoGPT/pull/16096), [#16261](https://github.com/Significant-Gravitas/AutoGPT/pull/16261))
* **Cloudflare is in the list of tools you can connect.** ([#16217](https://github.com/Significant-Gravitas/AutoGPT/pull/16217))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **After onboarding, the Home chat box asks what Otto should take on first.** ([#16209](https://github.com/Significant-Gravitas/AutoGPT/pull/16209))
* **The What's new card skips releases from before you joined.** ([#16160](https://github.com/Significant-Gravitas/AutoGPT/pull/16160))
* **"Thought for" shows the same time before and after a reload.** ([#16073](https://github.com/Significant-Gravitas/AutoGPT/pull/16073))
* **Home's team tile says "Open team"** when it already lists everyone. ([#16068](https://github.com/Significant-Gravitas/AutoGPT/pull/16068))
* **The storage label on Files is easier to read.** ([#16102](https://github.com/Significant-Gravitas/AutoGPT/pull/16102))
* **A new Expert's first questions keep the keyboard,** so letter shortcuts pick options instead of typing into the chat. ([#16019](https://github.com/Significant-Gravitas/AutoGPT/pull/16019))
* **Screen readers announce what the chat's side panels hold on phones.** ([#16213](https://github.com/Significant-Gravitas/AutoGPT/pull/16213))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Question cards from Otto stay on screen** once they are asked. ([#16082](https://github.com/Significant-Gravitas/AutoGPT/pull/16082))
* **An Expert's setup questions are answered in the chat that asked them,** even when you open that Expert from the Team page. ([#16018](https://github.com/Significant-Gravitas/AutoGPT/pull/16018))
* **The hire step recommends a team from your brain dump again,** with three Experts when it has to fall back. ([#16010](https://github.com/Significant-Gravitas/AutoGPT/pull/16010))
* **Signing up with an address that can't receive mail says so** instead of telling you to check your inbox. ([#16057](https://github.com/Significant-Gravitas/AutoGPT/pull/16057))
* **An email sign-up is greeted as "there"** instead of by the start of the address. ([#16208](https://github.com/Significant-Gravitas/AutoGPT/pull/16208))
* **A message that mentions one connected account** no longer ends in a stray "\_\_". ([#16142](https://github.com/Significant-Gravitas/AutoGPT/pull/16142))
* **Turning off browser notifications stops them.** ([#16171](https://github.com/Significant-Gravitas/AutoGPT/pull/16171))
* **Home's credits warning counts only workflow schedules,** and older scheduled runs show as "Scheduled run" with the workflow's name. ([#16063](https://github.com/Significant-Gravitas/AutoGPT/pull/16063), [#16058](https://github.com/Significant-Gravitas/AutoGPT/pull/16058))
* **An AI step the provider refuses says so in plain words** instead of an unknown error. ([#16059](https://github.com/Significant-Gravitas/AutoGPT/pull/16059))

</details>


# Expert pages with an Overview, an app that fits your phone, and a lighter login

*October 23, 2026*

**Platform versions:** `v0.9.0`

## Expert pages that show how your team is doing

The Team page and every Expert's page were redesigned. Team has search and a category filter, and each card shows the Expert's role, budget, skills and workflows. Open an Expert and you land on a new **Overview** tab: a short introduction in the Expert's own words, conversations, workflow runs and outputs compared with the 30 days before, a chart of the last 30 days and an activity grid. The Expert's personality and instructions moved to their own **Soul** tab, and its files to a **Files** tab, next to Schedules, Workflows, Computer, Integrations, Skills and Settings. [#15500](https://github.com/Significant-Gravitas/AutoGPT/pull/15500)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-641378023667d340320dbdfeefe70c1c8450fbf7%2Fv090-team-hero.gif?alt=media" alt="The Team page, then Frankie&#x27;s Expert page opening on the Overview tab and switching to the Soul tab"><figcaption><p>From the Team page to an Expert's Overview and Soul</p></figcaption></figure>

## Built for your phone

Chat, the sidebar, the Team page and Expert pages were reworked for small screens. The keyboard no longer pops up when a chat opens and closes after you send, message actions are always visible and easy to tap, long links and code wrap instead of running off the screen, and the menu closes as soon as you pick a page. On a phone the **+** menu has **Take photo**, which opens the camera and attaches the shot. Images you attach now show as small pictures in the chat box and in the conversation, so you can see which photo you sent without opening the side panel. [#15500](https://github.com/Significant-Gravitas/AutoGPT/pull/15500) [#15545](https://github.com/Significant-Gravitas/AutoGPT/pull/15545) [#15769](https://github.com/Significant-Gravitas/AutoGPT/pull/15769) [#15692](https://github.com/Significant-Gravitas/AutoGPT/pull/15692) [#15882](https://github.com/Significant-Gravitas/AutoGPT/pull/15882)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-24d1723c50c02e584445d2894f4d26151a8d4886%2Fv090-phone-hero.png?alt=media" alt="Three phones showing the sidebar menu, the Team page and Frankie&#x27;s Expert page at phone width"><figcaption><p>The sidebar, the Team page and an Expert page on a phone</p></figcaption></figure>

## A lighter, faster login and signup

Login and signup now look like the rest of the app: a light side panel with Otto and two Experts, white cards and the same type as the Marketplace. The animated backgrounds are gone, so the first page new people see loads faster, especially on phones. [#15876](https://github.com/Significant-Gravitas/AutoGPT/pull/15876)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-b817cefc93a4b935a632607e0259f9740d30d5d0%2Fv090-login-motion.gif?alt=media" alt="The restyled login page with an email being typed and the pointer resting on Log in"><figcaption><p>The new login page</p></figcaption></figure>

## See what's new without leaving the app

When a new release comes out, a small **What's new** card appears in the corner of the app with the release dates, its top three changes and a link to the full changelog. It shows once per release and fades after a few seconds, and hovering over it keeps it open. [#12652](https://github.com/Significant-Gravitas/AutoGPT/pull/12652)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-f0ec839d86391be25952f05a4c47542688e513bb%2Fv090-whats-new-hero.gif?alt=media" alt="The What&#x27;s new card appearing in the bottom corner of the Team page"><figcaption><p>The What's new card links straight to this changelog</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **Otto pauses at a usage limit instead of failing:** a reply that reaches your limit stops with its progress saved and a Paused card in the chat that says when your budget resets, with **Resume** at that time or **Upgrade**. A very long task checks in with **Keep going** or **Stop here**. ([#15388](https://github.com/Significant-Gravitas/AutoGPT/pull/15388), [#15390](https://github.com/Significant-Gravitas/AutoGPT/pull/15390), [#15401](https://github.com/Significant-Gravitas/AutoGPT/pull/15401))
* **Write now, send when your budget resets:** with no budget left you can still type a message and choose **Send at reset**, and a hint warns you when today's budget is running low. ([#15403](https://github.com/Significant-Gravitas/AutoGPT/pull/15403))
* **Clearer trial and upgrade charges:** a trial can start its paid plan early with **Start Pro now**, showing the price and start date first, a trial whose first charge failed shows one **Pay now** button, and an upgrade shows the exact charge before you confirm. ([#15215](https://github.com/Significant-Gravitas/AutoGPT/pull/15215))
* **Scheduled chats say what went wrong:** a skipped run leaves one note saying why, with the fix on a button; a chat that keeps failing the same way pauses itself, tells you, shows up on Home and resumes when you reconnect the account it needs; and a usage-limit note offers **Run less often**. ([#15374](https://github.com/Significant-Gravitas/AutoGPT/pull/15374), [#15375](https://github.com/Significant-Gravitas/AutoGPT/pull/15375), [#15377](https://github.com/Significant-Gravitas/AutoGPT/pull/15377), [#15400](https://github.com/Significant-Gravitas/AutoGPT/pull/15400))
* **Hire the whole recommended team in one click** during onboarding, with a tick on each card to leave someone out. ([#15836](https://github.com/Significant-Gravitas/AutoGPT/pull/15836))
* **A new Expert's first questions are easier to answer:** pick more than one option, check your answers before sending, and use the keyboard anywhere in the card. ([#15874](https://github.com/Significant-Gravitas/AutoGPT/pull/15874))
* **Otto's suggested first tasks stay on Home** until you hide them, and the ones you started show as in progress. ([#15837](https://github.com/Significant-Gravitas/AutoGPT/pull/15837))
* **Answered questions stay readable in the chat,** including after a reload and in shared chats. ([#15873](https://github.com/Significant-Gravitas/AutoGPT/pull/15873))
* **Otto can look at images in your files,** including PDF pages and video frames it renders. ([#15725](https://github.com/Significant-Gravitas/AutoGPT/pull/15725))
* **Each morning briefing opens in its own Otto chat** instead of landing in your latest conversation. ([#15222](https://github.com/Significant-Gravitas/AutoGPT/pull/15222))
* **New models:** Claude Haiku 5.5 and Meta Muse Spark Open. ([#15307](https://github.com/Significant-Gravitas/AutoGPT/pull/15307), [#15566](https://github.com/Significant-Gravitas/AutoGPT/pull/15566))
* **New blocks:** **Update Notion page properties** and **Append to Notion page**, and a block that emails you your own result with no sign-in needed. ([#15861](https://github.com/Significant-Gravitas/AutoGPT/pull/15861), [#15838](https://github.com/Significant-Gravitas/AutoGPT/pull/15838))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **The sidebar layout is the only layout,** so pages no longer flash the old top bar while loading. ([#15106](https://github.com/Significant-Gravitas/AutoGPT/pull/15106))
* **The sidebar remembers whether you left it open or closed.** ([#15574](https://github.com/Significant-Gravitas/AutoGPT/pull/15574))
* **Tooltips no longer block clicks** on what is underneath them. ([#14370](https://github.com/Significant-Gravitas/AutoGPT/pull/14370))
* **A shared Marketplace link previews with its one-line summary** instead of a cut-off description. ([#14496](https://github.com/Significant-Gravitas/AutoGPT/pull/14496))
* **Otto, your Experts and workflows are named correctly** in the usage-limit, billing and confirmation messages that still used older names. ([#15590](https://github.com/Significant-Gravitas/AutoGPT/pull/15590), [#15704](https://github.com/Significant-Gravitas/AutoGPT/pull/15704), [#15768](https://github.com/Significant-Gravitas/AutoGPT/pull/15768))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Needs you updates right after you answer a question.** ([#15501](https://github.com/Significant-Gravitas/AutoGPT/pull/15501))
* **A second tap right after Send no longer stops your message.** ([#15547](https://github.com/Significant-Gravitas/AutoGPT/pull/15547))
* **A message sent right after Stop stays on screen,** and sending the same message again works once the last one finished. ([#15931](https://github.com/Significant-Gravitas/AutoGPT/pull/15931), [#15918](https://github.com/Significant-Gravitas/AutoGPT/pull/15918))
* **A message set to send at reset from a new chat survives a reload.** ([#15592](https://github.com/Significant-Gravitas/AutoGPT/pull/15592))
* **Files attached in an Expert's side-panel chat are sent,** and your message shows at once. ([#15582](https://github.com/Significant-Gravitas/AutoGPT/pull/15582))
* **Deleting a chat is instant.** ([#15579](https://github.com/Significant-Gravitas/AutoGPT/pull/15579))
* **The tab title no longer shows a growing activity counter.** ([#15568](https://github.com/Significant-Gravitas/AutoGPT/pull/15568))
* **Typing in Japanese, Chinese or Korean works** in fields that reformat what you type. ([#15649](https://github.com/Significant-Gravitas/AutoGPT/pull/15649))
* **A long or blank Marketplace search** no longer breaks the search page. ([#15587](https://github.com/Significant-Gravitas/AutoGPT/pull/15587))
* **Checkout buttons stay busy until the payment page opens,** and work when your browser translates the page. ([#15603](https://github.com/Significant-Gravitas/AutoGPT/pull/15603), [#15612](https://github.com/Significant-Gravitas/AutoGPT/pull/15612))
* **Onboarding:** the brain dump fits short screens, shows the 20,000-character limit as you type, and skips on the first click; leaving an Expert out of the hire step takes a mouse click again; and a slow connection no longer stops your answers from saving. ([#15610](https://github.com/Significant-Gravitas/AutoGPT/pull/15610), [#15960](https://github.com/Significant-Gravitas/AutoGPT/pull/15960), [#15927](https://github.com/Significant-Gravitas/AutoGPT/pull/15927), [#15957](https://github.com/Significant-Gravitas/AutoGPT/pull/15957), [#15814](https://github.com/Significant-Gravitas/AutoGPT/pull/15814))
* **Billing and trial emails** have the right amounts and dates and fit phone screens. ([#15552](https://github.com/Significant-Gravitas/AutoGPT/pull/15552))

</details>


# A clearer wallet, a kinder trial, and shorter replies from Otto

*October 8 – October 14, 2026*

**Platform versions:** `v0.8.3` · `v0.8.4`

## Sign up with less in the way

The signup page lost its checkbox and its demo link. "Already a member? Log in" sits under the title, and one line under the buttons covers the terms and privacy policy and lets you opt out of marketing email with a single click. Email sign-ups verify their address before the first session, so one person cannot spin up trial after trial. Once you are signed in and onboarded you land straight on Home. [#15152](https://github.com/Significant-Gravitas/AutoGPT/pull/15152) [#15135](https://github.com/Significant-Gravitas/AutoGPT/pull/15135) [#15095](https://github.com/Significant-Gravitas/AutoGPT/pull/15095) [#15155](https://github.com/Significant-Gravitas/AutoGPT/pull/15155) [#15201](https://github.com/Significant-Gravitas/AutoGPT/pull/15201)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-c473a4728c1729e722dc4acbab7512cf79f8b9c7%2Fv083-login-motion.gif?alt=media" alt="The AutoGPT login screen with an email and password being entered"><figcaption><p>Logging in: the front door of the platform</p></figcaption></figure>

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-e529fc702ae96810c729830d7ce0d2a506379c5e%2Fv083-signup-hero.png?alt=media" alt="The signup page with the consent line and opt out link under the buttons"><figcaption><p>One line under the buttons replaces the checkbox</p></figcaption></figure>

## Chat usage and credits in one wallet

The wallet in the sidebar is now an icon, and the popover shows two things: your chat usage, the allowance for conversations with Otto and your Experts, and your automation credits. Paid plans see their daily and weekly windows, trials see their allowance and end date, and the eight ways to earn credits sit in a collapsible section underneath. [#15204](https://github.com/Significant-Gravitas/AutoGPT/pull/15204)

## Cancel a trial and keep it until it ends

Canceling a 7-day trial used to end your access the moment you clicked. Now it schedules the end: you keep the trial until its last day, you can resume it any time before then, and if you subscribe during a pending cancellation the plan takes over cleanly. Trial offers no longer show to accounts that already have a plan. [#15358](https://github.com/Significant-Gravitas/AutoGPT/pull/15358) [#15382](https://github.com/Significant-Gravitas/AutoGPT/pull/15382) [#15221](https://github.com/Significant-Gravitas/AutoGPT/pull/15221)

## Otto keeps it short

Otto and your Experts now answer first and keep most replies to a sentence or three: no preambles, no recap of what you said, no headers or bullet lists for simple answers, and one question at a time. A new hire opens with a short Typeform-style card instead of a page of text: a one-line greeting, two or three short questions, a handful of short options, and a thin progress bar. While Otto works you see "Thinking…" rather than backend status lines, and tables in replies have a cleaner style. [#15216](https://github.com/Significant-Gravitas/AutoGPT/pull/15216) [#15217](https://github.com/Significant-Gravitas/AutoGPT/pull/15217) [#15441](https://github.com/Significant-Gravitas/AutoGPT/pull/15441) [#15442](https://github.com/Significant-Gravitas/AutoGPT/pull/15442)

## Chats from the collapsed sidebar

The collapsed rail has a Chats item under Files. Click it and the sidebar expands and scrolls to your recent chats. The sidebar also scrolls anywhere now, the + next to an Expert group opens a fresh page for that Expert, and "Give feedback" lives in the account menu. [#15349](https://github.com/Significant-Gravitas/AutoGPT/pull/15349) [#15343](https://github.com/Significant-Gravitas/AutoGPT/pull/15343) [#15102](https://github.com/Significant-Gravitas/AutoGPT/pull/15102) [#15248](https://github.com/Significant-Gravitas/AutoGPT/pull/15248)

## It is a workflow

What the product used to call an agent is now a workflow, everywhere you read it: the Workflows page, the Builder, the Run dialog, search, the Activity menu, wallet tasks, Otto's cards and tool replies, approval cards, onboarding and the onboarding email. Otto, your Experts and your team keep their names. [#15251](https://github.com/Significant-Gravitas/AutoGPT/pull/15251)

<details>

<summary>✨ Improvements</summary>

* **New models:** GPT-6.1 Sol, Mistral Large 4, Mistral Medium 3.5, Mistral Small 4 and Ministral 3 (Medium 3.1 and Small 3.2 retired), Meta Muse Wonder and Google Gemini 4 Argon. ([#15070](https://github.com/Significant-Gravitas/AutoGPT/pull/15070), [#15203](https://github.com/Significant-Gravitas/AutoGPT/pull/15203), [#15210](https://github.com/Significant-Gravitas/AutoGPT/pull/15210), [#15480](https://github.com/Significant-Gravitas/AutoGPT/pull/15480), [#15496](https://github.com/Significant-Gravitas/AutoGPT/pull/15496))
* **Edit and combine suggested answers** in a question card instead of picking one as is. ([#15052](https://github.com/Significant-Gravitas/AutoGPT/pull/15052))
* **Press Enter to queue a follow-up while Otto is still answering.** ([#15105](https://github.com/Significant-Gravitas/AutoGPT/pull/15105))
* **Experts connect their integrations through MCP first.** ([#15199](https://github.com/Significant-Gravitas/AutoGPT/pull/15199))
* **New blocks:** GitHub repository traffic (views, clones, referrers, popular content), Hacker News search, stories, items and users, and Conductor. ([#15188](https://github.com/Significant-Gravitas/AutoGPT/pull/15188), [#15191](https://github.com/Significant-Gravitas/AutoGPT/pull/15191), [#14950](https://github.com/Significant-Gravitas/AutoGPT/pull/14950))
* **PayPal and Canva in the MCP catalog,** and sign in to the Slack and HubSpot MCP servers with a configured app. ([#14951](https://github.com/Significant-Gravitas/AutoGPT/pull/14951), [#15134](https://github.com/Significant-Gravitas/AutoGPT/pull/15134), [#15066](https://github.com/Significant-Gravitas/AutoGPT/pull/15066), [#15366](https://github.com/Significant-Gravitas/AutoGPT/pull/15366))
* **Clip, a video producer, joins the roster,** and Marketplace search finds Experts by job title. ([#15145](https://github.com/Significant-Gravitas/AutoGPT/pull/15145), [#15147](https://github.com/Significant-Gravitas/AutoGPT/pull/15147))
* **Home combines new tasks and the recap** in one place, and the Expert setup card stays off the hero. ([#15035](https://github.com/Significant-Gravitas/AutoGPT/pull/15035), [#15063](https://github.com/Significant-Gravitas/AutoGPT/pull/15063))
* **Onboarding asks for the paywall after personalization,** not before. ([#15196](https://github.com/Significant-Gravitas/AutoGPT/pull/15196))
* **Connect Telegram by messaging the bot first;** adding it to a group is optional. ([#15159](https://github.com/Significant-Gravitas/AutoGPT/pull/15159))
* **Office files render on the Files page,** including .pptx. ([#15359](https://github.com/Significant-Gravitas/AutoGPT/pull/15359))
* **Web search returns every cited source with its number,** and the HubSpot block asks for a private app token instead of the retired API key. ([#15186](https://github.com/Significant-Gravitas/AutoGPT/pull/15186), [#15367](https://github.com/Significant-Gravitas/AutoGPT/pull/15367))
* **A run that completes with errors says which step failed and why.** ([#15419](https://github.com/Significant-Gravitas/AutoGPT/pull/15419))
* **Transactional emails follow the design system** and render in more email clients. ([#15167](https://github.com/Significant-Gravitas/AutoGPT/pull/15167), [#15219](https://github.com/Significant-Gravitas/AutoGPT/pull/15219))
* **Web push notifications work from Edge, Safari and pre-release Chrome.** ([#15356](https://github.com/Significant-Gravitas/AutoGPT/pull/15356))
* **Community Replicate models run without a version hash.** ([#15128](https://github.com/Significant-Gravitas/AutoGPT/pull/15128))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **One paywall toast with an upgrade link** when a send is refused. ([#15407](https://github.com/Significant-Gravitas/AutoGPT/pull/15407))
* **Builder chat says when no model is connected,** and spend is hidden without billing. ([#15439](https://github.com/Significant-Gravitas/AutoGPT/pull/15439))
* **Phones:** a dialog opened from a menu stays open, Enter adds a line instead of sending, and the Expert pill no longer overlaps the floating controls. ([#15064](https://github.com/Significant-Gravitas/AutoGPT/pull/15064), [#15082](https://github.com/Significant-Gravitas/AutoGPT/pull/15082), [#15448](https://github.com/Significant-Gravitas/AutoGPT/pull/15448), [#15455](https://github.com/Significant-Gravitas/AutoGPT/pull/15455))
* **Reconnect is offered** when a provider refuses a saved credential. ([#15160](https://github.com/Significant-Gravitas/AutoGPT/pull/15160))
* **Enterprise plans show as admin-managed** on the billing card. ([#15103](https://github.com/Significant-Gravitas/AutoGPT/pull/15103))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **A queued message starts streaming as soon as it runs,** with no reload. ([#15346](https://github.com/Significant-Gravitas/AutoGPT/pull/15346))
* **A lost connection shows the finished answer** instead of "Failed to fetch", and no longer leaves false errors, spinners or endless retries behind. ([#15380](https://github.com/Significant-Gravitas/AutoGPT/pull/15380), [#15398](https://github.com/Significant-Gravitas/AutoGPT/pull/15398))
* **A message from another tab shows as a queued follow-up.** ([#15402](https://github.com/Significant-Gravitas/AutoGPT/pull/15402))
* **Billing accuracy:** each turn is charged its own cost, retried turns bill once for the attempt that succeeded, and a trial's status is read once per message. ([#15305](https://github.com/Significant-Gravitas/AutoGPT/pull/15305), [#15342](https://github.com/Significant-Gravitas/AutoGPT/pull/15342), [#15399](https://github.com/Significant-Gravitas/AutoGPT/pull/15399), [#15420](https://github.com/Significant-Gravitas/AutoGPT/pull/15420), [#15467](https://github.com/Significant-Gravitas/AutoGPT/pull/15467))
* **One running slot stays reserved for your own message** when subtasks fill the rest. ([#15347](https://github.com/Significant-Gravitas/AutoGPT/pull/15347), [#15361](https://github.com/Significant-Gravitas/AutoGPT/pull/15361))
* **Editing a schedule works end to end.** ([#15395](https://github.com/Significant-Gravitas/AutoGPT/pull/15395))
* **Scheduled runs use the account picked when the schedule was made.** ([#15132](https://github.com/Significant-Gravitas/AutoGPT/pull/15132))
* **Otto no longer stalls for a minute on a credentials lock,** and Home, Workflows and chat pages no longer wait on the scheduler. ([#15389](https://github.com/Significant-Gravitas/AutoGPT/pull/15389), [#15393](https://github.com/Significant-Gravitas/AutoGPT/pull/15393))
* **A resent message no longer runs twice.** ([#14939](https://github.com/Significant-Gravitas/AutoGPT/pull/14939))
* **Every sidebar, popup and Builder chat shows the same cards as the main chat.** ([#15067](https://github.com/Significant-Gravitas/AutoGPT/pull/15067))
* **Saving a workflow names the missing field,** and optional dropdowns no longer crash review cards and run forms. ([#15438](https://github.com/Significant-Gravitas/AutoGPT/pull/15438), [#15434](https://github.com/Significant-Gravitas/AutoGPT/pull/15434))
* **A long "Other" role in onboarding no longer loses your profile.** ([#15252](https://github.com/Significant-Gravitas/AutoGPT/pull/15252))
* **Pending subscription changes show up** even on slow reads, and a profile is created on first read instead of returning 404. ([#15427](https://github.com/Significant-Gravitas/AutoGPT/pull/15427), [#15426](https://github.com/Significant-Gravitas/AutoGPT/pull/15426))
* **Settings → Billing no longer creates a stray Stripe customer** that got admin-granted plans revoked. ([#15116](https://github.com/Significant-Gravitas/AutoGPT/pull/15116))
* **A provider's raw out-of-credits error is no longer shown to you.** ([#14882](https://github.com/Significant-Gravitas/AutoGPT/pull/14882))
* **Subtasks stay in the foreground** so their work reaches the reply. ([#15127](https://github.com/Significant-Gravitas/AutoGPT/pull/15127))
* **Deleted shared runs stop serving their page and files.** ([#15489](https://github.com/Significant-Gravitas/AutoGPT/pull/15489))
* **Self-hosted installs:** hosted-only interface stays out, signup grants work, and the memory page and no-model chat are fixed. ([#15408](https://github.com/Significant-Gravitas/AutoGPT/pull/15408), [#15409](https://github.com/Significant-Gravitas/AutoGPT/pull/15409))
* **Model prices match OpenRouter's live rates** for GPT-OSS 120B, DeepSeek V4.1 Flash and Kimi K2.6. ([#15042](https://github.com/Significant-Gravitas/AutoGPT/pull/15042), [#15071](https://github.com/Significant-Gravitas/AutoGPT/pull/15071), [#15139](https://github.com/Significant-Gravitas/AutoGPT/pull/15139))

</details>


# A bigger roster, Clay & Rock avatars, folders in your workspace

*September 24 – September 30, 2026*

**Platform versions:** `v0.8.1` · `v0.8.2`

## The roster more than doubled

The Marketplace now carries Experts for most of the jobs a small team hires for. Eight generalists joined, among them Robin for support, Anika for partnerships, Alex for product, Daniel for finance, Sofia for recruiting, Maya for marketing and James for operations; Zara arrived as a go-to-market strategist; Max became the sales Expert with the full senior sales package folded in; and nine more core Experts followed. Each one ships with a voice, a bundle of skills, marketplace workflows for its domain and standing routines that stay off until you switch them on. Experts come first in the Marketplace, and hiring one now returns at once while its skills and workflows install in the background. [#14636](https://github.com/Significant-Gravitas/AutoGPT/pull/14636) [#14794](https://github.com/Significant-Gravitas/AutoGPT/pull/14794) [#14798](https://github.com/Significant-Gravitas/AutoGPT/pull/14798) [#14713](https://github.com/Significant-Gravitas/AutoGPT/pull/14713) [#14765](https://github.com/Significant-Gravitas/AutoGPT/pull/14765) [#14849](https://github.com/Significant-Gravitas/AutoGPT/pull/14849) [#14867](https://github.com/Significant-Gravitas/AutoGPT/pull/14867)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-71e16f37e8ccb63abc8177bbeeec3b5813a118fe%2Fv081-roster-hero.png?alt=media" alt="The Marketplace roster of Experts across Marketing, Sales, Finance, Support, Operations, Research, Content and Development"><figcaption><p>Browse the roster by category</p></figcaption></figure>

## Clay & Rock, the new look for Experts

Every Expert is now a small sculpted clay figure, with a head shape of its own and cream accents, on a pastel background in its category's color: terracotta for Marketing, golden yellow for Sales, rose for Support, and so on. Otto keeps his lavender. When you raise an Expert you pick a face from the catalog or generate one live, choosing a category, shade, head shape and tilt, and review the result before you keep it. The onboarding illustration, team cards, chat headers and notification emails all use the same artwork. [#14822](https://github.com/Significant-Gravitas/AutoGPT/pull/14822) [#14858](https://github.com/Significant-Gravitas/AutoGPT/pull/14858) [#14948](https://github.com/Significant-Gravitas/AutoGPT/pull/14948) [#14933](https://github.com/Significant-Gravitas/AutoGPT/pull/14933) [#15008](https://github.com/Significant-Gravitas/AutoGPT/pull/15008) [#14994](https://github.com/Significant-Gravitas/AutoGPT/pull/14994)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-e59aaf7a03a504c44f9cc4eb25a9e49b73fe7bb8%2Fv081-clay-rock-hero.gif?alt=media" alt="Expert cards with Clay and Rock avatars in category colors"><figcaption><p>Each Expert gets its own clay figure in its category's color</p></figcaption></figure>

## Folders inside folders, and your files for your Experts

Workspace folders can nest now. Make a folder inside a folder on the Files page, move files and folders between them, and the folder you have open stays in the URL so a reload or a shared link lands in the same place. Experts can read the files you uploaded yourself, so you no longer get "File not found" when you ask Maria about a document on your Files page. Writing, renaming and deleting stay confined to each Expert's own conversations. [#14773](https://github.com/Significant-Gravitas/AutoGPT/pull/14773) [#14774](https://github.com/Significant-Gravitas/AutoGPT/pull/14774) [#14769](https://github.com/Significant-Gravitas/AutoGPT/pull/14769)

## Pick more than one answer

When Otto asks a question that has several right answers, the card now shows checkboxes instead of forcing one choice, and you can type alongside your picks. Your @ mentions reach your connected accounts too: type @ and pick a work Gmail or a GitHub login, and the message carries that exact account so Otto never guesses which one you meant. [#14741](https://github.com/Significant-Gravitas/AutoGPT/pull/14741) [#14775](https://github.com/Significant-Gravitas/AutoGPT/pull/14775)

## Try it free before you subscribe

The 7-day free trial now appears wherever plans do: on the paywall as well as in onboarding, with the trial price, a Start 7-day trial button and the trial details one click away. [#14876](https://github.com/Significant-Gravitas/AutoGPT/pull/14876) [#14768](https://github.com/Significant-Gravitas/AutoGPT/pull/14768)

<details>

<summary>✨ Improvements</summary>

* **New models:** Claude Sonnet 5.5 is the standard tier default, Claude Opus 5.5 the advanced one, and GPT-6 Luna the fast default; also Claude Opus 4.8, GPT-6 Sol, xAI Grok 4.7, GLM-5.3, Xiaomi MiMo-V2.6 Pro and Flash, Google Gemma 4 31B, Alibaba Qwen 3.8 Flash, Tencent Hy4, InclusionAI Ling 3.0 Flash VL and Unbiased Pareto. ([#15014](https://github.com/Significant-Gravitas/AutoGPT/pull/15014), [#14821](https://github.com/Significant-Gravitas/AutoGPT/pull/14821), [#14949](https://github.com/Significant-Gravitas/AutoGPT/pull/14949), [#14943](https://github.com/Significant-Gravitas/AutoGPT/pull/14943), [#14883](https://github.com/Significant-Gravitas/AutoGPT/pull/14883), [#14903](https://github.com/Significant-Gravitas/AutoGPT/pull/14903), [#14988](https://github.com/Significant-Gravitas/AutoGPT/pull/14988), [#14743](https://github.com/Significant-Gravitas/AutoGPT/pull/14743), [#14757](https://github.com/Significant-Gravitas/AutoGPT/pull/14757), [#14755](https://github.com/Significant-Gravitas/AutoGPT/pull/14755), [#14683](https://github.com/Significant-Gravitas/AutoGPT/pull/14683), [#14697](https://github.com/Significant-Gravitas/AutoGPT/pull/14697))
* **Hundreds of skills seeded into the Skills marketplace,** with per-Expert skill budgets and a cap of 150 installed skills per Expert. ([#14600](https://github.com/Significant-Gravitas/AutoGPT/pull/14600), [#14786](https://github.com/Significant-Gravitas/AutoGPT/pull/14786), [#14740](https://github.com/Significant-Gravitas/AutoGPT/pull/14740))
* **Formulas render:** inline `$…$` math shows as math in chat replies and markdown files, and prices like $5 stay plain text. ([#14790](https://github.com/Significant-Gravitas/AutoGPT/pull/14790), [#14807](https://github.com/Significant-Gravitas/AutoGPT/pull/14807))
* **AnySearch blocks:** search, parallel search and extract. ([#14792](https://github.com/Significant-Gravitas/AutoGPT/pull/14792))
* **Zapier, PostHog and OpenSEO in the MCP catalog,** including self-hosted OpenSEO instances. ([#14753](https://github.com/Significant-Gravitas/AutoGPT/pull/14753), [#14859](https://github.com/Significant-Gravitas/AutoGPT/pull/14859), [#14971](https://github.com/Significant-Gravitas/AutoGPT/pull/14971))
* **Otto knows it has a computer** and offers to use it. ([#14701](https://github.com/Significant-Gravitas/AutoGPT/pull/14701))
* **Fetched web pages keep their main content,** and Otto warns when a page is an empty JavaScript shell. ([#14875](https://github.com/Significant-Gravitas/AutoGPT/pull/14875))
* **Existing users are guided to their workflows** from Otto. ([#14935](https://github.com/Significant-Gravitas/AutoGPT/pull/14935))
* **The chat shows how many documents it holds,** and an Expert's files appear as rows on the Files page. ([#15029](https://github.com/Significant-Gravitas/AutoGPT/pull/15029), [#15033](https://github.com/Significant-Gravitas/AutoGPT/pull/15033))
* **Public Expert pages are indexed by search engines** and listed in the sitemap. ([#14902](https://github.com/Significant-Gravitas/AutoGPT/pull/14902), [#14901](https://github.com/Significant-Gravitas/AutoGPT/pull/14901))
* **Marketplace listings carry a short tagline,** so creators get one line to say what a workflow does. ([#14494](https://github.com/Significant-Gravitas/AutoGPT/pull/14494))
* **A real cookie banner:** Cookiebot asks for consent, records it, honors Global Privacy Control, and analytics stays off until you agree. ([#14838](https://github.com/Significant-Gravitas/AutoGPT/pull/14838))
* **Installed skills update in place** when the catalog publishes a new version; your edits win in a conflict. ([#14945](https://github.com/Significant-Gravitas/AutoGPT/pull/14945))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **The artifact panel was realigned** and section titles lost their icons for one heading size everywhere. ([#14934](https://github.com/Significant-Gravitas/AutoGPT/pull/14934), [#15041](https://github.com/Significant-Gravitas/AutoGPT/pull/15041))
* **Expert cards and chat chips polished.** ([#15002](https://github.com/Significant-Gravitas/AutoGPT/pull/15002))
* **"Sent from" badge** on messages an Expert delegated. ([#14758](https://github.com/Significant-Gravitas/AutoGPT/pull/14758))
* **Accessibility:** the password reveal toggle works from the keyboard, builder fields have consistent labels, and clearing a dictionary key keeps the other entries. ([#12846](https://github.com/Significant-Gravitas/AutoGPT/pull/12846), [#12844](https://github.com/Significant-Gravitas/AutoGPT/pull/12844), [#12847](https://github.com/Significant-Gravitas/AutoGPT/pull/12847))
* **Adding a block no longer jumps the Builder viewport.** ([#13456](https://github.com/Significant-Gravitas/AutoGPT/pull/13456))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Google sign-in** sends the right verifier on token exchange. ([#14894](https://github.com/Significant-Gravitas/AutoGPT/pull/14894), [#14897](https://github.com/Significant-Gravitas/AutoGPT/pull/14897))
* **A failed transcription keeps your recording** and offers retry and download. ([#14706](https://github.com/Significant-Gravitas/AutoGPT/pull/14706))
* **Your message appears before its attachments finish uploading.** ([#14754](https://github.com/Significant-Gravitas/AutoGPT/pull/14754))
* **Too many attachments is refused when you add them,** not when you send. ([#14770](https://github.com/Significant-Gravitas/AutoGPT/pull/14770))
* **A follow-up typed mid-reply stays queued** until Otto picks it up. ([#14777](https://github.com/Significant-Gravitas/AutoGPT/pull/14777))
* **Reconnecting an account asks which one to update** instead of adding a duplicate. ([#14745](https://github.com/Significant-Gravitas/AutoGPT/pull/14745))
* **The Drive file you picked survives saving the workflow.** ([#14907](https://github.com/Significant-Gravitas/AutoGPT/pull/14907))
* **Skipped steps finish** instead of staying queued forever. ([#14921](https://github.com/Significant-Gravitas/AutoGPT/pull/14921))
* **An empty file picker asks for a file** instead of silently skipping. ([#14924](https://github.com/Significant-Gravitas/AutoGPT/pull/14924))
* **Read Spreadsheet block:** empty cells no longer turn into N/A, plus five other defects. ([#14749](https://github.com/Significant-Gravitas/AutoGPT/pull/14749))
* **A dead avatar or listing image falls back** to a placeholder. ([#14493](https://github.com/Significant-Gravitas/AutoGPT/pull/14493))
* **An owner-set avatar survives roster updates.** ([#14803](https://github.com/Significant-Gravitas/AutoGPT/pull/14803))
* **Opening a chat link on the wrong account says so.** ([#14975](https://github.com/Significant-Gravitas/AutoGPT/pull/14975))
* **Updating an Expert's skills no longer deletes ones the editor had not loaded.** ([#14884](https://github.com/Significant-Gravitas/AutoGPT/pull/14884))
* **Expert onboarding resumes in a new chat** and starts after a raise. ([#15038](https://github.com/Significant-Gravitas/AutoGPT/pull/15038), [#15034](https://github.com/Significant-Gravitas/AutoGPT/pull/15034))
* **Dollar signs in indented code stay as typed.** ([#14808](https://github.com/Significant-Gravitas/AutoGPT/pull/14808))
* **Expired sessions wait for auth** before showing an error. ([#13357](https://github.com/Significant-Gravitas/AutoGPT/pull/13357))
* **A turn that hit its budget resumes without resending work.** ([#13432](https://github.com/Significant-Gravitas/AutoGPT/pull/13432))
* **Streaming fixes:** text parts close before clearing events, retried identical sends replay the accepted result, and the first-turn context no longer renders inside your message. ([#14762](https://github.com/Significant-Gravitas/AutoGPT/pull/14762), [#14760](https://github.com/Significant-Gravitas/AutoGPT/pull/14760), [#14763](https://github.com/Significant-Gravitas/AutoGPT/pull/14763))
* **Model prices match OpenRouter's live rates** across the catalog. ([#14746](https://github.com/Significant-Gravitas/AutoGPT/pull/14746), [#14776](https://github.com/Significant-Gravitas/AutoGPT/pull/14776), [#14796](https://github.com/Significant-Gravitas/AutoGPT/pull/14796), [#14820](https://github.com/Significant-Gravitas/AutoGPT/pull/14820), [#14825](https://github.com/Significant-Gravitas/AutoGPT/pull/14825), [#14904](https://github.com/Significant-Gravitas/AutoGPT/pull/14904), [#14944](https://github.com/Significant-Gravitas/AutoGPT/pull/14944), [#14959](https://github.com/Significant-Gravitas/AutoGPT/pull/14959), [#14989](https://github.com/Significant-Gravitas/AutoGPT/pull/14989), [#15017](https://github.com/Significant-Gravitas/AutoGPT/pull/15017))
* **Self-hosted:** credential-free Ollama routes work. ([#14135](https://github.com/Significant-Gravitas/AutoGPT/pull/14135))

</details>


# Meet your Experts: hire a specialist and put it to work

*September 19, 2026*

**Platform version:** `v0.8.0`

This release brings Experts to everyone. An Expert is an AI teammate with a job title, a personality, its own skills and workflows, its own memory and its own computer. You hire one from the Marketplace or raise one yourself, and from day one it works for you: on a schedule, in its own chat thread, inside the limits you set. Otto stays your head of AI and manages the team.

Much of this was built over the summer behind a flag; the pull requests below link to where each piece landed.

## Hire an Expert, or raise your own

The Marketplace opens with a roster of Experts across Marketing, Sales, Finance, Support, Operations, Research, Content and Development. Each card says what the Expert does, which services it needs, what it costs to run, and which skills and workflows come with it. Hire one and it installs its skills and workflows, asks for the connections it needs, and starts its first day of work. If none fits, raise your own: pick a name, a job title and a face, write the Soul document that shapes how it thinks and writes, and hand it the skills and workflows it should own. New accounts get the same choice during onboarding, with recommendations drawn from what you said about your work. [#13685](https://github.com/Significant-Gravitas/AutoGPT/pull/13685) [#13689](https://github.com/Significant-Gravitas/AutoGPT/pull/13689) [#14030](https://github.com/Significant-Gravitas/AutoGPT/pull/14030) [#14039](https://github.com/Significant-Gravitas/AutoGPT/pull/14039) [#14041](https://github.com/Significant-Gravitas/AutoGPT/pull/14041) [#14069](https://github.com/Significant-Gravitas/AutoGPT/pull/14069) [#13771](https://github.com/Significant-Gravitas/AutoGPT/pull/13771) [#14675](https://github.com/Significant-Gravitas/AutoGPT/pull/14675) [#14543](https://github.com/Significant-Gravitas/AutoGPT/pull/14543) [#14707](https://github.com/Significant-Gravitas/AutoGPT/pull/14707) [#14464](https://github.com/Significant-Gravitas/AutoGPT/pull/14464) [#14462](https://github.com/Significant-Gravitas/AutoGPT/pull/14462)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-03b0e0801d8354ba7e8b1118fafe7fefd31809ee%2Fv080-hire-experts-hero.gif?alt=media" alt="The Marketplace showing Expert cards with a Hire button on each"><figcaption><p>Browse Experts by category and hire one in a click</p></figcaption></figure>

## Every Expert has a page you can share

Each Expert has its own page at a real URL, so you can send it to a colleague or find it from a search engine. The page shows the Expert's role and category, what it sets up on day one, the skills it comes with, the workflows it runs and how often, the services it needs, and an honest note that it is an AI. Signed-out visitors see the full profile and a Get started button that brings them back to the Expert after sign-up. [#14313](https://github.com/Significant-Gravitas/AutoGPT/pull/14313) [#14037](https://github.com/Significant-Gravitas/AutoGPT/pull/14037) [#14512](https://github.com/Significant-Gravitas/AutoGPT/pull/14512) [#14511](https://github.com/Significant-Gravitas/AutoGPT/pull/14511) [#14506](https://github.com/Significant-Gravitas/AutoGPT/pull/14506) [#14446](https://github.com/Significant-Gravitas/AutoGPT/pull/14446)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-3f759c916baf2af4f8ba2ec76ee5475ed1c2c539%2Fv080-expert-page-hero.gif?alt=media" alt="Max&#x27;s Expert page showing his role, what he sets up on day one, and his About section"><figcaption><p>Max, the sales Expert, on his own page</p></figcaption></figure>

## Give your team standing work

Routines are the work an Expert does without being asked: a Monday pipeline review, a daily inbox sweep, a one-off report next Thursday. An Expert arrives with its routines switched off; turn one on and it becomes a real schedule, runs in the Expert's own thread, and stays quiet when there is nothing new. Otto can set up routines for itself too, and it manages every schedule on the team. Each Expert only runs the workflows you installed on it, with the connections you granted it. [#14688](https://github.com/Significant-Gravitas/AutoGPT/pull/14688) [#13772](https://github.com/Significant-Gravitas/AutoGPT/pull/13772) [#13787](https://github.com/Significant-Gravitas/AutoGPT/pull/13787) [#14416](https://github.com/Significant-Gravitas/AutoGPT/pull/14416) [#14415](https://github.com/Significant-Gravitas/AutoGPT/pull/14415) [#14215](https://github.com/Significant-Gravitas/AutoGPT/pull/14215) [#14417](https://github.com/Significant-Gravitas/AutoGPT/pull/14417)

## Home tells you what the team did

Home opens with a briefing written by Otto: what ran overnight, what was found, and what needs a decision from you. Below it, Recent work is grouped by who did it, an Expert, a workflow or Otto, with the runs, files and schedules each one produced this week and how much each Expert spent. [#13800](https://github.com/Significant-Gravitas/AutoGPT/pull/13800) [#14423](https://github.com/Significant-Gravitas/AutoGPT/pull/14423) [#14342](https://github.com/Significant-Gravitas/AutoGPT/pull/14342) [#14403](https://github.com/Significant-Gravitas/AutoGPT/pull/14403) [#14216](https://github.com/Significant-Gravitas/AutoGPT/pull/14216) [#13926](https://github.com/Significant-Gravitas/AutoGPT/pull/13926) [#14016](https://github.com/Significant-Gravitas/AutoGPT/pull/14016) [#14021](https://github.com/Significant-Gravitas/AutoGPT/pull/14021) [#14022](https://github.com/Significant-Gravitas/AutoGPT/pull/14022)

## A Marketplace for skills

Skills are playbooks an Expert or Otto reads before doing a job: a brand voice guide, a cohort analysis method, an outreach sequence. The Marketplace now has a Skills shelf and a browse page with hundreds of them. Install one onto Otto or straight onto one of your Experts, upload your own as a package, and publish it for others. [#14431](https://github.com/Significant-Gravitas/AutoGPT/pull/14431) [#14432](https://github.com/Significant-Gravitas/AutoGPT/pull/14432) [#14559](https://github.com/Significant-Gravitas/AutoGPT/pull/14559) [#14555](https://github.com/Significant-Gravitas/AutoGPT/pull/14555) [#14557](https://github.com/Significant-Gravitas/AutoGPT/pull/14557) [#14550](https://github.com/Significant-Gravitas/AutoGPT/pull/14550) [#14414](https://github.com/Significant-Gravitas/AutoGPT/pull/14414)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-669552fb46a29b4296ac72a363f84099d588f6d4%2Fv080-skills-marketplace-hero.gif?alt=media" alt="The Skills page of the Marketplace listing skills by category"><figcaption><p>Hundreds of skills, filtered by the same categories as Experts</p></figcaption></figure>

## Otto gets a desktop

Ask Otto to open a desktop and a live window appears in the chat where you can watch it use a browser, run GUI apps and download files. Each Expert keeps its own computer, so whatever it installed, configured or signed into is still there next time. [#14365](https://github.com/Significant-Gravitas/AutoGPT/pull/14365) [#14382](https://github.com/Significant-Gravitas/AutoGPT/pull/14382) [#14379](https://github.com/Significant-Gravitas/AutoGPT/pull/14379)

<details>

<summary>✨ Improvements</summary>

* **New models:** GPT-6 Astra, Claude Opus 5, Claude Fable 5.1, Google Gemini 3.8 Flash, Alibaba Qwen 3.8 Max, Meta Muse Spark 1.3, DeepSeek V4.1 Flash, Sakana Fugu Ultra v2 and Inception Mercury 2.5. ([#14358](https://github.com/Significant-Gravitas/AutoGPT/pull/14358), [#14385](https://github.com/Significant-Gravitas/AutoGPT/pull/14385), [#14402](https://github.com/Significant-Gravitas/AutoGPT/pull/14402), [#14422](https://github.com/Significant-Gravitas/AutoGPT/pull/14422), [#14458](https://github.com/Significant-Gravitas/AutoGPT/pull/14458), [#14459](https://github.com/Significant-Gravitas/AutoGPT/pull/14459), [#14530](https://github.com/Significant-Gravitas/AutoGPT/pull/14530), [#14538](https://github.com/Significant-Gravitas/AutoGPT/pull/14538), [#14635](https://github.com/Significant-Gravitas/AutoGPT/pull/14635))
* **Marketplace categories:** one set of categories across Experts, workflows and skills, a category filter, and Experts in search results. ([#14428](https://github.com/Significant-Gravitas/AutoGPT/pull/14428), [#14504](https://github.com/Significant-Gravitas/AutoGPT/pull/14504))
* **Files page rebuilt as a list:** name, modified and size columns, a big preview on hover, upload and new folder from the page, multi-select, and the old grid a toggle away. ([#14404](https://github.com/Significant-Gravitas/AutoGPT/pull/14404), [#14469](https://github.com/Significant-Gravitas/AutoGPT/pull/14469))
* **Connect everything a tool needs, then proceed once:** a Connect card lists every service a step needs instead of asking one at a time. ([#14332](https://github.com/Significant-Gravitas/AutoGPT/pull/14332))
* **Approval cards show what will run** and approve only that. ([#14212](https://github.com/Significant-Gravitas/AutoGPT/pull/14212))
* **Otto says what its task has left** and wraps up before it runs out of room. ([#14393](https://github.com/Significant-Gravitas/AutoGPT/pull/14393))
* **Otto can read your Expert chats** when you ask it about the team's work. ([#14424](https://github.com/Significant-Gravitas/AutoGPT/pull/14424))
* **An Expert's Soul drawer shows what it has learned.** ([#14505](https://github.com/Significant-Gravitas/AutoGPT/pull/14505))
* **Discord bot:** mention server members and roles (never everyone), edit its own messages, deliver clarifying questions, and stay silent when there is nothing to say. ([#14331](https://github.com/Significant-Gravitas/AutoGPT/pull/14331), [#14436](https://github.com/Significant-Gravitas/AutoGPT/pull/14436), [#14435](https://github.com/Significant-Gravitas/AutoGPT/pull/14435), [#14501](https://github.com/Significant-Gravitas/AutoGPT/pull/14501), [#14578](https://github.com/Significant-Gravitas/AutoGPT/pull/14578))
* **Credit history you can act on:** each line says what it was for. ([#14361](https://github.com/Significant-Gravitas/AutoGPT/pull/14361))
* **MCP servers with Basic authentication** connect now, and the platform speaks the 2026-07-28 MCP spec alongside older servers. ([#14075](https://github.com/Significant-Gravitas/AutoGPT/pull/14075), [#14302](https://github.com/Significant-Gravitas/AutoGPT/pull/14302))
* **An official MCP catalog:** supported servers you can add in one step. ([#14514](https://github.com/Significant-Gravitas/AutoGPT/pull/14514))
* **A free trial** with a card on file, with its own spend limits. ([#14353](https://github.com/Significant-Gravitas/AutoGPT/pull/14353))
* **New blocks:** moderation, RMFG manufacturing, TypeSafe Jev judgment, and Slant3D on API v2. ([#12945](https://github.com/Significant-Gravitas/AutoGPT/pull/12945), [#14389](https://github.com/Significant-Gravitas/AutoGPT/pull/14389), [#14639](https://github.com/Significant-Gravitas/AutoGPT/pull/14639), [#14452](https://github.com/Significant-Gravitas/AutoGPT/pull/14452))
* **Self-host on Linux or macOS with one installer.** ([#13261](https://github.com/Significant-Gravitas/AutoGPT/pull/13261))
* **The model picker says which models your plan includes.** ([#14360](https://github.com/Significant-Gravitas/AutoGPT/pull/14360))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **Home restyled** with compact components, colored work chips and workflow pictures. ([#14398](https://github.com/Significant-Gravitas/AutoGPT/pull/14398), [#14408](https://github.com/Significant-Gravitas/AutoGPT/pull/14408), [#14368](https://github.com/Significant-Gravitas/AutoGPT/pull/14368))
* **Team page and Expert chats polished,** with one way of showing an Expert everywhere, including the sidebar. ([#14400](https://github.com/Significant-Gravitas/AutoGPT/pull/14400), [#14661](https://github.com/Significant-Gravitas/AutoGPT/pull/14661), [#14407](https://github.com/Significant-Gravitas/AutoGPT/pull/14407), [#14425](https://github.com/Significant-Gravitas/AutoGPT/pull/14425), [#14490](https://github.com/Significant-Gravitas/AutoGPT/pull/14490))
* **Raising an Expert offers a face picker** with Notion-style avatars. ([#14548](https://github.com/Significant-Gravitas/AutoGPT/pull/14548), [#14460](https://github.com/Significant-Gravitas/AutoGPT/pull/14460), [#14461](https://github.com/Significant-Gravitas/AutoGPT/pull/14461))
* **A new hire starts with an onboarding card** instead of an automatic run. ([#14497](https://github.com/Significant-Gravitas/AutoGPT/pull/14497))
* **The brain dump recording has an animated Otto.** ([#14463](https://github.com/Significant-Gravitas/AutoGPT/pull/14463))
* **Stopping a reply shows a stopped card,** not an error. ([#14682](https://github.com/Significant-Gravitas/AutoGPT/pull/14682))
* **The desktop stays within reach of the chat** and tool results keep their cards. ([#14696](https://github.com/Significant-Gravitas/AutoGPT/pull/14696), [#14700](https://github.com/Significant-Gravitas/AutoGPT/pull/14700))
* **Sidebar date groups follow your locale.** ([#14437](https://github.com/Significant-Gravitas/AutoGPT/pull/14437))
* **Japanese, Chinese and Korean input:** Enter no longer sends while you are still composing. ([#14300](https://github.com/Significant-Gravitas/AutoGPT/pull/14300))
* **The billing toggle sits next to the plan cards** in onboarding, and the trial card matches them. ([#14673](https://github.com/Significant-Gravitas/AutoGPT/pull/14673), [#14637](https://github.com/Significant-Gravitas/AutoGPT/pull/14637))
* **A workflow that fails to load shows an error toast.** ([#14266](https://github.com/Significant-Gravitas/AutoGPT/pull/14266))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Otto can create and edit workflows again** after the tool registry change. ([#14714](https://github.com/Significant-Gravitas/AutoGPT/pull/14714))
* **Experts and Otto are told apart** in the interface and in tools. ([#14526](https://github.com/Significant-Gravitas/AutoGPT/pull/14526))
* **Each Expert's workspace files stay separate** from other Experts'. ([#14426](https://github.com/Significant-Gravitas/AutoGPT/pull/14426))
* **Facts an Expert stores are recalled later.** ([#14412](https://github.com/Significant-Gravitas/AutoGPT/pull/14412))
* **Expert lists refresh after you connect a service.** ([#14500](https://github.com/Significant-Gravitas/AutoGPT/pull/14500))
* **Scheduling uses the time zone you gave Otto.** ([#14434](https://github.com/Significant-Gravitas/AutoGPT/pull/14434))
* **A rejected credential says so** instead of "not connected", and a connection that cannot be refreshed offers a reconnect card. ([#14390](https://github.com/Significant-Gravitas/AutoGPT/pull/14390), [#14667](https://github.com/Significant-Gravitas/AutoGPT/pull/14667))
* **Host-scoped and username-and-password credentials can be entered.** ([#14679](https://github.com/Significant-Gravitas/AutoGPT/pull/14679), [#14710](https://github.com/Significant-Gravitas/AutoGPT/pull/14710))
* **Canceling a reply is not reported as an error.** ([#14689](https://github.com/Significant-Gravitas/AutoGPT/pull/14689))
* **Read aloud falls back to the platform's own voice** when the browser has none. ([#14354](https://github.com/Significant-Gravitas/AutoGPT/pull/14354))
* **Stop reaches every run,** whichever pod is executing it. ([#14684](https://github.com/Significant-Gravitas/AutoGPT/pull/14684), [#14685](https://github.com/Significant-Gravitas/AutoGPT/pull/14685))
* **Array inputs with a known shape render as a real sub-form.** ([#14057](https://github.com/Significant-Gravitas/AutoGPT/pull/14057))
* **Long model calls get up to 600 seconds** instead of timing out. ([#14206](https://github.com/Significant-Gravitas/AutoGPT/pull/14206))
* **Your plan tier is never dropped on a slow payment check.** ([#14375](https://github.com/Significant-Gravitas/AutoGPT/pull/14375))
* **The desktop stream restarts itself** when its viewer dies and pauses with the box. ([#14698](https://github.com/Significant-Gravitas/AutoGPT/pull/14698), [#14699](https://github.com/Significant-Gravitas/AutoGPT/pull/14699), [#14670](https://github.com/Significant-Gravitas/AutoGPT/pull/14670))
* **Discord threads:** the bot reads the post a thread was created from. ([#14330](https://github.com/Significant-Gravitas/AutoGPT/pull/14330))
* **Run summaries drop the first-person voice.** ([#14441](https://github.com/Significant-Gravitas/AutoGPT/pull/14441))
* **Scheduled runs for paywalled accounts are skipped quietly.** ([#14325](https://github.com/Significant-Gravitas/AutoGPT/pull/14325))
* **MCP credentials are no longer deleted on a 403.** ([#14303](https://github.com/Significant-Gravitas/AutoGPT/pull/14303))
* **The Builder canvas no longer re-renders on every prop change.** ([#13750](https://github.com/Significant-Gravitas/AutoGPT/pull/13750))
* **Self-hosted installs:** spend caps are off, marketplace media is stored locally without cloud storage, secrets are generated at setup instead of shipped, and the Compose installer has an upgrade path. ([#14517](https://github.com/Significant-Gravitas/AutoGPT/pull/14517), [#14524](https://github.com/Significant-Gravitas/AutoGPT/pull/14524), [#14518](https://github.com/Significant-Gravitas/AutoGPT/pull/14518), [#14712](https://github.com/Significant-Gravitas/AutoGPT/pull/14712))
* **Fixes to crashes seen in error reports:** a workflow page that does not exist, tooltips, the Tally popup, sidebar shortcuts, restricted WebViews and unreadable API errors. ([#14453](https://github.com/Significant-Gravitas/AutoGPT/pull/14453), [#14179](https://github.com/Significant-Gravitas/AutoGPT/pull/14179), [#14323](https://github.com/Significant-Gravitas/AutoGPT/pull/14323), [#14260](https://github.com/Significant-Gravitas/AutoGPT/pull/14260), [#14643](https://github.com/Significant-Gravitas/AutoGPT/pull/14643), [#13498](https://github.com/Significant-Gravitas/AutoGPT/pull/13498))

</details>


# A cleaner chat that shows its work, clickable answers, emails worth opening

*August 21 – September 4, 2026*

**Platform versions:** `v0.7.2` · `v0.7.3` · `v0.7.4`

## The chat shows its work, and gets out of your way

Otto's tool activity now renders as one compact chain of steps: each step shows a live status, the icon of the service it used, and a result card you can expand, while interactive steps like questions and connection prompts stay in the flow. Around it the chat was restyled: a small floating identity chip instead of a header band, a single-row pill composer that stacks when your text wraps, neutral bubbles with actions on hover, and the sidebar folds away while the artifacts panel is open. When a long conversation needs condensing you see a live progress card with the real numbers instead of a silent pause. [#13773](https://github.com/Significant-Gravitas/AutoGPT/pull/13773) [#14164](https://github.com/Significant-Gravitas/AutoGPT/pull/14164) [#14158](https://github.com/Significant-Gravitas/AutoGPT/pull/14158) [#14239](https://github.com/Significant-Gravitas/AutoGPT/pull/14239) [#14304](https://github.com/Significant-Gravitas/AutoGPT/pull/14304) [#14143](https://github.com/Significant-Gravitas/AutoGPT/pull/14143)

## Answer with a click

When Otto needs a decision it now offers real options you can click, with a "Type something…" escape hatch when none fit. Blocking questions are always asked this way, so they show up in Home's needs-attention list instead of being buried in prose at the end of a reply. [#14156](https://github.com/Significant-Gravitas/AutoGPT/pull/14156)

## Emails that answer one question

The run report and the weekly summary are retired. In their place are four kinds of email, each answering either "do I need to do something?" or "what got done for me?": a Briefing of what your workflows and experts did, an Alert when something needs you, a Verdict when a piece of work is finished, and an Ops note when something is broken. Every one links back to the platform. [#14003](https://github.com/Significant-Gravitas/AutoGPT/pull/14003)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-0ef0c721fc841a17b4f942cf4f0ac7c07a20e232%2Fv072-emails-hero.png?alt=media" alt="The new Briefing email in an inbox"><figcaption><p>Briefing, Alert, Verdict and Ops: the four emails the platform sends</p></figcaption></figure>

## See and control what AutoGPT remembers

Settings → Memory lists the recent things Otto has learned about you, lets you forget any of them with one click, and can erase everything in a scope behind a typed confirmation. Ask for a summary and a fresh chat opens with everything Otto knows about you. [#14071](https://github.com/Significant-Gravitas/AutoGPT/pull/14071)

<details>

<summary>✨ Improvements</summary>

* **GitHub notification blocks:** list, mark and triage the notifications in your GitHub inbox, and the pull request block returns the full request object. ([#13634](https://github.com/Significant-Gravitas/AutoGPT/pull/13634), [#14295](https://github.com/Significant-Gravitas/AutoGPT/pull/14295))
* **Pay a merchant from a workflow with Stripe Link:** a device-code sign-in gives a workflow a one-time payment credential from your Link wallet, and you approve every spend. ([#14062](https://github.com/Significant-Gravitas/AutoGPT/pull/14062), [#14063](https://github.com/Significant-Gravitas/AutoGPT/pull/14063), [#14066](https://github.com/Significant-Gravitas/AutoGPT/pull/14066))
* **Stripe subscription triggers:** start a workflow on real subscription events straight from Stripe. ([#13435](https://github.com/Significant-Gravitas/AutoGPT/pull/13435))
* **DataForB2B blocks** search and enrich companies and professional profiles. ([#13383](https://github.com/Significant-Gravitas/AutoGPT/pull/13383))
* **All Quiet blocks** open and manage incidents. ([#14053](https://github.com/Significant-Gravitas/AutoGPT/pull/14053))
* **The Fast and Thinking toggle is gone.** Otto picks the engine a deployment can run; you no longer have to. ([#14083](https://github.com/Significant-Gravitas/AutoGPT/pull/14083))
* **Skill descriptions can be 1,024 characters.** ([#14024](https://github.com/Significant-Gravitas/AutoGPT/pull/14024))
* **Local installs get Ornith 1.5 as the recommended model,** with its full context window. ([#14188](https://github.com/Significant-Gravitas/AutoGPT/pull/14188))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **Integrations in the + menu opens the connect dialog,** so you add a new service instead of landing on the list of ones you already have. ([#14001](https://github.com/Significant-Gravitas/AutoGPT/pull/14001))
* **The composer no longer flickers** between its row and stacked layouts, or while you type in an empty session. ([#14250](https://github.com/Significant-Gravitas/AutoGPT/pull/14250), [#14270](https://github.com/Significant-Gravitas/AutoGPT/pull/14270))
* **Budgets show in dollars** and run cards no longer get clipped by their tab. ([#14073](https://github.com/Significant-Gravitas/AutoGPT/pull/14073))
* **"Your workflows"** is the heading for the workflows you can hand to an expert, sized like its neighbors. ([#14142](https://github.com/Significant-Gravitas/AutoGPT/pull/14142))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Google sign-ups no longer land in a broken account** when the platform profile was missing. ([#14147](https://github.com/Significant-Gravitas/AutoGPT/pull/14147))
* **Completing a Connect card actually connects** the integration and continues the turn. ([#14316](https://github.com/Significant-Gravitas/AutoGPT/pull/14316))
* **Workflows with nested workflows ask for every connection up front** instead of failing one level down. ([#14076](https://github.com/Significant-Gravitas/AutoGPT/pull/14076))
* **Connecting an MCP server through Stripe and similar sign-in pages** no longer fails with "Sign-in window was closed". ([#14141](https://github.com/Significant-Gravitas/AutoGPT/pull/14141))
* **The Connect Social Media Accounts button** appears wherever a social credential is needed: chat cards and run forms as well as the Builder. ([#14014](https://github.com/Significant-Gravitas/AutoGPT/pull/14014))
* **A removed connection is reported** instead of being swapped silently for another one. ([#14059](https://github.com/Significant-Gravitas/AutoGPT/pull/14059))
* **A run your plan does not allow is marked failed** with the reason, instead of completed. ([#14060](https://github.com/Significant-Gravitas/AutoGPT/pull/14060))
* **Provider failures are reported from the engine that ran the turn.** ([#14103](https://github.com/Significant-Gravitas/AutoGPT/pull/14103))
* **Discord and Telegram bots:** seven delivery and formatting fixes across the adapters. ([#14097](https://github.com/Significant-Gravitas/AutoGPT/pull/14097))
* **Running out of credits shows a plain message** instead of an analysis attempt. ([#12614](https://github.com/Significant-Gravitas/AutoGPT/pull/12614))
* **The single container stops cleanly** inside Docker's default timeout. ([#14077](https://github.com/Significant-Gravitas/AutoGPT/pull/14077))

</details>


# Paste screenshots into chat, talk through onboarding, self-host in one container

*July 29 – August 13, 2026*

**Platform versions:** `v0.6.70` · `v0.7.0` · `v0.7.1`

## Paste a screenshot straight into the chat

Copy an image anywhere, press Cmd+V or Ctrl+V in the composer, and it attaches. No more saving a screenshot to disk and picking it from the file dialog. [#13645](https://github.com/Significant-Gravitas/AutoGPT/pull/13645)

## Tell Otto about your work out loud

Onboarding no longer asks you to pick pain points from a list. You talk for a minute or two about what you do all day; the recording is saved locally as you speak so nothing is lost, and the transcript shapes your first screen: a personal greeting, starter prompts written for your work, and a short list of tools worth connecting, picked from what you said. [#13764](https://github.com/Significant-Gravitas/AutoGPT/pull/13764) [#13785](https://github.com/Significant-Gravitas/AutoGPT/pull/13785) [#13792](https://github.com/Significant-Gravitas/AutoGPT/pull/13792)

## Run the whole platform from one container

Self-hosting is now one `docker run`. The single-container image bundles the frontend, the backend services, PostgreSQL, Valkey, RabbitMQ, FalkorDB memory and nginx, generates its own secrets on first boot, keeps everything under `/data`, and recovers itself if a service dies. Multi-architecture images are published to Docker Hub. [#13758](https://github.com/Significant-Gravitas/AutoGPT/pull/13758) [#13994](https://github.com/Significant-Gravitas/AutoGPT/pull/13994) [#13757](https://github.com/Significant-Gravitas/AutoGPT/pull/13757)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-7bea351949c77a9834e1f05cccf5ec904d0ef381%2Fv0670-single-container-hero.png?alt=media" alt="A terminal running the single-container docker command next to the platform login page"><figcaption><p>One image, one command, the full platform</p></figcaption></figure>

## Claude Sonnet 5, and a model catalog that keeps itself tidy

Claude Sonnet 5 is available in LLM blocks, with the Claude 5 tokenizer so token counts stay right. Kimi K3 arrived with it. Behind both is a single model catalog: every model's pricing, availability and routing lives in one place, and retiring a model migrates the workflows that used it instead of breaking them. [#13629](https://github.com/Significant-Gravitas/AutoGPT/pull/13629) [#13627](https://github.com/Significant-Gravitas/AutoGPT/pull/13627)

<details>

<summary>✨ Improvements</summary>

* **Sign-in runs on Better Auth.** The platform no longer depends on Supabase for accounts. Google sign-in keeps working, and self-hosted installs drop a whole sidecar stack. ([#13330](https://github.com/Significant-Gravitas/AutoGPT/pull/13330))
* **Tavily blocks:** search, extract, crawl and map the web with Tavily's API. ([#13499](https://github.com/Significant-Gravitas/AutoGPT/pull/13499))
* **Sort your workflows by "Most recently ran,"** so the one you just used is at the top. ([#13666](https://github.com/Significant-Gravitas/AutoGPT/pull/13666))
* **First-visit cards on the Workflows, Marketplace and Build pages** say what the page is for and offer one way to start. ([#13805](https://github.com/Significant-Gravitas/AutoGPT/pull/13805))
* **Saved cards at checkout:** upgrading or resubscribing offers the card Stripe already has for you. ([#13743](https://github.com/Significant-Gravitas/AutoGPT/pull/13743))
* **Bots: the install flow finishes where it started.** After connecting a chat platform you land back on Settings → Bots, a half-finished install shows as pending, and each platform is called by its own name (servers, workspaces, groups). ([#13999](https://github.com/Significant-Gravitas/AutoGPT/pull/13999))
* **Swapping a trigger tells you which webhook presets were skipped** when you activate a new workflow version. ([#13682](https://github.com/Significant-Gravitas/AutoGPT/pull/13682))
* **Self-hosters can point transcription at any OpenAI-compatible endpoint.** ([#13500](https://github.com/Significant-Gravitas/AutoGPT/pull/13500))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **New icons across the app:** Phosphor is replaced by Hugeicons with a consistent rounded stroke. ([#13751](https://github.com/Significant-Gravitas/AutoGPT/pull/13751))
* **A compact wallet popover** built for the sidebar: balance, top up and auto-refill without the oversized panel. ([#13699](https://github.com/Significant-Gravitas/AutoGPT/pull/13699))
* **One avatar fallback everywhere:** the account menu uses the same marble avatar as profiles and the Marketplace. ([#13775](https://github.com/Significant-Gravitas/AutoGPT/pull/13775))
* **The Build canvas gets its full width back** in the sidebar layout. ([#13742](https://github.com/Significant-Gravitas/AutoGPT/pull/13742))
* **File previews stay inside the window** when the Files drawer and a preview are both open. ([#13797](https://github.com/Significant-Gravitas/AutoGPT/pull/13797))
* **Image and logo uploads say when a file is too large,** and what the limit is. ([#13684](https://github.com/Significant-Gravitas/AutoGPT/pull/13684))
* **The search dialog describes itself to screen readers.** ([#13675](https://github.com/Significant-Gravitas/AutoGPT/pull/13675))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Workflows added from the Marketplace keep their listing name, description and image** instead of the creator's working title. ([#13680](https://github.com/Significant-Gravitas/AutoGPT/pull/13680))
* **Otto no longer drops a workflow mid-edit** when the editing tools receive it by reference. ([#13441](https://github.com/Significant-Gravitas/AutoGPT/pull/13441))
* **The Triggers tab finds every preset,** including ones past the first page. ([#13681](https://github.com/Significant-Gravitas/AutoGPT/pull/13681))
* **Memory keeps up under load:** queued memory writes retry instead of being dropped. ([#13686](https://github.com/Significant-Gravitas/AutoGPT/pull/13686))
* **Forgetting a memory explains why it could not** instead of failing silently. ([#13672](https://github.com/Significant-Gravitas/AutoGPT/pull/13672))
* **Webhooks reject a request whose URL names a different provider** than the stored webhook. ([#13559](https://github.com/Significant-Gravitas/AutoGPT/pull/13559))
* **Old /profile links redirect to Settings** on both layouts, keeping their anchors. ([#14000](https://github.com/Significant-Gravitas/AutoGPT/pull/14000))
* **Dropdowns with an empty option no longer crash a form.** ([#12495](https://github.com/Significant-Gravitas/AutoGPT/pull/12495))
* **The global search shortcut** no longer errors with some input methods. ([#13472](https://github.com/Significant-Gravitas/AutoGPT/pull/13472))
* **A creator page that does not exist returns a proper not-found page.** ([#13677](https://github.com/Significant-Gravitas/AutoGPT/pull/13677))
* **Resuming a chat** no longer errors before the chat state is ready. ([#13766](https://github.com/Significant-Gravitas/AutoGPT/pull/13766))
* **Browser translation extensions** no longer break the tour page. ([#13767](https://github.com/Significant-Gravitas/AutoGPT/pull/13767))

</details>


# A new sidebar, a smarter composer, and Otto on Telegram

*July 15 – July 22, 2026*

**Platform versions:** `v0.6.67` · `v0.6.68` · `v0.6.69`

## Navigation moves to a sidebar

The top navigation bar is gone. Every page now hangs off a sidebar on the left, with a new task button and search at the top, the main pages in the middle and your recent chats grouped underneath. Collapse it to a rail of icons when you want the room. Your profile menu was rebuilt at the same time: Profile, Settings, Billing and Activity sit in one group, What's new and Help in another, and Log out at the bottom. [#13628](https://github.com/Significant-Gravitas/AutoGPT/pull/13628)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-cc7617749bb24707b7714c1a01b1e4b167d2315b%2Fv0667-sidebar-hero.gif?alt=media" alt="The AutoGPT app with the new left sidebar open, showing the main pages and recent chats"><figcaption><p>The sidebar replaces the top navigation bar across the whole app</p></figcaption></figure>

## Everything you add to a chat starts at the plus button

The composer has one menu for context and setup. Press **+** to attach a file, open your Integrations, Skills or Scheduled tasks without leaving the chat, or start a guided flow: **New skill** and **New scheduled task** pre-fill the composer with a prompt that tells Otto what you want, so you describe it and Otto sets it up. [#13489](https://github.com/Significant-Gravitas/AutoGPT/pull/13489)

## Chat with Otto on Telegram

Telegram joins Discord on the Bots page in Settings. Message the bot directly or @mention it in a group, send files and photos both ways, and in a direct message watch the reply type itself out live. Otto can also post on its own: ask for a Monday update in a channel or a daily note in your DMs and it lands there on schedule. [#13561](https://github.com/Significant-Gravitas/AutoGPT/pull/13561) [#13565](https://github.com/Significant-Gravitas/AutoGPT/pull/13565) [#13588](https://github.com/Significant-Gravitas/AutoGPT/pull/13588) [#13597](https://github.com/Significant-Gravitas/AutoGPT/pull/13597)

<details>

<summary>✨ Improvements</summary>

* **Otto builds workflows more carefully:** when you ask Otto to build a workflow it switches into a building mode that keeps its guide in memory through long conversations, checks real runs before reporting success, and stops shipping unverified edits. ([#13601](https://github.com/Significant-Gravitas/AutoGPT/pull/13601), [#13579](https://github.com/Significant-Gravitas/AutoGPT/pull/13579))
* **New OpenAI models in LLM blocks:** GPT-5.6, GPT-5.5, GPT-5.4 and the o-series reasoning models are selectable. ([#12619](https://github.com/Significant-Gravitas/AutoGPT/pull/12619))
* **The product tour plays itself:** the demo on the tour page starts on its own, logged-out visitors see the real app shell in the Marketplace, and the sidebar carries a card to start a plan. ([#13515](https://github.com/Significant-Gravitas/AutoGPT/pull/13515), [#13585](https://github.com/Significant-Gravitas/AutoGPT/pull/13585))
* **Chat polish from the tour, now in the real chat:** elevated tool cards, entrance animations and a glowing composer. ([#13562](https://github.com/Significant-Gravitas/AutoGPT/pull/13562))
* **Trigger blocks live under Inputs in the Builder,** where you look for the start of a workflow. ([#13353](https://github.com/Significant-Gravitas/AutoGPT/pull/13353))
* **The Claude Code block returns the images, PDFs and other binary files it produces,** alongside its text output. ([#12125](https://github.com/Significant-Gravitas/AutoGPT/pull/12125))
* **Revid blocks need your own key.** The shared built-in Revid credential was retired. ([#13507](https://github.com/Significant-Gravitas/AutoGPT/pull/13507))
* **Faster long chats:** context compression does far less re-tokenizing. ([#13478](https://github.com/Significant-Gravitas/AutoGPT/pull/13478))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **Downloads are named after the workflow** instead of an ID. ([#13523](https://github.com/Significant-Gravitas/AutoGPT/pull/13523))
* **Running blocks show their name** while they run, not a UUID. ([#11918](https://github.com/Significant-Gravitas/AutoGPT/pull/11918))
* **The artifact panel fits narrow windows** instead of being clipped. ([#13630](https://github.com/Significant-Gravitas/AutoGPT/pull/13630))
* **Smoother login page:** the background animation no longer slows the form. ([#13547](https://github.com/Significant-Gravitas/AutoGPT/pull/13547))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Password reset works before onboarding:** a reset link no longer bounces unfinished accounts to onboarding. ([#13511](https://github.com/Significant-Gravitas/AutoGPT/pull/13511))
* **Otto greets you by the name you chose** during onboarding. ([#13520](https://github.com/Significant-Gravitas/AutoGPT/pull/13520))
* **Discord @mentions in very long threads** no longer fail with a generic error. ([#13577](https://github.com/Significant-Gravitas/AutoGPT/pull/13577))
* **Publishing to the Marketplace:** adding an image after a failed submit re-enables the button, and the success screen appears without delay. ([#13578](https://github.com/Significant-Gravitas/AutoGPT/pull/13578))
* **Files sent through chat bots** no longer crash on the way in. ([#13589](https://github.com/Significant-Gravitas/AutoGPT/pull/13589))
* **Webhook presets only move to a new workflow version** when the trigger is compatible. ([#13394](https://github.com/Significant-Gravitas/AutoGPT/pull/13394))
* **Connecting integrations on iPhone:** the sign-in window opens in Safari again. ([#13592](https://github.com/Significant-Gravitas/AutoGPT/pull/13592))
* **No more mid-reply flash** in long streaming answers. ([#13631](https://github.com/Significant-Gravitas/AutoGPT/pull/13631))
* **Otto can save workflows that use MCP tools with nested fields;** the validator now matches what runs. ([#13615](https://github.com/Significant-Gravitas/AutoGPT/pull/13615))
* **Otto's documentation lookups return pages again,** and the links point at the current docs site. ([#13598](https://github.com/Significant-Gravitas/AutoGPT/pull/13598))
* **Tool calls stay in chat history** instead of disappearing after a mid-turn flush. ([#13593](https://github.com/Significant-Gravitas/AutoGPT/pull/13593))
* **Otto finds renamed blocks** and exact block names. ([#13584](https://github.com/Significant-Gravitas/AutoGPT/pull/13584))
* **Time zones with GMT offsets** display correctly. ([#13466](https://github.com/Significant-Gravitas/AutoGPT/pull/13466))

</details>


# Organize files, share your work, connect Discord

*June 18 – July 9, 2026*

**Platform versions:** `v0.6.64` · `v0.6.65` · `v0.6.66`

## A home for all your files

Every file your agents create or use now lives in one place — the Files page. Organize outputs into folders so reports, images, and data are easy to find and reuse. Search across everything instantly, and filter by uploaded vs generated files. [#13359](https://github.com/Significant-Gravitas/AutoGPT/pull/13359)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-6285baf9fb3ca3b3f84cf02fe3df3e064ddd131d%2Ffiles-hero.png?alt=media" alt="Files page showing folders and file organization"><figcaption><p>All your agent files in one organized workspace</p></figcaption></figure>

## Share any conversation with a link

Enable sharing and send the generated link to share an AutoPilot conversation. Anyone with the link can view the conversation without signing in. Sharing is live: new messages and files added after you share become visible too, and agent runs become visible when that option is enabled. Turning sharing off invalidates the existing link.

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-fc20032f44eba5dd702f830268e730230577a988%2Fshare-chat-hero.png?alt=media" alt="Share this chat modal with enable sharing button"><figcaption><p>Share a live conversation link — revoke it anytime</p></figcaption></figure>

## Bring AutoPilot to your Discord server

Connect AutoGPT to Discord from Settings → Bots. Add the bot to any server, link a DM channel to chat directly, upload files from Discord straight into AutoPilot, and get outputs delivered to your community in real time. [#13298](https://github.com/Significant-Gravitas/AutoGPT/pull/13298) [#13427](https://github.com/Significant-Gravitas/AutoGPT/pull/13427)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-79b76a6873435cc021bfc1e01eb4439e5f46a169%2Fdiscord-bot-hero.png?alt=media" alt="Bots settings page showing Discord integration"><figcaption><p>Connect AutoPilot to your Discord server or DM channel</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **Browse any agent graph** — view any public agent in the Builder without editing it, perfect for learning how automations are built. ([#13238](https://github.com/Significant-Gravitas/AutoGPT/pull/13238))
* **AutoPilot remembers where it left off** — full action history is now preserved when continuing a task across multiple sessions. ([#12673](https://github.com/Significant-Gravitas/AutoGPT/pull/12673))
* **Webhook triggers for AutoPilot** — trigger AutoPilot from external services using webhooks, with full preset lifecycle management. ([#13298](https://github.com/Significant-Gravitas/AutoGPT/pull/13298))
* **Faster builder search** — search results in the agent builder load noticeably faster. ([#13290](https://github.com/Significant-Gravitas/AutoGPT/pull/13290))
* **Reliable graph saves** — agent graphs now save atomically, with clearer error messages when credentials are missing. ([#13264](https://github.com/Significant-Gravitas/AutoGPT/pull/13264))
* **Plans default to monthly billing.** ([#13363](https://github.com/Significant-Gravitas/AutoGPT/pull/13363))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **Global search polish** — loading state added and jittery animations removed. ([#13454](https://github.com/Significant-Gravitas/AutoGPT/pull/13454))
* **Schedule Run button fix** — button stays enabled while editing a schedule name. ([#13481](https://github.com/Significant-Gravitas/AutoGPT/pull/13481))
* **Builder tutorial highlight** — selected node output is now highlighted during the builder tutorial run step. ([#13483](https://github.com/Significant-Gravitas/AutoGPT/pull/13483))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **AutoPilot responses in Discord** — fixed text blocks running together in Discord messages. ([#13424](https://github.com/Significant-Gravitas/AutoGPT/pull/13424))
* **Save-and-run uses the latest version** — fixed agents running the previous saved version instead of the one you just saved. ([#13482](https://github.com/Significant-Gravitas/AutoGPT/pull/13482))
* **AutoPilot task cancellation** — fixed chat streaming cutting off mid-message when cancelling a task. ([#13452](https://github.com/Significant-Gravitas/AutoGPT/pull/13452))
* **Agents using OpenAI extended reasoning** — fixed agents failing mid-task when OpenAI tool loops included reasoning steps. ([#13438](https://github.com/Significant-Gravitas/AutoGPT/pull/13438))
* **LLM provider stability** — fixed crashes from OpenAI and Anthropic API changes. ([#13335](https://github.com/Significant-Gravitas/AutoGPT/pull/13335), [#13342](https://github.com/Significant-Gravitas/AutoGPT/pull/13342))
* **Files page previews** — fixed code and markdown file previews not rendering correctly. ([#13304](https://github.com/Significant-Gravitas/AutoGPT/pull/13304))
* **Scheduled AutoPilot tasks** — fixed tasks not registering correctly when created. ([#13336](https://github.com/Significant-Gravitas/AutoGPT/pull/13336))

</details>


# Smarter Automation, Fresher Design, Open for Business

*May 7 – June 10, 2026*

**Platform versions:** `v0.6.59` · `v0.6.60` · `v0.6.61` · `v0.6.62` · `v0.6.63`

## AutoPilot gets a major upgrade

AutoPilot — your always-on AI co-pilot — just received its biggest set of upgrades yet.

**Native scheduling** lets you run agents on a cron schedule directly from the chat. No setup required — just say when, and AutoPilot handles the rest. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/13202)

**Self-distilled skills registry** means AutoPilot now learns from its own work. After completing complex multi-step procedures, it automatically saves reusable recipes to a skills library — so it gets faster and more capable with every workflow you run together. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/13195)

**Auto-discover MCP integrations** — when no native block exists for a tool or service, AutoPilot now automatically finds and connects the right MCP integration, so you never hit a dead end mid-workflow. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/13117)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-1adf63dd8e5a9c5cb7e46d016e5f42e48041f7b2%2Fautopilot-upgrades-hero.png?alt=media" alt="AutoPilot chat showing scheduling, skills registry, and MCP auto-discovery"><figcaption><p>Native scheduling, a self-distilling skills registry, and MCP auto-discovery in AutoPilot</p></figcaption></figure>

## A completely new first impression

The login and signup experience has been rebuilt. An animated split-panel layout, aurora lighting, and a live integrations marquee welcome you the moment you arrive — and set the tone for everything behind it. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/13169)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-991766a326f4fcfa68cdb19235817a219e224c50%2Flogin-signup-hero.png?alt=media" alt="New animated login screen with aurora background and integrations marquee"><figcaption><p>The redesigned login and signup experience</p></figcaption></figure>

## Unlock everything — plans are live

Subscriptions and payments are officially live. Choose the plan that fits your team, upgrade instantly, and unlock the full platform. No more waitlists or manual provisioning. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/13096)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-73e26e8ca3d99c120ac464439f5f16666679009a%2Fsubscription-pricing-hero.png?alt=media" alt="Plan selection screen showing available subscription tiers"><figcaption><p>Pick the plan that's right for you — billing is now fully live</p></figcaption></figure>

## Settings rebuilt & a smarter profile menu

Settings has been rebuilt with a cleaner layout, faster navigation, and a dedicated integrations tab for managing all your third-party connections in one place. The profile dropdown now surfaces quick actions — feedback, billing, and sign-out — without taking you away from your current page. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12976) [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/13138)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-87e9f69c8b7ade97b256f39b25581dfccf98ad1a%2Fsettings-profile-hero.png?alt=media" alt="New profile dropdown menu with quick-access actions"><figcaption><p>Quick actions from your profile menu</p></figcaption></figure>

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-8896dbbb6a9f53ac42b066b8a981fdd3721b2be1%2Fsettings-integrations-hero.png?alt=media" alt="Rebuilt settings page showing the third-party integrations tab"><figcaption><p>Third-party integrations are now in one dedicated tab</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **Trigger On Anything** — more flexible workflow triggers let agents respond to a wider range of conditions and events. ([#12740](https://github.com/Significant-Gravitas/AutoGPT/pull/12740))
* **Export Chat as Markdown** — download any AutoPilot conversation as a `.md` file. ([#13070](https://github.com/Significant-Gravitas/AutoGPT/pull/13070))
* **Auto-open artifact panel** — the artifact panel now opens automatically when an agent produces an artifact. ([#12997](https://github.com/Significant-Gravitas/AutoGPT/pull/12997))
* **Slack block** — send and receive Slack messages natively from any agent. ([#13008](https://github.com/Significant-Gravitas/AutoGPT/pull/13008))
* **Cost breakdown in briefing panel** — see exactly what each agent run costs, right in the briefing. ([#13129](https://github.com/Significant-Gravitas/AutoGPT/pull/13129))
* **Faster first response in AutoPilot** — reduced time-to-first-token for AutoPilot conversations. ([#12828](https://github.com/Significant-Gravitas/AutoGPT/pull/12828))
* **Credit top-up prompt** — when you run out of automation credits, you're now prompted to top up directly from the chat. ([#13208](https://github.com/Significant-Gravitas/AutoGPT/pull/13208))
* **AutoPilot shows its plan** — before building a new agent, AutoPilot breaks down your request step-by-step so you can review the approach first. ([#12731](https://github.com/Significant-Gravitas/AutoGPT/pull/12731))
* **Variable inputs in Execute Code block** — pass dynamic variables directly into your custom code blocks from any agent. ([#13300](https://github.com/Significant-Gravitas/AutoGPT/pull/13300))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **Mobile AutoPilot parity** — full AutoPilot feature set now available on mobile. ([#13232](https://github.com/Significant-Gravitas/AutoGPT/pull/13232))
* **Chat source icons** — see which platform a message came from, shown beside the timestamp. ([#13175](https://github.com/Significant-Gravitas/AutoGPT/pull/13175), [#13303](https://github.com/Significant-Gravitas/AutoGPT/pull/13303))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Profile avatar display** — Fixed profile avatar not displaying correctly in the profile popover. ([#13155](https://github.com/Significant-Gravitas/AutoGPT/pull/13155))
* **Signup redirect flash** — Fixed a flash to the home screen before onboarding completed. ([#13154](https://github.com/Significant-Gravitas/AutoGPT/pull/13154))
* **OAuth error surfacing** — Integration errors now show a readable toast instead of failing silently. ([#13282](https://github.com/Significant-Gravitas/AutoGPT/pull/13282))
* **AutoPilot notification icons** — Push notification icons corrected for desktop and mobile. ([#13231](https://github.com/Significant-Gravitas/AutoGPT/pull/13231), [#13245](https://github.com/Significant-Gravitas/AutoGPT/pull/13245))
* **Scheduled filter alignment** — Fixed alignment of the scheduled filter in the agent library. ([#13235](https://github.com/Significant-Gravitas/AutoGPT/pull/13235))

</details>


# Artifacts, Briefings, and Builder Chat

*April 10 – May 1, 2026*

**Platform versions:** `v0.6.55` · `v0.6.56` · `v0.6.57` · `v0.6.58`

## See your outputs come to life

AutoPilot now renders rich artifacts directly in a side panel — open reports as interactive documents, view charts, read PDFs, and even play games, all without leaving the conversation. First introduced quietly in v0.6.54, artifacts have been significantly refined with smoother rendering, better state management, and a more polished panel experience across v0.6.55 and v0.6.57. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12856)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-5ff004b5ebf930cd5fd22bd4d8f75f3feab9fe2d%2Fartifacts-side-panel-hero.png?alt=media" alt="Artifacts rendered in the AutoPilot side panel"><figcaption><p>Rich artifacts — documents, charts, and interactive apps — rendered in the conversation side panel.</p></figcaption></figure>

## Agent briefings at a glance

The Home screen and Agents tab now display live briefings for each of your agents — a short, AI-generated summary of what the agent is doing, what it last completed, and what's coming next. Scheduled agents surface their upcoming run times automatically, so you always know the state of your fleet at a glance. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12764)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-d2ccef4c99d00dbb9b7c730f1eb815bbb932c8b3%2Fagent-brief-homescreen-hero.png?alt=media" alt="Agent briefings on the Home screen"><figcaption><p>Live agent briefings on the Home screen keep you up to date without opening each agent.</p></figcaption></figure>

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-c45381d8de56074b6a94443752fe25fdb2340716%2Fagent-brief-agents-tab-hero.png?alt=media" alt="Agent briefings in the Agents tab"><figcaption><p>The Agents tab shows the same briefings alongside run history and scheduling details.</p></figcaption></figure>

## Chat with your builder

A new AI chat panel is now embedded directly in the flow builder. Ask questions about your graph, get help debugging a block configuration, or request changes to the workflow — all without switching context. The panel is aware of your current graph structure, making it a hands-on collaborator rather than a general assistant. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12699)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-61d1122d2c9447228368c02369ea01d82cdebbf8%2Fai-chat-builder-hero.png?alt=media" alt="AI chat panel in the flow builder"><figcaption><p>The AI chat panel in the flow builder understands your graph and can suggest or apply changes inline.</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **Graphiti memory** — Long-term memory via Graphiti is now available as a block for persistent agent knowledge. (v0.6.55)
* **Multi-question ask** — The `ask_question` block can now present multiple questions in a single prompt, reducing back-and-forth interruptions. (v0.6.55)
* **Standard / Advanced model toggle** — Easily switch between standard and advanced AI models per agent run. (v0.6.55)
* **xAI Grok models** — Grok models from xAI are now available in the model selector. (v0.6.57)
* **Web Push notifications** — Opt in to browser push notifications so you never miss an agent completion or action request. ([#12723](https://github.com/Significant-Gravitas/AutoGPT/pull/12723)) (v0.6.58)

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **Message timestamps** — Conversation messages now display timestamps for easier reference. ([#12890](https://github.com/Significant-Gravitas/AutoGPT/pull/12890)) (v0.6.58)

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Artifact panel stability** — Fixed rendering and state management issues in the artifact side panel. ([#12856](https://github.com/Significant-Gravitas/AutoGPT/pull/12856)) (v0.6.57)
* **Scheduled agents in briefings** — Scheduled agents now correctly surface their next run time in agent briefings. ([#12818](https://github.com/Significant-Gravitas/AutoGPT/pull/12818)) (v0.6.57)

</details>


# Smarter Starts, Faster Feedback

*March 23 – April 9, 2026*

**Platform version:** `v0.6.54`

## Themed Prompt Categories

When you start a new AutoPilot conversation, you now see **themed prompt categories** — Learn, Create, Automate, and Organize. Each theme button opens a popover with **5 contextual prompts** tailored to the category. Personalized prompts are distributed across themes automatically. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12515)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-1fcedad7c23a2d425df52a650d85c466e0b127b2%2Fv0654-prompt-categories-hero.png?alt=media" alt="Themed prompt categories in the AutoPilot empty session"><figcaption><p>Themed prompt categories on the new conversation screen</p></figcaption></figure>

## Live Timer Stats

A **live elapsed timer** now appears in the AutoPilot thinking indicator while the AI is processing — showing "23s", "1m 5s" and so on after a 20-second threshold so quick responses aren't cluttered. Once the response completes, a **"Thought for Xm Ys" badge** freezes in place below the message. The duration **stays with the conversation**, so you can always see how long a response took — even after refreshing the page or revisiting an older chat. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12583)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-e5d4f5b062e245a1278a2913b94cd2903f8be022%2Fv0654-live-timer-hero.png?alt=media" alt="Live timer stats showing elapsed thinking time"><figcaption><p>Live elapsed timer and persisted thinking duration</p></figcaption></figure>

## Redesigned Onboarding

The onboarding wizard has been **completely redesigned** with an AutoPilot-first flow. A polished 4-step experience — Welcome → Role selection → Pain points → Preparing workspace — collects your role and pain points to **personalize AutoPilot suggestions** from the start. Pain points are **reordered based on your selected role** (e.g. Sales sees "Finding leads" first), and steps sync with URL params so browser back/forward just works. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12640)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-2ddc29ac07528fbfda43824bf7b90e71f42fabff%2Fv0654-onboarding-hero.png?alt=media" alt="Redesigned onboarding wizard with role selection"><figcaption><p>New 4-step onboarding wizard with role-based personalization</p></figcaption></figure>

## Copy Your Prompts

You can now **copy your own prompt messages** in AutoPilot with a single click. A copy button appears on hover — right-aligned below the message — using the same `CopyButton` component already available on assistant responses. No more manual text selection when you want to **reuse or share a prompt** you've written. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12571)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-ce3e05747ab83c1fafdf61af190b446d6903980d%2Fv0654-copy-prompts-hero.png?alt=media" alt="Copy button on user prompt messages"><figcaption><p>One-click copy button on your own prompt messages</p></figcaption></figure>

<details>

<summary>✨ Improvements</summary>

* **Spend credits to reset AutoPilot daily rate limit** — Hit your daily message cap? Spend credits to keep going without waiting for the reset. ([#12526](https://github.com/Significant-Gravitas/AutoGPT/pull/12526))
* **Rate-limit tiering system** — AutoPilot now supports configurable rate-limit tiers so different user plans get different message caps. ([#12581](https://github.com/Significant-Gravitas/AutoGPT/pull/12581))
* **Extended thinking execution mode** — OrchestratorBlock gains an extended thinking mode for deeper, multi-step reasoning. ([#12512](https://github.com/Significant-Gravitas/AutoGPT/pull/12512))
* **Automatic AgentMail setup** — AgentMail now works out of the box. Your email address is created automatically the first time you need it — no API keys or manual setup required. ([#12537](https://github.com/Significant-Gravitas/AutoGPT/pull/12537))
* **Session-level dry-run flag** — AutoPilot sessions can now be flagged as dry-run at the session level. ([#12582](https://github.com/Significant-Gravitas/AutoGPT/pull/12582))
* **Generic ask\_question AutoPilot tool** — A new tool lets AutoPilot ask structured clarifying questions mid-conversation. ([#12647](https://github.com/Significant-Gravitas/AutoGPT/pull/12647))
* **Git committer identity from GitHub profile** — E2B sandbox commits now use the user's real GitHub name and email. ([#12650](https://github.com/Significant-Gravitas/AutoGPT/pull/12650))
* **Create → dry-run → fix agent generation loop** — Agent generation now follows an iterative create, dry-run, and fix cycle for better results. ([#12578](https://github.com/Significant-Gravitas/AutoGPT/pull/12578))
* **All 12 Z.ai GLM models via OpenRouter** — Access every Z.ai GLM model through OpenRouter integration. ([#12672](https://github.com/Significant-Gravitas/AutoGPT/pull/12672))
* **include\_graph option for find\_library\_agent** — Fetch the full graph structure when searching library agents for debugging or editing. ([#12622](https://github.com/Significant-Gravitas/AutoGPT/pull/12622))
* **Cursor-based message pagination** — AutoPilot messages load newest-first with cursor-based pagination for faster load times. ([#12328](https://github.com/Significant-Gravitas/AutoGPT/pull/12328))
* **Codecov coverage reporting** — Coverage reporting set up across platform and classic with Playwright E2E included. ([#12655](https://github.com/Significant-Gravitas/AutoGPT/pull/12655), [#12665](https://github.com/Significant-Gravitas/AutoGPT/pull/12665))
* **React integration testing** — Vitest + React Testing Library + MSW test infrastructure added. ([#12667](https://github.com/Significant-Gravitas/AutoGPT/pull/12667))
* **Cost tracking for system credentials** — Platform now tracks costs incurred by system-managed credentials. ([#12696](https://github.com/Significant-Gravitas/AutoGPT/pull/12696))

</details>

<details>

<summary>🎨 UI/UX Improvements</summary>

* **Auto-reconnect after device sleep** — AutoPilot chat reconnects automatically after your device wakes from sleep. ([#12519](https://github.com/Significant-Gravitas/AutoGPT/pull/12519))
* **Marketplace card descriptions** — Cards now show 3-line descriptions with a fallback color when no image exists. ([#12557](https://github.com/Significant-Gravitas/AutoGPT/pull/12557))
* **Hide placeholder during voice recording** — Placeholder text hides when AutoPilot voice recording is active. ([#12534](https://github.com/Significant-Gravitas/AutoGPT/pull/12534))
* **Array field layout fix** — Fixed array field item layout and added FormRenderer Storybook stories. ([#12532](https://github.com/Significant-Gravitas/AutoGPT/pull/12532))
* **Realistic AutoPilot suggestions** — Replaced unrealistic AutoPilot suggestion prompts with practical ones. ([#12564](https://github.com/Significant-Gravitas/AutoGPT/pull/12564))
* **Show all agent outputs** — Agent results now display all outputs, not just the last one. ([#12504](https://github.com/Significant-Gravitas/AutoGPT/pull/12504))
* **Notification follow-ups** — AutoPilot notifications gain branding, UX improvements, persistence, and cross-tab sync. ([#12428](https://github.com/Significant-Gravitas/AutoGPT/pull/12428))
* **Horizontal scroll for JSON output** — Builder JSON output data now scrolls horizontally instead of overflowing. ([#12638](https://github.com/Significant-Gravitas/AutoGPT/pull/12638))
* **Onboarding polish** — Refined AutoPilot onboarding with branding, auto-advance, soft cap, and visual polish. ([#12686](https://github.com/Significant-Gravitas/AutoGPT/pull/12686))

</details>

<details>

<summary>🐛 Bug Fixes</summary>

* **Prevent graph execution stuck** — Fixed stuck graph executions and steered SDK away from bash\_exec. ([#12548](https://github.com/Significant-Gravitas/AutoGPT/pull/12548))
* **Sentry error reduction** — Multiple rounds of prod Sentry error fixes to reduce on-call alert noise. ([#12560](https://github.com/Significant-Gravitas/AutoGPT/pull/12560), [#12565](https://github.com/Significant-Gravitas/AutoGPT/pull/12565))
* **Sink input validation** — AgentValidator now validates sink inputs to catch wiring errors early. ([#12514](https://github.com/Significant-Gravitas/AutoGPT/pull/12514))
* **Docker Node.js upgrade** — Upgraded from EOL Node.js v21 to v22 LTS in Docker images. ([#12561](https://github.com/Significant-Gravitas/AutoGPT/pull/12561))
* **Thinking block preservation** — Thinking blocks are now preserved during transcript compaction. ([#12574](https://github.com/Significant-Gravitas/AutoGPT/pull/12574))
* **AIConditionBlock error handling** — Errors are now raised instead of silently swallowed. ([#12593](https://github.com/Significant-Gravitas/AutoGPT/pull/12593))
* **Host-scoped credentials** — Fixed credential resolution for authenticated web requests. ([#12579](https://github.com/Significant-Gravitas/AutoGPT/pull/12579))
* **Duplicate tool name disambiguation** — OrchestratorBlock now disambiguates duplicate tool names. ([#12555](https://github.com/Significant-Gravitas/AutoGPT/pull/12555))
* **Gmail recipient validation** — Gmail blocks validate email recipients before making API calls. ([#12546](https://github.com/Significant-Gravitas/AutoGPT/pull/12546))
* **Tool call circuit breakers** — Added circuit breakers and intermediate persistence in AutoPilot. ([#12604](https://github.com/Significant-Gravitas/AutoGPT/pull/12604))
* **Prompt-too-long retry** — Automatic compaction, model-aware compression, and truncated tool call recovery. ([#12625](https://github.com/Significant-Gravitas/AutoGPT/pull/12625))
* **Credential loading fix** — Fixed AutoPilot credential loading across event loops. ([#12628](https://github.com/Significant-Gravitas/AutoGPT/pull/12628))
* **Duplicate block execution prevention** — Prevented duplicate execution from pre-launch argument mismatch. ([#12632](https://github.com/Significant-Gravitas/AutoGPT/pull/12632))
* **Tool output file reading** — Fixed tool output file reading between E2B and host. ([#12646](https://github.com/Significant-Gravitas/AutoGPT/pull/12646))
* **Dry-run mode propagation** — Dry-run mode now propagates to special blocks with LLM-powered simulation. ([#12575](https://github.com/Significant-Gravitas/AutoGPT/pull/12575))
* **Double-submit prevention** — Prevented duplicate side effects from double-submit and stale-cache races. ([#12660](https://github.com/Significant-Gravitas/AutoGPT/pull/12660))
* **Silent DataError fix** — Wrapped PlatformCostLog metadata in SafeJson to fix silent DataError. ([#12713](https://github.com/Significant-Gravitas/AutoGPT/pull/12713))

</details>


# Import workflows from other platforms and enjoy a polished marketplace

*March 20 – March 25, 2026*

**Platform version:** `v0.6.53`

This release makes it easier than ever to **bring your existing automations into AutoGPT**. You can now import workflows straight from n8n, Make.com, and Zapier, **test your agents before they go live** with a new dry-run mode, plus the marketplace gets another round of visual polish.

***

## Import workflows from n8n, Make.com & Zapier

Switching to AutoGPT no longer means starting from scratch. A new **workflow import** feature lets you bring in automations you've already built on other platforms and convert them into AutoGPT agents. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12440)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-f80ba07aec02059f859d58078b27c7ef377eb5d6%2Fimport-workflows-hero.png?alt=media" alt="Import workflows from other platforms"><figcaption><p>Import your existing workflows from n8n, Make.com, and Zapier directly into AutoGPT.</p></figcaption></figure>

***

## A more polished marketplace

The marketplace continues to get cleaner and easier to browse. Card descriptions are now **neatly truncated** to keep the layout consistent, the download button has been **repositioned** for better flow, and card overflow issues have been resolved. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12494)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-85984f696dafa92e681eae520ec4c9497c353fa2%2Fmarketplace-ui-v053-hero.png?alt=media" alt="UI improvements to the marketplace"><figcaption><p>Cleaner marketplace cards with consistent layout and improved button placement.</p></figcaption></figure>

***

## Test your agents before they go live

A new **dry-run mode** lets you simulate a full run of any agent without real-world side effects. Every block executes and produces realistic outputs, so you can verify your agent works correctly — before it sends emails, updates spreadsheets, or takes any real action. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12483)

This is especially powerful with AutoPilot. When AutoPilot builds an agent for you, it can now automatically test it to make sure it works and the quality is up to standard. It can also preview exactly what an agent will do before you commit to running it — so you always know what to expect.

***

<details>

<summary>Improvements</summary>

* **Parallel AutoPilot actions** — When AutoPilot needs to perform several steps at once, it now runs them simultaneously — no more waiting for each to finish before starting the next. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12472)
* **Scoped AutoPilot tools** — You can now control exactly which tools and blocks AutoPilot has access to — whether running it as a block or using sub-agents — so you can build tightly constrained agentic systems. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12482)
* **Leaner tool schemas** — Tool schema token cost has been reduced by 34%, meaning faster and cheaper AutoPilot. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12398)
* **Admin marketplace preview** — Admins can now preview and download submitted agents before approving them. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12536)

</details>

<details>

<summary>Fixes</summary>

* Fixed blocks with complex inputs (e.g. GitHub Multi-File Commit) sometimes failing silently [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12496)
* Fixed auto top-up setup showing a generic error when no payment method is on file [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12496)
* Fixed re-uploading a file to AutoPilot failing instead of replacing the existing file [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12496)
* OAuth popup detection — the app now notices when you close an OAuth window and lets you dismiss the waiting modal [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12443)
* Added circuit breaker to prevent infinite tool-call retry loops [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12499)
* Reduced noisy error logging from user-caused LLM API errors [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12516)
* Fixed browser automation to use system Chromium on all architectures [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12473)

</details>

<details>

<summary>Under the hood</summary>

* Renamed SmartDecisionMakerBlock to OrchestratorBlock for clarity [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12511)
* Added DB\_STATEMENT\_CACHE\_SIZE env var for Prisma engine tuning [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12521)
* Bumped stagehand ^0.5.1 → ^3.4.0 to fix yanked litellm dependency [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12539)
* Registered AutoPilot sessions with stream registry for SSE updates [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12500)
* Allowed /tmp as valid path in E2B sandbox file tools [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12501)

</details>


# Explore a new marketplace, track usage, and give instant feedback

*March 13 – March 20, 2026*

**Platform version:** `v0.6.52`

This week's release brings a **refreshed marketplace**, a **usage monitor** so you always know where your credits stand, and a **new feedback button**.

***

## A brand-new marketplace experience

The marketplace has been **completely redesigned** with a cleaner, more professional look. Agent cards now feature subtle borders and refined spacing, the search bar matches our design system, and everything feels polished at every screen size. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12462)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-a11ce612f1c30a104b86bbec73b3807e13a5fe13%2Fmarketplace-hero.png?alt=media" alt="The redesigned AutoGPT marketplace with polished agent cards and clean layout"><figcaption><p>The redesigned marketplace — cleaner cards, better search, and a professional new look</p></figcaption></figure>

***

## Track your usage at a glance

A new **usage monitor** gives you full visibility into your credit balance and token usage. You'll see daily and weekly progress bars, reset times, and a clear breakdown of how your credits are being spent — all from a simple popover in the interface. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12385)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-29a44beb9250545ad4a9eed329a7ec251151c4b8%2Fusage-monitor-hero.png?alt=media" alt="The new usage monitor showing credit balance and token usage"><figcaption><p>Keep tabs on your credit usage with daily and weekly breakdowns</p></figcaption></figure>

***

## Give feedback from anywhere

The **feedback button** has moved to the header, making it accessible from any page. Share your thoughts, report issues, or request features without having to navigate away from what you're doing. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12462)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-2b0e9ded4f89971a387931766915178bd5a2a4f0%2Ffeedback-button-hero.png?alt=media" alt="The new feedback button in the header"><figcaption><p>The feedback button is now always within reach in the header</p></figcaption></figure>

***

<details>

<summary>Improvements</summary>

* **Shareable prompt links** — share an AutoPilot prompt via URL so anyone can try it out with a single click — a great way to share use cases and ideas [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12406)
* **"Run now" button on schedules** — manually trigger any scheduled agent run with one click [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12388)
* **"Jump Back In" on Library** — quickly resume your most recent agent right from the Library page [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12387)
* **Rich media previews in Builder** — see images, files, and other media directly in node outputs and file inputs [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12432)
* **Graph search in Builder** — find any node or block instantly in your agent graphs [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12395)
* **Themed prompt categories** — suggestion pills are now organized into themed categories for easier discovery [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12452)
* **Nano Banana 2** — the latest image generation model is now available in the image generator, customizer, and editor blocks [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12218)
* **AgentMail integration** — new blocks for managing email workflows through AgentMail [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12417)

</details>

<details>

<summary>Fixes</summary>

* Fixed sub-folders not showing when navigating inside a folder [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12316)
* Fixed image delete button on the Edit Agent form [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12362)
* Improved handling of transient API connection errors [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12445)
* Fixed tool-result file reads failing across turns [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12399)
* Fixed long filenames being truncated incorrectly [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12025)
* Allowed falsy values in list building blocks [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12028)
* Renamed "CoPilot" to "AutoPilot" on the credits page [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12481)
* Constrained Markdown heading sizes in chat messages [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12463)

</details>

<details>

<summary>Under the hood</summary>

* Read-only SQL views layer with analytics schema [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12367)
* AutoPilot block for running AutoPilot from inside agents or as a sub-agent within AutoPilot itself [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12439)
* GitHub CLI support with automatic token injection [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12426)
* Improved end-to-end CI with reduced costs [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12437)
* New integration tests for Builder stores, components, and hooks [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12433)
* Builder end-to-end tests for the new Flow Editor [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12436)
* Collapsed navbar text to icons below 1280px [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12484)

</details>


# Organize your agents, get notified, and enjoy a cleaner chat

*March 5 – March 12, 2026*

**Platform version:** `v0.6.51`

## Organize agents with drag-and-drop folders

Building on the folder support introduced in the previous release, you can now **drag and drop agents between folders**, rename folders, and color-code them to match your workflow. Whether you have five agents or fifty, everything stays tidy. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12290)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-507659f9016f7defe06d52fd5831144c0ac53b80%2Ffolders-hero.png?alt=media" alt="Organizing agents into color-coded folders in the AutoGPT library"><figcaption><p>Organizing agents into color-coded folders in the AutoGPT library</p></figcaption></figure>

## Get notified when background chats finish

AutoPilot now sends you a **notification when a background chat completes**. No more switching tabs to check — you'll see a toast alert the moment your agent finishes its work, so you can jump right back into the results. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12364)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-32b8890bc162f5eed7342154569dfc9ae8d53eff%2Fnotifications-hero.png?alt=media" alt="AutoPilot notification appearing when a background chat finishes its work"><figcaption><p>AutoPilot notification appearing when a background chat finishes its work</p></figcaption></figure>

## Cleaner reasoning & chat experience

We've redesigned how **reasoning steps and tool calls appear in chat**. Intermediate thinking is now collapsed by default, keeping your conversation clean and easy to read. Expand any step if you want the full details. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12282)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-f6c041200fb1226d692ea5a83d5a651808bf8fc9%2Freasoning-hero.png?alt=media" alt="Collapsed reasoning steps keeping the AutoPilot conversation clean and focused"><figcaption><p>Collapsed reasoning steps keeping the AutoPilot conversation clean and focused</p></figcaption></figure>

## Give feedback and share outputs instantly

Every response now comes with **action buttons to copy, upvote, downvote, or listen to the output**. Give quick feedback on any response so AutoPilot keeps getting better, and copy or share results in one tap. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12260)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-3332ecd52e6e97b687bfe31d640b5908b249b975%2Foutputs-hero.png?alt=media" alt="Output action buttons for copying, rating, and sharing AutoPilot responses"><figcaption><p>Output action buttons for copying, rating, and sharing AutoPilot responses</p></figcaption></figure>

***

<details>

<summary>Improvements</summary>

* **Credential selector redesign** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12378) — Completely rebuilt the credential picker for a smoother, faster experience when connecting your accounts.
* **Pinned tool cards** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12346) — Interactive tool cards now stay pinned outside collapsed reasoning, so results are always visible without expanding steps.
* **Workspace file uploads** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12226) — Upload files directly to your workspace and reference them across agents and conversations.
* **Multimodal vision support** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12273) — AutoPilot can now analyze images and PDFs you share in chat, powered by the latest vision models.
* **Per-turn summary stats** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12257) — Each agent turn now shows a work-done summary so you can see exactly what happened at a glance.
* **Text-to-speech voice selection** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12317) — Choose from multiple AI voices when listening to agent responses, with improved quality to avoid robotic-sounding output.
* **Batch undo in agent builder** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12344) — Undo multiple changes at once when editing agents in the visual builder.

</details>

<details>

<summary>Fixes</summary>

* **Session message preservation** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12302) — Title updates no longer overwrite session messages, keeping your full conversation intact.
* **Transcript reliability** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12318) — Refactored transcripts to an atomic full-context model, preventing data loss during complex multi-step runs.
* **File download integrity** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12349) — Workspace file downloads are now buffered to prevent truncation of large files.
* **Node layout handling** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12354) — Improved how the builder handles discriminated unions and node positioning when editing agents.
* **Triggered agent runs** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12298) — Manual run attempts for triggered agents are now handled gracefully instead of failing silently.
* **Password reset flow** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12384) — Supabase error details now pass through correctly during password reset, giving clearer feedback when something goes wrong.

</details>

<details>

<summary>Under the hood</summary>

* **New models added** — Claude Sonnet 4.6, Grok 3, Mistral Large, Medium, Small & Codestral, Perplexity Sonar Reasoning Pro, Google Gemini 3.1 Flash & Pro, Phi-4, and Cohere Command A are now available.
* **File-ref protocol** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12332) — Internal file references now use a consistent protocol, making cross-block file passing more reliable.
* **Langfuse tracing** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12281) — Better observability for agent execution with enhanced trace correlation and feedback loops.
* **Sandbox auto-pause** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12330) — Code execution sandboxes now automatically pause when idle, eliminating unnecessary billing.
* **Claude Code auth** [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12288) — Added subscription authentication support for Claude Code integration in SDK mode.

</details>


# Connect any app, share files, and let AutoPilot browse for you

*February 26 – March 4, 2026*

**Platform version:** `v0.6.50`

## Connect to any app — instantly

That integration you've been waiting for? You don't need to wait anymore. AutoPilot now supports MCP (Model Context Protocol) — an open standard backed by hundreds of ready-made connectors for apps like Notion, Slack, Jira, Stripe, Postgres, and more. **Just tell AutoPilot what you want to connect to, and it finds and sets it up automatically** — nothing to install, nothing to configure. Search your Notion workspace, query a database, create a Jira ticket — all from the chat. If the service requires a login, you'll get the same familiar sign-in prompt you already know. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12213)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-c95a4438b1b24c4258dd0191f3e73a5d451108f0%2Fmcp-notion-hero.png?alt=media" alt="AutoPilot connecting to Notion via MCP and searching a workspace in real time"><figcaption><p>AutoPilot connecting to Notion and pulling release highlights — no integration setup required</p></figcaption></figure>

## Upload files to AutoPilot

You can now attach files directly in the AutoPilot chat — documents, images, spreadsheets, audio, and video. Hit the **+** button or drag and drop files into the chat. Once sent, your attachments display inline in the conversation and the AI can read and reference them. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12220)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-164606e09911f02467cc3df46bef3d69e1495791%2Ffile-upload-hero.png?alt=media" alt="Dragging a file into the AutoPilot chat"><figcaption><p>Drop files directly into the chat and AutoPilot picks them up instantly</p></figcaption></figure>

## AutoPilot can run code and create files for you

You can now drop a messy spreadsheet into AutoPilot and ask it to clean the data, find trends, and generate a polished chart. It can crunch numbers, build scripts, create documents, and produce downloadable files, all inside the conversation. Each step builds on the last, so you can go from raw data to finished deliverable just by asking. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12212)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-81d5c19b8d06fd9cc5ed6e34dacd1b6d3e6c63e9%2Fcode-execution-hero.png?alt=media" alt="AutoPilot analyzing business data and generating a sales performance dashboard"><figcaption><p>AutoPilot analyzing 14 months of business data and generating a dashboard — all from a single request</p></figcaption></figure>

## AutoPilot can browse the web for you

Two new browsing capabilities let AutoPilot interact with websites on your behalf. For quick lookups, it can fetch and extract content from any page in one shot. For multi-step tasks — like logging into a site, navigating through menus, and pulling data — it drives a full browser session that persists across steps within your conversation. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12230)

<figure><img src="https://2637581342-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiMDOYkb9SC1mijdHzvKF%2Fuploads%2Fgit-blob-13f689f3c2ac2f2278923cdd506753a179256187%2Fweb-browsing-hero.png?alt=media" alt="AutoPilot browsing a website autonomously in a live browser session"><figcaption><p>AutoPilot navigating a website in a live browser session</p></figcaption></figure>

## Listen to responses or copy them instantly

Multitasking? Tap the speaker icon on any message to have AutoPilot read it aloud while you do something else. Need to save a response? Hit the copy button to grab it in one click — ready to paste into an email, doc, or chat. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12256)

## See when the AI is summarizing

When a conversation gets long enough that AutoPilot needs to summarize earlier messages to stay within its memory limits, you'll now see a clear indicator — a spinner with "Summarizing earlier messages…" — instead of it happening silently in the background. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12250)

## Redesigned chat input

The chat input bar has been rebuilt with a cleaner layout — a spacious text area that grows smoothly as you type, with tool buttons and the send button in a tidy footer row. No more jarring height jumps when composing longer messages. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12207)

***

<details>

<summary>Improvements</summary>

* [More reliable streaming](https://github.com/Significant-Gravitas/AutoGPT/pull/12254) — AutoPilot now connects directly to the backend for real-time updates, avoiding an intermediate proxy that could cause timeouts on long-running tasks
* [Faster stall recovery](https://github.com/Significant-Gravitas/AutoGPT/pull/12254) — if the connection goes quiet, AutoPilot detects it in 10 seconds instead of 30 and reconnects automatically
* [Stop button works instantly](https://github.com/Significant-Gravitas/AutoGPT/pull/12254) — clicking Stop now immediately unlocks the input so you can keep working

</details>

<details>

<summary>Fixes</summary>

* [Node output no longer overflows](https://github.com/Significant-Gravitas/AutoGPT/pull/12222) — long text and JSON in the agent builder stays within its container, with output items capped for readability
* [Workspace file saves no longer conflict](https://github.com/Significant-Gravitas/AutoGPT/pull/12267) — when two operations write to the same file at the same time, you get a clear message instead of a raw error
* [Login no longer shows a blank page](https://github.com/Significant-Gravitas/AutoGPT/pull/12285) — signing in with email and password now loads the app immediately instead of requiring a manual refresh

</details>

<details>

<summary>Under the hood</summary>

* [Observability for the AI engine](https://github.com/Significant-Gravitas/AutoGPT/pull/12228) — every AutoPilot conversation turn is now traced with token counts, costs, and timing for faster debugging
* [Broadcast tracing enabled](https://github.com/Significant-Gravitas/AutoGPT/pull/12277) — monitoring coverage extended to the AI model routing layer
* [Legacy code removed](https://github.com/Significant-Gravitas/AutoGPT/pull/12276) — \~1,200 lines of old, unmaintained chat code cleaned out and replaced with a streamlined fallback path
* [Auto-synced developer tooling](https://github.com/Significant-Gravitas/AutoGPT/pull/12211) — switching branches now automatically keeps types and dependencies in sync

</details>


# Telegram bots, agent folders, and a rebuilt builder

*February 11 – 26, 2026*

**Platform version:** `v0.6.49`

## AutoPilot got a major brain upgrade

AutoPilot is now powered by a completely new AI engine. It can hold real multi-step conversations, use tools behind the scenes, and handle complex requests that would have confused it before. When you need multiple things done at once, it runs them in parallel instead of one at a time — so everything finishes faster. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12103)

Ask it to run one of your agents and it will actually wait for the result and tell you what happened — no more "your agent started, go check later." [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12147)

{% hint style="info" %}
If your connection drops while AutoPilot is working on something, it keeps going in the background and picks up right where you left off when you reconnect. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12057)
{% endhint %}

## Automate your Telegram bots

Thirteen new Telegram blocks let you build agents that respond to messages, photos, voice notes, videos, and reactions. Set up triggers for incoming content, then reply with text, images, audio, documents, or video. Connect your bot token from [@BotFather](https://t.me/BotFather) and you're ready to go. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12141)

## The builder has been rebuilt

The old agent builder is gone. Everyone now uses the new flow editor — a cleaner, faster interface with improved node rendering and no more toggling between views. If you've been using the legacy builder, the experience should feel familiar but noticeably more polished. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12081)

## Organize agents into folders

Your agent library now supports folders. Create them with custom names, emoji icons, and colors, then drag-and-drop agents into them or right-click to move. Folders can be nested up to five levels deep, and a breadcrumb bar helps you navigate. Search still works across everything regardless of which folder you're in. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12101)

## Your files follow you everywhere

Files created during agent runs — whether from code execution, image generation, or document creation — now persist in your workspace automatically. They're accessible across conversations and sessions, and images render inline in chat. AutoPilot also retains full context about files and tools it used earlier in the conversation, so it won't "forget" what just happened. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12073) [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12164)

## Tell us what to build next

You can now submit feature requests directly through AutoPilot chat. Describe what you want — it checks for existing requests first and either creates a new one or adds your vote to a matching request so the team can see demand. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12102)

## Vague goals get refined, not rejected

If you ask AutoPilot to create an agent with a vague goal like "monitor social media," it now suggests a clearer, more actionable version instead of returning an error. Accept the suggestion with one click or refine it further. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12139)

## The stop button actually stops things

Clicking Stop now sends a real cancellation signal through the entire system. Previously it didn't always halt what was running behind the scenes — now it does. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/12171)

***

<details>

<summary>Improvements</summary>

* [Delete chat sessions](https://github.com/Significant-Gravitas/AutoGPT/pull/12112) — clean up old conversations with a trash icon and confirmation dialog
* [Five new list blocks](https://github.com/Significant-Gravitas/AutoGPT/pull/12105) — Flatten, Interleave, Zip, Difference, and Intersection for agents that work with lists
* [Web search enabled for agents](https://github.com/Significant-Gravitas/AutoGPT/pull/12108) — agents can now search the web as part of their workflows
* [PDF generation support](https://github.com/Significant-Gravitas/AutoGPT/pull/12216) — agents can create and manipulate PDF documents
* [Faster, smarter block search](https://github.com/Significant-Gravitas/AutoGPT/pull/11806) — the builder search now combines keyword and semantic matching so you find what you need even without the exact name
* [Parallel tool execution](https://github.com/Significant-Gravitas/AutoGPT/pull/12165) — when an agent needs multiple tools at once, they run simultaneously instead of one at a time
* [Signup answers carry forward](https://github.com/Significant-Gravitas/AutoGPT/pull/12119) — information from your signup form pre-populates AutoPilot setup so you don't repeat yourself
* [Improved agent creation UX](https://github.com/Significant-Gravitas/AutoGPT/pull/12117) — cleaner create and edit experience with better progress feedback
* [Create agents via API](https://github.com/Significant-Gravitas/AutoGPT/pull/12208) — developers can now programmatically create agents through the external API
* [Exact timestamps on hover](https://github.com/Significant-Gravitas/AutoGPT/pull/12087) — hover over "2 hours ago" to see the full date and time
* [Credentials and inputs always visible](https://github.com/Significant-Gravitas/AutoGPT/pull/12194) — required setup steps and login prompts no longer hide inside collapsible sections
* [Clarification and save cards always visible](https://github.com/Significant-Gravitas/AutoGPT/pull/12204) — questions from AutoPilot and save confirmations are shown upfront instead of inside accordions
* [Task lists expanded by default](https://github.com/Significant-Gravitas/AutoGPT/pull/12168) — AutoPilot's to-do and task lists start open so you see everything immediately
* [Cleaner builder nodes](https://github.com/Significant-Gravitas/AutoGPT/pull/12152) — the "Advanced" switch on nodes replaced with a simpler chevron toggle
* [Easier connection deletion](https://github.com/Significant-Gravitas/AutoGPT/pull/12083) — the delete button appears when hovering anywhere on the connection line, not just a tiny target
* [Workspace files render in markdown](https://github.com/Significant-Gravitas/AutoGPT/pull/12166) — images and links from your workspace display correctly in chat messages
* [Better password reset experience](https://github.com/Significant-Gravitas/AutoGPT/pull/12123) — expired or already-used reset links now explain what happened and how to get a new one
* [Snake minigame while you wait](https://github.com/Significant-Gravitas/AutoGPT/pull/12160) — play a quick game of Snake during longer operations
* [Cleaner chat interface](https://github.com/Significant-Gravitas/AutoGPT/pull/12094) — improved spacing and styling in AutoPilot conversations

</details>

<details>

<summary>Fixes</summary>

* [Streaming completely overhauled](https://github.com/Significant-Gravitas/AutoGPT/pull/12173) — tool outputs no longer get lost, and refreshing the page preserves your conversation
* [Sessions no longer get stuck](https://github.com/Significant-Gravitas/AutoGPT/pull/12191) — fixed cases where the AI would stop responding with no way to recover
* [Long-running tasks no longer time out](https://github.com/Significant-Gravitas/AutoGPT/pull/12175) — complex tasks can run as long as needed instead of being killed after five minutes
* [Background agents no longer stall or hallucinate](https://github.com/Significant-Gravitas/AutoGPT/pull/12167) — the AI won't claim to have completed something it didn't actually do
* [Error messages are now actually helpful](https://github.com/Significant-Gravitas/AutoGPT/pull/12205) — real error details instead of generic failures, and switching between chats resumes properly
* [Reconnection preserves your messages](https://github.com/Significant-Gravitas/AutoGPT/pull/12159) — dropping and reconnecting no longer clears your chat history
* [API errors stay out of the chat](https://github.com/Significant-Gravitas/AutoGPT/pull/12063) — backend errors no longer appear as garbled text in your conversation
* [Agent creation follow-ups work](https://github.com/Significant-Gravitas/AutoGPT/pull/12062) — asking follow-up questions after creating an agent no longer causes errors
* [API key expiration default removed](https://github.com/Significant-Gravitas/AutoGPT/pull/12092) — API keys no longer auto-expire the next day; you choose whether to set an expiration
* [Text selection works in the builder](https://github.com/Significant-Gravitas/AutoGPT/pull/11955) — selecting text in input fields no longer accidentally drags the entire node
* [Website extraction errors handled](https://github.com/Significant-Gravitas/AutoGPT/pull/12048) — clear error messages when a website can't be fetched instead of silent failures
* [Content no longer overflows cards](https://github.com/Significant-Gravitas/AutoGPT/pull/12060) — block output text stays within its container instead of getting cut off
* [Workspace file listing improved](https://github.com/Significant-Gravitas/AutoGPT/pull/12190) — files display with proper names, sizes, and types instead of raw data
* ["Show all my agents" works](https://github.com/Significant-Gravitas/AutoGPT/pull/12138) — asking AutoPilot to list all your agents now actually lists them instead of returning nothing
* [External link button visible](https://github.com/Significant-Gravitas/AutoGPT/pull/12209) — the "Open link" button in the safety modal is now properly styled and clickable
* [No more crashes on logout](https://github.com/Significant-Gravitas/AutoGPT/pull/12202) — the AutoPilot page no longer breaks if you log out while it's open
* [Code highlighting performance](https://github.com/Significant-Gravitas/AutoGPT/pull/12144) — code blocks load faster and use less memory
* [Agent generation UI refreshes](https://github.com/Significant-Gravitas/AutoGPT/pull/12070) — the interface now updates when agent creation finishes instead of appearing stuck
* [Concurrent saves no longer conflict](https://github.com/Significant-Gravitas/AutoGPT/pull/12177) — sending multiple rapid messages no longer causes database errors
* [Workspace file downloads work](https://github.com/Significant-Gravitas/AutoGPT/pull/12215) — files created by the AI now include proper download links
* [Chat message spacing fixed](https://github.com/Significant-Gravitas/AutoGPT/pull/12091) — messages no longer have awkward extra whitespace

</details>

<details>

<summary>Under the hood</summary>

* [Message queue infrastructure upgraded](https://github.com/Significant-Gravitas/AutoGPT/pull/12118) — moved from an end-of-life version to a current, supported release for better reliability
* [Production dependencies updated](https://github.com/Significant-Gravitas/AutoGPT/pull/12056) — security patches and stability improvements across the stack
* [Security scanning updated](https://github.com/Significant-Gravitas/AutoGPT/pull/12033) — upgraded the tools that automatically check for vulnerabilities
* [Block search responses optimized](https://github.com/Significant-Gravitas/AutoGPT/pull/12020) — reduced data sent during block lookups so searches feel snappier
* [Legacy builder code removed](https://github.com/Significant-Gravitas/AutoGPT/pull/12082) — with the new flow editor live, the old code has been fully cleaned out
* [Legacy agent views removed](https://github.com/Significant-Gravitas/AutoGPT/pull/12088) — retired old UI components for a lighter, faster app
* [Internal module structure improved](https://github.com/Significant-Gravitas/AutoGPT/pull/12068) — reduced circular dependencies for more reliable startup
* [UI components modernized](https://github.com/Significant-Gravitas/AutoGPT/pull/12136) — replaced legacy dialog components with the current design system
* [Error logging improved](https://github.com/Significant-Gravitas/AutoGPT/pull/11942) — more detailed API error tracking so issues get found and resolved faster
* [HumanInTheLoop block docs clarified](https://github.com/Significant-Gravitas/AutoGPT/pull/12069) — clearer output descriptions for the agent builder
* [Podman compatibility note added](https://github.com/Significant-Gravitas/AutoGPT/pull/12120) — documented a known limitation for users running Podman instead of Docker

</details>


# Voice input, persistent files, and a smarter AI

*January 29 – February 11, 2026*

**Platform version:** `v0.6.48`

## Talk to AutoPilot with your voice

A mic button has been added to the chat input. Press it, speak your request, and your voice is transcribed instantly. The text box auto-focuses so you can hit Enter to send or tap the mic again to keep talking. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11871)

## Your files stick around

Files generated during conversations — images, documents, anything — are now saved to your personal workspace instead of disappearing when the session ends. You can browse and manage them directly through chat, and images show up inline in the conversation. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11867)

{% hint style="success" %}
This also unblocked **20+ blocks** (file storage, email attachments, screenshots, image generation, and more) that weren't working in chat.
{% endhint %}

## Upgraded to Claude Opus 4.6

AutoPilot now runs on Anthropic's newest and most capable model, with a larger context window and doubled output capacity. Extended thinking is enabled, so the AI reasons internally before responding — you get cleaner, more focused answers instead of raw chain-of-thought in the chat. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11983)

{% hint style="info" %}
Claude 3.7 Sonnet has been retired. Agents using it were auto-migrated to Claude 4.5 Sonnet.
{% endhint %}

## Customize marketplace agents

Ask AutoPilot to modify any marketplace agent before adding it to your library. "Customize that newsletter writer to post to Discord instead." AutoPilot adapts the workflow, asks follow-up questions if needed, and saves the customized version for you. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11943)

## Rebuilt chat streaming

The entire chat system has been rebuilt on the Vercel AI SDK. More reliable message delivery, better Markdown formatting, tool outputs shown in clean collapsible panels, and errors surfaced as brief notifications instead of breaking the chat. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11901)

## Stay connected during long tasks

If your connection drops while AutoPilot is working (network hiccup, laptop sleep, switching tabs), it keeps going in the background, saves progress, and replays what you missed when you reconnect. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11877)

## New agents reuse your existing ones

When building a new agent, AutoPilot searches your library for agents that can be incorporated as building blocks — so you don't rebuild from scratch. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11889)

## Better agent creation

Progress bar during generation so you're not staring at a blank screen. A "Your agent is ready!" prompt with buttons to test immediately or provide your own inputs. Cleaner formatting when AutoPilot asks you clarifying questions. And helpful error messages instead of generic failures. [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11974)

## Updated homepage text

The homepage now says "Tell me about your work — I'll find what to automate" instead of assuming you already know what to build. The quick-start buttons have been rewritten too: [↗](https://github.com/Significant-Gravitas/AutoGPT/pull/11956)

{% tabs %}
{% tab title="After" %}

* "I don't know where to start, just ask me stuff"
* "I do the same thing every week and it's killing me"
* "Help me find where I'm wasting my time"
  {% endtab %}

{% tab title="Before" %}

* ~~"Show me what I can automate"~~
* ~~"Design a custom workflow"~~
* ~~"Help me with content creation"~~
  {% endtab %}
  {% endtabs %}

***

<details>

<summary>Improvements</summary>

* [Editing agents updates the original](https://github.com/Significant-Gravitas/AutoGPT/pull/11981) instead of creating a duplicate in your library
* ["Tasks" tab renamed to "Agents"](https://github.com/Significant-Gravitas/AutoGPT/pull/11982) to better describe what's there
* [Wallet stays closed](https://github.com/Significant-Gravitas/AutoGPT/pull/11961) — no longer pops open automatically for new users or on balance changes
* [Search suggests next steps](https://github.com/Significant-Gravitas/AutoGPT/pull/11976), like offering to create a custom agent from your query
* [Smarter block filtering](https://github.com/Significant-Gravitas/AutoGPT/pull/11892) — chat no longer shows blocks that only work in the visual builder
* [Linear search block upgraded](https://github.com/Significant-Gravitas/AutoGPT/pull/11967) — now returns status, assignee, and project info with team filtering
* [New Text Encoder block](https://github.com/Significant-Gravitas/AutoGPT/pull/11857) for escaping special characters in JSON payloads and config files

</details>

<details>

<summary>Fixes</summary>

* [Improved credential matching](https://github.com/Significant-Gravitas/AutoGPT/pull/11908) so agents reliably use the correct API keys and permissions for each provider
* [Better input validation](https://github.com/Significant-Gravitas/AutoGPT/pull/11916) — agent inputs are now validated upfront with clear feedback on available fields
* [Marketplace agents work as sub-agents](https://github.com/Significant-Gravitas/AutoGPT/pull/11920) — referencing marketplace templates in new builds no longer fails
* [YouTube transcription fixed](https://github.com/Significant-Gravitas/AutoGPT/pull/11980) — cleanly reports either success or failure, not both
* [Long conversations stay responsive](https://github.com/Significant-Gravitas/AutoGPT/pull/11937) — improved context management for longer chat sessions
* [Agent list loads faster](https://github.com/Significant-Gravitas/AutoGPT/pull/12053) — optimized the endpoint that loads your agents
* [Login redirects fixed](https://github.com/Significant-Gravitas/AutoGPT/pull/11894) — resolved an issue where hard refresh could briefly show the wrong page

</details>


# AutoGPT Blocks Overview

AutoGPT uses a modular approach with various "blocks" to handle different tasks. These blocks are the building blocks of AutoGPT workflows, allowing users to create complex automations by combining simple, specialized components.

{% hint style="info" %}
**Creating Your Own Blocks**

Want to create your own custom blocks? Check out our guides:

* [Build your own Blocks](https://agpt.co/docs/platform/new-blocks) - Step-by-step tutorial with examples
* [Block SDK Guide](https://agpt.co/docs/platform/block-sdk-guide) - Advanced SDK patterns with OAuth, webhooks, and provider configuration
  {% endhint %}

Below is a comprehensive list of all available blocks, categorized by their primary function. Click on any block name to view its detailed documentation.

## Basic Operations

| Block Name                                                                                                                     | Description                                                                                                              |
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------ |
| [Add Memory](https://agpt.co/docs/integrations/block-integrations/basic#add-memory)                                            | Add new memories to Mem0 with user segmentation                                                                          |
| [Add To Dictionary](https://agpt.co/docs/integrations/block-integrations/basic#add-to-dictionary)                              | Adds a new key-value pair to a dictionary                                                                                |
| [Add To Library From Store](https://agpt.co/docs/integrations/block-integrations/library_operations#add-to-library-from-store) | Add an agent from the store to your personal library                                                                     |
| [Add To List](https://agpt.co/docs/integrations/block-integrations/basic#add-to-list)                                          | Adds a new entry to a list                                                                                               |
| [Agent Date Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-date-input)                                | Block for date input                                                                                                     |
| [Agent Dropdown Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-dropdown-input)                        | Block for dropdown text selection                                                                                        |
| [Agent File Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-file-input)                                | Block for file upload input (string path for example)                                                                    |
| [Agent Google Drive File Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-google-drive-file-input)      | Agent-level input for a Google Drive file                                                                                |
| [Agent Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-input)                                          | A block that accepts and processes user input values within a workflow, supporting various input types and validation    |
| [Agent Long Text Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-long-text-input)                      | Block for long text input (multi-line)                                                                                   |
| [Agent Number Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-number-input)                            | Block for number input                                                                                                   |
| [Agent Output](https://agpt.co/docs/integrations/block-integrations/basic#agent-output)                                        | A block that records and formats workflow results for display to users, with optional Jinja2 template formatting support |
| [Agent Short Text Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-short-text-input)                    | Block for short text input (single-line)                                                                                 |
| [Agent Table Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-table-input)                              | Block for table data input with customizable headers                                                                     |
| [Agent Time Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-time-input)                                | Block for time input                                                                                                     |
| [Agent Toggle Input](https://agpt.co/docs/integrations/block-integrations/basic#agent-toggle-input)                            | Block for boolean toggle input                                                                                           |
| [Block Installation](https://agpt.co/docs/integrations/block-integrations/basic#block-installation)                            | Given a code string, this block allows the verification and installation of a block code into the system                 |
| [Concatenate Lists](https://agpt.co/docs/integrations/block-integrations/basic#concatenate-lists)                              | Concatenates multiple lists into a single list                                                                           |
| [Dictionary Is Empty](https://agpt.co/docs/integrations/block-integrations/basic#dictionary-is-empty)                          | Checks if a dictionary is empty                                                                                          |
| [File Store](https://agpt.co/docs/integrations/block-integrations/basic#file-store)                                            | Downloads and stores a file from a URL, data URI, or local path                                                          |
| [Find In Dictionary](https://agpt.co/docs/integrations/block-integrations/basic#find-in-dictionary)                            | A block that looks up a value in a dictionary, list, or object by key or index and returns the corresponding value       |
| [Find In List](https://agpt.co/docs/integrations/block-integrations/basic#find-in-list)                                        | Finds the index of the value in the list                                                                                 |
| [Flatten List](https://agpt.co/docs/integrations/block-integrations/basic#flatten-list)                                        | Flattens a nested list structure into a single flat list                                                                 |
| [Get All Memories](https://agpt.co/docs/integrations/block-integrations/basic#get-all-memories)                                | Retrieve all memories from Mem0 with optional conversation filtering                                                     |
| [Get Latest Memory](https://agpt.co/docs/integrations/block-integrations/basic#get-latest-memory)                              | Retrieve the latest memory from Mem0 with optional key filtering                                                         |
| [Get List Item](https://agpt.co/docs/integrations/block-integrations/basic#get-list-item)                                      | Returns the element at the given index                                                                                   |
| [Get Store Agent Details](https://agpt.co/docs/integrations/block-integrations/store_operations#get-store-agent-details)       | Get detailed information about an agent from the store                                                                   |
| [Get Weather Information](https://agpt.co/docs/integrations/block-integrations/basic#get-weather-information)                  | Retrieves weather information for a specified location using OpenWeatherMap API                                          |
| [Human In The Loop](https://agpt.co/docs/integrations/block-integrations/basic#human-in-the-loop)                              | Pause execution for human review                                                                                         |
| [Interleave Lists](https://agpt.co/docs/integrations/block-integrations/basic#interleave-lists)                                | Interleaves elements from multiple lists in round-robin fashion, alternating between sources                             |
| [List Difference](https://agpt.co/docs/integrations/block-integrations/basic#list-difference)                                  | Computes the difference between two lists                                                                                |
| [List Intersection](https://agpt.co/docs/integrations/block-integrations/basic#list-intersection)                              | Computes the intersection of two lists, returning only elements present in both                                          |
| [List Is Empty](https://agpt.co/docs/integrations/block-integrations/basic#list-is-empty)                                      | Checks if a list is empty                                                                                                |
| [List Library Agents](https://agpt.co/docs/integrations/block-integrations/library_operations#list-library-agents)             | List all agents in your personal library                                                                                 |
| [Note](https://agpt.co/docs/integrations/block-integrations/basic#note)                                                        | A visual annotation block that displays a sticky note in the workflow editor for documentation and organization purposes |
| [Print To Console](https://agpt.co/docs/integrations/block-integrations/basic#print-to-console)                                | A debugging block that outputs text to the console for monitoring and troubleshooting workflow execution                 |
| [Remove From Dictionary](https://agpt.co/docs/integrations/block-integrations/basic#remove-from-dictionary)                    | Removes a key-value pair from a dictionary                                                                               |
| [Remove From List](https://agpt.co/docs/integrations/block-integrations/basic#remove-from-list)                                | Removes an item from a list by value or index                                                                            |
| [Replace Dictionary Value](https://agpt.co/docs/integrations/block-integrations/basic#replace-dictionary-value)                | Replaces the value for a specified key in a dictionary                                                                   |
| [Replace List Item](https://agpt.co/docs/integrations/block-integrations/basic#replace-list-item)                              | Replaces an item at the specified index                                                                                  |
| [Reverse List Order](https://agpt.co/docs/integrations/block-integrations/basic#reverse-list-order)                            | Reverses the order of elements in a list                                                                                 |
| [Search Memory](https://agpt.co/docs/integrations/block-integrations/basic#search-memory)                                      | Search memories in Mem0 by user                                                                                          |
| [Search Store Agents](https://agpt.co/docs/integrations/block-integrations/store_operations#search-store-agents)               | Search for agents in the store                                                                                           |
| [Slant3D Cancel Order](https://agpt.co/docs/integrations/block-integrations/order_status#slant3d-cancel-order)                 | Cancel an order before production starts                                                                                 |
| [Slant3D Create Order](https://agpt.co/docs/integrations/block-integrations/order#slant3d-create-order)                        | Order physical 3D-printed parts from Slant3D for manufacturing and delivery                                              |
| [Slant3D Estimate Order](https://agpt.co/docs/integrations/block-integrations/order#slant3d-estimate-order)                    | Quote a 3D-printed parts order including shipping by creating an uncharged Slant3D draft                                 |
| [Slant3D Estimate Shipping](https://agpt.co/docs/integrations/block-integrations/order#slant3d-estimate-shipping)              | Estimate delivery costs for physical 3D-printed parts by creating an uncharged Slant3D order draft                       |
| [Slant3D Filament](https://agpt.co/docs/integrations/block-integrations/filament#slant3d-filament)                             | Find available materials and colors for quoting or ordering physical 3D-printed parts from Slant3D                       |
| [Slant3D Get Orders](https://agpt.co/docs/integrations/block-integrations/order_status#slant3d-get-orders)                     | Get all orders for the account                                                                                           |
| [Slant3D Process Order](https://agpt.co/docs/integrations/block-integrations/order_status#slant3d-process-order)               | Submit an approved Slant3D draft to order physical 3D-printed parts for manufacturing and delivery                       |
| [Slant3D Slicer](https://agpt.co/docs/integrations/block-integrations/slicing#slant3d-slicer)                                  | Get a live 3D printing quote for physical parts from STL URLs or attached workspace files                                |
| [Slant3D Tracking](https://agpt.co/docs/integrations/block-integrations/order_status#slant3d-tracking)                         | Track order status and shipping                                                                                          |
| [Store Value](https://agpt.co/docs/integrations/block-integrations/basic#store-value)                                          | Holds or receives a value and outputs it statically so that it can be used multiple times within the same agent run      |
| [Universal Type Converter](https://agpt.co/docs/integrations/block-integrations/basic#universal-type-converter)                | This block is used to convert a value to a universal type                                                                |
| [XML Parser](https://agpt.co/docs/integrations/block-integrations/basic#xml-parser)                                            | Parses XML using gravitasml to tokenize and coverts it to dict                                                           |
| [Zip Lists](https://agpt.co/docs/integrations/block-integrations/basic#zip-lists)                                              | Zips multiple lists together into a list of grouped elements                                                             |

## Data Processing

| Block Name                                                                                                                                          | Description                                                                                                                                                                                                                                                                   |
| --------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Airtable Create Base](https://agpt.co/docs/integrations/block-integrations/bases#airtable-create-base)                                             | Create or find a base in Airtable                                                                                                                                                                                                                                             |
| [Airtable Create Field](https://agpt.co/docs/integrations/block-integrations/schema#airtable-create-field)                                          | Add a new field to an Airtable table                                                                                                                                                                                                                                          |
| [Airtable Create Records](https://agpt.co/docs/integrations/block-integrations/records#airtable-create-records)                                     | Create records in an Airtable table                                                                                                                                                                                                                                           |
| [Airtable Create Table](https://agpt.co/docs/integrations/block-integrations/schema#airtable-create-table)                                          | Create a new table in an Airtable base                                                                                                                                                                                                                                        |
| [Airtable Delete Records](https://agpt.co/docs/integrations/block-integrations/records#airtable-delete-records)                                     | Delete records from an Airtable table                                                                                                                                                                                                                                         |
| [Airtable Get Record](https://agpt.co/docs/integrations/block-integrations/records#airtable-get-record)                                             | Get a single record from Airtable                                                                                                                                                                                                                                             |
| [Airtable List Bases](https://agpt.co/docs/integrations/block-integrations/bases#airtable-list-bases)                                               | List all bases in Airtable                                                                                                                                                                                                                                                    |
| [Airtable List Records](https://agpt.co/docs/integrations/block-integrations/records#airtable-list-records)                                         | List records from an Airtable table                                                                                                                                                                                                                                           |
| [Airtable List Schema](https://agpt.co/docs/integrations/block-integrations/schema#airtable-list-schema)                                            | Get the complete schema of an Airtable base                                                                                                                                                                                                                                   |
| [Airtable Update Field](https://agpt.co/docs/integrations/block-integrations/schema#airtable-update-field)                                          | Update field properties in an Airtable table                                                                                                                                                                                                                                  |
| [Airtable Update Records](https://agpt.co/docs/integrations/block-integrations/records#airtable-update-records)                                     | Update records in an Airtable table                                                                                                                                                                                                                                           |
| [Airtable Update Table](https://agpt.co/docs/integrations/block-integrations/schema#airtable-update-table)                                          | Update table properties                                                                                                                                                                                                                                                       |
| [Airtable Webhook Trigger](https://agpt.co/docs/integrations/block-integrations/triggers#airtable-webhook-trigger)                                  | Starts a flow whenever Airtable emits a webhook event                                                                                                                                                                                                                         |
| [Baas Bot Delete Recording](https://agpt.co/docs/integrations/block-integrations/bots#baas-bot-delete-recording)                                    | Permanently delete a meeting's recorded data                                                                                                                                                                                                                                  |
| [Baas Bot Fetch Meeting Data](https://agpt.co/docs/integrations/block-integrations/bots#baas-bot-fetch-meeting-data)                                | Retrieve recorded meeting data                                                                                                                                                                                                                                                |
| [Create Dictionary](https://agpt.co/docs/integrations/block-integrations/data#create-dictionary)                                                    | Creates a dictionary with the specified key-value pairs                                                                                                                                                                                                                       |
| [Create List](https://agpt.co/docs/integrations/block-integrations/data#create-list)                                                                | Creates a list with the specified values                                                                                                                                                                                                                                      |
| [Data For Seo Keyword Suggestions](https://agpt.co/docs/integrations/block-integrations/keyword_suggestions#data-for-seo-keyword-suggestions)       | Get keyword suggestions from DataForSEO Labs Google API                                                                                                                                                                                                                       |
| [Data For Seo Related Keywords](https://agpt.co/docs/integrations/block-integrations/related_keywords#data-for-seo-related-keywords)                | Get related keywords from DataForSEO Labs Google API                                                                                                                                                                                                                          |
| [Exa Create Import](https://agpt.co/docs/integrations/block-integrations/websets_import_export#exa-create-import)                                   | Import CSV data to use with websets for targeted searches                                                                                                                                                                                                                     |
| [Exa Delete Import](https://agpt.co/docs/integrations/block-integrations/websets_import_export#exa-delete-import)                                   | Delete an import                                                                                                                                                                                                                                                              |
| [Exa Export Webset](https://agpt.co/docs/integrations/block-integrations/websets_import_export#exa-export-webset)                                   | Export webset data in JSON, CSV, or JSON Lines format                                                                                                                                                                                                                         |
| [Exa Get Import](https://agpt.co/docs/integrations/block-integrations/websets_import_export#exa-get-import)                                         | Get the status and details of an import                                                                                                                                                                                                                                       |
| [Exa Get New Items](https://agpt.co/docs/integrations/block-integrations/websets_items#exa-get-new-items)                                           | Get items added since a cursor - enables incremental processing without reprocessing                                                                                                                                                                                          |
| [Exa List Imports](https://agpt.co/docs/integrations/block-integrations/websets_import_export#exa-list-imports)                                     | List all imports with pagination support                                                                                                                                                                                                                                      |
| [Exa Update Import](https://agpt.co/docs/integrations/block-integrations/websets_import_update#exa-update-import)                                   | Update the title or metadata of an Exa Websets import                                                                                                                                                                                                                         |
| [File Read](https://agpt.co/docs/integrations/block-integrations/data#file-read)                                                                    | Reads a file and returns its content as a string, with optional chunking by delimiter and size limits                                                                                                                                                                         |
| [Firecrawl Find Data Tools](https://agpt.co/docs/integrations/block-integrations/alexandria#firecrawl-find-data-tools)                              | Finds structured-data tools in Firecrawl Alexandria, free of charge: people and company search and enrichment (work emails, job titles, firmographics via Apollo, People Data Labs, FullEnrich), jobs, finance and filings, public records, places, retail and thousands more |
| [Firecrawl Run Data Tool](https://agpt.co/docs/integrations/block-integrations/alexandria#firecrawl-run-data-tool)                                  | Runs a Firecrawl Alexandria data tool and returns its typed, sourced records: find people by title and company, get verified work emails, enrich a company from its domain, and thousands more                                                                                |
| [Google Calendar Read Events](https://agpt.co/docs/integrations/block-integrations/calendar#google-calendar-read-events)                            | Retrieves upcoming events from a Google Calendar with filtering options                                                                                                                                                                                                       |
| [Google Docs Append Markdown](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-append-markdown)                                | Append Markdown content to the end of a Google Doc with full formatting - ideal for LLM/AI output                                                                                                                                                                             |
| [Google Docs Append Plain Text](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-append-plain-text)                            | Append plain text to the end of a Google Doc (no formatting applied)                                                                                                                                                                                                          |
| [Google Docs Create](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-create)                                                  | Create a new Google Doc                                                                                                                                                                                                                                                       |
| [Google Docs Delete Content](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-delete-content)                                  | Delete a range of content from a Google Doc                                                                                                                                                                                                                                   |
| [Google Docs Export](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-export)                                                  | Export a Google Doc to PDF, Word, text, or other formats                                                                                                                                                                                                                      |
| [Google Docs Find Replace Plain Text](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-find-replace-plain-text)                | Find and replace plain text in a Google Doc (no formatting applied to replacement)                                                                                                                                                                                            |
| [Google Docs Format Text](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-format-text)                                        | Apply formatting (bold, italic, color, etc                                                                                                                                                                                                                                    |
| [Google Docs Get Metadata](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-get-metadata)                                      | Get metadata about a Google Doc                                                                                                                                                                                                                                               |
| [Google Docs Get Structure](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-get-structure)                                    | Get document structure with index positions for precise editing operations                                                                                                                                                                                                    |
| [Google Docs Insert Markdown At](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-insert-markdown-at)                          | Insert formatted Markdown at a specific position in a Google Doc - ideal for LLM/AI output                                                                                                                                                                                    |
| [Google Docs Insert Page Break](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-insert-page-break)                            | Insert a page break into a Google Doc                                                                                                                                                                                                                                         |
| [Google Docs Insert Plain Text](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-insert-plain-text)                            | Insert plain text at a specific position in a Google Doc (no formatting applied)                                                                                                                                                                                              |
| [Google Docs Insert Table](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-insert-table)                                      | Insert a table into a Google Doc, optionally with content and Markdown formatting                                                                                                                                                                                             |
| [Google Docs Read](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-read)                                                      | Read text content from a Google Doc                                                                                                                                                                                                                                           |
| [Google Docs Replace All With Markdown](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-replace-all-with-markdown)            | Replace entire Google Doc content with formatted Markdown - ideal for LLM/AI output                                                                                                                                                                                           |
| [Google Docs Replace Content With Markdown](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-replace-content-with-markdown)    | Find text and replace it with formatted Markdown - ideal for LLM/AI output and templates                                                                                                                                                                                      |
| [Google Docs Replace Range With Markdown](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-replace-range-with-markdown)        | Replace a specific index range in a Google Doc with formatted Markdown - ideal for LLM/AI output                                                                                                                                                                              |
| [Google Docs Set Public Access](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-set-public-access)                            | Make a Google Doc public or private                                                                                                                                                                                                                                           |
| [Google Docs Share](https://agpt.co/docs/integrations/block-integrations/docs#google-docs-share)                                                    | Share a Google Doc with specific users                                                                                                                                                                                                                                        |
| [Google Sheets Add Column](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-add-column)                                    | Add a new column with a header                                                                                                                                                                                                                                                |
| [Google Sheets Add Dropdown](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-add-dropdown)                                | Add a dropdown list (data validation) to cells                                                                                                                                                                                                                                |
| [Google Sheets Add Note](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-add-note)                                        | Add a note to a cell in a Google Sheet                                                                                                                                                                                                                                        |
| [Google Sheets Append Row](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-append-row)                                    | Append or Add a single row to the end of a Google Sheet                                                                                                                                                                                                                       |
| [Google Sheets Batch Operations](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-batch-operations)                        | This block performs multiple operations on a Google Sheets spreadsheet in a single batch request                                                                                                                                                                              |
| [Google Sheets Clear](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-clear)                                              | This block clears data from a specified range in a Google Sheets spreadsheet                                                                                                                                                                                                  |
| [Google Sheets Copy To Spreadsheet](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-copy-to-spreadsheet)                  | Copy a sheet from one spreadsheet to another                                                                                                                                                                                                                                  |
| [Google Sheets Create Named Range](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-create-named-range)                    | Create a named range to reference cells by name instead of A1 notation                                                                                                                                                                                                        |
| [Google Sheets Create Spreadsheet](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-create-spreadsheet)                    | This block creates a new Google Sheets spreadsheet with specified sheets                                                                                                                                                                                                      |
| [Google Sheets Delete Column](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-delete-column)                              | Delete a column by header name or column letter                                                                                                                                                                                                                               |
| [Google Sheets Delete Rows](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-delete-rows)                                  | Delete specific rows from a Google Sheet by their row indices                                                                                                                                                                                                                 |
| [Google Sheets Export Csv](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-export-csv)                                    | Export a Google Sheet as CSV data                                                                                                                                                                                                                                             |
| [Google Sheets Filter Rows](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-filter-rows)                                  | Filter rows in a Google Sheet based on a column condition                                                                                                                                                                                                                     |
| [Google Sheets Find](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-find)                                                | Find text in a Google Sheets spreadsheet                                                                                                                                                                                                                                      |
| [Google Sheets Find Replace](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-find-replace)                                | This block finds and replaces text in a Google Sheets spreadsheet                                                                                                                                                                                                             |
| [Google Sheets Format](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-format)                                            | Format a range in a Google Sheet (sheet optional)                                                                                                                                                                                                                             |
| [Google Sheets Get Column](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-get-column)                                    | Extract all values from a specific column                                                                                                                                                                                                                                     |
| [Google Sheets Get Notes](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-get-notes)                                      | Get notes from cells in a Google Sheet                                                                                                                                                                                                                                        |
| [Google Sheets Get Row](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-get-row)                                          | Get a specific row by its index                                                                                                                                                                                                                                               |
| [Google Sheets Get Row Count](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-get-row-count)                              | Get row count and dimensions of a Google Sheet                                                                                                                                                                                                                                |
| [Google Sheets Get Unique Values](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-get-unique-values)                      | Get unique values from a column                                                                                                                                                                                                                                               |
| [Google Sheets Import Csv](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-import-csv)                                    | Import CSV data into a Google Sheet                                                                                                                                                                                                                                           |
| [Google Sheets Insert Row](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-insert-row)                                    | Insert a single row at a specific position                                                                                                                                                                                                                                    |
| [Google Sheets List Named Ranges](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-list-named-ranges)                      | List all named ranges in a spreadsheet                                                                                                                                                                                                                                        |
| [Google Sheets Lookup Row](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-lookup-row)                                    | Look up a row by finding a value in a specific column                                                                                                                                                                                                                         |
| [Google Sheets Manage Sheet](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-manage-sheet)                                | Create, delete, or copy sheets (sheet optional)                                                                                                                                                                                                                               |
| [Google Sheets Metadata](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-metadata)                                        | This block retrieves metadata about a Google Sheets spreadsheet including sheet names and properties                                                                                                                                                                          |
| [Google Sheets Protect Range](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-protect-range)                              | Protect a cell range or entire sheet from editing                                                                                                                                                                                                                             |
| [Google Sheets Read](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-read)                                                | A block that reads data from a Google Sheets spreadsheet using A1 notation range selection                                                                                                                                                                                    |
| [Google Sheets Remove Duplicates](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-remove-duplicates)                      | Remove duplicate rows based on specified columns                                                                                                                                                                                                                              |
| [Google Sheets Set Public Access](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-set-public-access)                      | Make a Google Spreadsheet public or private                                                                                                                                                                                                                                   |
| [Google Sheets Share Spreadsheet](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-share-spreadsheet)                      | Share a Google Spreadsheet with users or get shareable link                                                                                                                                                                                                                   |
| [Google Sheets Sort](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-sort)                                                | Sort a Google Sheet by one or two columns                                                                                                                                                                                                                                     |
| [Google Sheets Update Cell](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-update-cell)                                  | Update a single cell in a Google Sheets spreadsheet                                                                                                                                                                                                                           |
| [Google Sheets Update Row](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-update-row)                                    | Update a specific row by its index                                                                                                                                                                                                                                            |
| [Google Sheets Write](https://agpt.co/docs/integrations/block-integrations/sheets#google-sheets-write)                                              | A block that writes data to a Google Sheets spreadsheet at a specified A1 notation range                                                                                                                                                                                      |
| [JSON Decoder](https://agpt.co/docs/integrations/block-integrations/data#json-decoder)                                                              | Decodes a JSON string into the value or data structure, it represents, e                                                                                                                                                                                                      |
| [JSON Encoder](https://agpt.co/docs/integrations/block-integrations/data#json-encoder)                                                              | Encodes any value or data structure into a JSON string                                                                                                                                                                                                                        |
| [Keyword Suggestion Extractor](https://agpt.co/docs/integrations/block-integrations/keyword_suggestions#keyword-suggestion-extractor)               | Extract individual fields from a KeywordSuggestion object                                                                                                                                                                                                                     |
| [Persist Information](https://agpt.co/docs/integrations/block-integrations/data#persist-information)                                                | Persists a key-value pair for use across multiple runs of an agent                                                                                                                                                                                                            |
| [RMFG Analyze Design](https://agpt.co/docs/integrations/block-integrations/designs#rmfg-analyze-design)                                             | Uploads a STEP file to RMFG, a manufacturer that makes and ships real sheet-metal and tube-laser parts, and returns its analyzed parts: the first step before a live quote, cart or order                                                                                     |
| [RMFG Create Cart](https://agpt.co/docs/integrations/block-integrations/carts#rmfg-create-cart)                                                     | Creates an RMFG cart with a website checkout link for one or more configured designs, priced live with shipping and tax once an address is set                                                                                                                                |
| [RMFG Create DFM Report](https://agpt.co/docs/integrations/block-integrations/dfm#rmfg-create-dfm-report)                                           | Runs an RMFG manufacturability (DFM) check on a configured design                                                                                                                                                                                                             |
| [RMFG Create Quote](https://agpt.co/docs/integrations/block-integrations/quotes#rmfg-create-quote)                                                  | Gets a live price from RMFG, a manufacturer that laser-cuts, bends and ships real sheet-metal and tube parts, plus manufacturability findings                                                                                                                                 |
| [RMFG Create Review Link](https://agpt.co/docs/integrations/block-integrations/review_links#rmfg-create-review-link)                                | Creates an RMFG review link so a person can inspect and adjust a design                                                                                                                                                                                                       |
| [RMFG Get Cart](https://agpt.co/docs/integrations/block-integrations/carts#rmfg-get-cart)                                                           | Fetches an RMFG cart and its latest quote by ID                                                                                                                                                                                                                               |
| [RMFG Get DFM Report](https://agpt.co/docs/integrations/block-integrations/dfm#rmfg-get-dfm-report)                                                 | Fetches an RMFG DFM report by ID                                                                                                                                                                                                                                              |
| [RMFG Get Design](https://agpt.co/docs/integrations/block-integrations/designs#rmfg-get-design)                                                     | Fetches an RMFG design and its analyzed parts by ID                                                                                                                                                                                                                           |
| [RMFG Get Order](https://agpt.co/docs/integrations/block-integrations/orders#rmfg-get-order)                                                        | Fetches an RMFG order's status and shipment tracking                                                                                                                                                                                                                          |
| [RMFG Get Quote](https://agpt.co/docs/integrations/block-integrations/quotes#rmfg-get-quote)                                                        | Fetches an RMFG quote by ID                                                                                                                                                                                                                                                   |
| [RMFG Get Review Link](https://agpt.co/docs/integrations/block-integrations/review_links#rmfg-get-review-link)                                      | Fetches an RMFG review link and the configuration a person saved on it                                                                                                                                                                                                        |
| [RMFG List Finishes](https://agpt.co/docs/integrations/block-integrations/catalog#rmfg-list-finishes)                                               | Lists the finishes RMFG can apply to sheet or tube parts                                                                                                                                                                                                                      |
| [RMFG List Hardware](https://agpt.co/docs/integrations/block-integrations/catalog#rmfg-list-hardware)                                               | Lists the taps, studs, nuts or standoffs RMFG can install                                                                                                                                                                                                                     |
| [RMFG List Materials](https://agpt.co/docs/integrations/block-integrations/catalog#rmfg-list-materials)                                             | Lists the sheet-metal stock RMFG can cut and bend, with thickness in mm and inches                                                                                                                                                                                            |
| [RMFG List Orders](https://agpt.co/docs/integrations/block-integrations/orders#rmfg-list-orders)                                                    | Lists the RMFG account's manufacturing orders                                                                                                                                                                                                                                 |
| [RMFG List Powder Coat Colors](https://agpt.co/docs/integrations/block-integrations/catalog#rmfg-list-powder-coat-colors)                           | Lists the powder-coat colors RMFG offers                                                                                                                                                                                                                                      |
| [RMFG List Tube Profiles](https://agpt.co/docs/integrations/block-integrations/catalog#rmfg-list-tube-profiles)                                     | Lists the tube stock profiles RMFG can laser-cut                                                                                                                                                                                                                              |
| [RMFG Pay Cart](https://agpt.co/docs/integrations/block-integrations/pay_cart#rmfg-pay-cart)                                                        | Pays an RMFG cart with the saved card and places a real production order                                                                                                                                                                                                      |
| [RMFG Update Cart](https://agpt.co/docs/integrations/block-integrations/carts#rmfg-update-cart)                                                     | Updates an open RMFG cart's address, shipping option or items                                                                                                                                                                                                                 |
| [Read Spreadsheet](https://agpt.co/docs/integrations/block-integrations/data#read-spreadsheet)                                                      | Reads CSV and Excel files and outputs the data as a list of dictionaries and individual rows                                                                                                                                                                                  |
| [Related Keyword Extractor](https://agpt.co/docs/integrations/block-integrations/related_keywords#related-keyword-extractor)                        | Extract individual fields from a RelatedKeyword object                                                                                                                                                                                                                        |
| [Retrieve Information](https://agpt.co/docs/integrations/block-integrations/data#retrieve-information)                                              | Reads back a key-value pair previously saved by PersistInformationBlock                                                                                                                                                                                                       |
| [SQL Query](https://agpt.co/docs/integrations/block-integrations/data#sql-query)                                                                    | Execute a SQL query                                                                                                                                                                                                                                                           |
| [Screenshot Web Page](https://agpt.co/docs/integrations/block-integrations/data#screenshot-web-page)                                                | Takes a screenshot of a specified website using ScreenshotOne API                                                                                                                                                                                                             |
| [Stripe Link Create Card Spend Request](https://agpt.co/docs/integrations/block-integrations/spend_request#stripe-link-create-card-spend-request)   | Create a Stripe Link spend request for a one-time virtual card                                                                                                                                                                                                                |
| [Stripe Link Create Token Spend Request](https://agpt.co/docs/integrations/block-integrations/spend_request#stripe-link-create-token-spend-request) | MPP step 2 of 3: ask the user to authorize a payment to a merchant that answers HTTP 402, and provision a Shared Payment Token for it                                                                                                                                         |
| [Stripe Link Get Payment Challenge](https://agpt.co/docs/integrations/block-integrations/mpp#stripe-link-get-payment-challenge)                     | MPP step 1 of 3: read a merchant's HTTP 402 payment challenge to learn its network ID and amount                                                                                                                                                                              |
| [Stripe Link Get Shipping Address](https://agpt.co/docs/integrations/block-integrations/profile#stripe-link-get-shipping-address)                   | Get the delivery addresses saved on the user's Link wallet, with the default one resolved for you                                                                                                                                                                             |
| [Stripe Link Get Spend Request Status](https://agpt.co/docs/integrations/block-integrations/spend_request#stripe-link-get-spend-request-status)     | Check whether a Stripe Link spend request has been approved yet                                                                                                                                                                                                               |
| [Stripe Link Get User Info](https://agpt.co/docs/integrations/block-integrations/profile#stripe-link-get-user-info)                                 | Get the Link account holder's name, email and phone                                                                                                                                                                                                                           |
| [Stripe Link List Payment Methods](https://agpt.co/docs/integrations/block-integrations/spend_request#stripe-link-list-payment-methods)             | List the cards and bank accounts in the user's Link wallet                                                                                                                                                                                                                    |
| [Stripe Link MPP Pay](https://agpt.co/docs/integrations/block-integrations/mpp#stripe-link-mpp-pay)                                                 | MPP step 3 of 3: spend an approved Shared Payment Token at the merchant's endpoint                                                                                                                                                                                            |
| [Stripe Link Retrieve Card](https://agpt.co/docs/integrations/block-integrations/spend_request#stripe-link-retrieve-card)                           | Get the one-time virtual card number and CVC for an approved spend request, to type into a normal checkout form                                                                                                                                                               |
| [Stripe Subscription Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-6#stripe-subscription-trigger)                          | Triggers on Stripe subscription events (new, upgrade, cancel)                                                                                                                                                                                                                 |
| [Treg Extract Structured Data](https://agpt.co/docs/integrations/block-integrations/pages#treg-extract-structured-data)                             | Pull typed data out of a web page, described by a JSON schema or a plain-English instruction, through Treg                                                                                                                                                                    |

## Text Processing

| Block Name                                                                                                       | Description                                                                                              |
| ---------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------- |
| [Code Extraction](https://agpt.co/docs/integrations/block-integrations/text#code-extraction)                     | Extracts code blocks from text and identifies their programming languages                                |
| [Combine Texts](https://agpt.co/docs/integrations/block-integrations/text#combine-texts)                         | This block combines multiple input texts into a single output text                                       |
| [Countdown Timer](https://agpt.co/docs/integrations/block-integrations/text#countdown-timer)                     | This block triggers after a specified duration                                                           |
| [Extract Text Information](https://agpt.co/docs/integrations/block-integrations/text#extract-text-information)   | This block extracts the text from the given text using the pattern (regex)                               |
| [Fill Text Template](https://agpt.co/docs/integrations/block-integrations/text#fill-text-template)               | This block formats the given texts using the format template                                             |
| [Get Current Date](https://agpt.co/docs/integrations/block-integrations/text#get-current-date)                   | This block outputs the current date with an optional offset                                              |
| [Get Current Date And Time](https://agpt.co/docs/integrations/block-integrations/text#get-current-date-and-time) | This block outputs the current date and time                                                             |
| [Get Current Time](https://agpt.co/docs/integrations/block-integrations/text#get-current-time)                   | This block outputs the current time                                                                      |
| [Match Text Pattern](https://agpt.co/docs/integrations/block-integrations/text#match-text-pattern)               | Matches text against a regex pattern and forwards data to positive or negative output based on the match |
| [Text Decoder](https://agpt.co/docs/integrations/block-integrations/text#text-decoder)                           | Decodes a string containing escape sequences into actual text                                            |
| [Text Encoder](https://agpt.co/docs/integrations/block-integrations/text#text-encoder)                           | Encodes a string by converting special characters into escape sequences                                  |
| [Text Replace](https://agpt.co/docs/integrations/block-integrations/text#text-replace)                           | This block is used to replace a text with a new text                                                     |
| [Text Split](https://agpt.co/docs/integrations/block-integrations/text#text-split)                               | This block is used to split a text into a list of strings                                                |
| [Word Character Count](https://agpt.co/docs/integrations/block-integrations/text#word-character-count)           | Counts the number of words and characters in a given text                                                |

## AI and Language Models

| Block Name                                                                                                                        | Description                                                                                                                                                         |
| --------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AI Ad Maker Video Creator](https://agpt.co/docs/integrations/block-integrations/llm#ai-ad-maker-video-creator)                   | Creates an AI‑generated 30‑second advert (text + images)                                                                                                            |
| [AI Condition](https://agpt.co/docs/integrations/block-integrations/llm#ai-condition)                                             | Uses AI to evaluate natural language conditions and provide conditional outputs                                                                                     |
| [AI Conversation](https://agpt.co/docs/integrations/block-integrations/llm#ai-conversation)                                       | A block that facilitates multi-turn conversations with a Large Language Model (LLM), maintaining context across message exchanges                                   |
| [AI Image Customizer](https://agpt.co/docs/integrations/block-integrations/llm#ai-image-customizer)                               | Generate and edit custom images using Google's Nano-Banana models from Gemini                                                                                       |
| [AI Image Editor](https://agpt.co/docs/integrations/block-integrations/llm#ai-image-editor)                                       | Edit images using Flux Kontext or Google Nano Banana models                                                                                                         |
| [AI Image Generator](https://agpt.co/docs/integrations/block-integrations/llm#ai-image-generator)                                 | Generate images using various AI models through a unified interface                                                                                                 |
| [AI List Generator](https://agpt.co/docs/integrations/block-integrations/llm#ai-list-generator)                                   | A block that creates lists of items based on prompts using a Large Language Model (LLM), with optional source data for context                                      |
| [AI Music Generator](https://agpt.co/docs/integrations/block-integrations/llm#ai-music-generator)                                 | This block generates music using Meta's MusicGen model on Replicate                                                                                                 |
| [AI Screenshot To Video Ad](https://agpt.co/docs/integrations/block-integrations/llm#ai-screenshot-to-video-ad)                   | Turns a screenshot into an engaging, avatar‑narrated video advert                                                                                                   |
| [AI Shortform Video Creator](https://agpt.co/docs/integrations/block-integrations/llm#ai-shortform-video-creator)                 | Creates a shortform video using revid                                                                                                                               |
| [AI Structured Response Generator](https://agpt.co/docs/integrations/block-integrations/llm#ai-structured-response-generator)     | A block that generates structured JSON responses using a Large Language Model (LLM), with schema validation and format enforcement                                  |
| [AI Text Generator](https://agpt.co/docs/integrations/block-integrations/llm#ai-text-generator)                                   | A block that produces text responses using a Large Language Model (LLM) based on customizable prompts and system instructions                                       |
| [AI Text Summarizer](https://agpt.co/docs/integrations/block-integrations/llm#ai-text-summarizer)                                 | A block that summarizes long texts using a Large Language Model (LLM), with configurable focus topics and summary styles                                            |
| [AI Video Generator](https://agpt.co/docs/integrations/block-integrations/ai_video_generator#ai-video-generator)                  | Generate videos using FAL AI models                                                                                                                                 |
| [Bannerbear Text Overlay](https://agpt.co/docs/integrations/block-integrations/text_overlay#bannerbear-text-overlay)              | Add text overlay to images using Bannerbear templates                                                                                                               |
| [Claude Code](https://agpt.co/docs/integrations/block-integrations/llm#claude-code)                                               | Execute tasks using Claude Code in an E2B sandbox                                                                                                                   |
| [Code Generation](https://agpt.co/docs/integrations/block-integrations/llm#code-generation)                                       | Generate or refactor code using an OpenAI API key or a connected ChatGPT plan through Codex App Server                                                              |
| [Create Talking Avatar Video](https://agpt.co/docs/integrations/block-integrations/llm#create-talking-avatar-video)               | This block integrates with D-ID to create video clips and retrieve their URLs                                                                                       |
| [Exa Agent Run](https://agpt.co/docs/integrations/block-integrations/agent#exa-agent-run)                                         | Run Exa Agent, Exa's research agent, for deep research, list building and enrichment                                                                                |
| [Exa Answer](https://agpt.co/docs/integrations/block-integrations/answers#exa-answer)                                             | Get an LLM answer to a question informed by Exa search results, with citations; optionally as structured JSON                                                       |
| [Exa Create Enrichment](https://agpt.co/docs/integrations/block-integrations/websets_enrichment#exa-create-enrichment)            | Create enrichments to extract additional structured data from webset items                                                                                          |
| [Exa Create Research](https://agpt.co/docs/integrations/block-integrations/research#exa-create-research)                          | Create a research task with optional waiting                                                                                                                        |
| [Ideogram Model](https://agpt.co/docs/integrations/block-integrations/llm#ideogram-model)                                         | This block runs Ideogram models with both simple and advanced settings                                                                                              |
| [Jev Ask Many](https://agpt.co/docs/integrations/block-integrations/ask_many-1#jev-ask-many)                                      | Ask multiple Choice, Score, or Noul questions of one shared state with Jev in a single call                                                                         |
| [Jev Choice](https://agpt.co/docs/integrations/block-integrations/choice-1#jev-choice)                                            | Make a typed choice with Jev                                                                                                                                        |
| [Jev Filter](https://agpt.co/docs/integrations/block-integrations/filter#jev-filter)                                              | Filter items with sequential Jev scores, one call per item                                                                                                          |
| [Jev Pick Best](https://agpt.co/docs/integrations/block-integrations/pick_best#jev-pick-best)                                     | Choose the best candidate using Jev and rank candidates directly by its probabilities                                                                               |
| [Jev Route](https://agpt.co/docs/integrations/block-integrations/route#jev-route)                                                 | Route data using Jev's typed choice                                                                                                                                 |
| [Jev Score](https://agpt.co/docs/integrations/block-integrations/score-1#jev-score)                                               | Score evidence with Jev using an explicit ordered scale                                                                                                             |
| [Jev Yes No](https://agpt.co/docs/integrations/block-integrations/yes_no-1#jev-yes-no)                                            | Ask Jev a plain-language yes/no question and forward data to the chosen pin, or unsure below your confidence threshold                                              |
| [Jina Chunking](https://agpt.co/docs/integrations/block-integrations/chunking#jina-chunking)                                      | Chunks texts using Jina AI's segmentation service                                                                                                                   |
| [Jina Embedding](https://agpt.co/docs/integrations/block-integrations/embeddings#jina-embedding)                                  | Generates embeddings using Jina AI                                                                                                                                  |
| [Orchestrator](https://agpt.co/docs/integrations/block-integrations/llm#orchestrator)                                             | Uses AI to intelligently decide what tool to use                                                                                                                    |
| [Perplexity](https://agpt.co/docs/integrations/block-integrations/llm#perplexity)                                                 | Query Perplexity's sonar models with real-time web search capabilities and receive annotated responses with source citations                                        |
| [Replicate Flux Advanced Model](https://agpt.co/docs/integrations/block-integrations/flux_advanced#replicate-flux-advanced-model) | This block runs Flux models on Replicate with advanced settings                                                                                                     |
| [Replicate Model](https://agpt.co/docs/integrations/block-integrations/replicate_block#replicate-model)                           | Run Replicate models synchronously                                                                                                                                  |
| [Smart Search](https://agpt.co/docs/integrations/block-integrations/reasoning#smart-search)                                       | Natural-language search for people, leads or companies using DataForB2B's B2B database — describe your ideal lead or ICP in plain English and get matching profiles |
| [Stagehand Act](https://agpt.co/docs/integrations/block-integrations/blocks-1#stagehand-act)                                      | Interact with a web page by performing actions on a web page                                                                                                        |
| [Stagehand Extract](https://agpt.co/docs/integrations/block-integrations/blocks-1#stagehand-extract)                              | Extract structured data from a webpage                                                                                                                              |
| [Stagehand Observe](https://agpt.co/docs/integrations/block-integrations/blocks-1#stagehand-observe)                              | Find suggested actions for your workflows                                                                                                                           |
| [Unreal Text To Speech](https://agpt.co/docs/integrations/block-integrations/llm#unreal-text-to-speech)                           | Converts text to speech using the Unreal Speech API                                                                                                                 |
| [Video Narration](https://agpt.co/docs/integrations/block-integrations/narration#video-narration)                                 | Generate AI narration and add to video                                                                                                                              |

## Search and Information Retrieval

| Block Name                                                                                                                                         | Description                                                                                                                                                  |
| -------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [AnySearch](https://agpt.co/docs/integrations/block-integrations/search#anysearch)                                                                 | Searches the web using AnySearch - general queries plus vertical domains (finance, academic, health, legal, and more) via domain/sub\_domain filters         |
| [AnySearch Extract](https://agpt.co/docs/integrations/block-integrations/extract#anysearch-extract)                                                | Extracts readable content from a single URL using AnySearch, optimized for LLM consumption                                                                   |
| [AnySearch Parallel Search](https://agpt.co/docs/integrations/block-integrations/parallel_search#anysearch-parallel-search)                        | Runs several AnySearch queries in parallel (client-side concurrency via asyncio)                                                                             |
| [Ask Wolfram](https://agpt.co/docs/integrations/block-integrations/llm_api#ask-wolfram)                                                            | Ask Wolfram Alpha a question                                                                                                                                 |
| [Exa Batch Search Monitors](https://agpt.co/docs/integrations/block-integrations/search_monitors_batch#exa-batch-search-monitors)                  | Delete, pause or unpause every Exa Search Monitor matching a name, status or metadata filter (previews by default)                                           |
| [Exa Bulk Webset Items](https://agpt.co/docs/integrations/block-integrations/websets_items#exa-bulk-webset-items)                                  | Get all items from a webset in bulk (with configurable limits)                                                                                               |
| [Exa Cancel Agent Run](https://agpt.co/docs/integrations/block-integrations/agent_manage#exa-cancel-agent-run)                                     | Cancel an Exa Agent run immediately                                                                                                                          |
| [Exa Cancel Enrichment](https://agpt.co/docs/integrations/block-integrations/websets_enrichment#exa-cancel-enrichment)                             | Cancel a running enrichment operation                                                                                                                        |
| [Exa Cancel Webset](https://agpt.co/docs/integrations/block-integrations/websets#exa-cancel-webset)                                                | Cancel all operations being performed on a Webset                                                                                                            |
| [Exa Cancel Webset Search](https://agpt.co/docs/integrations/block-integrations/websets_search#exa-cancel-webset-search)                           | Cancel a running webset search                                                                                                                               |
| [Exa Contents](https://agpt.co/docs/integrations/block-integrations/contents#exa-contents)                                                         | Fetches clean text, highlights or summaries for known URLs with Exa Contents, using cached copies or fresh fetches                                           |
| [Exa Create Monitor](https://agpt.co/docs/integrations/block-integrations/websets_monitor#exa-create-monitor)                                      | Create automated monitors to keep websets updated with fresh data on a schedule                                                                              |
| [Exa Create Or Find Webset](https://agpt.co/docs/integrations/block-integrations/websets#exa-create-or-find-webset)                                | Create a new webset or return existing one by external\_id (idempotent operation)                                                                            |
| [Exa Create Search Monitor](https://agpt.co/docs/integrations/block-integrations/search_monitors#exa-create-search-monitor)                        | Create an Exa Search Monitor that re-runs a search on a schedule and posts only new results to a webhook (pair it with the Exa Search Monitor Trigger block) |
| [Exa Create Webset](https://agpt.co/docs/integrations/block-integrations/websets#exa-create-webset)                                                | Create a new Exa Webset for persistent web search collections with optional waiting for initial results                                                      |
| [Exa Create Webset Search](https://agpt.co/docs/integrations/block-integrations/websets_search#exa-create-webset-search)                           | Add a new search to an existing webset to find more items                                                                                                    |
| [Exa Create Webset Webhook](https://agpt.co/docs/integrations/block-integrations/websets_webhooks#exa-create-webset-webhook)                       | Create an Exa Websets webhook that sends the chosen events to a URL, and get its one-time signing secret                                                     |
| [Exa Delete Agent Run](https://agpt.co/docs/integrations/block-integrations/agent_manage#exa-delete-agent-run)                                     | Permanently delete a stored Exa Agent run and its output                                                                                                     |
| [Exa Delete Enrichment](https://agpt.co/docs/integrations/block-integrations/websets_enrichment#exa-delete-enrichment)                             | Delete an enrichment from a webset                                                                                                                           |
| [Exa Delete Monitor](https://agpt.co/docs/integrations/block-integrations/websets_monitor#exa-delete-monitor)                                      | Delete a monitor from a webset                                                                                                                               |
| [Exa Delete Search Monitor](https://agpt.co/docs/integrations/block-integrations/search_monitors_manage#exa-delete-search-monitor)                 | Permanently delete an Exa Search Monitor, stopping its runs                                                                                                  |
| [Exa Delete Webset](https://agpt.co/docs/integrations/block-integrations/websets#exa-delete-webset)                                                | Delete a Webset and all its items                                                                                                                            |
| [Exa Delete Webset Item](https://agpt.co/docs/integrations/block-integrations/websets_items#exa-delete-webset-item)                                | Delete a specific item from a webset                                                                                                                         |
| [Exa Delete Webset Webhook](https://agpt.co/docs/integrations/block-integrations/websets_webhooks#exa-delete-webset-webhook)                       | Delete an Exa Websets webhook so Exa stops delivering to it                                                                                                  |
| [Exa Find Or Create Search](https://agpt.co/docs/integrations/block-integrations/websets_search#exa-find-or-create-search)                         | Find existing search by query or create new - prevents duplicate searches in workflows                                                                       |
| [Exa Find Similar](https://agpt.co/docs/integrations/block-integrations/similar#exa-find-similar)                                                  | Deprecated by Exa: prefer the Exa Search block with a query describing the source page                                                                       |
| [Exa Get Agent Run](https://agpt.co/docs/integrations/block-integrations/agent_lookup#exa-get-agent-run)                                           | Get an Exa Agent run's status and, once it has finished, its answer, structured output, citations and cost                                                   |
| [Exa Get Enrichment](https://agpt.co/docs/integrations/block-integrations/websets_enrichment#exa-get-enrichment)                                   | Get the status and details of a webset enrichment                                                                                                            |
| [Exa Get Monitor](https://agpt.co/docs/integrations/block-integrations/websets_monitor#exa-get-monitor)                                            | Get the details and status of a webset monitor                                                                                                               |
| [Exa Get Research](https://agpt.co/docs/integrations/block-integrations/research_queries#exa-get-research)                                         | Get status and results of a research task                                                                                                                    |
| [Exa Get Search Monitor](https://agpt.co/docs/integrations/block-integrations/search_monitors_manage#exa-get-search-monitor)                       | Get an Exa Search Monitor's query, schedule, webhook and status                                                                                              |
| [Exa Get Search Monitor Run](https://agpt.co/docs/integrations/block-integrations/search_monitor_runs#exa-get-search-monitor-run)                  | Get an Exa Search Monitor run's status, new results and synthesized findings                                                                                 |
| [Exa Get Webset](https://agpt.co/docs/integrations/block-integrations/websets#exa-get-webset)                                                      | Retrieve a Webset by ID or external ID                                                                                                                       |
| [Exa Get Webset Event](https://agpt.co/docs/integrations/block-integrations/websets_events#exa-get-webset-event)                                   | Get one Exa Websets event and the resource it is about                                                                                                       |
| [Exa Get Webset Item](https://agpt.co/docs/integrations/block-integrations/websets_items#exa-get-webset-item)                                      | Get a specific item from a webset by its ID                                                                                                                  |
| [Exa Get Webset Monitor Run](https://agpt.co/docs/integrations/block-integrations/websets_monitor_runs#exa-get-webset-monitor-run)                 | Get the status and outcome of one scheduled run of a Websets monitor                                                                                         |
| [Exa Get Webset Search](https://agpt.co/docs/integrations/block-integrations/websets_search#exa-get-webset-search)                                 | Get the status and details of a webset search                                                                                                                |
| [Exa Get Webset Webhook](https://agpt.co/docs/integrations/block-integrations/websets_webhooks#exa-get-webset-webhook)                             | Get an Exa Websets webhook's URL, events, status and metadata                                                                                                |
| [Exa Get Websets Team Info](https://agpt.co/docs/integrations/block-integrations/websets_team#exa-get-websets-team-info)                           | Get your team's Websets concurrency usage and limits, to check capacity before launching large websets                                                       |
| [Exa List Agent Run Events](https://agpt.co/docs/integrations/block-integrations/agent_manage#exa-list-agent-run-events)                           | List an Exa Agent run's stored events (created, started, completed, failed, cancelled, plus progress)                                                        |
| [Exa List Agent Runs](https://agpt.co/docs/integrations/block-integrations/agent_manage#exa-list-agent-runs)                                       | List your Exa Agent runs, newest first, with paging                                                                                                          |
| [Exa List Monitors](https://agpt.co/docs/integrations/block-integrations/websets_monitor#exa-list-monitors)                                        | List all monitors with optional webset filtering                                                                                                             |
| [Exa List Research](https://agpt.co/docs/integrations/block-integrations/research#exa-list-research)                                               | List research tasks with pagination support                                                                                                                  |
| [Exa List Search Monitor Runs](https://agpt.co/docs/integrations/block-integrations/search_monitor_runs#exa-list-search-monitor-runs)              | List an Exa Search Monitor's runs, newest first, with status and output                                                                                      |
| [Exa List Search Monitors](https://agpt.co/docs/integrations/block-integrations/search_monitors_manage#exa-list-search-monitors)                   | List Exa Search Monitors, filtered by status, name or metadata                                                                                               |
| [Exa List Webset Events](https://agpt.co/docs/integrations/block-integrations/websets_events#exa-list-webset-events)                               | List Exa Websets events (new items, finished searches, monitor runs and more) from the last 60 days                                                          |
| [Exa List Webset Items](https://agpt.co/docs/integrations/block-integrations/websets_items#exa-list-webset-items)                                  | List items in a webset with pagination support                                                                                                               |
| [Exa List Webset Monitor Runs](https://agpt.co/docs/integrations/block-integrations/websets_monitor_runs#exa-list-webset-monitor-runs)             | List the scheduled runs of a Websets monitor, to check whether its updates succeeded                                                                         |
| [Exa List Webset Webhook Attempts](https://agpt.co/docs/integrations/block-integrations/websets_webhook_attempts#exa-list-webset-webhook-attempts) | List an Exa Websets webhook's delivery attempts, with status codes and responses, to debug failed deliveries                                                 |
| [Exa List Webset Webhooks](https://agpt.co/docs/integrations/block-integrations/websets_webhook_attempts#exa-list-webset-webhooks)                 | List your team's active Exa Websets webhooks                                                                                                                 |
| [Exa List Websets](https://agpt.co/docs/integrations/block-integrations/websets#exa-list-websets)                                                  | List all Websets with pagination support, optionally filtered by ID, external ID or title                                                                    |
| [Exa Preview Webset](https://agpt.co/docs/integrations/block-integrations/websets#exa-preview-webset)                                              | Preview how a search query will be interpreted before creating a webset                                                                                      |
| [Exa Search](https://agpt.co/docs/integrations/block-integrations/search-2#exa-search)                                                             | Searches the web with Exa and returns ranked pages with their text or highlights                                                                             |
| [Exa Stop Agent Run](https://agpt.co/docs/integrations/block-integrations/agent_manage#exa-stop-agent-run)                                         | Stop an Exa Agent run early and return the results gathered so far (stop reason 'stopped')                                                                   |
| [Exa Trigger Search Monitor](https://agpt.co/docs/integrations/block-integrations/search_monitor_runs#exa-trigger-search-monitor)                  | Run an Exa Search Monitor now; results go to its webhook and can also be read with List/Get Search Monitor Runs                                              |
| [Exa Update Enrichment](https://agpt.co/docs/integrations/block-integrations/websets_enrichment#exa-update-enrichment)                             | Update an existing enrichment configuration                                                                                                                  |
| [Exa Update Monitor](https://agpt.co/docs/integrations/block-integrations/websets_monitor#exa-update-monitor)                                      | Update a monitor's status, schedule, search settings or metadata                                                                                             |
| [Exa Update Search Monitor](https://agpt.co/docs/integrations/block-integrations/search_monitors_update#exa-update-search-monitor)                 | Update an Exa Search Monitor: pause or resume it, or change its query, schedule, output format or webhook                                                    |
| [Exa Update Webset](https://agpt.co/docs/integrations/block-integrations/websets#exa-update-webset)                                                | Update the title or metadata of an existing Webset                                                                                                           |
| [Exa Update Webset Webhook](https://agpt.co/docs/integrations/block-integrations/websets_webhooks#exa-update-webset-webhook)                       | Update an Exa Websets webhook's URL, events or metadata                                                                                                      |
| [Exa Wait For Agent Run](https://agpt.co/docs/integrations/block-integrations/agent_lookup#exa-wait-for-agent-run)                                 | Wait for an Exa Agent run to finish, then return its answer, structured output, citations and cost                                                           |
| [Exa Wait For Enrichment](https://agpt.co/docs/integrations/block-integrations/websets_polling#exa-wait-for-enrichment)                            | Wait for a webset enrichment to complete with progress tracking                                                                                              |
| [Exa Wait For Research](https://agpt.co/docs/integrations/block-integrations/research_queries#exa-wait-for-research)                               | Wait for a research task to complete with configurable timeout                                                                                               |
| [Exa Wait For Search](https://agpt.co/docs/integrations/block-integrations/websets_polling#exa-wait-for-search)                                    | Wait for a specific webset search to complete with progress tracking                                                                                         |
| [Exa Wait For Webset](https://agpt.co/docs/integrations/block-integrations/websets_polling#exa-wait-for-webset)                                    | Wait for a webset to reach a specific status with progress tracking                                                                                          |
| [Exa Webset Items Summary](https://agpt.co/docs/integrations/block-integrations/websets_items#exa-webset-items-summary)                            | Get a summary of webset items without retrieving all data                                                                                                    |
| [Exa Webset Status](https://agpt.co/docs/integrations/block-integrations/websets#exa-webset-status)                                                | Get a quick status overview of a webset                                                                                                                      |
| [Exa Webset Summary](https://agpt.co/docs/integrations/block-integrations/websets#exa-webset-summary)                                              | Get a comprehensive summary of a webset with samples and statistics                                                                                          |
| [Extract Website Content](https://agpt.co/docs/integrations/block-integrations/search-5#extract-website-content)                                   | This block scrapes the content from the given web URL                                                                                                        |
| [Fact Checker](https://agpt.co/docs/integrations/block-integrations/fact_checker#fact-checker)                                                     | This block checks the factuality of a given statement using Jina AI's Grounding API                                                                          |
| [Firecrawl Crawl](https://agpt.co/docs/integrations/block-integrations/crawl#firecrawl-crawl)                                                      | Firecrawl crawls websites to extract comprehensive data while bypassing blockers                                                                             |
| [Firecrawl Extract](https://agpt.co/docs/integrations/block-integrations/extract-1#firecrawl-extract)                                              | Firecrawl crawls websites to extract comprehensive data while bypassing blockers                                                                             |
| [Firecrawl Map Website](https://agpt.co/docs/integrations/block-integrations/map#firecrawl-map-website)                                            | Firecrawl maps a website to extract all the links                                                                                                            |
| [Firecrawl Scrape](https://agpt.co/docs/integrations/block-integrations/scrape#firecrawl-scrape)                                                   | Firecrawl scrapes a website to extract comprehensive data while bypassing blockers                                                                           |
| [Firecrawl Search](https://agpt.co/docs/integrations/block-integrations/search-3#firecrawl-search)                                                 | Firecrawl searches the web for the given query                                                                                                               |
| [Get Person Detail](https://agpt.co/docs/integrations/block-integrations/person#get-person-detail)                                                 | Get detailed person data with Apollo API, including email reveal                                                                                             |
| [Get Wikipedia Summary](https://agpt.co/docs/integrations/block-integrations/search-7#get-wikipedia-summary)                                       | This block fetches the summary of a given topic from Wikipedia                                                                                               |
| [Google Maps Search](https://agpt.co/docs/integrations/block-integrations/search-7#google-maps-search)                                             | This block searches for local businesses using Google Maps API                                                                                               |
| [Hacker News Get Item](https://agpt.co/docs/integrations/block-integrations/items#hacker-news-get-item)                                            | Get a Hacker News story, comment, poll or job by its id or link, with its comments as a list in reading order                                                |
| [Hacker News Get Stories](https://agpt.co/docs/integrations/block-integrations/stories#hacker-news-get-stories)                                    | Get the top (front page), new, best, Ask HN, Show HN or job stories from Hacker News, in the order Hacker News ranks them                                    |
| [Hacker News Get User](https://agpt.co/docs/integrations/block-integrations/users-1#hacker-news-get-user)                                          | Get a Hacker News user's profile by username: karma, when the account was created, the about text and how many items they have posted                        |
| [Hacker News Search](https://agpt.co/docs/integrations/block-integrations/search-4#hacker-news-search)                                             | Search Hacker News stories and comments by keyword, author, date, points or linked domain, sorted by relevance or newest first                               |
| [Parallel Ask Many Decisions](https://agpt.co/docs/integrations/block-integrations/ask_many#parallel-ask-many-decisions)                           | Ask several yes/no, choice and score questions about one subject in a single Parallel request, answered from shared current web evidence                     |
| [Parallel Score Decision](https://agpt.co/docs/integrations/block-integrations/score#parallel-score-decision)                                      | Rate something on an ordered scale you define, using current web evidence from Parallel                                                                      |
| [Search Filter Typeahead](https://agpt.co/docs/integrations/block-integrations/typeahead#search-filter-typeahead)                                  | Resolve the exact filter value (company, industry, job title, skill, school, investor, location, category) for people and company searches with DataForB2B   |
| [Search Organizations](https://agpt.co/docs/integrations/block-integrations/organization#search-organizations)                                     | Search for organizations in Apollo                                                                                                                           |
| [Search People](https://agpt.co/docs/integrations/block-integrations/people#search-people)                                                         | Search for people in Apollo                                                                                                                                  |
| [Search The Web](https://agpt.co/docs/integrations/block-integrations/search-5#search-the-web)                                                     | This block searches the internet for the given search query                                                                                                  |
| [Tavily Crawl](https://agpt.co/docs/integrations/block-integrations/crawl-1#tavily-crawl)                                                          | Crawls a website with Tavily, following links from the root URL and extracting page content                                                                  |
| [Tavily Extract](https://agpt.co/docs/integrations/block-integrations/extract-2#tavily-extract)                                                    | Extracts page content from one or more URLs using Tavily, optimized for LLM consumption                                                                      |
| [Tavily Map](https://agpt.co/docs/integrations/block-integrations/map-1#tavily-map)                                                                | Maps a website's structure with Tavily, discovering its URLs without extracting content                                                                      |
| [Tavily Search](https://agpt.co/docs/integrations/block-integrations/search-8#tavily-search)                                                       | Searches the web using Tavily's AI-native search API                                                                                                         |
| [Treg Extract Web Page](https://agpt.co/docs/integrations/block-integrations/pages#treg-extract-web-page)                                          | Read a web page's main content as clean text, through Treg's cheapest working page extractor                                                                 |
| [Treg Get LinkedIn Company](https://agpt.co/docs/integrations/block-integrations/linkedin-1#treg-get-linkedin-company)                             | Read a LinkedIn company page through Treg, without a LinkedIn account or scraper                                                                             |
| [Treg Get LinkedIn Profile](https://agpt.co/docs/integrations/block-integrations/linkedin-1#treg-get-linkedin-profile)                             | Read a LinkedIn member's public profile through Treg, without a LinkedIn account or scraper                                                                  |
| [Treg Google Maps Search](https://agpt.co/docs/integrations/block-integrations/search-9#treg-google-maps-search)                                   | Find businesses and places on Google Maps through Treg                                                                                                       |
| [Treg Map Website](https://agpt.co/docs/integrations/block-integrations/pages#treg-map-website)                                                    | List the pages on a website, through Treg                                                                                                                    |
| [Treg Web Search](https://agpt.co/docs/integrations/block-integrations/search-9#treg-web-search)                                                   | Search the web, news, Google, research papers or YouTube through Treg, which picks the cheapest working search provider                                      |
| [Validate Emails](https://agpt.co/docs/integrations/block-integrations/validate_emails#validate-emails)                                            | Validate emails                                                                                                                                              |

## Social Media and Content

| Block Name                                                                                                                             | Description                                                                                           |
| -------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- |
| [Approve Reddit Post](https://agpt.co/docs/integrations/block-integrations/misc#approve-reddit-post)                                   | Approves a Reddit post or comment from the mod queue                                                  |
| [Ban Subreddit User](https://agpt.co/docs/integrations/block-integrations/misc#ban-subreddit-user)                                     | Bans a user from a subreddit                                                                          |
| [Create Discord Thread](https://agpt.co/docs/integrations/block-integrations/bot_blocks#create-discord-thread)                         | Creates a new thread in a Discord channel                                                             |
| [Create Reddit Post](https://agpt.co/docs/integrations/block-integrations/misc#create-reddit-post)                                     | Create a new post on a subreddit                                                                      |
| [Delete Reddit Comment](https://agpt.co/docs/integrations/block-integrations/misc#delete-reddit-comment)                               | Delete a Reddit comment that you own                                                                  |
| [Delete Reddit Post](https://agpt.co/docs/integrations/block-integrations/misc#delete-reddit-post)                                     | Delete a Reddit post that you own                                                                     |
| [Delete Telegram Message](https://agpt.co/docs/integrations/block-integrations/blocks-2#delete-telegram-message)                       | Delete a message from a Telegram chat                                                                 |
| [Discord Channel Info](https://agpt.co/docs/integrations/block-integrations/bot_blocks#discord-channel-info)                           | Resolves Discord channel names to IDs and vice versa                                                  |
| [Discord Get Current User](https://agpt.co/docs/integrations/block-integrations/oauth_blocks#discord-get-current-user)                 | Gets information about the currently authenticated Discord user using OAuth2 credentials              |
| [Discord User Info](https://agpt.co/docs/integrations/block-integrations/bot_blocks#discord-user-info)                                 | Gets information about a Discord user by their ID                                                     |
| [Edit Reddit Post](https://agpt.co/docs/integrations/block-integrations/misc#edit-reddit-post)                                         | Edit the body text of an existing Reddit post that you own                                            |
| [Edit Telegram Message](https://agpt.co/docs/integrations/block-integrations/blocks-2#edit-telegram-message)                           | Edit the text of an existing message sent by the bot                                                  |
| [Get Linkedin Profile](https://agpt.co/docs/integrations/block-integrations/linkedin#get-linkedin-profile)                             | Fetch LinkedIn profile data using Enrichlayer                                                         |
| [Get Linkedin Profile Picture](https://agpt.co/docs/integrations/block-integrations/linkedin#get-linkedin-profile-picture)             | Get LinkedIn profile pictures using Enrichlayer                                                       |
| [Get Reddit Comment](https://agpt.co/docs/integrations/block-integrations/misc#get-reddit-comment)                                     | Get details about a specific Reddit comment by its ID                                                 |
| [Get Reddit Comment Replies](https://agpt.co/docs/integrations/block-integrations/misc#get-reddit-comment-replies)                     | Get replies to a specific Reddit comment                                                              |
| [Get Reddit Inbox](https://agpt.co/docs/integrations/block-integrations/misc#get-reddit-inbox)                                         | Get messages, mentions, and comment replies from your Reddit inbox                                    |
| [Get Reddit Post](https://agpt.co/docs/integrations/block-integrations/misc#get-reddit-post)                                           | Get detailed information about a specific Reddit post by its ID                                       |
| [Get Reddit Post Comments](https://agpt.co/docs/integrations/block-integrations/misc#get-reddit-post-comments)                         | Get top-level comments on a Reddit post                                                               |
| [Get Reddit Posts](https://agpt.co/docs/integrations/block-integrations/misc#get-reddit-posts)                                         | This block fetches Reddit posts from a defined subreddit name                                         |
| [Get Reddit User Info](https://agpt.co/docs/integrations/block-integrations/misc#get-reddit-user-info)                                 | Get information about a Reddit user including karma, account age, and verification status             |
| [Get Subreddit Flairs](https://agpt.co/docs/integrations/block-integrations/misc#get-subreddit-flairs)                                 | Get available link flair options for a subreddit                                                      |
| [Get Subreddit Info](https://agpt.co/docs/integrations/block-integrations/misc#get-subreddit-info)                                     | Get information about a subreddit including subscriber count, description, and rules                  |
| [Get Subreddit Rules](https://agpt.co/docs/integrations/block-integrations/misc#get-subreddit-rules)                                   | Get the rules for a subreddit to ensure compliance before posting                                     |
| [Get Telegram File](https://agpt.co/docs/integrations/block-integrations/blocks-2#get-telegram-file)                                   | Download a file from Telegram using its file\_id                                                      |
| [Get User Posts](https://agpt.co/docs/integrations/block-integrations/misc#get-user-posts)                                             | Fetch posts by a specific Reddit user                                                                 |
| [Linkedin Person Lookup](https://agpt.co/docs/integrations/block-integrations/linkedin#linkedin-person-lookup)                         | Look up LinkedIn profiles by person information using Enrichlayer                                     |
| [Linkedin Role Lookup](https://agpt.co/docs/integrations/block-integrations/linkedin#linkedin-role-lookup)                             | Look up LinkedIn profiles by role in a company using Enrichlayer                                      |
| [Lock Reddit Post](https://agpt.co/docs/integrations/block-integrations/misc#lock-reddit-post)                                         | Locks or unlocks a Reddit post or comment to prevent or allow replies                                 |
| [Mod Queue](https://agpt.co/docs/integrations/block-integrations/misc#mod-queue)                                                       | Fetches the mod queue for a subreddit                                                                 |
| [Post Reddit Comment](https://agpt.co/docs/integrations/block-integrations/misc#post-reddit-comment)                                   | This block posts a Reddit comment on a specified Reddit post                                          |
| [Post To Bluesky](https://agpt.co/docs/integrations/block-integrations/post_to_bluesky#post-to-bluesky)                                | Post to Bluesky using Ayrshare                                                                        |
| [Post To Facebook](https://agpt.co/docs/integrations/block-integrations/post_to_facebook#post-to-facebook)                             | Post to Facebook using Ayrshare                                                                       |
| [Post To GMB](https://agpt.co/docs/integrations/block-integrations/post_to_gmb#post-to-gmb)                                            | Post to Google My Business using Ayrshare                                                             |
| [Post To Instagram](https://agpt.co/docs/integrations/block-integrations/post_to_instagram#post-to-instagram)                          | Post to Instagram using Ayrshare                                                                      |
| [Post To LinkedIn](https://agpt.co/docs/integrations/block-integrations/post_to_linkedin#post-to-linkedin)                             | Post to LinkedIn using Ayrshare                                                                       |
| [Post To Pinterest](https://agpt.co/docs/integrations/block-integrations/post_to_pinterest#post-to-pinterest)                          | Post to Pinterest using Ayrshare                                                                      |
| [Post To Reddit](https://agpt.co/docs/integrations/block-integrations/post_to_reddit#post-to-reddit)                                   | Post to Reddit using Ayrshare                                                                         |
| [Post To Snapchat](https://agpt.co/docs/integrations/block-integrations/post_to_snapchat#post-to-snapchat)                             | Post to Snapchat using Ayrshare                                                                       |
| [Post To Telegram](https://agpt.co/docs/integrations/block-integrations/post_to_telegram#post-to-telegram)                             | Post to Telegram using Ayrshare                                                                       |
| [Post To Threads](https://agpt.co/docs/integrations/block-integrations/post_to_threads#post-to-threads)                                | Post to Threads using Ayrshare                                                                        |
| [Post To TikTok](https://agpt.co/docs/integrations/block-integrations/post_to_tiktok#post-to-tiktok)                                   | Post to TikTok using Ayrshare                                                                         |
| [Post To X](https://agpt.co/docs/integrations/block-integrations/post_to_x#post-to-x)                                                  | Post to X / Twitter using Ayrshare                                                                    |
| [Post To YouTube](https://agpt.co/docs/integrations/block-integrations/post_to_youtube#post-to-youtube)                                | Post to YouTube using Ayrshare                                                                        |
| [Publish To Medium](https://agpt.co/docs/integrations/block-integrations/misc#publish-to-medium)                                       | Publishes a post to Medium                                                                            |
| [Read Discord Messages](https://agpt.co/docs/integrations/block-integrations/bot_blocks#read-discord-messages)                         | Reads new messages from a Discord channel using a bot token and triggers when a new message is posted |
| [Reddit Get My Posts](https://agpt.co/docs/integrations/block-integrations/misc#reddit-get-my-posts)                                   | Fetch posts created by the authenticated Reddit user (you)                                            |
| [Remove Reddit Post](https://agpt.co/docs/integrations/block-integrations/misc#remove-reddit-post)                                     | Removes a Reddit post or comment as a moderator                                                       |
| [Reply To Discord Message](https://agpt.co/docs/integrations/block-integrations/bot_blocks#reply-to-discord-message)                   | Replies to a specific Discord message                                                                 |
| [Reply To Reddit Comment](https://agpt.co/docs/integrations/block-integrations/misc#reply-to-reddit-comment)                           | Reply to a specific Reddit comment                                                                    |
| [Reply To Telegram Message](https://agpt.co/docs/integrations/block-integrations/blocks-2#reply-to-telegram-message)                   | Reply to a specific message in a Telegram chat                                                        |
| [Search Reddit](https://agpt.co/docs/integrations/block-integrations/misc#search-reddit)                                               | Search Reddit for posts matching a query                                                              |
| [Send Discord DM](https://agpt.co/docs/integrations/block-integrations/bot_blocks#send-discord-dm)                                     | Sends a direct message to a Discord user using their user ID                                          |
| [Send Discord Embed](https://agpt.co/docs/integrations/block-integrations/bot_blocks#send-discord-embed)                               | Sends a rich embed message to a Discord channel                                                       |
| [Send Discord File](https://agpt.co/docs/integrations/block-integrations/bot_blocks#send-discord-file)                                 | Sends a file attachment to a Discord channel                                                          |
| [Send Discord Message](https://agpt.co/docs/integrations/block-integrations/bot_blocks#send-discord-message)                           | Sends a message to a Discord channel using a bot token                                                |
| [Send Mod Mail](https://agpt.co/docs/integrations/block-integrations/misc#send-mod-mail)                                               | Sends a modmail message from a subreddit to a user                                                    |
| [Send Reddit Message](https://agpt.co/docs/integrations/block-integrations/misc#send-reddit-message)                                   | Send a private message (DM) to a Reddit user                                                          |
| [Send Slack Message](https://agpt.co/docs/integrations/block-integrations/blocks#send-slack-message)                                   | Send a text message to any Slack channel, DM, or thread                                               |
| [Send Telegram Audio](https://agpt.co/docs/integrations/block-integrations/blocks-2#send-telegram-audio)                               | Send an audio file to a Telegram chat                                                                 |
| [Send Telegram Document](https://agpt.co/docs/integrations/block-integrations/blocks-2#send-telegram-document)                         | Send a document (any file type) to a Telegram chat                                                    |
| [Send Telegram Message](https://agpt.co/docs/integrations/block-integrations/blocks-2#send-telegram-message)                           | Send a text message to a Telegram chat                                                                |
| [Send Telegram Photo](https://agpt.co/docs/integrations/block-integrations/blocks-2#send-telegram-photo)                               | Send a photo to a Telegram chat                                                                       |
| [Send Telegram Video](https://agpt.co/docs/integrations/block-integrations/blocks-2#send-telegram-video)                               | Send a video to a Telegram chat                                                                       |
| [Send Telegram Voice](https://agpt.co/docs/integrations/block-integrations/blocks-2#send-telegram-voice)                               | Send a voice message to a Telegram chat                                                               |
| [Telegram Message Reaction Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-7#telegram-message-reaction-trigger) | Triggers when a reaction to a message is changed                                                      |
| [Telegram Message Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-7#telegram-message-trigger)                   | Triggers when a message is received or edited in your Telegram bot                                    |
| [Transcribe Youtube Video](https://agpt.co/docs/integrations/block-integrations/misc#transcribe-youtube-video)                         | Transcribes a YouTube video using a proxy                                                             |
| [Twitter Add List Member](https://agpt.co/docs/integrations/block-integrations/list_members#twitter-add-list-member)                   | This block adds a specified user to a Twitter List owned by the authenticated user                    |
| [Twitter Bookmark Tweet](https://agpt.co/docs/integrations/block-integrations/bookmark#twitter-bookmark-tweet)                         | This block bookmarks a tweet on Twitter                                                               |
| [Twitter Create List](https://agpt.co/docs/integrations/block-integrations/manage_lists#twitter-create-list)                           | This block creates a new Twitter List for the authenticated user                                      |
| [Twitter Delete List](https://agpt.co/docs/integrations/block-integrations/manage_lists#twitter-delete-list)                           | This block deletes a specified Twitter List owned by the authenticated user                           |
| [Twitter Delete Tweet](https://agpt.co/docs/integrations/block-integrations/manage#twitter-delete-tweet)                               | This block deletes a tweet on Twitter                                                                 |
| [Twitter Follow List](https://agpt.co/docs/integrations/block-integrations/list_follows#twitter-follow-list)                           | This block follows a specified Twitter list for the authenticated user                                |
| [Twitter Follow User](https://agpt.co/docs/integrations/block-integrations/follows#twitter-follow-user)                                | This block follows a specified Twitter user                                                           |
| [Twitter Get Blocked Users](https://agpt.co/docs/integrations/block-integrations/blocks-3#twitter-get-blocked-users)                   | This block retrieves a list of users blocked by the authenticating user                               |
| [Twitter Get Bookmarked Tweets](https://agpt.co/docs/integrations/block-integrations/bookmark#twitter-get-bookmarked-tweets)           | This block retrieves bookmarked tweets from Twitter                                                   |
| [Twitter Get Followers](https://agpt.co/docs/integrations/block-integrations/follows#twitter-get-followers)                            | This block retrieves followers of a specified Twitter user                                            |
| [Twitter Get Following](https://agpt.co/docs/integrations/block-integrations/follows#twitter-get-following)                            | This block retrieves the users that a specified Twitter user is following                             |
| [Twitter Get Home Timeline](https://agpt.co/docs/integrations/block-integrations/timeline#twitter-get-home-timeline)                   | This block retrieves the authenticated user's home timeline                                           |
| [Twitter Get Liked Tweets](https://agpt.co/docs/integrations/block-integrations/like#twitter-get-liked-tweets)                         | This block gets information about tweets liked by a user                                              |
| [Twitter Get Liking Users](https://agpt.co/docs/integrations/block-integrations/like#twitter-get-liking-users)                         | This block gets information about users who liked a tweet                                             |
| [Twitter Get List](https://agpt.co/docs/integrations/block-integrations/list_lookup#twitter-get-list)                                  | This block retrieves information about a specified Twitter List                                       |
| [Twitter Get List Members](https://agpt.co/docs/integrations/block-integrations/list_members#twitter-get-list-members)                 | This block retrieves the members of a specified Twitter List                                          |
| [Twitter Get List Memberships](https://agpt.co/docs/integrations/block-integrations/list_members#twitter-get-list-memberships)         | This block retrieves all Lists that a specified user is a member of                                   |
| [Twitter Get List Tweets](https://agpt.co/docs/integrations/block-integrations/list_tweets_lookup#twitter-get-list-tweets)             | This block retrieves tweets from a specified Twitter list                                             |
| [Twitter Get Muted Users](https://agpt.co/docs/integrations/block-integrations/mutes#twitter-get-muted-users)                          | This block gets a list of users muted by the authenticating user                                      |
| [Twitter Get Owned Lists](https://agpt.co/docs/integrations/block-integrations/list_lookup#twitter-get-owned-lists)                    | This block retrieves all Lists owned by a specified Twitter user                                      |
| [Twitter Get Pinned Lists](https://agpt.co/docs/integrations/block-integrations/pinned_lists#twitter-get-pinned-lists)                 | This block returns the Lists pinned by the authenticated user                                         |
| [Twitter Get Quote Tweets](https://agpt.co/docs/integrations/block-integrations/quote#twitter-get-quote-tweets)                        | This block gets quote tweets for a specific tweet                                                     |
| [Twitter Get Retweeters](https://agpt.co/docs/integrations/block-integrations/retweet#twitter-get-retweeters)                          | This block gets information about who has retweeted a tweet                                           |
| [Twitter Get Space Buyers](https://agpt.co/docs/integrations/block-integrations/spaces_lookup#twitter-get-space-buyers)                | This block retrieves a list of users who purchased tickets to a Twitter Space                         |
| [Twitter Get Space By Id](https://agpt.co/docs/integrations/block-integrations/spaces_lookup#twitter-get-space-by-id)                  | This block retrieves information about a single Twitter Space                                         |
| [Twitter Get Space Tweets](https://agpt.co/docs/integrations/block-integrations/spaces_lookup#twitter-get-space-tweets)                | This block retrieves tweets shared in a Twitter Space                                                 |
| [Twitter Get Spaces](https://agpt.co/docs/integrations/block-integrations/spaces_lookup#twitter-get-spaces)                            | This block retrieves information about multiple Twitter Spaces                                        |
| [Twitter Get Tweet](https://agpt.co/docs/integrations/block-integrations/tweet_lookup#twitter-get-tweet)                               | This block retrieves information about a specific Tweet                                               |
| [Twitter Get Tweets](https://agpt.co/docs/integrations/block-integrations/tweet_lookup#twitter-get-tweets)                             | This block retrieves information about multiple Tweets                                                |
| [Twitter Get User](https://agpt.co/docs/integrations/block-integrations/user_lookup#twitter-get-user)                                  | This block retrieves information about a specified Twitter user                                       |
| [Twitter Get User Mentions](https://agpt.co/docs/integrations/block-integrations/timeline#twitter-get-user-mentions)                   | This block retrieves Tweets mentioning a specific user                                                |
| [Twitter Get User Tweets](https://agpt.co/docs/integrations/block-integrations/timeline#twitter-get-user-tweets)                       | This block retrieves Tweets composed by a single user                                                 |
| [Twitter Get Users](https://agpt.co/docs/integrations/block-integrations/user_lookup#twitter-get-users)                                | This block retrieves information about multiple Twitter users                                         |
| [Twitter Hide Reply](https://agpt.co/docs/integrations/block-integrations/hide#twitter-hide-reply)                                     | This block hides a reply to a tweet                                                                   |
| [Twitter Like Tweet](https://agpt.co/docs/integrations/block-integrations/like#twitter-like-tweet)                                     | This block likes a tweet                                                                              |
| [Twitter Mute User](https://agpt.co/docs/integrations/block-integrations/mutes#twitter-mute-user)                                      | This block mutes a specified Twitter user                                                             |
| [Twitter Pin List](https://agpt.co/docs/integrations/block-integrations/pinned_lists#twitter-pin-list)                                 | This block allows the authenticated user to pin a specified List                                      |
| [Twitter Post Tweet](https://agpt.co/docs/integrations/block-integrations/manage#twitter-post-tweet)                                   | This block posts a tweet on Twitter                                                                   |
| [Twitter Remove Bookmark Tweet](https://agpt.co/docs/integrations/block-integrations/bookmark#twitter-remove-bookmark-tweet)           | This block removes a bookmark from a tweet on Twitter                                                 |
| [Twitter Remove List Member](https://agpt.co/docs/integrations/block-integrations/list_members#twitter-remove-list-member)             | This block removes a specified user from a Twitter List owned by the authenticated user               |
| [Twitter Remove Retweet](https://agpt.co/docs/integrations/block-integrations/retweet#twitter-remove-retweet)                          | This block removes a retweet on Twitter                                                               |
| [Twitter Retweet](https://agpt.co/docs/integrations/block-integrations/retweet#twitter-retweet)                                        | This block retweets a tweet on Twitter                                                                |
| [Twitter Search Recent Tweets](https://agpt.co/docs/integrations/block-integrations/manage#twitter-search-recent-tweets)               | This block searches all public Tweets in Twitter history                                              |
| [Twitter Search Spaces](https://agpt.co/docs/integrations/block-integrations/search_spaces#twitter-search-spaces)                      | This block searches for Twitter Spaces based on specified terms                                       |
| [Twitter Unfollow List](https://agpt.co/docs/integrations/block-integrations/list_follows#twitter-unfollow-list)                       | This block unfollows a specified Twitter list for the authenticated user                              |
| [Twitter Unfollow User](https://agpt.co/docs/integrations/block-integrations/follows#twitter-unfollow-user)                            | This block unfollows a specified Twitter user                                                         |
| [Twitter Unhide Reply](https://agpt.co/docs/integrations/block-integrations/hide#twitter-unhide-reply)                                 | This block unhides a reply to a tweet                                                                 |
| [Twitter Unlike Tweet](https://agpt.co/docs/integrations/block-integrations/like#twitter-unlike-tweet)                                 | This block unlikes a tweet                                                                            |
| [Twitter Unmute User](https://agpt.co/docs/integrations/block-integrations/mutes#twitter-unmute-user)                                  | This block unmutes a specified Twitter user                                                           |
| [Twitter Unpin List](https://agpt.co/docs/integrations/block-integrations/pinned_lists#twitter-unpin-list)                             | This block allows the authenticated user to unpin a specified List                                    |
| [Twitter Update List](https://agpt.co/docs/integrations/block-integrations/manage_lists#twitter-update-list)                           | This block updates a specified Twitter List owned by the authenticated user                           |
| [Unban Subreddit User](https://agpt.co/docs/integrations/block-integrations/misc#unban-subreddit-user)                                 | Unbans a user from a subreddit                                                                        |

## Communication

| Block Name                                                                                                                              | Description                                                                                                                                                                    |
| --------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| [Agent Mail Create Draft](https://agpt.co/docs/integrations/block-integrations/drafts#agent-mail-create-draft)                          | Create a draft email for review or scheduled sending                                                                                                                           |
| [Agent Mail Create Inbox](https://agpt.co/docs/integrations/block-integrations/inbox#agent-mail-create-inbox)                           | Create a new email inbox for an AI agent via AgentMail                                                                                                                         |
| [Agent Mail Create List Entry](https://agpt.co/docs/integrations/block-integrations/lists#agent-mail-create-list-entry)                 | Add an email address or domain to an allow/block list                                                                                                                          |
| [Agent Mail Create Pod](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-create-pod)                                | Create a new pod for multi-tenant customer isolation                                                                                                                           |
| [Agent Mail Create Pod Inbox](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-create-pod-inbox)                    | Create a new email inbox within a pod                                                                                                                                          |
| [Agent Mail Delete Draft](https://agpt.co/docs/integrations/block-integrations/drafts#agent-mail-delete-draft)                          | Delete a draft or cancel a scheduled email                                                                                                                                     |
| [Agent Mail Delete Inbox](https://agpt.co/docs/integrations/block-integrations/inbox#agent-mail-delete-inbox)                           | Permanently delete an AgentMail inbox and all its messages, threads, and drafts                                                                                                |
| [Agent Mail Delete Inbox Thread](https://agpt.co/docs/integrations/block-integrations/threads#agent-mail-delete-inbox-thread)           | Permanently delete a conversation thread and all its messages                                                                                                                  |
| [Agent Mail Delete List Entry](https://agpt.co/docs/integrations/block-integrations/lists#agent-mail-delete-list-entry)                 | Remove an email address or domain from an allow/block list to stop filtering it                                                                                                |
| [Agent Mail Delete Pod](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-delete-pod)                                | Permanently delete a pod                                                                                                                                                       |
| [Agent Mail Forward Message](https://agpt.co/docs/integrations/block-integrations/messages#agent-mail-forward-message)                  | Forward an email message to one or more recipients                                                                                                                             |
| [Agent Mail Get Draft](https://agpt.co/docs/integrations/block-integrations/drafts#agent-mail-get-draft)                                | Retrieve a draft email to review its contents, recipients, and scheduled send status                                                                                           |
| [Agent Mail Get Inbox](https://agpt.co/docs/integrations/block-integrations/inbox#agent-mail-get-inbox)                                 | Retrieve details of an existing AgentMail inbox including its email address, display name, and configuration                                                                   |
| [Agent Mail Get Inbox Thread](https://agpt.co/docs/integrations/block-integrations/threads#agent-mail-get-inbox-thread)                 | Retrieve a conversation thread with all its messages                                                                                                                           |
| [Agent Mail Get List Entry](https://agpt.co/docs/integrations/block-integrations/lists#agent-mail-get-list-entry)                       | Check if an email address or domain is in an allow/block list                                                                                                                  |
| [Agent Mail Get Message](https://agpt.co/docs/integrations/block-integrations/messages#agent-mail-get-message)                          | Retrieve a specific email message by ID                                                                                                                                        |
| [Agent Mail Get Message Attachment](https://agpt.co/docs/integrations/block-integrations/attachments#agent-mail-get-message-attachment) | Download a file attachment from an email message                                                                                                                               |
| [Agent Mail Get Org Thread](https://agpt.co/docs/integrations/block-integrations/threads#agent-mail-get-org-thread)                     | Retrieve a conversation thread by ID from anywhere in the organization, without needing the inbox ID                                                                           |
| [Agent Mail Get Pod](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-get-pod)                                      | Retrieve details of an existing pod including its client\_id mapping and metadata                                                                                              |
| [Agent Mail Get Thread Attachment](https://agpt.co/docs/integrations/block-integrations/attachments#agent-mail-get-thread-attachment)   | Download a file attachment from a conversation thread                                                                                                                          |
| [Agent Mail List Drafts](https://agpt.co/docs/integrations/block-integrations/drafts#agent-mail-list-drafts)                            | List drafts in an AgentMail inbox                                                                                                                                              |
| [Agent Mail List Entries](https://agpt.co/docs/integrations/block-integrations/lists#agent-mail-list-entries)                           | List all entries in an AgentMail allow/block list                                                                                                                              |
| [Agent Mail List Inbox Threads](https://agpt.co/docs/integrations/block-integrations/threads#agent-mail-list-inbox-threads)             | List all conversation threads in an AgentMail inbox                                                                                                                            |
| [Agent Mail List Inboxes](https://agpt.co/docs/integrations/block-integrations/inbox#agent-mail-list-inboxes)                           | List all email inboxes in your AgentMail organization with pagination support                                                                                                  |
| [Agent Mail List Messages](https://agpt.co/docs/integrations/block-integrations/messages#agent-mail-list-messages)                      | List messages in an AgentMail inbox                                                                                                                                            |
| [Agent Mail List Org Drafts](https://agpt.co/docs/integrations/block-integrations/drafts#agent-mail-list-org-drafts)                    | List all drafts across every inbox in your organization                                                                                                                        |
| [Agent Mail List Org Threads](https://agpt.co/docs/integrations/block-integrations/threads#agent-mail-list-org-threads)                 | List threads across ALL inboxes in your organization                                                                                                                           |
| [Agent Mail List Pod Drafts](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-list-pod-drafts)                      | List all drafts across all inboxes within a pod                                                                                                                                |
| [Agent Mail List Pod Inboxes](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-list-pod-inboxes)                    | List all inboxes within a pod                                                                                                                                                  |
| [Agent Mail List Pod Threads](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-list-pod-threads)                    | List all conversation threads across all inboxes within a pod                                                                                                                  |
| [Agent Mail List Pods](https://agpt.co/docs/integrations/block-integrations/pods#agent-mail-list-pods)                                  | List all tenant pods in your organization                                                                                                                                      |
| [Agent Mail Reply To Message](https://agpt.co/docs/integrations/block-integrations/messages#agent-mail-reply-to-message)                | Reply to an existing email in the same conversation thread                                                                                                                     |
| [Agent Mail Send Draft](https://agpt.co/docs/integrations/block-integrations/drafts#agent-mail-send-draft)                              | Send a draft immediately, converting it into a delivered message                                                                                                               |
| [Agent Mail Send Message](https://agpt.co/docs/integrations/block-integrations/messages#agent-mail-send-message)                        | Send a new email from an AgentMail inbox                                                                                                                                       |
| [Agent Mail Update Draft](https://agpt.co/docs/integrations/block-integrations/drafts#agent-mail-update-draft)                          | Update a draft's content, recipients, or scheduled send time                                                                                                                   |
| [Agent Mail Update Inbox](https://agpt.co/docs/integrations/block-integrations/inbox#agent-mail-update-inbox)                           | Update the display name of an AgentMail inbox                                                                                                                                  |
| [Agent Mail Update Message](https://agpt.co/docs/integrations/block-integrations/messages#agent-mail-update-message)                    | Add or remove labels on an email message                                                                                                                                       |
| [Baas Bot Join Meeting](https://agpt.co/docs/integrations/block-integrations/bots#baas-bot-join-meeting)                                | Deploy a bot to join and record a meeting                                                                                                                                      |
| [Baas Bot Leave Meeting](https://agpt.co/docs/integrations/block-integrations/bots#baas-bot-leave-meeting)                              | Remove a bot from an ongoing meeting                                                                                                                                           |
| [Gmail Add Label](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-add-label)                                           | A block that adds a label to a specific email message in Gmail, creating the label if it doesn't exist                                                                         |
| [Gmail Create Draft](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-create-draft)                                     | Create draft emails in Gmail with automatic HTML detection and proper text formatting                                                                                          |
| [Gmail Draft Reply](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-draft-reply)                                       | Create draft replies to Gmail threads with automatic HTML detection and proper text formatting                                                                                 |
| [Gmail Forward](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-forward)                                               | Forward Gmail messages to other recipients with automatic HTML detection and proper formatting                                                                                 |
| [Gmail Get Profile](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-get-profile)                                       | Get the authenticated user's Gmail profile details including email address and message statistics                                                                              |
| [Gmail Get Thread](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-get-thread)                                         | A block that retrieves an entire Gmail thread (email conversation) by ID, returning all messages with decoded bodies for reading complete conversations                        |
| [Gmail List Labels](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-list-labels)                                       | A block that retrieves all labels (categories) from a Gmail account for organizing and categorizing emails                                                                     |
| [Gmail Read](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-read)                                                     | A block that retrieves and reads emails from a Gmail account based on search criteria, returning detailed message information including subject, sender, body, and attachments |
| [Gmail Remove Label](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-remove-label)                                     | A block that removes a label from a specific email message in a Gmail account                                                                                                  |
| [Gmail Reply](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-reply)                                                   | Reply to Gmail threads with automatic HTML detection and proper text formatting                                                                                                |
| [Gmail Send](https://agpt.co/docs/integrations/block-integrations/gmail#gmail-send)                                                     | Send emails via Gmail with automatic HTML detection and proper text formatting                                                                                                 |
| [Hub Spot Engagement](https://agpt.co/docs/integrations/block-integrations/engagement#hub-spot-engagement)                              | Manages HubSpot engagements - sends emails and tracks engagement metrics                                                                                                       |
| [Send Email To Me](https://agpt.co/docs/integrations/block-integrations/communication#send-email-to-me)                                 | Email yourself: sends a message to your own inbox, at your account's email address, from the platform, with no email account to sign in to                                     |

## Developer Tools

| Block Name                                                                                                                                            | Description                                                                                                                                                 |
| ----------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [AllQuiet Create Incident](https://agpt.co/docs/integrations/block-integrations/incidents#allquiet-create-incident)                                   | Creates an incident in All Quiet and pages the on-call responder                                                                                            |
| [AllQuiet Get Incident](https://agpt.co/docs/integrations/block-integrations/incident_search#allquiet-get-incident)                                   | Fetches a single All Quiet incident by ID                                                                                                                   |
| [AllQuiet Get On Call](https://agpt.co/docs/integrations/block-integrations/on_call#allquiet-get-on-call)                                             | Looks up who is on call in All Quiet, now or at a given time                                                                                                |
| [AllQuiet Incident Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-1#allquiet-incident-trigger)                                | Triggers a graph when All Quiet posts an incident to this webhook                                                                                           |
| [AllQuiet List Incidents](https://agpt.co/docs/integrations/block-integrations/incident_search#allquiet-list-incidents)                               | Searches All Quiet incidents by status, severity, team or text                                                                                              |
| [AllQuiet List Teams](https://agpt.co/docs/integrations/block-integrations/teams#allquiet-list-teams)                                                 | Lists All Quiet teams and their IDs                                                                                                                         |
| [AllQuiet Update Incident](https://agpt.co/docs/integrations/block-integrations/incidents#allquiet-update-incident)                                   | Investigates, resolves, escalates or comments on an All Quiet incident                                                                                      |
| [Conductor Create Session](https://agpt.co/docs/integrations/block-integrations/create_session#conductor-create-session)                              | Start a new agent session (chat) in an existing Conductor workspace, optionally with a first prompt, and optionally wait for the agent's reply              |
| [Conductor Create Workspace](https://agpt.co/docs/integrations/block-integrations/create_workspace#conductor-create-workspace)                        | Create a Conductor cloud workspace for a project or repository, optionally start its agent with a prompt and wait for the reply                             |
| [Conductor Get Account](https://agpt.co/docs/integrations/block-integrations/account#conductor-get-account)                                           | Get an overview of your Conductor account in one call: who you are, the projects (repositories) you can open workspaces in, your sections and your routines |
| [Conductor Get Session](https://agpt.co/docs/integrations/block-integrations/get_session#conductor-get-session)                                       | Get a Conductor agent session: its details, whether the agent is idle, working or errored, and recent transcript messages                                   |
| [Conductor Get Workspace](https://agpt.co/docs/integrations/block-integrations/get_workspace#conductor-get-workspace)                                 | Get everything about one Conductor workspace: details, current status, shared preview URL and its agent sessions                                            |
| [Conductor List Workspaces](https://agpt.co/docs/integrations/block-integrations/list_workspaces#conductor-list-workspaces)                           | List Conductor workspaces, optionally filtered by project, state, name, repository, creator or activity date                                                |
| [Conductor Manage Routine](https://agpt.co/docs/integrations/block-integrations/routines#conductor-manage-routine)                                    | Create a Conductor routine (a saved prompt that runs a fresh agent in a project whenever its webhook URL is called) or rotate a routine's webhook secret    |
| [Conductor Manage Section](https://agpt.co/docs/integrations/block-integrations/sections#conductor-manage-section)                                    | Create or delete a Conductor cloud section                                                                                                                  |
| [Conductor Manage Session](https://agpt.co/docs/integrations/block-integrations/manage_session#conductor-manage-session)                              | Rename, cancel or archive a Conductor agent session                                                                                                         |
| [Conductor Manage Workspace](https://agpt.co/docs/integrations/block-integrations/manage_workspace#conductor-manage-workspace)                        | Change a Conductor workspace: rename it, archive, unarchive or sleep it, share or stop sharing a port at its public preview URL, or move it into a section  |
| [Conductor Send Message](https://agpt.co/docs/integrations/block-integrations/send_message#conductor-send-message)                                    | Send a prompt to a Conductor agent session and, by default, wait for the agent to finish and return its reply                                               |
| [Exa Code Context](https://agpt.co/docs/integrations/block-integrations/code_context#exa-code-context)                                                | Legacy: Exa no longer documents its code context API; for new workflows use the Exa Search block, which Exa's Code & Docs guide recommends (e               |
| [Execute Code](https://agpt.co/docs/integrations/block-integrations/misc#execute-code)                                                                | Executes code in a sandbox environment with internet access                                                                                                 |
| [Execute Code Step](https://agpt.co/docs/integrations/block-integrations/misc#execute-code-step)                                                      | Execute code in a previously instantiated sandbox                                                                                                           |
| [Github Add Label](https://agpt.co/docs/integrations/block-integrations/issues#github-add-label)                                                      | A block that adds a label to a GitHub issue or pull request for categorization and organization                                                             |
| [Github Assign Issue](https://agpt.co/docs/integrations/block-integrations/issues#github-assign-issue)                                                | A block that assigns a GitHub user to an issue for task ownership and tracking                                                                              |
| [Github Assign PR Reviewer](https://agpt.co/docs/integrations/block-integrations/pull_requests#github-assign-pr-reviewer)                             | This block assigns a reviewer to a specified GitHub pull request                                                                                            |
| [Github Comment](https://agpt.co/docs/integrations/block-integrations/issues#github-comment)                                                          | A block that posts comments on GitHub issues or pull requests using the GitHub API                                                                          |
| [Github Compare Branches](https://agpt.co/docs/integrations/block-integrations/repo_branches#github-compare-branches)                                 | This block compares two branches or commits in a GitHub repository                                                                                          |
| [Github Create Check Run](https://agpt.co/docs/integrations/block-integrations/checks#github-create-check-run)                                        | Creates a new check run for a specific commit in a GitHub repository                                                                                        |
| [Github Create Comment Object](https://agpt.co/docs/integrations/block-integrations/reviews#github-create-comment-object)                             | Creates a comment object for use with GitHub blocks                                                                                                         |
| [Github Create File](https://agpt.co/docs/integrations/block-integrations/repo_files#github-create-file)                                              | This block creates a new file in a GitHub repository                                                                                                        |
| [Github Create PR Review](https://agpt.co/docs/integrations/block-integrations/reviews#github-create-pr-review)                                       | This block creates a review on a GitHub pull request with optional inline comments                                                                          |
| [Github Create Repository](https://agpt.co/docs/integrations/block-integrations/repo#github-create-repository)                                        | This block creates a new GitHub repository                                                                                                                  |
| [Github Create Status](https://agpt.co/docs/integrations/block-integrations/statuses#github-create-status)                                            | Creates a new commit status in a GitHub repository                                                                                                          |
| [Github Delete Branch](https://agpt.co/docs/integrations/block-integrations/repo_branches#github-delete-branch)                                       | This block deletes a specified branch                                                                                                                       |
| [Github Discussion Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-4#github-discussion-trigger)                                | This block triggers on GitHub Discussions events                                                                                                            |
| [Github Fork Repository](https://agpt.co/docs/integrations/block-integrations/repo#github-fork-repository)                                            | This block forks a GitHub repository to your account or an organization                                                                                     |
| [Github Get CI Results](https://agpt.co/docs/integrations/block-integrations/ci#github-get-ci-results)                                                | This block gets CI results for a commit or PR, with optional search for specific errors/warnings in logs                                                    |
| [Github Get Notification Thread](https://agpt.co/docs/integrations/block-integrations/notifications#github-get-notification-thread)                   | This block fetches a single GitHub notification thread                                                                                                      |
| [Github Get PR Review Comments](https://agpt.co/docs/integrations/block-integrations/reviews#github-get-pr-review-comments)                           | This block gets all review comments from a GitHub pull request or from a specific review                                                                    |
| [Github Get Repository Info](https://agpt.co/docs/integrations/block-integrations/repo#github-get-repository-info)                                    | This block retrieves metadata about a GitHub repository                                                                                                     |
| [Github Get Repository Traffic](https://agpt.co/docs/integrations/block-integrations/traffic#github-get-repository-traffic)                           | Get a GitHub repository's views and clones over the last 14 days, with unique visitors and cloners, plus its top referring sites and most viewed pages      |
| [Github Get Repository Tree](https://agpt.co/docs/integrations/block-integrations/repo_files#github-get-repository-tree)                              | This block lists the entire file tree of a GitHub repository recursively                                                                                    |
| [Github Get User Info](https://agpt.co/docs/integrations/block-integrations/users#github-get-user-info)                                               | This block fetches information about a GitHub user, or about the authenticated user (yourself) if no username is given                                      |
| [Github Issues Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-4#github-issues-trigger)                                        | This block triggers on GitHub issues events                                                                                                                 |
| [Github List Branches](https://agpt.co/docs/integrations/block-integrations/repo_branches#github-list-branches)                                       | This block lists all branches for a specified GitHub repository                                                                                             |
| [Github List Comments](https://agpt.co/docs/integrations/block-integrations/issues#github-list-comments)                                              | A block that retrieves all comments from a GitHub issue or pull request, including comment metadata and content                                             |
| [Github List Commits](https://agpt.co/docs/integrations/block-integrations/commits#github-list-commits)                                               | This block lists commits on a branch in a GitHub repository                                                                                                 |
| [Github List Discussions](https://agpt.co/docs/integrations/block-integrations/repo#github-list-discussions)                                          | This block lists recent discussions for a specified GitHub repository                                                                                       |
| [Github List Issues](https://agpt.co/docs/integrations/block-integrations/issues#github-list-issues)                                                  | A block that retrieves a list of issues from a GitHub repository with their titles and URLs                                                                 |
| [Github List Notifications](https://agpt.co/docs/integrations/block-integrations/notifications#github-list-notifications)                             | This block lists GitHub notifications for the authenticated user, e                                                                                         |
| [Github List PR Reviewers](https://agpt.co/docs/integrations/block-integrations/pull_requests#github-list-pr-reviewers)                               | This block lists the requested reviewers for a specified GitHub pull request, optionally including users who have already submitted a review                |
| [Github List PR Reviews](https://agpt.co/docs/integrations/block-integrations/reviews#github-list-pr-reviews)                                         | This block lists all reviews for a specified GitHub pull request                                                                                            |
| [Github List Pull Requests](https://agpt.co/docs/integrations/block-integrations/pull_requests#github-list-pull-requests)                             | This block lists all pull requests for a specified GitHub repository                                                                                        |
| [Github List Releases](https://agpt.co/docs/integrations/block-integrations/repo#github-list-releases)                                                | This block lists releases for a specified GitHub repository, optionally filtered by type and date range                                                     |
| [Github List Stargazers](https://agpt.co/docs/integrations/block-integrations/repo#github-list-stargazers)                                            | This block lists all users who have starred a specified GitHub repository                                                                                   |
| [Github List Tags](https://agpt.co/docs/integrations/block-integrations/repo#github-list-tags)                                                        | This block lists all tags for a specified GitHub repository                                                                                                 |
| [Github Make Branch](https://agpt.co/docs/integrations/block-integrations/repo_branches#github-make-branch)                                           | This block creates a new branch from a specified source branch                                                                                              |
| [Github Make Issue](https://agpt.co/docs/integrations/block-integrations/issues#github-make-issue)                                                    | A block that creates new issues on GitHub repositories with a title and body content                                                                        |
| [Github Make Pull Request](https://agpt.co/docs/integrations/block-integrations/pull_requests#github-make-pull-request)                               | This block creates a new pull request on a specified GitHub repository                                                                                      |
| [Github Mark Notification Thread As Done](https://agpt.co/docs/integrations/block-integrations/notifications#github-mark-notification-thread-as-done) | This block marks a GitHub notification thread as done, removing it from the notification inbox                                                              |
| [Github Mark Notification Thread As Read](https://agpt.co/docs/integrations/block-integrations/notifications#github-mark-notification-thread-as-read) | This block marks a single GitHub notification thread as read                                                                                                |
| [Github Mark Notifications As Read](https://agpt.co/docs/integrations/block-integrations/notifications#github-mark-notifications-as-read)             | This block marks all GitHub notifications as read, optionally scoped to a single repository                                                                 |
| [Github Merge Pull Request](https://agpt.co/docs/integrations/block-integrations/pull_requests#github-merge-pull-request)                             | This block merges a pull request using merge, squash, or rebase                                                                                             |
| [Github Multi File Commit](https://agpt.co/docs/integrations/block-integrations/commits#github-multi-file-commit)                                     | This block creates a single commit with multiple file upsert/delete operations using the Git Trees API                                                      |
| [Github Pull Request Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-4#github-pull-request-trigger)                            | This block triggers on pull request events and outputs the event type and payload                                                                           |
| [Github Read File](https://agpt.co/docs/integrations/block-integrations/repo_files#github-read-file)                                                  | This block reads the content of a specified file from a GitHub repository                                                                                   |
| [Github Read Folder](https://agpt.co/docs/integrations/block-integrations/repo_files#github-read-folder)                                              | This block reads the content of a specified folder from a GitHub repository                                                                                 |
| [Github Read Issue](https://agpt.co/docs/integrations/block-integrations/issues#github-read-issue)                                                    | A block that retrieves information about a specific GitHub issue, including its title, body content, and creator                                            |
| [Github Read Pull Request](https://agpt.co/docs/integrations/block-integrations/pull_requests#github-read-pull-request)                               | This block reads the body, title, user, changes, and full raw object of a specified GitHub pull request                                                     |
| [Github Release Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-4#github-release-trigger)                                      | This block triggers on GitHub release events                                                                                                                |
| [Github Remove Label](https://agpt.co/docs/integrations/block-integrations/issues#github-remove-label)                                                | A block that removes a label from a GitHub issue or pull request                                                                                            |
| [Github Resolve Review Discussion](https://agpt.co/docs/integrations/block-integrations/reviews#github-resolve-review-discussion)                     | This block resolves or unresolves a review discussion thread on a GitHub pull request                                                                       |
| [Github Search Code](https://agpt.co/docs/integrations/block-integrations/repo_files#github-search-code)                                              | This block searches for code in GitHub repositories                                                                                                         |
| [Github Star Repository](https://agpt.co/docs/integrations/block-integrations/repo#github-star-repository)                                            | This block stars a GitHub repository                                                                                                                        |
| [Github Star Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-4#github-star-trigger)                                            | This block triggers on GitHub star events                                                                                                                   |
| [Github Submit Pending Review](https://agpt.co/docs/integrations/block-integrations/reviews#github-submit-pending-review)                             | This block submits a pending (draft) review on a GitHub pull request                                                                                        |
| [Github Unassign Issue](https://agpt.co/docs/integrations/block-integrations/issues#github-unassign-issue)                                            | A block that removes a user's assignment from a GitHub issue                                                                                                |
| [Github Unassign PR Reviewer](https://agpt.co/docs/integrations/block-integrations/pull_requests#github-unassign-pr-reviewer)                         | This block unassigns a reviewer from a specified GitHub pull request                                                                                        |
| [Github Unsubscribe Notification Thread](https://agpt.co/docs/integrations/block-integrations/notifications#github-unsubscribe-notification-thread)   | This block unsubscribes you from a GitHub notification thread, muting future notifications unless you are mentioned again                                   |
| [Github Update Check Run](https://agpt.co/docs/integrations/block-integrations/checks#github-update-check-run)                                        | Updates an existing check run in a GitHub repository                                                                                                        |
| [Github Update Comment](https://agpt.co/docs/integrations/block-integrations/issues#github-update-comment)                                            | A block that updates an existing comment on a GitHub issue or pull request                                                                                  |
| [Github Update File](https://agpt.co/docs/integrations/block-integrations/repo_files#github-update-file)                                              | This block updates an existing file in a GitHub repository                                                                                                  |
| [Instantiate Code Sandbox](https://agpt.co/docs/integrations/block-integrations/misc#instantiate-code-sandbox)                                        | Instantiate a sandbox environment with internet access in which you can execute code with the Execute Code Step block                                       |
| [MCP Tool](https://agpt.co/docs/integrations/block-integrations/block#mcp-tool)                                                                       | Connect to any MCP server and execute its tools                                                                                                             |
| [Slant3D Order Webhook](https://agpt.co/docs/integrations/block-integrations/webhook#slant3d-order-webhook)                                           | This block triggers on Slant3D order status updates and outputs the event details, including tracking information when orders are shipped                   |
| [Treg Call Tool](https://agpt.co/docs/integrations/block-integrations/call_tool#treg-call-tool)                                                       | Call any of Treg's 4,000+ tools by id (SEO, social, ads, people and company data, scraping, generation), or a tool your Treg team registered                |
| [Treg Get Tool](https://agpt.co/docs/integrations/block-integrations/catalog-1#treg-get-tool)                                                         | Look up one Treg tool before calling it: the inputs it takes, its price, and every other provider of the same job                                           |
| [Treg Search Catalog](https://agpt.co/docs/integrations/block-integrations/catalog-1#treg-search-catalog)                                             | Search Treg's catalog of 4,000+ tools by the job you need done, with each tool's price and success rate                                                     |

## Media Generation

| Block Name                                                                                                   | Description                                                        |
| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------ |
| [Add Audio To Video](https://agpt.co/docs/integrations/block-integrations/add_audio#add-audio-to-video)      | Block to attach an audio file to a video file using moviepy        |
| [Loop Video](https://agpt.co/docs/integrations/block-integrations/loop#loop-video)                           | Block to loop a video to a given duration or number of repeats     |
| [Media Duration](https://agpt.co/docs/integrations/block-integrations/duration#media-duration)               | Block to get the duration of a media file                          |
| [Video Clip](https://agpt.co/docs/integrations/block-integrations/clip#video-clip)                           | Extract a time segment from a video                                |
| [Video Concat](https://agpt.co/docs/integrations/block-integrations/concat#video-concat)                     | Merge multiple video clips into one continuous video               |
| [Video Download](https://agpt.co/docs/integrations/block-integrations/download#video-download)               | Download video from URL (YouTube, Vimeo, news sites, direct links) |
| [Video Text Overlay](https://agpt.co/docs/integrations/block-integrations/text_overlay-1#video-text-overlay) | Add text overlay/caption to video                                  |

## Productivity

| Block Name                                                                                                                                 | Description                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| [Google Calendar Create Event](https://agpt.co/docs/integrations/block-integrations/calendar#google-calendar-create-event)                 | This block creates a new event in Google Calendar with customizable parameters                                        |
| [Notion Append To Page](https://agpt.co/docs/integrations/block-integrations/append_to_page#notion-append-to-page)                         | Add content to the end of an existing Notion page                                                                     |
| [Notion Create Page](https://agpt.co/docs/integrations/block-integrations/create_page#notion-create-page)                                  | Create a new page in Notion                                                                                           |
| [Notion Read Database](https://agpt.co/docs/integrations/block-integrations/read_database#notion-read-database)                            | Query a Notion database with optional filtering and sorting, returning structured entries                             |
| [Notion Read Page](https://agpt.co/docs/integrations/block-integrations/read_page#notion-read-page)                                        | Read a Notion page by its ID and return its raw JSON                                                                  |
| [Notion Read Page Markdown](https://agpt.co/docs/integrations/block-integrations/read_page_markdown#notion-read-page-markdown)             | Read a Notion page and convert it to Markdown format with proper formatting for headings, lists, links, and rich text |
| [Notion Search](https://agpt.co/docs/integrations/block-integrations/search-6#notion-search)                                               | Search your Notion workspace for pages and databases by text query                                                    |
| [Notion Update Page Properties](https://agpt.co/docs/integrations/block-integrations/update_page_properties#notion-update-page-properties) | Update an existing Notion page's properties, its title among them, its icon or cover, or whether it is in the trash   |
| [Todoist Close Task](https://agpt.co/docs/integrations/block-integrations/tasks#todoist-close-task)                                        | Closes a task in Todoist                                                                                              |
| [Todoist Create Comment](https://agpt.co/docs/integrations/block-integrations/comments#todoist-create-comment)                             | Creates a new comment on a Todoist task or project                                                                    |
| [Todoist Create Label](https://agpt.co/docs/integrations/block-integrations/labels#todoist-create-label)                                   | Creates a new label in Todoist, It will not work if same name already exists                                          |
| [Todoist Create Project](https://agpt.co/docs/integrations/block-integrations/projects-1#todoist-create-project)                           | Creates a new project in Todoist                                                                                      |
| [Todoist Create Task](https://agpt.co/docs/integrations/block-integrations/tasks#todoist-create-task)                                      | Creates a new task in a Todoist project                                                                               |
| [Todoist Delete Comment](https://agpt.co/docs/integrations/block-integrations/comments#todoist-delete-comment)                             | Deletes a Todoist comment                                                                                             |
| [Todoist Delete Label](https://agpt.co/docs/integrations/block-integrations/labels#todoist-delete-label)                                   | Deletes a personal label in Todoist                                                                                   |
| [Todoist Delete Project](https://agpt.co/docs/integrations/block-integrations/projects-1#todoist-delete-project)                           | Deletes a Todoist project and all its contents                                                                        |
| [Todoist Delete Section](https://agpt.co/docs/integrations/block-integrations/sections-1#todoist-delete-section)                           | Deletes a section and all its tasks from Todoist                                                                      |
| [Todoist Delete Task](https://agpt.co/docs/integrations/block-integrations/tasks#todoist-delete-task)                                      | Deletes a task in Todoist                                                                                             |
| [Todoist Get Comment](https://agpt.co/docs/integrations/block-integrations/comments#todoist-get-comment)                                   | Get a single comment from Todoist                                                                                     |
| [Todoist Get Comments](https://agpt.co/docs/integrations/block-integrations/comments#todoist-get-comments)                                 | Get all comments for a Todoist task or project                                                                        |
| [Todoist Get Label](https://agpt.co/docs/integrations/block-integrations/labels#todoist-get-label)                                         | Gets a personal label from Todoist by ID                                                                              |
| [Todoist Get Project](https://agpt.co/docs/integrations/block-integrations/projects-1#todoist-get-project)                                 | Gets details for a specific Todoist project                                                                           |
| [Todoist Get Section](https://agpt.co/docs/integrations/block-integrations/sections-1#todoist-get-section)                                 | Gets a single section by ID from Todoist                                                                              |
| [Todoist Get Shared Labels](https://agpt.co/docs/integrations/block-integrations/labels#todoist-get-shared-labels)                         | Gets all shared labels from Todoist                                                                                   |
| [Todoist Get Task](https://agpt.co/docs/integrations/block-integrations/tasks#todoist-get-task)                                            | Get an active task from Todoist                                                                                       |
| [Todoist Get Tasks](https://agpt.co/docs/integrations/block-integrations/tasks#todoist-get-tasks)                                          | Get active tasks from Todoist                                                                                         |
| [Todoist List Collaborators](https://agpt.co/docs/integrations/block-integrations/projects-1#todoist-list-collaborators)                   | Gets all collaborators for a specific Todoist project                                                                 |
| [Todoist List Labels](https://agpt.co/docs/integrations/block-integrations/labels#todoist-list-labels)                                     | Gets all personal labels from Todoist                                                                                 |
| [Todoist List Projects](https://agpt.co/docs/integrations/block-integrations/projects-1#todoist-list-projects)                             | Gets all projects and their details from Todoist                                                                      |
| [Todoist List Sections](https://agpt.co/docs/integrations/block-integrations/sections-1#todoist-list-sections)                             | Gets all sections and their details from Todoist                                                                      |
| [Todoist Remove Shared Labels](https://agpt.co/docs/integrations/block-integrations/labels#todoist-remove-shared-labels)                   | Removes all instances of a shared label                                                                               |
| [Todoist Rename Shared Labels](https://agpt.co/docs/integrations/block-integrations/labels#todoist-rename-shared-labels)                   | Renames all instances of a shared label                                                                               |
| [Todoist Reopen Task](https://agpt.co/docs/integrations/block-integrations/tasks#todoist-reopen-task)                                      | Reopens a task in Todoist                                                                                             |
| [Todoist Update Comment](https://agpt.co/docs/integrations/block-integrations/comments#todoist-update-comment)                             | Updates a Todoist comment                                                                                             |
| [Todoist Update Label](https://agpt.co/docs/integrations/block-integrations/labels#todoist-update-label)                                   | Updates a personal label in Todoist                                                                                   |
| [Todoist Update Project](https://agpt.co/docs/integrations/block-integrations/projects-1#todoist-update-project)                           | Updates an existing project in Todoist                                                                                |
| [Todoist Update Task](https://agpt.co/docs/integrations/block-integrations/tasks#todoist-update-task)                                      | Updates an existing task in Todoist                                                                                   |

## Logic and Control Flow

| Block Name                                                                                                       | Description                                                                                                         |
| ---------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------- |
| [Calculator](https://agpt.co/docs/integrations/block-integrations/logic#calculator)                              | Performs a mathematical operation on two numbers                                                                    |
| [Condition](https://agpt.co/docs/integrations/block-integrations/logic#condition)                                | Handles conditional logic based on comparison operators                                                             |
| [Count Items](https://agpt.co/docs/integrations/block-integrations/logic#count-items)                            | Counts the number of items in a collection                                                                          |
| [Data Sampling](https://agpt.co/docs/integrations/block-integrations/logic#data-sampling)                        | This block samples data from a given dataset using various sampling methods                                         |
| [Exa Webset Ready Check](https://agpt.co/docs/integrations/block-integrations/websets#exa-webset-ready-check)    | Check if webset is ready for next operation - enables conditional workflow branching                                |
| [If Input Matches](https://agpt.co/docs/integrations/block-integrations/logic#if-input-matches)                  | Handles conditional logic based on comparison operators                                                             |
| [Parallel Choice Decision](https://agpt.co/docs/integrations/block-integrations/choice#parallel-choice-decision) | Pick one of several options using current web evidence from Parallel, with a probability for each option            |
| [Parallel Yes No Decision](https://agpt.co/docs/integrations/block-integrations/yes_no#parallel-yes-no-decision) | Answer a yes/no question using current web evidence from Parallel, and forward data to the yes, no or unsure output |
| [Pinecone Init](https://agpt.co/docs/integrations/block-integrations/logic#pinecone-init)                        | Initializes a Pinecone index                                                                                        |
| [Pinecone Insert](https://agpt.co/docs/integrations/block-integrations/logic#pinecone-insert)                    | Upload data to a Pinecone index                                                                                     |
| [Pinecone Query](https://agpt.co/docs/integrations/block-integrations/logic#pinecone-query)                      | Queries a Pinecone index                                                                                            |
| [Step Through Items](https://agpt.co/docs/integrations/block-integrations/logic#step-through-items)              | Iterates over a list or dictionary and outputs each item                                                            |

## Input/Output

| Block Name                                                                                                                           | Description                                                                                                           |
| ------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------- |
| [Exa Search Monitor Trigger](https://agpt.co/docs/integrations/block-integrations/search_monitor_trigger#exa-search-monitor-trigger) | Triggers when an Exa Search Monitor reports new results                                                               |
| [Exa Webset Webhook](https://agpt.co/docs/integrations/block-integrations/webhook_blocks#exa-webset-webhook)                         | Triggers when Exa reports a Websets event, such as a new item, a finished search, a completed export or a monitor run |
| [Generic Webhook Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-3#generic-webhook-trigger)                   | This block will output the contents of the generic input for the webhook                                              |
| [Read RSS Feed](https://agpt.co/docs/integrations/block-integrations/misc#read-rss-feed)                                             | Reads RSS feed entries from a given URL                                                                               |
| [Send Authenticated Web Request](https://agpt.co/docs/integrations/block-integrations/misc#send-authenticated-web-request)           | Make an authenticated HTTP request with host-scoped credentials (JSON / form / multipart)                             |
| [Send Email](https://agpt.co/docs/integrations/block-integrations/misc#send-email)                                                   | This block sends an email using the provided SMTP credentials                                                         |
| [Send Web Request](https://agpt.co/docs/integrations/block-integrations/misc#send-web-request)                                       | Make an HTTP request (JSON / form / multipart)                                                                        |

## Agent Integration

| Block Name                                                                                 | Description                                                                                                                                        |
| ------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Agent Executor](https://agpt.co/docs/integrations/block-integrations/misc#agent-executor) | Executes an existing agent inside your agent                                                                                                       |
| [AutoPilot](https://agpt.co/docs/integrations/block-integrations/misc#autopilot)           | Execute tasks using AutoGPT AutoPilot with full access to platform tools (agent management, workspace files, web fetch, block execution, and more) |

## CRM Services

| Block Name                                                                                                                   | Description                                                                                                                                                                                               |
| ---------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| [Add Lead To Campaign](https://agpt.co/docs/integrations/block-integrations/campaign#add-lead-to-campaign)                   | Add a lead to a campaign in SmartLead                                                                                                                                                                     |
| [Company Enrichment](https://agpt.co/docs/integrations/block-integrations/enrich#company-enrichment)                         | Look up and enrich a company using DataForB2B's B2B database — firmographics, headcount/size, industry, domain and social profiles from a company domain, name or LinkedIn URL                            |
| [Company Search](https://agpt.co/docs/integrations/block-integrations/search-1#company-search)                               | Search companies and accounts by structured filters — industry, headcount/size, location, funding, keywords — using DataForB2B's database                                                                 |
| [Create Campaign](https://agpt.co/docs/integrations/block-integrations/campaign#create-campaign)                             | Create a campaign in SmartLead                                                                                                                                                                            |
| [Hub Spot Company](https://agpt.co/docs/integrations/block-integrations/company#hub-spot-company)                            | Manages HubSpot companies - create, update, and retrieve company information                                                                                                                              |
| [Hub Spot Contact](https://agpt.co/docs/integrations/block-integrations/contact#hub-spot-contact)                            | Manages HubSpot contacts - create, update, and retrieve contact information                                                                                                                               |
| [People Search](https://agpt.co/docs/integrations/block-integrations/search-1#people-search)                                 | Search people and B2B leads by structured filters — job title, company, location, industry, seniority, skills — using DataForB2B's database                                                               |
| [Profile Enrichment](https://agpt.co/docs/integrations/block-integrations/enrich#profile-enrichment)                         | Look up and enrich a professional profile from a LinkedIn URL using DataForB2B's B2B database — returns the full profile (current role, experience and skills) plus work email, personal email and GitHub |
| [Save Campaign Sequences](https://agpt.co/docs/integrations/block-integrations/campaign#save-campaign-sequences)             | Save sequences within a campaign                                                                                                                                                                          |
| [Treg Enrich Company](https://agpt.co/docs/integrations/block-integrations/companies#treg-enrich-company)                    | Look up a company (what it does, size, industry, founding year, headquarters and LinkedIn) from its domain, name, LinkedIn page or an employee's email, through Treg                                      |
| [Treg Enrich Person](https://agpt.co/docs/integrations/block-integrations/people-1#treg-enrich-person)                       | Look up a person (name, job title, company, LinkedIn and location) from an email, a LinkedIn URL, or a name and company domain, through Treg                                                              |
| [Treg Find Company Jobs](https://agpt.co/docs/integrations/block-integrations/companies#treg-find-company-jobs)              | List a company's open job listings, a strong signal of what it is investing in, through Treg                                                                                                              |
| [Treg Find LinkedIn From Email](https://agpt.co/docs/integrations/block-integrations/people-1#treg-find-linkedin-from-email) | Find the LinkedIn profile behind a work email, through Treg                                                                                                                                               |
| [Treg Find Personal Email](https://agpt.co/docs/integrations/block-integrations/emails#treg-find-personal-email)             | Find a person's personal email (Gmail, Outlook and so on) from their LinkedIn URL or work email, through Treg                                                                                             |
| [Treg Find Phone Number](https://agpt.co/docs/integrations/block-integrations/phone#treg-find-phone-number)                  | Find a person's phone number from their LinkedIn URL, email, or name and company domain                                                                                                                   |
| [Treg Find Similar Companies](https://agpt.co/docs/integrations/block-integrations/companies#treg-find-similar-companies)    | Find companies similar to one you name, through Treg                                                                                                                                                      |
| [Treg Find Work Email](https://agpt.co/docs/integrations/block-integrations/emails#treg-find-work-email)                     | Find a person's work email from their name and company domain, or their LinkedIn URL                                                                                                                      |
| [Treg Search Companies](https://agpt.co/docs/integrations/block-integrations/companies#treg-search-companies)                | Find companies by description, name, industry or the technology they use                                                                                                                                  |
| [Treg Search People](https://agpt.co/docs/integrations/block-integrations/people-1#treg-search-people)                       | Find people by description, company, job title or name                                                                                                                                                    |
| [Treg Verify Email](https://agpt.co/docs/integrations/block-integrations/emails#treg-verify-email)                           | Check whether an email address accepts mail before you send to it, through Treg's cheapest available verifier                                                                                             |

## AI Safety

| Block Name                                                                                                     | Description                                                 |
| -------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------- |
| [Nvidia Deepfake Detect](https://agpt.co/docs/integrations/block-integrations/deepfake#nvidia-deepfake-detect) | Detects potential deepfakes in images using Nvidia's AI API |

## Issue Tracking

| Block Name                                                                                                           | Description                                                       |
| -------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------- |
| [Linear Create Comment](https://agpt.co/docs/integrations/block-integrations/comment#linear-create-comment)          | Creates a new comment on a Linear issue                           |
| [Linear Create Issue](https://agpt.co/docs/integrations/block-integrations/issues-1#linear-create-issue)             | Creates a new issue on Linear                                     |
| [Linear Get Project Issues](https://agpt.co/docs/integrations/block-integrations/issues-1#linear-get-project-issues) | Gets issues from a Linear project filtered by status and assignee |
| [Linear Search Issues](https://agpt.co/docs/integrations/block-integrations/issues-1#linear-search-issues)           | Searches for issues on Linear                                     |
| [Linear Search Projects](https://agpt.co/docs/integrations/block-integrations/projects#linear-search-projects)       | Searches for projects on Linear                                   |

## Hardware

| Block Name                                                                                               | Description                                                                          |
| -------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [Compass AI Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-2#compass-ai-trigger) | This block will output the contents of the compass transcription                     |
| [RMFG Event Trigger](https://agpt.co/docs/integrations/block-integrations/triggers-5#rmfg-event-trigger) | Triggers when an RMFG design, quote, cart or order changes                           |
| [RMFG Get Image](https://agpt.co/docs/integrations/block-integrations/images#rmfg-get-image)             | Downloads RMFG's rendered picture of a design or part, with holes and bends labelled |


# LLM Providers

There are several providers that AutoGPT users can use for running inference with LLM models.

## Llama API

Llama API is a Meta-hosted API service that helps you integrate Llama models quickly and efficiently. Using OpenAI compatibility endpoints, you can easily access the power of Llama models without the need for complex setup or configuration!

Join the [waitlist](https://llama.developer.meta.com/?utm_source=partner-autogpt\&utm_medium=readme) to get access!

Try the Llama API provider by selecting any of the following LLM Model names from the AI blocks:

* Llama-4-Scout-17B-16E-Instruct-FP8
* Llama-4-Maverick-17B-128E-Instruct-FP8
* Llama-3.3-8B-Instruct
* Llama-3-70B-Instruct


# Voice Providers

This guide covers the voice providers you can use with the D-ID Create Talking Avatar Video block.

## ElevenLabs

1. Select any voice from the voice list: <https://api.elevenlabs.io/v1/voices>
2. Copy the `voice_id`
3. Use it as a string in the `voice_id` field in the CreateTalkingAvatarClip Block

## Microsoft Azure Voices

1. Select any voice from the voice gallery: <https://speech.microsoft.com/portal/voicegallery>
2. Click on the "Sample code" tab on the right
3. Copy the voice name, for example: `config.SpeechSynthesisVoiceName = "en-GB-AbbiNeural"`
4. Use this string `en-GB-AbbiNeural` in the `voice_id` field in the CreateTalkingAvatarClip Block

## Amazon Polly Voices

1. Select any voice from the voice list: <https://docs.aws.amazon.com/polly/latest/dg/available-voices.html>
2. Copy the voice name / ID
3. Use it as string in the `voice_id` field in the CreateTalkingAvatarClip Block


# Agent Mail Attachments

Blocks for downloading file attachments from AgentMail messages and threads. Attachments are files associated with messages (PDFs, CSVs, images, etc.) and are returned as base64-encoded content.

## Agent Mail Get Message Attachment

### What it is

Download a file attachment from an email message. Returns base64-encoded file content.

### How it works

The block calls the AgentMail API's `inboxes.messages.get_attachment` endpoint using the provided inbox ID, message ID, and attachment ID. The API returns the raw file content, which may arrive as `bytes` or `str` depending on the attachment type. The block base64-encodes the result: binary data is encoded directly, while string data is first UTF-8 encoded then base64-encoded. If the API returns an unexpected data type, the block raises a `TypeError`.

On any failure — invalid IDs, network errors, authentication issues, or unexpected response types — the block catches the exception and yields the error message on the `error` output instead of `content_base64`. No partial results are returned; the block either yields both `content_base64` and `attachment_id` on success, or only `error` on failure.

### Inputs

| Input          | Description                                                      | Type | Required |
| -------------- | ---------------------------------------------------------------- | ---- | -------- |
| inbox\_id      | Inbox ID or email address the message belongs to                 | str  | Yes      |
| message\_id    | Message ID containing the attachment                             | str  | Yes      |
| attachment\_id | Attachment ID to download (from the message's attachments array) | str  | Yes      |

### Outputs

| Output          | Description                                                                               | Type |
| --------------- | ----------------------------------------------------------------------------------------- | ---- |
| error           | Error message if the operation failed                                                     | str  |
| content\_base64 | File content encoded as a base64 string. Decode with base64.b64decode() to get raw bytes. | str  |
| attachment\_id  | The attachment ID that was downloaded                                                     | str  |

### Possible use case

**Invoice Processing Pipeline** — Download PDF invoices from incoming messages and feed them into a parsing block that extracts line items and totals. **Automated Attachment Archival** — Pull attachments from specific senders and store the base64 content in a database or cloud bucket for long-term retention. **Image Analysis Workflow** — Retrieve image attachments from support emails and pass them to a vision model block for classification or OCR.

***

## Agent Mail Get Thread Attachment

### What it is

Download a file attachment from a conversation thread. Returns base64-encoded file content.

### How it works

The block calls the AgentMail API's `inboxes.threads.get_attachment` endpoint using the provided inbox ID, thread ID, and attachment ID. This is functionally identical to the message attachment block but resolves the attachment via a thread rather than a specific message — useful when you have the thread context but not the individual message ID. The raw response is base64-encoded the same way: `bytes` are encoded directly, `str` is UTF-8 encoded first, and any other response type triggers a `TypeError`.

Error handling follows the same all-or-nothing pattern: on success the block yields `content_base64` and `attachment_id`; on any exception (bad IDs, auth failure, network error, unexpected type) it yields only `error` with the exception message.

### Inputs

| Input          | Description                                                                      | Type | Required |
| -------------- | -------------------------------------------------------------------------------- | ---- | -------- |
| inbox\_id      | Inbox ID or email address the thread belongs to                                  | str  | Yes      |
| thread\_id     | Thread ID containing the attachment                                              | str  | Yes      |
| attachment\_id | Attachment ID to download (from a message's attachments array within the thread) | str  | Yes      |

### Outputs

| Output          | Description                                                                               | Type |
| --------------- | ----------------------------------------------------------------------------------------- | ---- |
| error           | Error message if the operation failed                                                     | str  |
| content\_base64 | File content encoded as a base64 string. Decode with base64.b64decode() to get raw bytes. | str  |
| attachment\_id  | The attachment ID that was downloaded                                                     | str  |

### Possible use case

**Conversation Attachment Collector** — Iterate over a support thread and download every attachment to build a complete case file for review. **Threaded Report Extraction** — Pull CSV or Excel attachments from recurring report threads and forward them to a data-processing block. **Compliance Document Retrieval** — Download signed-document attachments from legal threads and pass them to a verification or archival workflow.

***


# Agent Mail Drafts

Blocks for creating, reviewing, editing, sending, and deleting email drafts in AgentMail. Drafts enable human-in-the-loop review, scheduled sending, and multi-step email composition workflows.

## Agent Mail Create Draft

### What it is

Create a draft email for review or scheduled sending. Use send\_at for automatic future delivery.

### How it works

The block calls `client.inboxes.drafts.create(inbox_id, **params)` to create a new draft in the specified inbox. You must provide at least the recipient list; subject, text body, HTML body, cc, bcc, and in\_reply\_to are all optional.

If you supply `send_at`, the draft is scheduled for automatic delivery at that time and the returned `send_status` will be `scheduled`. If `send_at` is omitted, the draft remains unsent until you explicitly send it with the Send Draft block. Any errors propagate to the block framework's global error handler, which yields them on the error output.

### Inputs

| Input         | Description                                                                                                      | Type       | Required |
| ------------- | ---------------------------------------------------------------------------------------------------------------- | ---------- | -------- |
| inbox\_id     | Inbox ID or email address to create the draft in                                                                 | str        | Yes      |
| to            | Recipient email addresses (e.g. \['<user@example.com>'])                                                         | List\[str] | Yes      |
| subject       | Email subject line                                                                                               | str        | No       |
| text          | Plain text body of the draft                                                                                     | str        | No       |
| html          | Rich HTML body of the draft                                                                                      | str        | No       |
| cc            | CC recipient email addresses                                                                                     | List\[str] | No       |
| bcc           | BCC recipient email addresses                                                                                    | List\[str] | No       |
| in\_reply\_to | Message ID this draft replies to, for threading follow-up drafts                                                 | str        | No       |
| send\_at      | Schedule automatic sending at this ISO 8601 datetime (e.g. '2025-01-15T09:00:00Z'). Leave empty for manual send. | str        | No       |

### Outputs

| Output       | Description                                                                           | Type            |
| ------------ | ------------------------------------------------------------------------------------- | --------------- |
| error        | Error message if the operation failed                                                 | str             |
| draft\_id    | Unique identifier of the created draft                                                | str             |
| send\_status | 'scheduled' if send\_at was set, empty otherwise. Values: scheduled, sending, failed. | str             |
| result       | Complete draft object with all metadata                                               | Dict\[str, Any] |

### Possible use case

**Human-in-the-Loop Review** — Create a draft so a human can review and approve the email before it is sent.

**Scheduled Outreach** — Set `send_at` to queue a follow-up email that delivers automatically at a future date and time.

**Multi-Step Composition** — Create a draft with initial content, then use the Update Draft block to refine recipients or body text in later workflow steps.

***

## Agent Mail Delete Draft

### What it is

Delete a draft or cancel a scheduled email. Removes the draft permanently.

### How it works

The block calls `client.inboxes.drafts.delete(inbox_id, draft_id)` to permanently remove the specified draft. If the draft was scheduled for future delivery, deleting it also cancels that scheduled send.

On success the block yields `success=True`. Any errors propagate to the block framework's global error handler, which yields them on the error output.

### Inputs

| Input     | Description                                       | Type | Required |
| --------- | ------------------------------------------------- | ---- | -------- |
| inbox\_id | Inbox ID or email address the draft belongs to    | str  | Yes      |
| draft\_id | Draft ID to delete (also cancels scheduled sends) | str  | Yes      |

### Outputs

| Output  | Description                                          | Type |
| ------- | ---------------------------------------------------- | ---- |
| error   | Error message if the operation failed                | str  |
| success | True if the draft was successfully deleted/cancelled | bool |

### Possible use case

**Cancel Scheduled Send** — Delete a draft that was scheduled with `send_at` to prevent it from being delivered.

**Clean Up Rejected Drafts** — Remove drafts that a human reviewer has declined during an approval workflow.

**Abort Workflow** — Delete an in-progress draft when upstream conditions change and the email is no longer needed.

***

## Agent Mail Get Draft

### What it is

Retrieve a draft email to review its contents, recipients, and scheduled send status.

### How it works

The block calls `client.inboxes.drafts.get(inbox_id, draft_id)` to fetch a single draft by its ID. It returns the draft's subject, send status, scheduled send time, and the complete draft object.

Any errors propagate to the block framework's global error handler, which yields them on the error output.

### Inputs

| Input     | Description                                    | Type | Required |
| --------- | ---------------------------------------------- | ---- | -------- |
| inbox\_id | Inbox ID or email address the draft belongs to | str  | Yes      |
| draft\_id | Draft ID to retrieve                           | str  | Yes      |

### Outputs

| Output       | Description                                                       | Type            |
| ------------ | ----------------------------------------------------------------- | --------------- |
| error        | Error message if the operation failed                             | str             |
| draft\_id    | Unique identifier of the draft                                    | str             |
| subject      | Draft subject line                                                | str             |
| send\_status | Scheduled send status: 'scheduled', 'sending', 'failed', or empty | str             |
| send\_at     | Scheduled send time (ISO 8601) if set                             | str             |
| result       | Complete draft object with all fields                             | Dict\[str, Any] |

### Possible use case

**Approval Gate** — Fetch a draft so a human reviewer can inspect its content and recipients before approving it for send.

**Schedule Monitoring** — Retrieve a scheduled draft to check its `send_status` and confirm it is still queued for delivery.

**Content Verification** — Read back a draft after creation or update to verify that the subject and body match expectations before proceeding.

***

## Agent Mail List Drafts

### What it is

List drafts in an AgentMail inbox. Filter by labels=\['scheduled'] to find pending sends.

### How it works

The block calls `client.inboxes.drafts.list(inbox_id, **params)` to retrieve drafts from a single inbox. You can control page size with `limit`, paginate with `page_token`, and filter by `labels` (for example, `['scheduled']` to find only pending sends).

The block returns the list of draft objects, a count of drafts in the current page, and a `next_page_token` for fetching subsequent pages. Any errors propagate to the block framework's global error handler, which yields them on the error output.

### Inputs

| Input       | Description                                                     | Type       | Required |
| ----------- | --------------------------------------------------------------- | ---------- | -------- |
| inbox\_id   | Inbox ID or email address to list drafts from                   | str        | Yes      |
| limit       | Maximum number of drafts to return per page (1-100)             | int        | No       |
| page\_token | Token from a previous response to fetch the next page           | str        | No       |
| labels      | Filter drafts by labels (e.g. \['scheduled'] for pending sends) | List\[str] | No       |

### Outputs

| Output            | Description                                                        | Type                   |
| ----------------- | ------------------------------------------------------------------ | ---------------------- |
| error             | Error message if the operation failed                              | str                    |
| drafts            | List of draft objects with subject, recipients, send\_status, etc. | List\[Dict\[str, Any]] |
| count             | Number of drafts returned                                          | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.                 | str                    |

### Possible use case

**Inbox Dashboard** — List all drafts in an inbox to display a queue of pending emails awaiting review or approval.

**Scheduled Send Audit** — Filter by `labels=['scheduled']` to surface every draft that is queued for future delivery and verify send times.

**Batch Processing** — Paginate through all drafts in an inbox to perform bulk updates or deletions in a cleanup workflow.

***

## Agent Mail List Org Drafts

### What it is

List all drafts across every inbox in your organization. Use for central approval dashboards.

### How it works

The block calls `client.drafts.list(**params)` at the organization level, so it returns drafts across every inbox without requiring an inbox ID. You can control page size with `limit` and paginate with `page_token`.

The block returns the list of draft objects, a count of drafts in the current page, and a `next_page_token` for fetching subsequent pages. Any errors propagate to the block framework's global error handler, which yields them on the error output.

### Inputs

| Input       | Description                                           | Type | Required |
| ----------- | ----------------------------------------------------- | ---- | -------- |
| limit       | Maximum number of drafts to return per page (1-100)   | int  | No       |
| page\_token | Token from a previous response to fetch the next page | str  | No       |

### Outputs

| Output            | Description                                                | Type                   |
| ----------------- | ---------------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed                      | str                    |
| drafts            | List of draft objects from all inboxes in the organization | List\[Dict\[str, Any]] |
| count             | Number of drafts returned                                  | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.         | str                    |

### Possible use case

**Central Approval Dashboard** — List every pending draft across all inboxes so a manager can review and approve outbound emails in one place.

**Organization-Wide Analytics** — Count and categorize drafts across inboxes to report on email pipeline volume and bottlenecks.

**Stale Draft Cleanup** — Paginate through all org drafts to identify and delete old or abandoned drafts that were never sent.

***

## Agent Mail Send Draft

### What it is

Send a draft immediately, converting it into a delivered message. The draft is deleted after sending.

### How it works

The block calls `client.inboxes.drafts.send(inbox_id, draft_id)` to deliver the draft immediately. Once the send completes, the draft is deleted from the inbox and a message object is returned in its place.

The block yields the `message_id` and `thread_id` of the newly sent email along with the complete message result. Any errors propagate to the block framework's global error handler, which yields them on the error output.

### Inputs

| Input     | Description                                    | Type | Required |
| --------- | ---------------------------------------------- | ---- | -------- |
| inbox\_id | Inbox ID or email address the draft belongs to | str  | Yes      |
| draft\_id | Draft ID to send now                           | str  | Yes      |

### Outputs

| Output      | Description                                         | Type            |
| ----------- | --------------------------------------------------- | --------------- |
| error       | Error message if the operation failed               | str             |
| message\_id | Message ID of the now-sent email (draft is deleted) | str             |
| thread\_id  | Thread ID the sent message belongs to               | str             |
| result      | Complete sent message object                        | Dict\[str, Any] |

### Possible use case

**Post-Approval Dispatch** — Send a draft immediately after a human reviewer approves it in a review workflow.

**On-Demand Notifications** — Compose a draft earlier in the workflow and send it only when a triggering event occurs.

**Retry After Edit** — After updating a draft that failed validation, send it again without recreating it from scratch.

***

## Agent Mail Update Draft

### What it is

Update a draft's content, recipients, or scheduled send time. Use to reschedule or edit before sending.

### How it works

The block calls `client.inboxes.drafts.update(inbox_id, draft_id, **params)` to modify an existing draft. Only the fields you provide are changed; omitted fields are left untouched. Internally, `None` is used to distinguish between "omit this field" and "clear this field to empty," so you can selectively update recipients, subject, body, or scheduled send time without affecting other fields.

The block returns the updated `draft_id`, `send_status`, and the complete draft result. Any errors propagate to the block framework's global error handler, which yields them on the error output.

### Inputs

| Input     | Description                                                                                   | Type       | Required |
| --------- | --------------------------------------------------------------------------------------------- | ---------- | -------- |
| inbox\_id | Inbox ID or email address the draft belongs to                                                | str        | Yes      |
| draft\_id | Draft ID to update                                                                            | str        | Yes      |
| to        | Updated recipient email addresses (replaces existing list). Omit to keep current value.       | List\[str] | No       |
| subject   | Updated subject line. Omit to keep current value.                                             | str        | No       |
| text      | Updated plain text body. Omit to keep current value.                                          | str        | No       |
| html      | Updated HTML body. Omit to keep current value.                                                | str        | No       |
| send\_at  | Reschedule: new ISO 8601 send time (e.g. '2025-01-20T14:00:00Z'). Omit to keep current value. | str        | No       |

### Outputs

| Output       | Description                           | Type            |
| ------------ | ------------------------------------- | --------------- |
| error        | Error message if the operation failed | str             |
| draft\_id    | The updated draft ID                  | str             |
| send\_status | Updated send status                   | str             |
| result       | Complete updated draft object         | Dict\[str, Any] |

### Possible use case

**Reschedule Delivery** — Change the `send_at` time on a scheduled draft to delay or advance its delivery window.

**Reviewer Edits** — Allow a human reviewer to modify the subject or body of a draft before it is approved and sent.

**Dynamic Recipient Updates** — Update the recipient list based on data gathered in earlier workflow steps without recreating the draft.

***


# Agent Mail Inbox

Blocks for creating, retrieving, listing, updating, and deleting AgentMail inboxes. An Inbox is a fully programmable email account for AI agents — each inbox gets a unique email address and can send, receive, and manage emails via the AgentMail API.

## Agent Mail Create Inbox

### What it is

Create a new email inbox for an AI agent via AgentMail. Each inbox gets a unique address and can send/receive emails.

### How it works

This block calls the AgentMail API to provision a new inbox. You can optionally specify a username (local part of the address), a custom domain, and a display name. Any parameters left empty use sensible defaults — the username is auto-generated and the domain defaults to `agentmail.to`.

The API returns the newly created inbox object, from which the block extracts the inbox ID and full email address as separate outputs. The complete inbox metadata is also available as a dictionary for downstream blocks that need additional fields. If the API call fails, the error propagates to the global error handler.

### Inputs

| Input         | Description                                                                                              | Type | Required |
| ------------- | -------------------------------------------------------------------------------------------------------- | ---- | -------- |
| username      | Local part of the email address (e.g. 'support' for <support@domain.com>). Leave empty to auto-generate. | str  | No       |
| domain        | Email domain (e.g. 'mydomain.com'). Defaults to agentmail.to if empty.                                   | str  | No       |
| display\_name | Friendly name shown in the 'From' field of sent emails (e.g. 'Support Agent')                            | str  | No       |

### Outputs

| Output         | Description                                                      | Type            |
| -------------- | ---------------------------------------------------------------- | --------------- |
| error          | Error message if the operation failed                            | str             |
| inbox\_id      | Unique identifier for the created inbox (also the email address) | str             |
| email\_address | Full email address of the inbox (e.g. <support@agentmail.to>)    | str             |
| result         | Complete inbox object with all metadata                          | Dict\[str, Any] |

### Possible use case

**Per-Customer Support Agents** — Spin up a dedicated inbox for each customer so an AI agent can handle their support requests through a personalized email address.

**Campaign-Specific Outreach** — Create a branded inbox for each marketing campaign so replies are automatically routed to the agent managing that campaign.

**Ephemeral Verification Workflows** — Generate a temporary inbox on the fly to receive a sign-up confirmation code, then pass the address to a registration block.

***

## Agent Mail Delete Inbox

### What it is

Permanently delete an AgentMail inbox and all its messages, threads, and drafts. This action cannot be undone.

### How it works

This block sends a delete request to the AgentMail API using the provided inbox ID. The API permanently removes the inbox along with all associated messages, threads, and drafts. This action is irreversible.

On success the block outputs `success=True`. If the API returns an error (e.g., the inbox does not exist), the exception propagates to the global error handler.

### Inputs

| Input     | Description                                     | Type | Required |
| --------- | ----------------------------------------------- | ---- | -------- |
| inbox\_id | Inbox ID or email address to permanently delete | str  | Yes      |

### Outputs

| Output  | Description                                | Type |
| ------- | ------------------------------------------ | ---- |
| error   | Error message if the operation failed      | str  |
| success | True if the inbox was successfully deleted | bool |

### Possible use case

**Cleanup After Task Completion** — Delete a temporary inbox once an agent finishes processing a one-off workflow like order confirmation or password reset.

**User Offboarding** — Remove an agent's inbox when a customer cancels their account to avoid accumulating unused resources.

**Test Environment Teardown** — Automatically delete inboxes created during integration tests so the organization stays clean between runs.

***

## Agent Mail Get Inbox

### What it is

Retrieve details of an existing AgentMail inbox including its email address, display name, and configuration.

### How it works

This block calls the AgentMail API to retrieve the details of a single inbox identified by its inbox ID (which is also its email address). The API returns the full inbox object including its email address, display name, and any other metadata.

The block extracts the inbox ID, email address, and display name as individual outputs for easy wiring to downstream blocks. The complete inbox object is also returned as a dictionary. If the inbox does not exist or the request fails, the error propagates to the global error handler.

### Inputs

| Input     | Description                                                          | Type | Required |
| --------- | -------------------------------------------------------------------- | ---- | -------- |
| inbox\_id | Inbox ID or email address to look up (e.g. '<support@agentmail.to>') | str  | Yes      |

### Outputs

| Output         | Description                             | Type            |
| -------------- | --------------------------------------- | --------------- |
| error          | Error message if the operation failed   | str             |
| inbox\_id      | Unique identifier of the inbox          | str             |
| email\_address | Full email address of the inbox         | str             |
| display\_name  | Friendly name shown in the 'From' field | str             |
| result         | Complete inbox object with all metadata | Dict\[str, Any] |

### Possible use case

**Pre-Send Validation** — Fetch inbox details before sending an email to confirm the inbox still exists and verify its display name is correct.

**Dashboard Display** — Retrieve inbox metadata to show the agent's email address and display name in a monitoring dashboard.

**Conditional Routing** — Look up an inbox's properties to decide which downstream workflow should handle incoming messages for that address.

***

## Agent Mail List Inboxes

### What it is

List all email inboxes in your AgentMail organization with pagination support.

### How it works

This block calls the AgentMail API to list all inboxes in the organization. You can control page size with the `limit` parameter (1-100) and paginate through results using the `page_token` returned from a previous call. Only non-empty parameters are sent in the request.

The block outputs the list of inbox objects, a count of inboxes returned, and a `next_page_token` for fetching additional pages. When there are no more results, `next_page_token` is empty. If the API call fails, the error propagates to the global error handler.

### Inputs

| Input       | Description                                                      | Type | Required |
| ----------- | ---------------------------------------------------------------- | ---- | -------- |
| limit       | Maximum number of inboxes to return per page (1-100)             | int  | No       |
| page\_token | Token from a previous response to fetch the next page of results | str  | No       |

### Outputs

| Output            | Description                                                                           | Type                   |
| ----------------- | ------------------------------------------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed                                                 | str                    |
| inboxes           | List of inbox objects, each containing inbox\_id, email\_address, display\_name, etc. | List\[Dict\[str, Any]] |
| count             | Total number of inboxes in your organization                                          | int                    |
| next\_page\_token | Token to pass as page\_token to get the next page. Empty if no more results.          | str                    |

### Possible use case

**Organization Audit** — Enumerate all inboxes to generate a report of active agent email accounts and their configurations.

**Bulk Operations** — Iterate through every inbox to perform batch updates, such as rotating API keys or updating display names across all agents.

**Stale Inbox Detection** — List all inboxes and cross-reference with recent activity to identify accounts that can be cleaned up.

***

## Agent Mail Update Inbox

### What it is

Update the display name of an AgentMail inbox. Changes the 'From' name shown when emails are sent.

### How it works

This block calls the AgentMail API to update an existing inbox's display name. It sends the inbox ID and the new display name to the update endpoint. The display name controls the "From" label recipients see when the agent sends emails.

The block outputs the inbox ID and the full updated inbox object as a dictionary. If the inbox does not exist or the request fails, the error propagates to the global error handler.

### Inputs

| Input         | Description                                                         | Type | Required |
| ------------- | ------------------------------------------------------------------- | ---- | -------- |
| inbox\_id     | Inbox ID or email address to update (e.g. '<support@agentmail.to>') | str  | Yes      |
| display\_name | New display name for the inbox (e.g. 'Customer Support Bot')        | str  | Yes      |

### Outputs

| Output    | Description                                     | Type            |
| --------- | ----------------------------------------------- | --------------- |
| error     | Error message if the operation failed           | str             |
| inbox\_id | The updated inbox ID                            | str             |
| result    | Complete updated inbox object with all metadata | Dict\[str, Any] |

### Possible use case

**Rebranding an Agent** — Change the display name when an agent is reassigned from one team to another so outgoing emails reflect the new identity.

**Personalized Sender Names** — Update the display name dynamically to include a customer's name or ticket number for a more personal touch in automated replies.

**A/B Testing Email Identity** — Swap the display name between variations to test which sender identity gets higher open rates.

***


# Agent Mail Lists

Blocks for managing allow/block lists in AgentMail. Lists let you control which email addresses and domains your agents can send to or receive from, based on direction (send/receive) and type (allow/block).

## Agent Mail Create List Entry

### What it is

Add an email address or domain to an allow/block list. Block spam senders or whitelist trusted domains.

### How it works

This block calls the AgentMail API to add an email address or domain to a specified list. You select a direction ("send" or "receive") and a list type ("allow" or "block"), then provide the entry to add. For block lists, you can optionally include a reason such as "spam" or "competitor."

The API creates the entry and returns both the entry string and the complete entry object with metadata. Any errors propagate directly to the global error handler.

### Inputs

| Input      | Description                                                                 | Type                | Required |
| ---------- | --------------------------------------------------------------------------- | ------------------- | -------- |
| direction  | 'send' for outgoing email rules, 'receive' for incoming email rules         | "send" \| "receive" | Yes      |
| list\_type | 'allow' to whitelist, 'block' to blacklist                                  | "allow" \| "block"  | Yes      |
| entry      | Email address (<user@example.com>) or domain (example.com) to add           | str                 | Yes      |
| reason     | Reason for blocking (only used with block lists, e.g. 'spam', 'competitor') | str                 | No       |

### Outputs

| Output | Description                                | Type            |
| ------ | ------------------------------------------ | --------------- |
| error  | Error message if the operation failed      | str             |
| entry  | The email address or domain that was added | str             |
| result | Complete entry object                      | Dict\[str, Any] |

### Possible use case

**Spam Prevention** — Block a known spam domain so your agent never processes incoming messages from it.

**Trusted Partner Allowlisting** — Add a partner's domain to the receive allow list so their emails always reach your agent.

**Outbound Restriction** — Add a competitor's domain to the send block list to prevent your agent from accidentally emailing them.

***

## Agent Mail Delete List Entry

### What it is

Remove an email address or domain from an allow/block list to stop filtering it.

### How it works

This block calls the AgentMail API to remove an existing entry from an allow or block list. You specify the direction, list type, and the entry to delete.

On success the block returns `success=True`. If the entry does not exist or the API call fails, the error propagates to the global error handler.

### Inputs

| Input      | Description                                             | Type                | Required |
| ---------- | ------------------------------------------------------- | ------------------- | -------- |
| direction  | 'send' for outgoing rules, 'receive' for incoming rules | "send" \| "receive" | Yes      |
| list\_type | 'allow' for whitelist, 'block' for blacklist            | "allow" \| "block"  | Yes      |
| entry      | Email address or domain to remove from the list         | str                 | Yes      |

### Outputs

| Output  | Description                                | Type |
| ------- | ------------------------------------------ | ---- |
| error   | Error message if the operation failed      | str  |
| success | True if the entry was successfully removed | bool |

### Possible use case

**Unblocking a Sender** — Remove a previously blocked domain after confirming it is no longer a spam source.

**Revoking Access** — Delete a domain from the receive allow list when a partnership ends and messages should no longer be accepted.

**Policy Correction** — Remove an entry that was added by mistake so normal email flow resumes immediately.

***

## Agent Mail Get List Entry

### What it is

Check if an email address or domain is in an allow/block list. Verify filtering rules.

### How it works

This block queries the AgentMail API to check whether a specific email address or domain exists in an allow or block list. You provide the direction, list type, and the entry to look up.

If the entry is found, the block returns the entry string and the complete entry object with metadata (such as the reason it was added). If the entry does not exist, the error propagates to the global error handler.

### Inputs

| Input      | Description                                             | Type                | Required |
| ---------- | ------------------------------------------------------- | ------------------- | -------- |
| direction  | 'send' for outgoing rules, 'receive' for incoming rules | "send" \| "receive" | Yes      |
| list\_type | 'allow' for whitelist, 'block' for blacklist            | "allow" \| "block"  | Yes      |
| entry      | Email address or domain to look up                      | str                 | Yes      |

### Outputs

| Output | Description                                | Type            |
| ------ | ------------------------------------------ | --------------- |
| error  | Error message if the operation failed      | str             |
| entry  | The email address or domain that was found | str             |
| result | Complete entry object with metadata        | Dict\[str, Any] |

### Possible use case

**Pre-Send Validation** — Check whether a recipient domain is on the send block list before your agent drafts an outbound email.

**Audit Verification** — Look up a specific address to confirm it was added to the block list and review the recorded reason.

**Conditional Routing** — Check the receive allow list for a sender's domain to decide whether to process the message or skip it.

***

## Agent Mail List Entries

### What it is

List all entries in an AgentMail allow/block list. Choose send/receive direction and allow/block type.

### How it works

This block retrieves all entries from a specified allow or block list by calling the AgentMail API. You select a direction and list type, and optionally set a page size with `limit` and continue paginating with `page_token`.

The API returns the list of entry objects, a count of entries in the current page, and a `next_page_token` for fetching additional results. Any errors propagate to the global error handler.

### Inputs

| Input       | Description                                                                     | Type                | Required |
| ----------- | ------------------------------------------------------------------------------- | ------------------- | -------- |
| direction   | 'send' to filter outgoing emails, 'receive' to filter incoming emails           | "send" \| "receive" | Yes      |
| list\_type  | 'allow' for whitelist (only permit these), 'block' for blacklist (reject these) | "allow" \| "block"  | Yes      |
| limit       | Maximum number of entries to return per page                                    | int                 | No       |
| page\_token | Token from a previous response to fetch the next page                           | str                 | No       |

### Outputs

| Output            | Description                                           | Type                   |
| ----------------- | ----------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed                 | str                    |
| entries           | List of entries, each with an email address or domain | List\[Dict\[str, Any]] |
| count             | Number of entries returned                            | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.    | str                    |

### Possible use case

**Policy Dashboard** — Fetch all entries on the receive block list to display a management view where administrators can review and remove entries.

**Periodic Cleanup** — Page through the full send allow list to identify stale entries that no longer correspond to active partners.

**Compliance Export** — Retrieve every block list entry across both directions to generate a report for an internal compliance audit.

***


# Agent Mail Messages

Blocks for sending, receiving, replying to, forwarding, and managing email messages via AgentMail. Messages are individual emails within conversation threads.

## Agent Mail Forward Message

### What it is

Forward an email message to one or more recipients. Supports CC/BCC and optional extra text or subject override.

### How it works

The block validates that the combined recipient count across to, cc, and bcc does not exceed 50, then calls the AgentMail API to forward a specific message from your inbox. You provide the inbox ID and message ID to identify the original email, along with the target email addresses. Optionally, you can override the subject line or prepend additional plain text or HTML content before the forwarded message body.

The API handles constructing the forwarded email with the original content included. Any errors from the API propagate directly to the global error handler without being caught by the block.

### Inputs

| Input       | Description                                                                        | Type       | Required |
| ----------- | ---------------------------------------------------------------------------------- | ---------- | -------- |
| inbox\_id   | Inbox ID or email address to forward from                                          | str        | Yes      |
| message\_id | Message ID to forward                                                              | str        | Yes      |
| to          | Recipient email addresses to forward the message to (e.g. \['<user@example.com>']) | List\[str] | Yes      |
| cc          | CC recipient email addresses                                                       | List\[str] | No       |
| bcc         | BCC recipient email addresses (hidden from other recipients)                       | List\[str] | No       |
| subject     | Override the subject line (defaults to 'Fwd: ')                                    | str        | No       |
| text        | Additional plain text to prepend before the forwarded content                      | str        | No       |
| html        | Additional HTML to prepend before the forwarded content                            | str        | No       |

### Outputs

| Output      | Description                                         | Type            |
| ----------- | --------------------------------------------------- | --------------- |
| error       | Error message if the operation failed               | str             |
| message\_id | Unique identifier of the forwarded message          | str             |
| thread\_id  | Thread ID of the forward                            | str             |
| result      | Complete forwarded message object with all metadata | Dict\[str, Any] |

### Possible use case

* **Escalation Routing** — Forward messages that match certain keywords or priority levels to a human supervisor's email for review.
* **Multi-Agent Collaboration** — Forward incoming requests to a specialized agent's inbox so the right agent handles each task.
* **Digest Distribution** — Forward summarized daily reports from an aggregation inbox to a distribution list of stakeholders.

***

## Agent Mail Get Message

### What it is

Retrieve a specific email message by ID. Includes extracted\_text for clean reply content without quoted history.

### How it works

The block fetches a single message from an AgentMail inbox by calling the API with the inbox ID and message ID. It returns the full message content including subject, plain text body, HTML body, and all metadata.

A key output is `extracted_text`, which contains only the new reply content with quoted history stripped out. This is especially useful when feeding message content into an LLM, since it avoids processing redundant quoted text from earlier in the conversation.

### Inputs

| Input       | Description                                           | Type | Required |
| ----------- | ----------------------------------------------------- | ---- | -------- |
| inbox\_id   | Inbox ID or email address the message belongs to      | str  | Yes      |
| message\_id | Message ID to retrieve (e.g. '<abc123@agentmail.to>') | str  | Yes      |

### Outputs

| Output          | Description                                                                               | Type            |
| --------------- | ----------------------------------------------------------------------------------------- | --------------- |
| error           | Error message if the operation failed                                                     | str             |
| message\_id     | Unique identifier of the message                                                          | str             |
| thread\_id      | Thread this message belongs to                                                            | str             |
| subject         | Email subject line                                                                        | str             |
| text            | Full plain text body (may include quoted reply history)                                   | str             |
| extracted\_text | Just the new reply content with quoted history stripped. Best for AI processing.          | str             |
| html            | HTML body of the email                                                                    | str             |
| result          | Complete message object with all fields including sender, recipients, attachments, labels | Dict\[str, Any] |

### Possible use case

* **Intent Classification** — Retrieve a message and pass its extracted text to an LLM to classify the sender's intent before routing to the appropriate workflow.
* **Conversation Context Loading** — Fetch a specific message to build context for generating a relevant reply in a multi-turn email conversation.
* **Attachment Processing** — Retrieve a message's full metadata to extract attachment URLs for downstream processing like document parsing or image analysis.

***

## Agent Mail List Messages

### What it is

List messages in an AgentMail inbox. Filter by labels to find unread, campaign-tagged, or categorized messages.

### How it works

The block queries the AgentMail API to retrieve a paginated list of messages from the specified inbox. You can control the page size with `limit` (1-100) and navigate through results using the `page_token` returned from a previous call. An optional `labels` filter returns only messages that have all of the specified labels.

The block outputs the list of message objects, a count of messages returned in the current page, and a `next_page_token` for fetching subsequent pages. When `next_page_token` is empty, there are no more results.

### Inputs

| Input       | Description                                                                                       | Type       | Required |
| ----------- | ------------------------------------------------------------------------------------------------- | ---------- | -------- |
| inbox\_id   | Inbox ID or email address to list messages from                                                   | str        | Yes      |
| limit       | Maximum number of messages to return per page (1-100)                                             | int        | No       |
| page\_token | Token from a previous response to fetch the next page                                             | str        | No       |
| labels      | Only return messages with ALL of these labels (e.g. \['unread'] or \['q4-campaign', 'follow-up']) | List\[str] | No       |

### Outputs

| Output            | Description                                                            | Type                   |
| ----------------- | ---------------------------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed                                  | str                    |
| messages          | List of message objects with subject, sender, text, html, labels, etc. | List\[Dict\[str, Any]] |
| count             | Number of messages returned                                            | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.                     | str                    |

### Possible use case

* **Inbox Polling** — Periodically list messages labeled "unread" to trigger automated processing workflows for new incoming emails.
* **Campaign Monitoring** — Filter messages by campaign-specific labels to track reply rates and engagement across an outreach sequence.
* **Batch Processing** — Page through all messages in an inbox to perform bulk operations like summarization, archiving, or data extraction.

***

## Agent Mail Reply To Message

### What it is

Reply to an existing email in the same conversation thread. Use for multi-turn agent conversations.

### How it works

The block sends a reply to an existing message by calling the AgentMail API with the inbox ID, the message ID being replied to, and the reply body text. An optional HTML body can be provided for rich formatting. The API automatically threads the reply into the same conversation as the original message.

The block returns the new reply's message ID, the thread ID it was added to, and the complete message object. This makes it straightforward to build multi-turn email conversations where an agent responds to incoming messages within the same thread.

### Inputs

| Input       | Description                                           | Type | Required |
| ----------- | ----------------------------------------------------- | ---- | -------- |
| inbox\_id   | Inbox ID or email address to send the reply from      | str  | Yes      |
| message\_id | Message ID to reply to (e.g. '<abc123@agentmail.to>') | str  | Yes      |
| text        | Plain text body of the reply                          | str  | Yes      |
| html        | Rich HTML body of the reply                           | str  | No       |

### Outputs

| Output      | Description                                     | Type            |
| ----------- | ----------------------------------------------- | --------------- |
| error       | Error message if the operation failed           | str             |
| message\_id | Unique identifier of the reply message          | str             |
| thread\_id  | Thread ID the reply was added to                | str             |
| result      | Complete reply message object with all metadata | Dict\[str, Any] |

### Possible use case

* **Customer Support Agent** — Automatically reply to incoming support emails with answers generated by an LLM based on the message content and a knowledge base.
* **Interview Scheduling** — Reply to candidate emails with proposed interview times after checking calendar availability through another block.
* **Conversational Workflow** — Maintain an ongoing back-and-forth conversation with a user, where each reply builds on the previous exchange to complete a multi-step task.

***

## Agent Mail Send Message

### What it is

Send a new email from an AgentMail inbox. Creates a new conversation thread. Supports HTML, CC/BCC, and labels.

### How it works

The block first validates that the combined count of `to`, `cc`, and `bcc` recipients does not exceed 50. It then calls the AgentMail API to send a new message from the specified inbox, creating a new conversation thread. You must provide at least a plain text body; an optional HTML body can be included for rich formatting.

The block supports CC and BCC recipients for human-in-the-loop oversight or silent monitoring, and labels for tagging outgoing messages for later filtering. The API returns the new message's ID, the thread ID for tracking future replies, and the complete message object.

### Inputs

| Input     | Description                                                                                               | Type       | Required |
| --------- | --------------------------------------------------------------------------------------------------------- | ---------- | -------- |
| inbox\_id | Inbox ID or email address to send from (e.g. '<agent@agentmail.to>')                                      | str        | Yes      |
| to        | Recipient email addresses (e.g. \['<user@example.com>'])                                                  | List\[str] | Yes      |
| subject   | Email subject line                                                                                        | str        | Yes      |
| text      | Plain text body of the email. Always provide this as a fallback for email clients that don't render HTML. | str        | Yes      |
| html      | Rich HTML body of the email. Embed CSS in a                                                               | str        | No       |
| cc        | CC recipient email addresses for human-in-the-loop oversight                                              | List\[str] | No       |
| bcc       | BCC recipient email addresses (hidden from other recipients)                                              | List\[str] | No       |
| labels    | Labels to tag the message for filtering and state management (e.g. \['outreach', 'q4-campaign'])          | List\[str] | No       |

### Outputs

| Output      | Description                                            | Type            |
| ----------- | ------------------------------------------------------ | --------------- |
| error       | Error message if the operation failed                  | str             |
| message\_id | Unique identifier of the sent message                  | str             |
| thread\_id  | Thread ID grouping this message and any future replies | str             |
| result      | Complete sent message object with all metadata         | Dict\[str, Any] |

### Possible use case

* **Outreach Campaigns** — Send personalized cold emails to a list of prospects with campaign labels for tracking, using HTML templates for professional formatting.
* **Alert Notifications** — Send automated alert emails when a monitored metric crosses a threshold, CC-ing a human operator for oversight.
* **Report Delivery** — Generate and send periodic summary reports to stakeholders with BCC to an archive inbox for record-keeping.

***

## Agent Mail Update Message

### What it is

Add or remove labels on an email message. Use for read/unread tracking, campaign tagging, or state management.

### How it works

The block calls the AgentMail API to modify the labels on a specific message. You can add new labels, remove existing ones, or do both in a single call. Labels are arbitrary strings you define, making them flexible for tracking message state such as read/unread, processing status, or campaign membership.

The block returns the updated message ID and the complete message object reflecting the current label state. This is useful as a downstream step after processing a message, allowing you to mark it as handled so it is not picked up again by a polling workflow.

### Inputs

| Input          | Description                                                  | Type       | Required |
| -------------- | ------------------------------------------------------------ | ---------- | -------- |
| inbox\_id      | Inbox ID or email address the message belongs to             | str        | Yes      |
| message\_id    | Message ID to update labels on                               | str        | Yes      |
| add\_labels    | Labels to add (e.g. \['read', 'processed', 'high-priority']) | List\[str] | No       |
| remove\_labels | Labels to remove (e.g. \['unread', 'pending'])               | List\[str] | No       |

### Outputs

| Output      | Description                                         | Type            |
| ----------- | --------------------------------------------------- | --------------- |
| error       | Error message if the operation failed               | str             |
| message\_id | The updated message ID                              | str             |
| result      | Complete updated message object with current labels | Dict\[str, Any] |

### Possible use case

* **Read/Unread Tracking** — Remove the "unread" label and add "read" after an agent processes a message, preventing duplicate processing on the next polling cycle.
* **Pipeline State Management** — Add labels like "sentiment-analyzed" or "response-drafted" as a message moves through multi-step processing, so each stage knows which messages still need work.
* **Priority Tagging** — Add a "high-priority" label to messages from VIP senders or containing urgent keywords, enabling downstream blocks to filter and handle them first.

***


# Agent Mail Pods

Blocks for creating, managing, and querying pods in AgentMail. Pods provide multi-tenant isolation between customers — each pod acts as an isolated workspace containing its own inboxes, domains, threads, and drafts. Use pods when building SaaS platforms, agency tools, or AI agent fleets serving multiple customers.

## Agent Mail Create Pod

### What it is

Create a new pod for multi-tenant customer isolation. Use client\_id to map to your internal tenant IDs.

### How it works

Calls the AgentMail API to provision a new pod, passing an optional `client_id` parameter. When a `client_id` is provided, AgentMail maps it to the pod so you can later reference the pod using your own internal tenant identifier instead of the AgentMail-assigned `pod_id`.

The block returns the newly created `pod_id` along with the complete pod object containing all metadata. Any API errors propagate directly to the global error handler.

### Inputs

| Input      | Description                                                                                                                     | Type | Required |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------- | ---- | -------- |
| client\_id | Your internal tenant/customer ID for idempotent mapping. Lets you access the pod by your own ID instead of AgentMail's pod\_id. | str  | No       |

### Outputs

| Output  | Description                           | Type            |
| ------- | ------------------------------------- | --------------- |
| error   | Error message if the operation failed | str             |
| pod\_id | Unique identifier of the created pod  | str             |
| result  | Complete pod object with all metadata | Dict\[str, Any] |

### Possible use case

* **SaaS Customer Onboarding** — Automatically provision an isolated email workspace when a new customer signs up for your platform.
* **AI Agent Fleet Management** — Create a dedicated pod for each AI agent so its email activity is fully isolated from other agents.
* **White-Label Email Service** — Spin up tenant-scoped pods mapped to your internal customer IDs to power a branded email product.

***

## Agent Mail Create Pod Inbox

### What it is

Create a new email inbox within a pod. The inbox is scoped to the customer workspace.

### How it works

Calls the AgentMail API to create a new inbox scoped to the specified pod. You can optionally provide a `username`, `domain`, and `display_name` to customize the email address and sender identity. If omitted, the username is auto-generated and the domain defaults to `agentmail.to`.

The block returns the `inbox_id`, the full `email_address`, and the complete inbox metadata object. The inbox is fully isolated within the pod, meaning it only appears in that pod's inbox listings and its threads stay separate from other pods.

### Inputs

| Input         | Description                                                                     | Type | Required |
| ------------- | ------------------------------------------------------------------------------- | ---- | -------- |
| pod\_id       | Pod ID to create the inbox in                                                   | str  | Yes      |
| username      | Local part of the email address (e.g. 'support'). Leave empty to auto-generate. | str  | No       |
| domain        | Email domain (e.g. 'mydomain.com'). Defaults to agentmail.to if empty.          | str  | No       |
| display\_name | Friendly name shown in the 'From' field (e.g. 'Customer Support')               | str  | No       |

### Outputs

| Output         | Description                             | Type            |
| -------------- | --------------------------------------- | --------------- |
| error          | Error message if the operation failed   | str             |
| inbox\_id      | Unique identifier of the created inbox  | str             |
| email\_address | Full email address of the inbox         | str             |
| result         | Complete inbox object with all metadata | Dict\[str, Any] |

### Possible use case

* **Per-Customer Support Addresses** — Create a `support@clientdomain.com` inbox inside each customer's pod so inbound support emails are automatically routed to the right tenant.
* **Branded Outbound Campaigns** — Provision inboxes with custom display names and domains for each customer's marketing agent to send branded emails.
* **Multi-Department Agent Setup** — Create separate inboxes (sales, billing, support) within a single customer pod so different AI agents handle different functions.

***

## Agent Mail Delete Pod

### What it is

Permanently delete a pod. All inboxes and domains must be removed first.

### How it works

Calls the AgentMail API to permanently delete the specified pod. The API enforces a precondition: all inboxes and custom domains must be removed from the pod before deletion is allowed. If any remain, the API returns an error that propagates to the global error handler.

On success the block returns `success=True`. This operation is irreversible -- the pod and its associated `client_id` mapping are permanently removed.

### Inputs

| Input   | Description                                                    | Type | Required |
| ------- | -------------------------------------------------------------- | ---- | -------- |
| pod\_id | Pod ID to permanently delete (must have no inboxes or domains) | str  | Yes      |

### Outputs

| Output  | Description                              | Type |
| ------- | ---------------------------------------- | ---- |
| error   | Error message if the operation failed    | str  |
| success | True if the pod was successfully deleted | bool |

### Possible use case

* **Customer Offboarding** — Automatically delete a customer's pod after they cancel their subscription and all their inboxes have been cleaned up.
* **Development Environment Cleanup** — Tear down temporary pods created during testing or staging so they do not accumulate over time.
* **Compliance Data Removal** — Permanently remove a tenant's email workspace as part of a GDPR or data-deletion request workflow.

***

## Agent Mail Get Pod

### What it is

Retrieve details of an existing pod including its client\_id mapping and metadata.

### How it works

Calls the AgentMail API with the given `pod_id` to fetch the full pod record. The returned object includes the pod's `client_id` mapping, creation timestamp, and any other metadata stored on the pod.

The block outputs both the `pod_id` and the complete result dictionary. If the pod does not exist, the API error propagates directly to the global error handler.

### Inputs

| Input   | Description        | Type | Required |
| ------- | ------------------ | ---- | -------- |
| pod\_id | Pod ID to retrieve | str  | Yes      |

### Outputs

| Output  | Description                           | Type            |
| ------- | ------------------------------------- | --------------- |
| error   | Error message if the operation failed | str             |
| pod\_id | Unique identifier of the pod          | str             |
| result  | Complete pod object with all metadata | Dict\[str, Any] |

### Possible use case

* **Tenant Dashboard Display** — Fetch pod details to show a customer's workspace status, creation date, and associated client ID on an admin dashboard.
* **Pre-Action Validation** — Retrieve pod metadata before performing operations like inbox creation to confirm the pod exists and is correctly mapped.
* **Audit Logging** — Pull pod details as part of an automated audit trail that records which tenant workspace was accessed and when.

***

## Agent Mail List Pod Drafts

### What it is

List all drafts across all inboxes within a pod. View pending emails for a customer.

### How it works

Calls the AgentMail API to retrieve drafts across all inboxes within the specified pod. Optional `limit` and `page_token` parameters control pagination. Only non-empty parameters are sent to the API.

The block returns the list of draft objects, a `count` of drafts in the current page, and a `next_page_token` for fetching subsequent pages. This provides a pod-wide view of unsent emails without needing to query each inbox individually.

### Inputs

| Input       | Description                                           | Type | Required |
| ----------- | ----------------------------------------------------- | ---- | -------- |
| pod\_id     | Pod ID to list drafts from                            | str  | Yes      |
| limit       | Maximum number of drafts to return per page (1-100)   | int  | No       |
| page\_token | Token from a previous response to fetch the next page | str  | No       |

### Outputs

| Output            | Description                                        | Type                   |
| ----------------- | -------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed              | str                    |
| drafts            | List of draft objects from all inboxes in this pod | List\[Dict\[str, Any]] |
| count             | Number of drafts returned                          | int                    |
| next\_page\_token | Token for the next page. Empty if no more results. | str                    |

### Possible use case

* **Draft Review Queue** — Surface all pending drafts across a customer's inboxes so a human reviewer can approve or discard them before sending.
* **Stuck Draft Detection** — Periodically list pod drafts to find emails that have been sitting unsent for too long and alert the responsible agent or operator.
* **Customer Activity Summary** — Include draft counts in a tenant dashboard to show how many outbound emails are queued and awaiting dispatch.

***

## Agent Mail List Pod Inboxes

### What it is

List all inboxes within a pod. View email accounts scoped to a specific customer.

### How it works

Calls the AgentMail API to list all inboxes belonging to the specified pod. Optional `limit` and `page_token` parameters enable paginated retrieval. Only non-empty parameters are included in the API call.

The block returns the list of inbox objects, a `count` of inboxes in the current page, and a `next_page_token` for fetching additional pages. Each inbox object includes its ID, email address, display name, and other metadata.

### Inputs

| Input       | Description                                           | Type | Required |
| ----------- | ----------------------------------------------------- | ---- | -------- |
| pod\_id     | Pod ID to list inboxes from                           | str  | Yes      |
| limit       | Maximum number of inboxes to return per page (1-100)  | int  | No       |
| page\_token | Token from a previous response to fetch the next page | str  | No       |

### Outputs

| Output            | Description                                        | Type                   |
| ----------------- | -------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed              | str                    |
| inboxes           | List of inbox objects within this pod              | List\[Dict\[str, Any]] |
| count             | Number of inboxes returned                         | int                    |
| next\_page\_token | Token for the next page. Empty if no more results. | str                    |

### Possible use case

* **Customer Inbox Inventory** — Display all email addresses belonging to a tenant on their settings page so they can manage or remove unused inboxes.
* **Pre-Deletion Validation** — List a pod's inboxes before attempting to delete the pod, ensuring all inboxes have been removed as required by the API.
* **Multi-Inbox Routing Overview** — Show operators which inboxes exist in a customer's pod so they can configure routing rules for each address.

***

## Agent Mail List Pod Threads

### What it is

List all conversation threads across all inboxes within a pod. View all email activity for a customer.

### How it works

Calls the AgentMail API to retrieve conversation threads across all inboxes in the specified pod. Supports optional `limit`, `page_token`, and `labels` parameters. When `labels` are provided, only threads matching all specified labels are returned.

The block returns the list of thread objects, a `count` for the current page, and a `next_page_token` for pagination. This gives a unified, cross-inbox view of all email conversations within a customer's workspace.

### Inputs

| Input       | Description                                           | Type       | Required |
| ----------- | ----------------------------------------------------- | ---------- | -------- |
| pod\_id     | Pod ID to list threads from                           | str        | Yes      |
| limit       | Maximum number of threads to return per page (1-100)  | int        | No       |
| page\_token | Token from a previous response to fetch the next page | str        | No       |
| labels      | Only return threads matching ALL of these labels      | List\[str] | No       |

### Outputs

| Output            | Description                                         | Type                   |
| ----------------- | --------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed               | str                    |
| threads           | List of thread objects from all inboxes in this pod | List\[Dict\[str, Any]] |
| count             | Number of threads returned                          | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.  | str                    |

### Possible use case

* **Unified Customer Inbox View** — Aggregate all email threads from every inbox in a customer's pod into a single activity feed for support agents or dashboards.
* **Label-Based Ticket Triage** — Filter pod threads by labels like "urgent" or "billing" to route conversations to the appropriate AI agent or human team.
* **Conversation Volume Monitoring** — Periodically list pod threads to track email volume per tenant and trigger alerts when activity spikes or drops.

***

## Agent Mail List Pods

### What it is

List all tenant pods in your organization. See all customer workspaces at a glance.

### How it works

Calls the AgentMail API to list all pods in your organization. Optional `limit` and `page_token` parameters control pagination. Only non-empty parameters are included in the request.

The block returns a list of pod objects (each containing `pod_id`, `client_id`, creation time, and other metadata), a `count` for the current page, and a `next_page_token` for retrieving additional pages.

### Inputs

| Input       | Description                                           | Type | Required |
| ----------- | ----------------------------------------------------- | ---- | -------- |
| limit       | Maximum number of pods to return per page (1-100)     | int  | No       |
| page\_token | Token from a previous response to fetch the next page | str  | No       |

### Outputs

| Output            | Description                                                       | Type                   |
| ----------------- | ----------------------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed                             | str                    |
| pods              | List of pod objects with pod\_id, client\_id, creation time, etc. | List\[Dict\[str, Any]] |
| count             | Number of pods returned                                           | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.                | str                    |

### Possible use case

* **Admin Tenant Overview** — Display all customer pods on an internal admin dashboard so operators can monitor workspace count and health at a glance.
* **Automated Tenant Reconciliation** — Periodically list all pods and compare against your internal customer database to detect orphaned or missing workspaces.
* **Usage Reporting** — Enumerate all pods to generate per-tenant usage reports or billing summaries based on workspace activity.

***


# Agent Mail Threads

Blocks for listing, retrieving, and deleting conversation threads in AgentMail. Threads group related messages into a single conversation and can be queried per-inbox or across the entire organization.

## Agent Mail Delete Inbox Thread

### What it is

Permanently delete a conversation thread and all its messages. This action cannot be undone.

### How it works

The block calls the AgentMail API to permanently delete a thread and all of its messages from the specified inbox. It requires both the inbox ID (or email address) and the thread ID.

On success the block outputs `success=True`. If the API returns an error (for example, the thread does not exist), the error propagates to the global error handler and the block outputs an error message instead.

### Inputs

| Input      | Description                                     | Type | Required |
| ---------- | ----------------------------------------------- | ---- | -------- |
| inbox\_id  | Inbox ID or email address the thread belongs to | str  | Yes      |
| thread\_id | Thread ID to permanently delete                 | str  | Yes      |

### Outputs

| Output  | Description                                 | Type |
| ------- | ------------------------------------------- | ---- |
| error   | Error message if the operation failed       | str  |
| success | True if the thread was successfully deleted | bool |

### Possible use case

* **GDPR Data Removal** — Permanently delete conversation threads when a user requests erasure of their personal data.
* **Spam Cleanup** — Automatically remove threads flagged as spam by an upstream classification block.
* **Conversation Archival Pipeline** — Delete threads from the live inbox after they have been exported to long-term storage.

***

## Agent Mail Get Inbox Thread

### What it is

Retrieve a conversation thread with all its messages. Use for getting full conversation context before replying.

### How it works

The block fetches a single thread from a specific inbox by calling the AgentMail API with the inbox ID and thread ID. It returns the thread ID, the full list of messages in chronological order, and the complete thread object as a dictionary.

Any API error (such as an invalid thread ID or insufficient permissions) propagates to the global error handler, and the block outputs an error message.

### Inputs

| Input      | Description                                     | Type | Required |
| ---------- | ----------------------------------------------- | ---- | -------- |
| inbox\_id  | Inbox ID or email address the thread belongs to | str  | Yes      |
| thread\_id | Thread ID to retrieve                           | str  | Yes      |

### Outputs

| Output     | Description                                        | Type                   |
| ---------- | -------------------------------------------------- | ---------------------- |
| error      | Error message if the operation failed              | str                    |
| thread\_id | Unique identifier of the thread                    | str                    |
| messages   | All messages in the thread, in chronological order | List\[Dict\[str, Any]] |
| result     | Complete thread object with all metadata           | Dict\[str, Any]        |

### Possible use case

* **Context-Aware Replies** — Retrieve the full conversation history before generating an AI-drafted reply to ensure continuity.
* **Conversation Summarization** — Pull all messages in a thread and pass them to a summarization block for a digest.
* **Support Ticket Review** — Fetch a specific customer thread so a QA agent can evaluate response quality.

***

## Agent Mail Get Org Thread

### What it is

Retrieve a conversation thread by ID from anywhere in the organization, without needing the inbox ID.

### How it works

The block performs an organization-wide thread lookup by calling the AgentMail API with only the thread ID. Unlike the inbox-scoped variant, no inbox ID is required because the API resolves the thread across all inboxes in the organization.

It returns the thread ID, all messages in chronological order, and the complete thread object. Errors propagate to the global error handler.

### Inputs

| Input      | Description                                      | Type | Required |
| ---------- | ------------------------------------------------ | ---- | -------- |
| thread\_id | Thread ID to retrieve (works across all inboxes) | str  | Yes      |

### Outputs

| Output     | Description                                        | Type                   |
| ---------- | -------------------------------------------------- | ---------------------- |
| error      | Error message if the operation failed              | str                    |
| thread\_id | Unique identifier of the thread                    | str                    |
| messages   | All messages in the thread, in chronological order | List\[Dict\[str, Any]] |
| result     | Complete thread object with all metadata           | Dict\[str, Any]        |

### Possible use case

* **Cross-Inbox Thread Tracking** — Look up a thread by ID when the originating inbox is unknown, such as from a webhook or external reference.
* **Supervisor Agent Oversight** — Allow a manager agent to inspect any conversation across the organization without needing inbox-level routing.
* **Audit and Compliance** — Retrieve a specific thread for compliance review when only the thread ID is available from a log or report.

***

## Agent Mail List Inbox Threads

### What it is

List all conversation threads in an AgentMail inbox. Filter by labels for campaign tracking or status management.

### How it works

The block lists conversation threads within a single inbox by calling the AgentMail API with the inbox ID and optional pagination and filtering parameters. You can set a limit (1-100), pass a page token for pagination, and filter by labels so that only threads matching all specified labels are returned.

The block outputs the list of thread objects, the count of threads returned in this page, and a next-page token for retrieving additional results. Errors propagate to the global error handler.

### Inputs

| Input       | Description                                                                           | Type       | Required |
| ----------- | ------------------------------------------------------------------------------------- | ---------- | -------- |
| inbox\_id   | Inbox ID or email address to list threads from                                        | str        | Yes      |
| limit       | Maximum number of threads to return per page (1-100)                                  | int        | No       |
| page\_token | Token from a previous response to fetch the next page                                 | str        | No       |
| labels      | Only return threads matching ALL of these labels (e.g. \['q4-campaign', 'follow-up']) | List\[str] | No       |

### Outputs

| Output            | Description                                                                  | Type                   |
| ----------------- | ---------------------------------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed                                        | str                    |
| threads           | List of thread objects with thread\_id, subject, message count, labels, etc. | List\[Dict\[str, Any]] |
| count             | Number of threads returned                                                   | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.                           | str                    |

### Possible use case

* **Inbox Dashboard** — List all threads in a support inbox to display an overview of active conversations.
* **Campaign Monitoring** — Filter threads by a campaign label to track how many conversations a specific outreach effort has generated.
* **Stale Thread Detection** — Paginate through all threads in an inbox to identify conversations that have not received a reply within a set time window.

***

## Agent Mail List Org Threads

### What it is

List threads across ALL inboxes in your organization. Use for supervisor agents, dashboards, or cross-agent monitoring.

### How it works

The block lists threads across all inboxes in the organization by calling the AgentMail API without an inbox ID. It accepts optional limit, page-token, and label-filter parameters, which are forwarded directly to the API.

Results include threads from every inbox the organization owns. The block outputs the list of thread objects, the count for the current page, and a next-page token for pagination. Errors propagate to the global error handler.

### Inputs

| Input       | Description                                           | Type       | Required |
| ----------- | ----------------------------------------------------- | ---------- | -------- |
| limit       | Maximum number of threads to return per page (1-100)  | int        | No       |
| page\_token | Token from a previous response to fetch the next page | str        | No       |
| labels      | Only return threads matching ALL of these labels      | List\[str] | No       |

### Outputs

| Output            | Description                                                 | Type                   |
| ----------------- | ----------------------------------------------------------- | ---------------------- |
| error             | Error message if the operation failed                       | str                    |
| threads           | List of thread objects from all inboxes in the organization | List\[Dict\[str, Any]] |
| count             | Number of threads returned                                  | int                    |
| next\_page\_token | Token for the next page. Empty if no more results.          | str                    |

### Possible use case

* **Organization-Wide Activity Feed** — Build a real-time dashboard showing the latest conversations across every agent inbox.
* **Cross-Agent Analytics** — Aggregate thread counts and labels across all inboxes to measure overall communication volume and topic distribution.
* **Escalation Routing** — Scan all org threads for a specific label (e.g., "urgent") and route matching threads to a dedicated escalation agent.

***


# Airtable Bases

Blocks for creating and managing Airtable bases, which are the top-level containers for tables, records, and data in Airtable.

## Airtable Create Base

### What it is

Create or find a base in Airtable

### How it works

This block creates a new Airtable base in a specified workspace, or finds an existing one with the same name. When creating, you can optionally define initial tables and their fields to set up the schema.

Enable find\_existing to search for a base with the same name before creating a new one, preventing duplicates in your workspace.

### Inputs

| Input          | Description                                                                                                                                                                                                          | Type                   | Required |
| -------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------- |
| workspace\_id  | The workspace to create the base in; its id starts with 'wsp'. An Airtable connection can't look it up, so to keep data in a base the user already has, use Airtable Create Table, whose base is picked from a list. | str                    | Yes      |
| name           | The name of the new base                                                                                                                                                                                             | str                    | Yes      |
| find\_existing | If true, return existing base with same name instead of creating duplicate                                                                                                                                           | bool                   | No       |
| tables         | At least one table and field must be specified. Array of table objects to create in the base. Each table should have 'name' and 'fields' properties                                                                  | List\[Dict\[str, Any]] | No       |

### Outputs

| Output       | Description                                                 | Type                   |
| ------------ | ----------------------------------------------------------- | ---------------------- |
| error        | Error message if the operation failed                       | str                    |
| base\_id     | The ID of the created or found base                         | str                    |
| tables       | Array of table objects                                      | List\[Dict\[str, Any]] |
| table        | A single table object                                       | Dict\[str, Any]        |
| was\_created | True if a new base was created, False if existing was found | bool                   |

### Possible use case

**Project Setup**: Automatically create new bases when projects start with predefined table structures.

**Template Deployment**: Deploy standardized base templates across teams or clients.

**Multi-Tenant Apps**: Create separate bases for each customer or project programmatically.

***

## Airtable List Bases

### What it is

List all bases in Airtable

### How it works

This block retrieves a list of all Airtable bases accessible to your connected account. It returns basic information about each base including ID, name, and permission level.

Results are paginated; use the offset output to retrieve additional pages if there are more bases than returned in a single call.

### Inputs

| Input   | Description                                 | Type | Required |
| ------- | ------------------------------------------- | ---- | -------- |
| trigger | Trigger the block to run - value is ignored | str  | No       |
| offset  | Pagination offset from previous request     | str  | No       |

### Outputs

| Output | Description                                  | Type                   |
| ------ | -------------------------------------------- | ---------------------- |
| error  | Error message if the operation failed        | str                    |
| bases  | Array of base objects                        | List\[Dict\[str, Any]] |
| offset | Offset for next page (null if no more bases) | str                    |

### Possible use case

**Base Discovery**: Find available bases for building dynamic dropdowns or navigation.

**Inventory Management**: List all bases in an organization for auditing or documentation.

**Cross-Base Operations**: Enumerate bases to perform operations across multiple databases.

***


# Airtable Records

Blocks for creating, reading, updating, and deleting records in Airtable tables.

## Airtable Create Records

### What it is

Create records in an Airtable table

### How it works

This block creates new records in an Airtable table using the Airtable API. Each record is specified with a fields object containing field names and values. You can create up to 10 records in a single call.

Enable typecast to automatically convert string values to appropriate field types (dates, numbers, etc.). The block returns the created records with their assigned IDs.

### Inputs

| Input                         | Description                                                                                 | Type                       | Required |
| ----------------------------- | ------------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id                      | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets.     | str (airtable-base-picker) | Yes      |
| table\_id\_or\_name           | Table ID or name                                                                            | str                        | Yes      |
| records                       | Array of records to create (each with 'fields' object)                                      | List\[Dict\[str, Any]]     | Yes      |
| skip\_normalization           | Skip output normalization to get raw Airtable response (faster but may have missing fields) | bool                       | No       |
| typecast                      | Automatically convert string values to appropriate types                                    | bool                       | No       |
| return\_fields\_by\_field\_id | Return fields by field ID                                                                   | bool                       | No       |

### Outputs

| Output  | Description                           | Type                   |
| ------- | ------------------------------------- | ---------------------- |
| error   | Error message if the operation failed | str                    |
| records | Array of created record objects       | List\[Dict\[str, Any]] |
| details | Details of the created records        | Dict\[str, Any]        |

### Possible use case

**Data Import**: Bulk import data from external sources into Airtable tables.

**Form Submissions**: Create records from form submissions or API integrations.

**Workflow Output**: Save workflow results or processed data to Airtable for tracking.

***

## Airtable Delete Records

### What it is

Delete records from an Airtable table

### How it works

This block deletes records from an Airtable table by their record IDs. You can delete up to 10 records in a single call. The operation is permanent and cannot be undone.

Provide an array of record IDs to delete. Using the table ID instead of the name is recommended for reliability.

### Inputs

| Input               | Description                                                                             | Type                       | Required |
| ------------------- | --------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id            | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker) | Yes      |
| table\_id\_or\_name | Table ID or name - It's better to use the table ID instead of the name                  | str                        | Yes      |
| record\_ids         | Array of upto 10 record IDs to delete                                                   | List\[str]                 | Yes      |

### Outputs

| Output  | Description                           | Type                   |
| ------- | ------------------------------------- | ---------------------- |
| error   | Error message if the operation failed | str                    |
| records | Array of deletion results             | List\[Dict\[str, Any]] |

### Possible use case

**Data Cleanup**: Remove outdated or duplicate records from tables.

**Workflow Cleanup**: Delete temporary records after processing is complete.

**Batch Removal**: Remove multiple records that match certain criteria.

***

## Airtable Get Record

### What it is

Get a single record from Airtable

### How it works

This block retrieves a single record from an Airtable table by its ID. The record includes all field values and metadata like creation time. Enable normalize\_output to ensure all fields are included with proper empty values.

Optionally include field metadata for type information and configuration details about each field.

### Inputs

| Input                    | Description                                                                                                                  | Type                       | Required |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id                 | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets.                                      | str (airtable-base-picker) | Yes      |
| table\_id\_or\_name      | Table ID or name                                                                                                             | str                        | Yes      |
| record\_id               | The record ID to retrieve                                                                                                    | str                        | Yes      |
| normalize\_output        | Normalize output to include all fields with proper empty values (disable to skip schema fetch and get raw Airtable response) | bool                       | No       |
| include\_field\_metadata | Include field type and configuration metadata (requires normalize\_output=true)                                              | bool                       | No       |

### Outputs

| Output          | Description                                                                     | Type            |
| --------------- | ------------------------------------------------------------------------------- | --------------- |
| error           | Error message if the operation failed                                           | str             |
| id              | The record ID                                                                   | str             |
| fields          | The record fields                                                               | Dict\[str, Any] |
| created\_time   | The record created time                                                         | str             |
| field\_metadata | Field type and configuration metadata (only when include\_field\_metadata=true) | Dict\[str, Any] |

### Possible use case

**Detail View**: Fetch complete record data for display or detailed processing.

**Record Lookup**: Retrieve specific records by ID from webhook payloads or references.

**Data Validation**: Check record contents before performing updates or related operations.

***

## Airtable List Records

### What it is

List records from an Airtable table

### How it works

This block queries records from an Airtable table with optional filtering, sorting, and pagination. Use Airtable formulas to filter records and specify sort order by field and direction.

Results can be limited, paginated with offsets, and restricted to specific fields. Enable normalize\_output for consistent field values across records.

### Inputs

| Input                    | Description                                                                                                                  | Type                       | Required |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id                 | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets.                                      | str (airtable-base-picker) | Yes      |
| table\_id\_or\_name      | Table ID or name                                                                                                             | str                        | Yes      |
| filter\_formula          | Airtable formula to filter records                                                                                           | str                        | No       |
| view                     | View ID or name to use                                                                                                       | str                        | No       |
| sort                     | Sort configuration (array of {field, direction})                                                                             | List\[Dict\[str, Any]]     | No       |
| max\_records             | Maximum number of records to return                                                                                          | int                        | No       |
| page\_size               | Number of records per page (max 100)                                                                                         | int                        | No       |
| offset                   | Pagination offset from previous request                                                                                      | str                        | No       |
| return\_fields           | Specific fields to return (comma-separated)                                                                                  | List\[str]                 | No       |
| normalize\_output        | Normalize output to include all fields with proper empty values (disable to skip schema fetch and get raw Airtable response) | bool                       | No       |
| include\_field\_metadata | Include field type and configuration metadata (requires normalize\_output=true)                                              | bool                       | No       |

### Outputs

| Output          | Description                                                                     | Type                   |
| --------------- | ------------------------------------------------------------------------------- | ---------------------- |
| error           | Error message if the operation failed                                           | str                    |
| records         | Array of record objects                                                         | List\[Dict\[str, Any]] |
| offset          | Offset for next page (null if no more records)                                  | str                    |
| field\_metadata | Field type and configuration metadata (only when include\_field\_metadata=true) | Dict\[str, Any]        |

### Possible use case

**Report Generation**: Query records with filters to build reports or dashboards.

**Data Export**: Fetch records matching criteria for export to other systems.

**Batch Processing**: List records to process in subsequent workflow steps.

***

## Airtable Update Records

### What it is

Update records in an Airtable table

### How it works

This block updates existing records in an Airtable table. Each record update requires the record ID and a fields object with the values to update. Only specified fields are modified; other fields remain unchanged.

Enable typecast to automatically convert string values to appropriate types. You can update up to 10 records per call.

### Inputs

| Input               | Description                                                                             | Type                       | Required |
| ------------------- | --------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id            | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker) | Yes      |
| table\_id\_or\_name | Table ID or name - It's better to use the table ID instead of the name                  | str                        | Yes      |
| records             | Array of records to update (each with 'id' and 'fields')                                | List\[Dict\[str, Any]]     | Yes      |
| typecast            | Automatically convert string values to appropriate types                                | bool                       | No       |

### Outputs

| Output  | Description                           | Type                   |
| ------- | ------------------------------------- | ---------------------- |
| error   | Error message if the operation failed | str                    |
| records | Array of updated record objects       | List\[Dict\[str, Any]] |

### Possible use case

**Status Updates**: Update record status fields as workflows progress.

**Data Enrichment**: Add computed or fetched data to existing records.

**Batch Modifications**: Update multiple records based on processed results.

***


# Airtable Schema

Blocks for managing Airtable schema including tables, fields, and their configurations.

## Airtable Create Field

### What it is

Add a new field to an Airtable table

### How it works

This block adds a new field to an existing Airtable table using the Airtable API. Specify the field type (text, email, URL, etc.), name, and optional description and configuration options.

The field is created immediately and becomes available for use in all records. Returns the created field object with its assigned ID.

### Inputs

| Input       | Description                                                                             | Type                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | Required |
| ----------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| base\_id    | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | Yes      |
| table\_id   | The table ID to add field to                                                            | str                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Yes      |
| field\_type | The type of the field to create                                                         | "singleLineText" \| "email" \| "url" \| "multilineText" \| "number" \| "percent" \| "currency" \| "singleSelect" \| "multipleSelects" \| "singleCollaborator" \| "multipleCollaborators" \| "multipleRecordLinks" \| "date" \| "dateTime" \| "phoneNumber" \| "multipleAttachments" \| "checkbox" \| "formula" \| "createdTime" \| "rollup" \| "count" \| "lookup" \| "multipleLookupValues" \| "autoNumber" \| "barcode" \| "rating" \| "richText" \| "duration" \| "lastModifiedTime" \| "button" \| "createdBy" \| "lastModifiedBy" \| "externalSyncSource" \| "aiText" | No       |
| name        | The name of the field to create                                                         | str                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | Yes      |
| description | The description of the field to create                                                  | str                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | No       |
| options     | The options of the field to create                                                      | Dict\[str, Any]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | No       |

### Outputs

| Output    | Description                           | Type            |
| --------- | ------------------------------------- | --------------- |
| error     | Error message if the operation failed | str             |
| field     | Created field object                  | Dict\[str, Any] |
| field\_id | ID of the created field               | str             |

### Possible use case

**Schema Evolution**: Add new fields to tables as application requirements grow.

**Dynamic Forms**: Create fields based on user configuration or form builder settings.

**Data Integration**: Add fields to capture data from newly integrated external systems.

***

## Airtable Create Table

### What it is

Create a new table in an Airtable base

### How it works

This block creates a new table in an Airtable base with the specified name and optional field definitions. Each field definition includes name, type, and type-specific options.

The table is created with the defined schema and is immediately ready for use. Returns the created table object with its ID.

### Inputs

| Input         | Description                                                                             | Type                       | Required |
| ------------- | --------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id      | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker) | Yes      |
| table\_name   | The name of the table to create                                                         | str                        | Yes      |
| table\_fields | Table fields with name, type, and options                                               | List\[Dict\[str, Any]]     | No       |

### Outputs

| Output    | Description                           | Type            |
| --------- | ------------------------------------- | --------------- |
| error     | Error message if the operation failed | str             |
| table     | Created table object                  | Dict\[str, Any] |
| table\_id | ID of the created table               | str             |

### Possible use case

**Application Scaffolding**: Create tables programmatically when setting up new application modules.

**Multi-Tenant Setup**: Generate customer-specific tables dynamically.

**Feature Expansion**: Add new tables as features are enabled or installed.

***

## Airtable List Schema

### What it is

Get the complete schema of an Airtable base

### How it works

This block retrieves the complete schema of an Airtable base, including all tables, their fields, field types, and views. This metadata is essential for building dynamic integrations that need to understand table structure.

The schema includes field configurations, validation rules, and relationship definitions between tables.

### Inputs

| Input    | Description                                                                             | Type                       | Required |
| -------- | --------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker) | Yes      |

### Outputs

| Output       | Description                                         | Type                   |
| ------------ | --------------------------------------------------- | ---------------------- |
| error        | Error message if the operation failed               | str                    |
| base\_schema | Complete base schema with tables, fields, and views | Dict\[str, Any]        |
| tables       | Array of table objects                              | List\[Dict\[str, Any]] |

### Possible use case

**Schema Discovery**: Understand table structure for building dynamic forms or queries.

**Documentation**: Generate documentation of database schema automatically.

**Migration Planning**: Analyze schema before migrating data to other systems.

***

## Airtable Update Field

### What it is

Update field properties in an Airtable table

### How it works

This block updates properties of an existing field in an Airtable table. You can modify the field name and description. Note that field type cannot be changed after creation.

Changes take effect immediately across all records and views that use the field.

### Inputs

| Input       | Description                                                                             | Type                       | Required |
| ----------- | --------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id    | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker) | Yes      |
| table\_id   | The table ID containing the field                                                       | str                        | Yes      |
| field\_id   | The field ID to update                                                                  | str                        | Yes      |
| name        | The name of the field to update                                                         | str                        | No       |
| description | The description of the field to update                                                  | str                        | No       |

### Outputs

| Output | Description                           | Type            |
| ------ | ------------------------------------- | --------------- |
| error  | Error message if the operation failed | str             |
| field  | Updated field object                  | Dict\[str, Any] |

### Possible use case

**Field Renaming**: Update field names to match evolving terminology or standards.

**Documentation Updates**: Add or update field descriptions for better team understanding.

**Schema Maintenance**: Keep field metadata current as application requirements change.

***

## Airtable Update Table

### What it is

Update table properties

### How it works

This block updates table properties in an Airtable base. You can change the table name, description, and date dependency settings. Changes apply immediately and affect all users accessing the table.

This is useful for maintaining table metadata and organizing your base structure.

### Inputs

| Input              | Description                                                                             | Type                       | Required |
| ------------------ | --------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id           | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker) | Yes      |
| table\_id          | The table ID to update                                                                  | str                        | Yes      |
| table\_name        | The name of the table to update                                                         | str                        | No       |
| table\_description | The description of the table to update                                                  | str                        | No       |
| date\_dependency   | The date dependency of the table to update                                              | Dict\[str, Any]            | No       |

### Outputs

| Output | Description                           | Type            |
| ------ | ------------------------------------- | --------------- |
| error  | Error message if the operation failed | str             |
| table  | Updated table object                  | Dict\[str, Any] |

### Possible use case

**Table Organization**: Rename tables to follow naming conventions or reflect current usage.

**Description Management**: Update table descriptions for documentation purposes.

**Configuration Updates**: Modify table settings like date dependencies as requirements change.

***


# Airtable Triggers

Blocks for triggering workflows based on Airtable events like record creation, updates, and deletions.

## Airtable Webhook Trigger

### What it is

Starts a flow whenever Airtable emits a webhook event

### How it works

This block subscribes to Airtable webhook events for a specific base and table. When records are created, updated, or deleted, Airtable sends a webhook notification that triggers your workflow.

You specify which events to listen for using the event selector. The webhook payload includes details about the changed records and the type of change that occurred.

### Inputs

| Input               | Description                                                                             | Type                       | Required |
| ------------------- | --------------------------------------------------------------------------------------- | -------------------------- | -------- |
| base\_id            | The Airtable base to use: a set of tables, like a spreadsheet file with several sheets. | str (airtable-base-picker) | Yes      |
| table\_id\_or\_name | Airtable table ID or name                                                               | str                        | Yes      |
| events              | Airtable webhook event filter                                                           | AirtableEventSelector      | Yes      |

### Outputs

| Output  | Description                           | Type           |
| ------- | ------------------------------------- | -------------- |
| error   | Error message if the operation failed | str            |
| payload | Airtable webhook payload              | WebhookPayload |

### Possible use case

**Real-Time Sync**: Automatically sync Airtable changes to other systems like CRMs or databases.

**Notification Workflows**: Send alerts when specific records are created or modified in Airtable.

**Automated Processing**: Trigger document generation or emails when new entries are added to a table.

***


# All Quiet Incident Search

Blocks that read All Quiet incidents — fetching a single incident by ID, or searching the incident list by status, severity, team, text or time range.

## AllQuiet Get Incident

### What it is

Fetches a single All Quiet incident by ID

### How it works

Fetches one incident by ID and flattens its current status and severity onto the result — All Quiet stores those at the head of the incident's event timeline rather than on the incident itself. `allowed_intents` reports which transitions the incident will currently accept. Turning on `include_markdown` makes a second call for All Quiet's rendered markdown report, which bundles the attributes and full timeline into prose that is well suited to feeding an LLM.

### Inputs

| Input             | Description                                                                                                                       | Type         | Required |
| ----------------- | --------------------------------------------------------------------------------------------------------------------------------- | ------------ | -------- |
| incident\_id      | ID of the incident to fetch                                                                                                       | str          | Yes      |
| include\_markdown | Also fetch an LLM-friendly markdown report of the incident, including its attributes and full timeline. Costs one extra API call. | bool         | No       |
| region            | The All Quiet deployment your API key belongs to. Use EU if you signed up on allquiet.eu.                                         | "us" \| "eu" | No       |

### Outputs

| Output           | Description                                     | Type                               |
| ---------------- | ----------------------------------------------- | ---------------------------------- |
| error            | Error message if the request failed             | str                                |
| incident         | The incident                                    | Incident                           |
| status           | Current status, when the incident reports one   | "Open" \| "Resolved"               |
| severity         | Current severity, when the incident reports one | "Critical" \| "Warning" \| "Minor" |
| allowed\_intents | Transitions this incident currently accepts     | List\[str]                         |
| markdown         | Markdown report, if include\_markdown was set   | str                                |

### Possible use case

A triage agent receives an incident ID from the trigger block, fetches it with `include_markdown` enabled, and feeds the markdown report — attributes, timeline and all — to an LLM to draft a first-response summary and suggest a likely cause.

***

## AllQuiet List Incidents

### What it is

Searches All Quiet incidents by status, severity, team or text

### How it works

Searches the incident list with All Quiet's server-side filters: status, severity, teams, a free-text title match, an unattended flag, and a created-at range. Results are paginated (`limit`/`offset`) and `has_more` reports whether further pages exist. Alongside the full list the block emits each incident individually, plus a list of bare `incident_ids` that feeds straight into Get Incident or Update Incident.

### Inputs

| Input          | Description                                                                               | Type                                                                        | Required |
| -------------- | ----------------------------------------------------------------------------------------- | --------------------------------------------------------------------------- | -------- |
| statuses       | Only return incidents in these statuses.                                                  | List\["Open" \| "Resolved"]                                                 | No       |
| severities     | Only return incidents at these severities.                                                | List\["Critical" \| "Warning" \| "Minor"]                                   | No       |
| team\_ids      | Only return incidents routed to these teams.                                              | List\[str]                                                                  | No       |
| search\_term   | Free-text match against the incident title.                                               | str                                                                         | No       |
| unattended     | Set true to return only incidents nobody has picked up.                                   | bool                                                                        | No       |
| limit          | Maximum number of incidents to return.                                                    | int                                                                         | No       |
| offset         | Number of incidents to skip, for paging.                                                  | int                                                                         | No       |
| created\_from  | Only incidents created at or after this ISO-8601 timestamp.                               | str                                                                         | No       |
| created\_until | Only incidents created at or before this ISO-8601 timestamp.                              | str                                                                         | No       |
| sort\_by       | Field to sort the results by.                                                             | "Created" \| "LastUpdatedAt" \| "LatestInteraction" \| "Urgency" \| "Title" | No       |
| ascending      | Sort oldest first instead of newest first.                                                | bool                                                                        | No       |
| region         | The All Quiet deployment your API key belongs to. Use EU if you signed up on allquiet.eu. | "us" \| "eu"                                                                | No       |

### Outputs

| Output        | Description                                           | Type            |
| ------------- | ----------------------------------------------------- | --------------- |
| error         | Error message if the request failed                   | str             |
| incidents     | All matching incidents                                | List\[Incident] |
| incident      | Each matching incident, emitted one at a time         | Incident        |
| incident\_ids | IDs of the matching incidents                         | List\[str]      |
| count         | Number of incidents returned                          | int             |
| has\_more     | Whether more incidents are available beyond this page | bool            |

### Possible use case

A morning-standup agent lists every incident created in the last 24 hours, groups them by severity, and posts a digest — or, filtering on `unattended`, chases anything still open that nobody has picked up.

***


# All Quiet Incidents

Blocks that create All Quiet incidents and move them through their lifecycle. Use these when an agent needs to raise an alert that reaches a human, or to acknowledge, resolve, escalate or comment on one it already raised.

## AllQuiet Create Incident

### What it is

Creates an incident in All Quiet and pages the on-call responder

### How it works

Posts to All Quiet's `/incident` endpoint with a title, severity and status. All Quiet then applies your routing rules to decide who gets paged — so the block does not pick a responder itself; it hands the incident to the rotation. Optional team IDs override the integration's default routing, and arbitrary key/value attributes ride along for context (host, runbook link, dashboard URL). Note that `on_call_users` is often empty in the response because All Quiet resolves routing asynchronously; read the incident back with Get Incident to see who it landed on.

### Inputs

| Input               | Description                                                                               | Type                               | Required |
| ------------------- | ----------------------------------------------------------------------------------------- | ---------------------------------- | -------- |
| title               | Short summary of what is wrong. Shown in every alert.                                     | str                                | Yes      |
| severity            | How urgent the incident is.                                                               | "Critical" \| "Warning" \| "Minor" | No       |
| status              | Open pages the on-call responder. Resolved records the incident without paging anyone.    | "Open" \| "Resolved"               | No       |
| message             | Longer description with context for the responder.                                        | str                                | No       |
| team\_ids           | Teams to route the incident to. Leave empty to use the integration's default routing.     | List\[str]                         | No       |
| service\_ids        | Affected services, used for status pages and uptime.                                      | List\[str]                         | No       |
| user\_ids           | Users to assign directly, in addition to on-call routing.                                 | List\[str]                         | No       |
| attributes          | Extra key/value context, e.g. host or runbook URL.                                        | Dict\[str, str]                    | No       |
| message\_is\_public | Show the message on a connected public status page.                                       | bool                               | No       |
| region              | The All Quiet deployment your API key belongs to. Use EU if you signed up on allquiet.eu. | "us" \| "eu"                       | No       |

### Outputs

| Output          | Description                                                                                                                                                                              | Type                |
| --------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
| error           | Error message if the request failed                                                                                                                                                      | str                 |
| incident        | The incident that was created                                                                                                                                                            | Incident            |
| incident\_id    | ID of the new incident, for later get/update calls                                                                                                                                       | str                 |
| on\_call\_users | Users the incident was routed to. Often empty in the create response because All Quiet resolves routing asynchronously — read the incident back with Get Incident to see the responders. | List\[AllQuietUser] |

### Possible use case

An agent monitoring error rates notices checkout failures spiking. Rather than posting into a chat channel nobody is watching at 3am, it creates a Critical incident routed to the Platform team, attaching the dashboard URL and the failing endpoint as attributes — and All Quiet phones whoever is actually on call.

***

## AllQuiet Update Incident

### What it is

Investigates, resolves, escalates or comments on an All Quiet incident

### How it works

Applies an *intent* to an existing incident — All Quiet's term for a state transition such as Investigated (acknowledge), Resolved, Escalated or Commented. Which intents an incident accepts depends on its current status: an open incident accepts Investigated/Resolved/Escalated, a resolved one accepts Unresolved. The block emits `allowed_intents` after the update so a graph can choose its next move without a second read. The severity can be changed in the same call. Because All Quiet's patch endpoint does not echo the updated incident, the block re-reads it to report the resulting state.

### Inputs

| Input               | Description                                                                                                                                                                  | Type                                                                                                  | Required |
| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------------------------------- | -------- |
| incident\_id        | ID of the incident to update                                                                                                                                                 | str                                                                                                   | Yes      |
| intent              | The transition to apply. An incident only accepts the intents listed in its allowed\_intents — e.g. Investigated/Resolved on an open incident, Unresolved on a resolved one. | "Investigated" \| "Resolved" \| "Unresolved" \| "Escalated" \| "Commented" \| "Snoozed" \| "Archived" | No       |
| message             | Note recorded on the incident timeline with this change.                                                                                                                     | str                                                                                                   | No       |
| severity            | Optionally change the severity at the same time.                                                                                                                             | "Critical" \| "Warning" \| "Minor"                                                                    | No       |
| message\_is\_public | Show the message on a connected public status page.                                                                                                                          | bool                                                                                                  | No       |
| region              | The All Quiet deployment your API key belongs to. Use EU if you signed up on allquiet.eu.                                                                                    | "us" \| "eu"                                                                                          | No       |

### Outputs

| Output           | Description                                                                                                             | Type                               |
| ---------------- | ----------------------------------------------------------------------------------------------------------------------- | ---------------------------------- |
| error            | Error message if the request failed                                                                                     | str                                |
| incident         | The incident after the update                                                                                           | Incident                           |
| allowed\_intents | Transitions the incident accepts after this update, so a graph can pick its next intent without re-reading the incident | List\[str]                         |
| status           | Status after the update, when the incident reports one                                                                  | "Open" \| "Resolved"               |
| severity         | Severity after the update, when the incident reports one                                                                | "Critical" \| "Warning" \| "Minor" |

### Possible use case

After an agent raises an incident and its automated remediation succeeds, it applies the Resolved intent with a message describing what it did, closing the loop so nobody gets woken for an issue that has already fixed itself. If remediation fails instead, it applies Escalated to push the incident to the next tier.

***


# All Quiet On Call

A block for reading All Quiet's on-call rotation: who is responsible right now, or who was (or will be) at any other point in time.

## AllQuiet Get On Call

### What it is

Looks up who is on call in All Quiet, now or at a given time

### How it works

Reads All Quiet's computed rotation rather than a static schedule, so overrides, escalation tiers and rotation handoffs are all reflected. Leaving `timestamp` empty asks who is on call right now; supplying an ISO-8601 timestamp asks who was or will be on call then. A user covering several teams appears once per team in `shifts`, so the block also emits a de-duplicated `users`/`user_ids`/`emails` set to avoid notifying the same person repeatedly. `has_coverage` is false when nobody is on call, which is worth branching on before assuming an alert will reach someone.

### Inputs

| Input     | Description                                                                               | Type         | Required |
| --------- | ----------------------------------------------------------------------------------------- | ------------ | -------- |
| team\_ids | Limit to these teams. Leave empty for every team.                                         | List\[str]   | No       |
| user\_ids | Limit to these users. Leave empty for every user.                                         | List\[str]   | No       |
| timestamp | ISO-8601 timestamp to evaluate the rotation at. Leave empty for right now.                | str          | No       |
| region    | The All Quiet deployment your API key belongs to. Use EU if you signed up on allquiet.eu. | "us" \| "eu" | No       |

### Outputs

| Output                | Description                                                                                                                                                                | Type                |
| --------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------- |
| error                 | Error message if the request failed                                                                                                                                        | str                 |
| shifts                | Every matching on-call assignment                                                                                                                                          | List\[OnCallShift]  |
| shift                 | Each on-call assignment, emitted one at a time                                                                                                                             | OnCallShift         |
| users                 | The on-call users, deduplicated across teams                                                                                                                               | List\[AllQuietUser] |
| user\_ids             | IDs of the on-call users                                                                                                                                                   | List\[str]          |
| emails                | Email addresses of the on-call users                                                                                                                                       | List\[str]          |
| users\_without\_email | On-call users carrying no email address. These are counted in users/has\_coverage but absent from emails, so a graph that notifies by email alone would silently skip them | List\[AllQuietUser] |
| has\_coverage         | False when nobody is on call for the requested teams/time, so a graph can branch to a fallback instead of silently paging no one                                           | bool                |

### Possible use case

Before an agent takes a disruptive automated action such as a production deploy, it checks who is on call and includes their name in the change notice. Wired to `has_coverage`, the same graph can refuse to deploy at all when the rotation has a gap.

***


# All Quiet Teams

A block for listing All Quiet teams. Mainly used to resolve the team IDs that the incident and on-call blocks accept as inputs.

## AllQuiet List Teams

### What it is

Lists All Quiet teams and their IDs

### How it works

Lists the teams in your All Quiet organization with their IDs, time zones and labels, optionally filtered by name. Its `team_ids` output is designed to feed the `team_ids` input on Create Incident, List Incidents and Get On-Call, so a graph can target teams by name without hardcoding UUIDs.

### Inputs

| Input         | Description                                                                               | Type         | Required |
| ------------- | ----------------------------------------------------------------------------------------- | ------------ | -------- |
| display\_name | Filter to teams whose name matches this text.                                             | str          | No       |
| limit         | Maximum number of teams to return.                                                        | int          | No       |
| offset        | Number of teams to skip, for paging.                                                      | int          | No       |
| region        | The All Quiet deployment your API key belongs to. Use EU if you signed up on allquiet.eu. | "us" \| "eu" | No       |

### Outputs

| Output    | Description                                               | Type        |
| --------- | --------------------------------------------------------- | ----------- |
| error     | Error message if the request failed                       | str         |
| teams     | All matching teams                                        | List\[Team] |
| team      | Each matching team, emitted one at a time                 | Team        |
| team\_ids | IDs of the matching teams, for use as team\_ids elsewhere | List\[str]  |
| has\_more | Whether more teams are available beyond this page         | bool        |

### Possible use case

A graph that should page whichever team owns a failing service looks the team up by display name, then passes the resulting ID to Create Incident — so renaming or re-creating a team in All Quiet doesn't require editing the agent.

***


# All Quiet Triggers

A webhook trigger that starts a graph when All Quiet posts an incident to it, so agents can react to incidents rather than only create them.

## AllQuiet Incident Trigger

### What it is

Triggers a graph when All Quiet posts an incident to this webhook

### How it works

Runs when All Quiet's outbound webhook posts to this block's URL. Because the request body is whatever Handlebars template you configure in All Quiet, the block does not impose a schema: it always emits the raw `payload`, and additionally reads the well-known keys from both All Quiet's stock flattened template (`incidentId`/`incidentTitle`/`incidentProperties`) and a fuller template that forwards the incident itself. If you enable signing in All Quiet and paste the secret into the block, each delivery is verified as an HMAC-SHA256 of `<timestamp>:<body>` — both the All Quiet (`x-aq-signature`) and AWS (`x-amzn-event-signature`) header formats are accepted — and stale timestamps are rejected to prevent replay. Leave the secret empty and the webhook URL is the only credential.

### Inputs

| Input           | Description                                                                                                                                                                                                                                                                             | Type | Required |
| --------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---- | -------- |
| signing\_secret | Optional. If All Quiet's outbound webhook has signing enabled, paste the signing secret here and deliveries with a missing or bad signature are rejected. Both the All Quiet (x-aq-signature) and AWS (x-amzn-event-signature) formats are accepted. Leave empty for unsigned webhooks. | str  | No       |

### Outputs

| Output          | Description                                            | Type                               |
| --------------- | ------------------------------------------------------ | ---------------------------------- |
| error           | Error message if the operation failed                  | str                                |
| payload         | The raw payload All Quiet delivered                    | Dict\[str, Any]                    |
| incident\_id    | ID of the incident that fired                          | str                                |
| incident\_title | Title of the incident                                  | str                                |
| event\_id       | ID of the timeline event that triggered this delivery  | str                                |
| status          | Incident status, if the payload template includes it   | "Open" \| "Resolved"               |
| severity        | Incident severity, if the payload template includes it | "Critical" \| "Warning" \| "Minor" |
| attributes      | Incident attributes flattened to a name/value mapping  | Dict\[str, str]                    |

### Possible use case

An incident is raised in All Quiet by a Prometheus alert. The trigger starts a graph that pulls the incident's attributes, queries the relevant logs and dashboards, drafts a probable-cause summary with an LLM, and posts it back as a comment — so the responder opens an incident that already has a first pass of investigation attached.

***


# AnySearch Extract

Extracts readable page content from a URL via AnySearch. Runs anonymously or with an `ANYSEARCH_API_KEY` credential - see the AnySearch Search page for setup.

## AnySearch Extract

### What it is

Extracts readable content from a single URL using AnySearch, optimized for LLM consumption

### How it works

The block posts the single URL to `POST https://api.anysearch.com/v1/extract` and returns the page title plus body content as readable text - cleaned HTML, plain text, JSON, or markdown depending on the source. The returned content is untrusted web text; treat it as data, not instructions. The URL must be a public absolute http(s) address; AnySearch rejects invalid URLs with HTTP 400 and content it cannot extract with HTTP 422, both surfacing as a block error. One URL is extracted per run - the REST surface has no batch-extract endpoint, so fan URLs out across the graph when you need several. Transport, HTTP and API-level failures raise a block error rather than emitting partial output.

### Inputs

| Input | Description                                                                  | Type                      | Required |
| ----- | ---------------------------------------------------------------------------- | ------------------------- | -------- |
| auth  | Anonymous tier (lower rate limit, no key) or an AnySearch API key credential | "api\_key" \| "anonymous" | No       |
| url   | The URL to extract content from                                              | str                       | Yes      |

### Outputs

| Output  | Description                                                                                    | Type |
| ------- | ---------------------------------------------------------------------------------------------- | ---- |
| error   | Error message if the operation failed                                                          | str  |
| url     | URL of the extracted page                                                                      | str  |
| title   | Title of the extracted page                                                                    | str  |
| content | Extracted readable page content (cleaned HTML, text, JSON, or markdown; untrusted web content) | str  |

### Possible use case

**Deep-read a search hit**: Pipe the url output of the AnySearch Search block into this block to turn a ranked result into full readable content for summarization.

**Clean content ingestion**: Convert a known documentation or article URL to LLM-friendly text before chunking or embedding.

**Fact verification**: Extract the page behind a cited URL so an agent can quote or cross-check the source text.

***


# AnySearch Parallel Search

Runs multiple AnySearch queries in a single block (client-side concurrency, max 5 queries). Runs anonymously or with an `ANYSEARCH_API_KEY` credential - see the AnySearch Search page for setup.

## AnySearch Parallel Search

### What it is

Runs several AnySearch queries in parallel (client-side concurrency via asyncio)

### How it works

The block fans out up to 5 queries client-side with asyncio.gather - each query is an independent POST to /v1/search, so this is client-side concurrency, not a server-side batch endpoint (the AnySearch REST surface does not expose one). Results return grouped per query in input order; a failing query does not fail the batch - the error field on that group carries the message while the other groups still return results. The shared vertical inputs apply to every query in the batch: `sub_domain` (e.g. `finance.quote`) is sent as `tag` and `sub_domain_params` as `params`; setting `domain` without `sub_domain`, or a `sub_domain` outside the domain prefix, is rejected by input validation before any request is sent. Providing more than five queries, or an empty list, is likewise rejected by input validation (`queries` allows 1-5 entries).

### Inputs

| Input               | Description                                                                  | Type                                                                                                                                                                                                                       | Required |
| ------------------- | ---------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| auth                | Anonymous tier (lower rate limit, no key) or an AnySearch API key credential | "api\_key" \| "anonymous"                                                                                                                                                                                                  | No       |
| queries             | The search queries to run in parallel (max 5)                                | List\[str]                                                                                                                                                                                                                 | Yes      |
| max\_results        | Maximum number of results per query                                          | int                                                                                                                                                                                                                        | No       |
| domain              | Restrict every query to a vertical domain                                    | "academic" \| "agriculture" \| "business" \| "code" \| "energy" \| "environment" \| "film" \| "finance" \| "gaming" \| "general" \| "health" \| "ip" \| "legal" \| "resource" \| "security" \| "social\_media" \| "travel" | No       |
| sub\_domain         | Sub-domain inside the domain, applied to every query (e.g. finance.quote)    | str                                                                                                                                                                                                                        | No       |
| sub\_domain\_params | Structured parameters for the shared sub\_domain                             | Dict\[str, Any]                                                                                                                                                                                                            | No       |

### Outputs

| Output  | Description                                | Type                         |
| ------- | ------------------------------------------ | ---------------------------- |
| error   | Error message if the operation failed      | str                          |
| results | One result group per query, in input order | List\[AnySearchQueryResults] |

### Possible use case

**Multi-angle research**: Fan out 2-5 phrasings or sub-topics of one question in parallel, then merge the groups for an LLM synthesis step.

**Single-vertical sweep**: Run several phrasings inside one shared vertical - e.g. domain=finance with sub\_domain=finance.quote and sub\_domain\_params {"type": "stock", "symbol": "NVDA"} applied to earnings, guidance, and analyst-rating queries at once.

**Bounded batch retrieval**: Fetch up to 5 independent lookups in one node while sharing the same credential and result shape.

***


# AnySearch Search

Blocks for web search with AnySearch, an AI-native search API covering general queries and 16 vertical domains. All blocks can call AnySearch anonymously (lower rate limit) or with an `ANYSEARCH_API_KEY` credential.

## AnySearch

### What it is

Searches the web using AnySearch - general queries plus vertical domains (finance, academic, health, legal, and more) via domain/sub\_domain filters

### How it works

The block sends the query to the AnySearch REST endpoint `POST https://api.anysearch.com/v1/search` (Bearer API-key auth when a credential is used; anonymous calls send no `Authorization` header) and parses a `{code, message, data}` envelope; a non-zero code or any HTTP/transport failure raises a block error instead of producing partial output. Each row in `data.results` becomes an AnySearchResult (title, url, snippet, content) and the `context` output renders the results as markdown for LLM use - that text is untrusted web content, so treat it as data, not instructions, before passing it to a model.

Leaving `sub_domain` empty runs a general search. Setting `sub_domain` picks a capability tag in `{domain}.{sub_domain}` form (e.g. `finance.quote` or `academic.search`) which is sent to the API as `tag`, and `sub_domain_params` is forwarded as `params` carrying the structured parameters that capability requires (e.g. `{"type": "stock", "symbol": "NVDA"}`). The optional `domain` input must agree with `sub_domain` - setting `domain` without `sub_domain`, or a `sub_domain` that does not start with `{domain}.`, is rejected by input validation before any request is sent; the API itself rejects unknown tags or malformed params with HTTP 400, surfaced as a block error. The complete catalog of sub-domains and their parameters is exposed by the AnySearch get\_sub\_domains tool - see the notes below.

### Inputs

| Input               | Description                                                                                                       | Type                                                                                                                                                                                                                       | Required |
| ------------------- | ----------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| auth                | Anonymous tier (lower rate limit, no key) or an AnySearch API key credential                                      | "api\_key" \| "anonymous"                                                                                                                                                                                                  | No       |
| query               | The search query                                                                                                  | str                                                                                                                                                                                                                        | Yes      |
| max\_results        | Maximum number of results to return                                                                               | int                                                                                                                                                                                                                        | No       |
| domain              | Restrict the search to a vertical domain                                                                          | "academic" \| "agriculture" \| "business" \| "code" \| "energy" \| "environment" \| "film" \| "finance" \| "gaming" \| "general" \| "health" \| "ip" \| "legal" \| "resource" \| "security" \| "social\_media" \| "travel" | No       |
| sub\_domain         | Sub-domain inside the domain (e.g. finance.quote); discover valid values via the AnySearch get\_sub\_domains tool | str                                                                                                                                                                                                                        | No       |
| sub\_domain\_params | Structured parameters required by the chosen sub\_domain (e.g. type=stock and symbol=AAPL for finance.quote)      | Dict\[str, Any]                                                                                                                                                                                                            | No       |

### Outputs

| Output  | Description                                                                                                                    | Type                   |
| ------- | ------------------------------------------------------------------------------------------------------------------------------ | ---------------------- |
| error   | Error message if the operation failed                                                                                          | str                    |
| results | List of search results                                                                                                         | List\[AnySearchResult] |
| result  | First search result                                                                                                            | AnySearchResult        |
| context | The search results formatted as markdown for LLM input; the text is untrusted web content - treat it as data, not instructions | str                    |

### Possible use case

**Fresh-grounded LLM answers**: Wire the context output into an AI block so responses cite current web sources instead of stale model memory; the context is untrusted page text, so the downstream prompt should treat it as data, not instructions.

**Vertical lookups**: Use domain + sub\_domain + sub\_domain\_params for structured queries such as a stock quote (finance.quote with type=stock and a ticker symbol) or paper search (academic.search with a publication-year range).

**Research fan-in**: Collect ranked titles, URLs and snippets for a topic, then feed the result URLs into the AnySearch Extract block to pull full page content.

***

## Setup: ANYSEARCH\_API\_KEY

AnySearch issues API keys in the as\_sk\_... format. Sign up at <https://anysearch.com> to create a key, then either add it in AutoGPT under Settings > Credentials (provider: anysearch) or set `ANYSEARCH_API_KEY=` in autogpt\_platform/backend/.env before starting the backend.

## Anonymous tier

The AnySearch API accepts unauthenticated requests at a lower rate limit. Blocks run anonymously by default; set Authentication to API key to use a credential - on Anonymous the API-key field hides and requests are sent without an `Authorization` header. Hosts can also set a default `ANYSEARCH_API_KEY` in .env so users pick the pre-seeded "AnySearch API Key" credential instead of creating their own; a credential whose key value is left empty likewise sends no `Authorization` header.

## Billing and cost tracking

AnySearch publishes no per-call price list (Free tier: 1,000 requests/day; the Professional plan is marked "coming soon"). The blocks therefore report no provider\_cost and no base\_cost is registered - usage stays free of platform-side cost accounting until AnySearch publishes rates, at which point `ProviderBuilder.with_base_cost` can be adopted.

## Vertical search parameters

* `domain` accepts: academic, agriculture, business, code, energy, environment, film, finance, gaming, general, health, ip, legal, resource, security, social\_media, travel.
* `sub_domain` is a capability name inside the domain, e.g. `finance.quote` (real-time and historical quotes), `finance.news` (financial news), `academic.search` (paper search), `academic.biomedical` (MEDLINE/PMC literature), `health.trial`, `legal.legislation`.
* `sub_domain_params` carries the parameters a sub-domain requires, e.g.:
  * `finance.quote`: `{"type": "stock", "symbol": "NVDA"}` (type is required: stock | forex | crypto | commodity | index | etf)
  * `finance.news`: `{"type": "general"}` or `{"type": "stock", "symbol": "AAPL"}`
  * `academic.search`: `{"sort": "cited_by_count:desc", "year_from": "2020", "category": "Computer Science"}`
* To enumerate the complete current catalog - every domain, sub-domain, and required vs optional parameter - call the AnySearch get\_sub\_domains tool through the MCP endpoint below; the catalog evolves faster than this page.

## Zero-code alternative: the MCP endpoint

AnySearch also exposes a Model Context Protocol server at `https://api.anysearch.com/mcp` (Bearer auth) with the tools search, batch\_search, get\_sub\_domains and extract. For one-off workflows you can wire a generic MCP block to that endpoint instead of these blocks; the REST blocks documented here are the recommended path for production graphs.


# Apollo Organization

Blocks for searching and retrieving organization data from Apollo's B2B database.

## Search Organizations

### What it is

Search for organizations in Apollo

### How it works

This block searches the Apollo database for organizations using various filters like employee count, location, and keywords. Apollo maintains a comprehensive database of company information for sales and marketing purposes.

Results can be filtered by headquarters location, excluded locations, industry keywords, and specific Apollo organization IDs.

### Inputs

| Input                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                     | Type       | Required |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------- | -------- |
| organization\_num\_employees\_range | The number range of employees working for the company. This enables you to find companies based on headcount. You can add multiple ranges to expand your search results. Each range you add needs to be a string, with the upper and lower numbers of the range separated only by a comma.                                                                                                                                                                                      | List\[int] | No       |
| organization\_locations             | The location of the company headquarters. You can search across cities, US states, and countries. If a company has several office locations, results are still based on the headquarters location. For example, if you search chicago but a company's HQ location is in boston, any Boston-based companies will not appear in your search results, even if they match other parameters. To exclude companies based on location, use the organization\_not\_locations parameter. | List\[str] | No       |
| organizations\_not\_locations       | Exclude companies from search results based on the location of the company headquarters. You can use cities, US states, and countries as locations to exclude. This parameter is useful for ensuring you do not prospect in an undesirable territory. For example, if you use ireland as a value, no Ireland-based companies will appear in your search results.                                                                                                                | List\[str] | No       |
| q\_organization\_keyword\_tags      | Filter search results based on keywords associated with companies. For example, you can enter mining as a value to return only companies that have an association with the mining industry.                                                                                                                                                                                                                                                                                     | List\[str] | No       |
| q\_organization\_name               | Filter search results to include a specific company name. If the value you enter for this parameter does not match with a company's name, the company will not appear in search results, even if it matches other parameters. Partial matches are accepted. For example, if you filter by the value marketing, a company called NY Marketing Unlimited would still be eligible as a search result, but NY Market Analysis would not be eligible.                                | str        | No       |
| organization\_ids                   | The Apollo IDs for the companies you want to include in your search results. Each company in the Apollo database is assigned a unique ID. To find IDs, identify the values for organization\_id when you call this endpoint.                                                                                                                                                                                                                                                    | List\[str] | No       |
| max\_results                        | The maximum number of results to return. If you don't specify this parameter, the default is 100.                                                                                                                                                                                                                                                                                                                                                                               | int        | No       |

### Outputs

| Output        | Description                            | Type                   |
| ------------- | -------------------------------------- | ---------------------- |
| error         | Error message if the search failed     | str                    |
| organizations | List of organizations found            | List\[Dict\[str, Any]] |
| organization  | Each found organization, one at a time | Dict\[str, Any]        |

### Possible use case

**Market Research**: Find companies matching specific criteria for market analysis.

**Lead List Building**: Build targeted lists of companies for outbound sales campaigns.

**Competitive Intelligence**: Research competitors and similar companies in your market.

***


# Apollo People

Blocks for searching people in Apollo's B2B contact database with various filters.

## Search People

### What it is

Search for people in Apollo

### How it works

This block searches Apollo's database for people based on job titles, seniority, location, company, and other criteria. It's designed for finding prospects and contacts for sales and marketing.

Enable enrich\_info to get detailed contact information including verified email addresses (costs more credits).

### Inputs

| Input                               | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            | Type                                                                                                                                   | Required |
| ----------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -------------------------------------------------------------------------------------------------------------------------------------- | -------- |
| person\_titles                      | Job titles held by the people you want to find. For a person to be included in search results, they only need to match 1 of the job titles you add. Adding more job titles expands your search results. Results also include job titles with the same terms, even if they are not exact matches. For example, searching for marketing manager might return people with the job title content marketing manager. Use this parameter in combination with the person\_seniorities\[] parameter to find people based on specific job functions and seniority levels.                                                                                                                                                                                                                                       | List\[str]                                                                                                                             | No       |
| person\_locations                   | The location where people live. You can search across cities, US states, and countries. To find people based on the headquarters locations of their current employer, use the organization\_locations parameter.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       | List\[str]                                                                                                                             | No       |
| person\_seniorities                 | The job seniority that people hold within their current employer. This enables you to find people that currently hold positions at certain reporting levels, such as Director level or senior IC level. For a person to be included in search results, they only need to match 1 of the seniorities you add. Adding more seniorities expands your search results. Searches only return results based on their current job title, so searching for Director-level employees only returns people that currently hold a Director-level title. If someone was previously a Director, but is currently a VP, they would not be included in your search results. Use this parameter in combination with the person\_titles\[] parameter to find people based on specific job functions and seniority levels. | List\["owner" \| "founder" \| "c\_suite" \| "partner" \| "vp" \| "head" \| "director" \| "manager" \| "senior" \| "entry" \| "intern"] | No       |
| organization\_locations             | The location of the company headquarters for a person's current employer. You can search across cities, US states, and countries. If a company has several office locations, results are still based on the headquarters location. For example, if you search chicago but a company's HQ location is in boston, people that work for the Boston-based company will not appear in your results, even if they match other parameters. To find people based on their personal location, use the person\_locations parameter.                                                                                                                                                                                                                                                                              | List\[str]                                                                                                                             | No       |
| q\_organization\_domains            | The domain name for the person's employer. This can be the current employer or a previous employer. Do not include [www](http://www)., the @ symbol, or similar. You can add multiple domains to search across companies. Examples: apollo.io and microsoft.com                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        | List\[str]                                                                                                                             | No       |
| contact\_email\_statuses            | The email statuses for the people you want to find. You can add multiple statuses to expand your search.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | List\["verified" \| "unverified" \| "likely\_to\_engage" \| "unavailable"]                                                             | No       |
| organization\_ids                   | The Apollo IDs for the companies (employers) you want to include in your search results. Each company in the Apollo database is assigned a unique ID. To find IDs, call the Organization Search endpoint and identify the values for organization\_id.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | List\[str]                                                                                                                             | No       |
| organization\_num\_employees\_range | The number range of employees working for the company. This enables you to find companies based on headcount. You can add multiple ranges to expand your search results. Each range you add needs to be a string, with the upper and lower numbers of the range separated only by a comma.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | List\[int]                                                                                                                             | No       |
| q\_keywords                         | A string of words over which we want to filter the results                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             | str                                                                                                                                    | No       |
| max\_results                        | The maximum number of results to return. If you don't specify this parameter, the default is 25. Limited to 500 to prevent overspending.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               | int                                                                                                                                    | No       |
| enrich\_info                        | Whether to enrich contacts with detailed information including real email addresses. This will double the search cost.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                 | bool                                                                                                                                   | No       |

### Outputs

| Output | Description                        | Type                   |
| ------ | ---------------------------------- | ---------------------- |
| error  | Error message if the search failed | str                    |
| people | List of people found               | List\[Dict\[str, Any]] |

### Possible use case

**Prospecting**: Find decision-makers at target companies for outbound sales.

**Recruiting**: Search for candidates with specific titles and experience.

**ABM Campaigns**: Build contact lists at specific accounts for account-based marketing.

***


# Apollo Person

Blocks for enriching individual person data including contact details and email discovery.

## Get Person Detail

### What it is

Get detailed person data with Apollo API, including email reveal

### How it works

This block enriches person data using Apollo's API. You can look up by Apollo person ID for best accuracy, or match by name plus company information, LinkedIn URL, or email address.

Returns comprehensive contact details including email addresses (if available), job title, company information, and social profiles.

### Inputs

| Input            | Description                                                                 | Type | Required |
| ---------------- | --------------------------------------------------------------------------- | ---- | -------- |
| person\_id       | Apollo person ID to enrich (most accurate method)                           | str  | No       |
| first\_name      | First name of the person to enrich                                          | str  | No       |
| last\_name       | Last name of the person to enrich                                           | str  | No       |
| name             | Full name of the person to enrich (alternative to first\_name + last\_name) | str  | No       |
| email            | Known email address of the person (helps with matching)                     | str  | No       |
| domain           | Company domain of the person (e.g., 'google.com')                           | str  | No       |
| company          | Company name of the person                                                  | str  | No       |
| linkedin\_url    | LinkedIn URL of the person                                                  | str  | No       |
| organization\_id | Apollo organization ID of the person's company                              | str  | No       |
| title            | Job title of the person to enrich                                           | str  | No       |

### Outputs

| Output  | Description                        | Type            |
| ------- | ---------------------------------- | --------------- |
| error   | Error message if enrichment failed | str             |
| contact | Enriched contact information       | Dict\[str, Any] |

### Possible use case

**Contact Enrichment**: Get full contact details from partial information like name and company.

**Email Discovery**: Find verified email addresses for outreach campaigns.

**Profile Completion**: Fill in missing contact details in your CRM or database.

***


# Ayrshare Post To Bluesky

Blocks for posting content to Bluesky using the Ayrshare social media management API.

## Post To Bluesky

### What it is

Post to Bluesky using Ayrshare

### How it works

This block uses Ayrshare's social media API to publish content to Bluesky. It handles text posts (up to 300 characters), images (up to 4), and video content with support for scheduling, accessibility features like alt text, and link shortening.

The block authenticates through your Ayrshare credentials and sends the post data to Ayrshare's unified API, which then publishes to Bluesky. It returns post identifiers and status information upon completion, or error details if the operation fails.

### Inputs

| Input              | Description                                                                                         | Type            | Required |
| ------------------ | --------------------------------------------------------------------------------------------------- | --------------- | -------- |
| post               | The post text to be published (max 300 characters for Bluesky)                                      | str             | No       |
| media\_urls        | Optional list of media URLs to include. Bluesky supports up to 4 images or 1 video.                 | List\[str]      | No       |
| is\_video          | Whether the media is a video. Set to True when uploading a video so billing applies the video tier. | bool            | No       |
| schedule\_date     | UTC datetime for scheduling (YYYY-MM-DDThh:flag\_mm:ssZ)                                            | str (date-time) | No       |
| disable\_comments  | Whether to disable comments                                                                         | bool            | No       |
| shorten\_links     | Whether to shorten links                                                                            | bool            | No       |
| unsplash           | Unsplash image configuration                                                                        | str             | No       |
| requires\_approval | Whether to enable approval workflow                                                                 | bool            | No       |
| random\_post       | Whether to generate random post text                                                                | bool            | No       |
| random\_media\_url | Whether to generate random media                                                                    | bool            | No       |
| notes              | Additional notes for the post                                                                       | str             | No       |
| alt\_text          | Alt text for each media item (accessibility)                                                        | List\[str]      | No       |

### Outputs

| Output       | Description                           | Type         |
| ------------ | ------------------------------------- | ------------ |
| error        | Error message if the operation failed | str          |
| post\_result | The result of the post                | PostResponse |
| post         | The result of the post                | PostIds      |

### Possible use case

**Cross-Platform Publishing**: Automatically share content across Bluesky and other social networks from a single workflow.

**Scheduled Content Calendar**: Queue up posts with specific publishing times to maintain consistent presence on Bluesky.

**Visual Content Sharing**: Share image galleries with accessibility-friendly alt text for photo-focused content strategies.

***


# Ayrshare Post To Facebook

Blocks for posting content to Facebook Pages using the Ayrshare social media management API.

## Post To Facebook

### What it is

Post to Facebook using Ayrshare

### How it works

This block uses Ayrshare's social media API to publish content to Facebook Pages. It supports text posts, images, videos, carousels (2-10 items), Reels, and Stories, with features like audience targeting by age and country, location tagging, and scheduling.

The block authenticates through Ayrshare and leverages the Meta Graph API to handle various Facebook-specific formats. Advanced options include draft mode for Meta Business Suite, custom link previews, and video thumbnails. Results include post IDs for tracking engagement.

### Inputs

| Input                    | Description                                                                                                      | Type                | Required |
| ------------------------ | ---------------------------------------------------------------------------------------------------------------- | ------------------- | -------- |
| post                     | The post text to be published                                                                                    | str                 | No       |
| media\_urls              | Optional list of media URLs to include. Set is\_video in advanced settings to true if you want to upload videos. | List\[str]          | No       |
| is\_video                | Whether the media is a video. Set to True when uploading a video so billing applies the video tier.              | bool                | No       |
| schedule\_date           | UTC datetime for scheduling (YYYY-MM-DDThh:flag\_mm:ssZ)                                                         | str (date-time)     | No       |
| disable\_comments        | Whether to disable comments                                                                                      | bool                | No       |
| shorten\_links           | Whether to shorten links                                                                                         | bool                | No       |
| unsplash                 | Unsplash image configuration                                                                                     | str                 | No       |
| requires\_approval       | Whether to enable approval workflow                                                                              | bool                | No       |
| random\_post             | Whether to generate random post text                                                                             | bool                | No       |
| random\_media\_url       | Whether to generate random media                                                                                 | bool                | No       |
| notes                    | Additional notes for the post                                                                                    | str                 | No       |
| is\_carousel             | Whether to post a carousel                                                                                       | bool                | No       |
| carousel\_link           | The URL for the 'See More At' button in the carousel                                                             | str                 | No       |
| carousel\_items          | List of carousel items with name, link and picture URLs. Min 2, max 10 items.                                    | List\[CarouselItem] | No       |
| is\_reels                | Whether to post to Facebook Reels                                                                                | bool                | No       |
| reels\_title             | Title for the Reels video (max 255 chars)                                                                        | str                 | No       |
| reels\_thumbnail         | Thumbnail URL for Reels video (JPEG/PNG, <10MB)                                                                  | str                 | No       |
| is\_story                | Whether to post as a Facebook Story                                                                              | bool                | No       |
| media\_captions          | Captions for each media item                                                                                     | List\[str]          | No       |
| location\_id             | Facebook Page ID or name for location tagging                                                                    | str                 | No       |
| age\_min                 | Minimum age for audience targeting (13,15,18,21,25)                                                              | int                 | No       |
| target\_countries        | List of country codes to target (max 25)                                                                         | List\[str]          | No       |
| alt\_text                | Alt text for each media item                                                                                     | List\[str]          | No       |
| video\_title             | Title for video post                                                                                             | str                 | No       |
| video\_thumbnail         | Thumbnail URL for video post                                                                                     | str                 | No       |
| is\_draft                | Save as draft in Meta Business Suite                                                                             | bool                | No       |
| scheduled\_publish\_date | Schedule publish time in Meta Business Suite (UTC)                                                               | str                 | No       |
| preview\_link            | URL for custom link preview                                                                                      | str                 | No       |

### Outputs

| Output       | Description                           | Type         |
| ------------ | ------------------------------------- | ------------ |
| error        | Error message if the operation failed | str          |
| post\_result | The result of the post                | PostResponse |
| post         | The result of the post                | PostIds      |

### Possible use case

**Product Launches**: Create carousel posts showcasing multiple product images with links to purchase pages.

**Event Promotion**: Share event details with age-targeted reach and location tagging for local business events.

**Short-Form Video**: Automatically publish Reels with custom thumbnails to maximize video content reach.

***


# Ayrshare Post To GMB

Blocks for posting content to Google My Business profiles using the Ayrshare social media management API.

## Post To GMB

### What it is

Post to Google My Business using Ayrshare

### How it works

This block uses Ayrshare's API to publish content to Google My Business profiles. It supports standard posts, photo/video posts (categorized by type like exterior, interior, product), and special post types including events and promotional offers with coupon codes.

The block integrates with Google's Business Profile API through Ayrshare, enabling call-to-action buttons (book, order, shop, learn more, sign up, call), event scheduling with start/end dates, and promotional offers with terms and redemption URLs.

### Inputs

| Input                      | Description                                                                                                                               | Type            | Required |
| -------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------- | --------------- | -------- |
| post                       | The post text to be published                                                                                                             | str             | No       |
| media\_urls                | Optional list of media URLs. GMB supports only one image or video per post.                                                               | List\[str]      | No       |
| is\_video                  | Whether the media is a video. Set to True when uploading a video so billing applies the video tier.                                       | bool            | No       |
| schedule\_date             | UTC datetime for scheduling (YYYY-MM-DDThh:flag\_mm:ssZ)                                                                                  | str (date-time) | No       |
| disable\_comments          | Whether to disable comments                                                                                                               | bool            | No       |
| shorten\_links             | Whether to shorten links                                                                                                                  | bool            | No       |
| unsplash                   | Unsplash image configuration                                                                                                              | str             | No       |
| requires\_approval         | Whether to enable approval workflow                                                                                                       | bool            | No       |
| random\_post               | Whether to generate random post text                                                                                                      | bool            | No       |
| random\_media\_url         | Whether to generate random media                                                                                                          | bool            | No       |
| notes                      | Additional notes for the post                                                                                                             | str             | No       |
| is\_photo\_video           | Whether this is a photo/video post (appears in Photos section)                                                                            | bool            | No       |
| photo\_category            | Category for photo/video: cover, profile, logo, exterior, interior, product, at\_work, food\_and\_drink, menu, common\_area, rooms, teams | str             | No       |
| call\_to\_action\_type     | Type of action button: 'book', 'order', 'shop', 'learn\_more', 'sign\_up', or 'call'                                                      | str             | No       |
| call\_to\_action\_url      | URL for the action button (not required for 'call' action)                                                                                | str             | No       |
| event\_title               | Event title for event posts                                                                                                               | str             | No       |
| event\_start\_date         | Event start date in ISO format (e.g., '2024-03-15T09:00:00Z')                                                                             | str             | No       |
| event\_end\_date           | Event end date in ISO format (e.g., '2024-03-15T17:00:00Z')                                                                               | str             | No       |
| offer\_title               | Offer title for promotional posts                                                                                                         | str             | No       |
| offer\_start\_date         | Offer start date in ISO format (e.g., '2024-03-15T00:00:00Z')                                                                             | str             | No       |
| offer\_end\_date           | Offer end date in ISO format (e.g., '2024-04-15T23:59:59Z')                                                                               | str             | No       |
| offer\_coupon\_code        | Coupon code for the offer (max 58 characters)                                                                                             | str             | No       |
| offer\_redeem\_online\_url | URL where customers can redeem the offer online                                                                                           | str             | No       |
| offer\_terms\_conditions   | Terms and conditions for the offer                                                                                                        | str             | No       |

### Outputs

| Output       | Description                           | Type         |
| ------------ | ------------------------------------- | ------------ |
| error        | Error message if the operation failed | str          |
| post\_result | The result of the post                | PostResponse |
| post         | The result of the post                | PostIds      |

### Possible use case

**Local Business Updates**: Post daily specials, new arrivals, or service announcements directly to your Google Business Profile.

**Promotional Campaigns**: Create time-limited offers with coupon codes and online redemption links to drive sales.

**Event Marketing**: Announce upcoming events with dates, descriptions, and call-to-action buttons for reservations.

***


# Ayrshare Post To Instagram

Blocks for posting content to Instagram using the Ayrshare social media management API.

## Post To Instagram

### What it is

Post to Instagram using Ayrshare. Requires a Business or Creator Instagram Account connected with a Facebook Page

### How it works

This block uses Ayrshare's API to publish content to Instagram Business or Creator accounts. It supports feed posts, Stories (24-hour expiration), Reels, and carousels (up to 10 images/videos), with features like collaborator invitations, location tagging, and user tags with coordinates.

The block requires an Instagram account connected to a Facebook Page and authenticates through Meta's Graph API via Ayrshare. Instagram-specific features include auto-resize for optimal dimensions, audio naming for Reels, and thumbnail customization with frame offset control.

### Inputs

| Input              | Description                                                                                                                                             | Type                   | Required |
| ------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------- | -------- |
| post               | The post text (max 2,200 chars, up to 30 hashtags, 3 @mentions)                                                                                         | str                    | No       |
| media\_urls        | Optional list of media URLs. Instagram supports up to 10 images/videos in a carousel.                                                                   | List\[str]             | No       |
| is\_video          | Whether the media is a video. Set to True when uploading a video so billing applies the video tier.                                                     | bool                   | No       |
| schedule\_date     | UTC datetime for scheduling (YYYY-MM-DDThh:flag\_mm:ssZ)                                                                                                | str (date-time)        | No       |
| disable\_comments  | Whether to disable comments                                                                                                                             | bool                   | No       |
| shorten\_links     | Whether to shorten links                                                                                                                                | bool                   | No       |
| unsplash           | Unsplash image configuration                                                                                                                            | str                    | No       |
| requires\_approval | Whether to enable approval workflow                                                                                                                     | bool                   | No       |
| random\_post       | Whether to generate random post text                                                                                                                    | bool                   | No       |
| random\_media\_url | Whether to generate random media                                                                                                                        | bool                   | No       |
| notes              | Additional notes for the post                                                                                                                           | str                    | No       |
| is\_story          | Whether to post as Instagram Story (24-hour expiration)                                                                                                 | bool                   | No       |
| share\_reels\_feed | Whether Reel should appear in both Feed and Reels tabs                                                                                                  | bool                   | No       |
| audio\_name        | Audio name for Reels (e.g., 'The Weeknd - Blinding Lights')                                                                                             | str                    | No       |
| thumbnail          | Thumbnail URL for Reel video                                                                                                                            | str                    | No       |
| thumbnail\_offset  | Thumbnail frame offset in milliseconds (default: 0)                                                                                                     | int                    | No       |
| alt\_text          | Alt text for each media item (up to 1,000 chars each, accessibility feature), each item in the list corresponds to a media item in the media\_urls list | List\[str]             | No       |
| location\_id       | Facebook Page ID or name for location tagging (e.g., '7640348500' or '@guggenheimmuseum')                                                               | str                    | No       |
| user\_tags         | List of users to tag with coordinates for images                                                                                                        | List\[Dict\[str, Any]] | No       |
| collaborators      | Instagram usernames to invite as collaborators (max 3, public accounts only)                                                                            | List\[str]             | No       |
| auto\_resize       | Auto-resize images to 1080x1080px for Instagram                                                                                                         | bool                   | No       |

### Outputs

| Output       | Description                           | Type         |
| ------------ | ------------------------------------- | ------------ |
| error        | Error message if the operation failed | str          |
| post\_result | The result of the post                | PostResponse |
| post         | The result of the post                | PostIds      |

### Possible use case

**Influencer Collaborations**: Create posts with collaborator tags to feature brand partnerships across multiple accounts.

**E-commerce Product Showcases**: Share carousel posts of product images with location tags for local discovery.

**Reels Automation**: Automatically publish short-form video content with custom thumbnails and trending audio.

***


# Ayrshare Post To LinkedIn

Blocks for posting content to LinkedIn using the Ayrshare social media management API.

## Post To LinkedIn

### What it is

Post to LinkedIn using Ayrshare

### How it works

This block uses Ayrshare's social media API to post content to LinkedIn. It handles text posts, images, videos, and documents, with support for scheduling and audience targeting. The block authenticates through Ayrshare's API.

LinkedIn-specific features include visibility controls, comment management, and targeting by country, seniority, industry, and other demographics (requires 300+ followers in the target audience).

### Inputs

| Input                           | Description                                                                                                                         | Type            | Required |
| ------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------- | --------------- | -------- |
| post                            | The post text (max 3,000 chars, hashtags supported with #)                                                                          | str             | No       |
| media\_urls                     | Optional list of media URLs. LinkedIn supports up to 9 images, videos, or documents (PPT, PPTX, DOC, DOCX, PDF <100MB, <300 pages). | List\[str]      | No       |
| is\_video                       | Whether the media is a video. Set to True when uploading a video so billing applies the video tier.                                 | bool            | No       |
| schedule\_date                  | UTC datetime for scheduling (YYYY-MM-DDThh:flag\_mm:ssZ)                                                                            | str (date-time) | No       |
| disable\_comments               | Whether to disable comments                                                                                                         | bool            | No       |
| shorten\_links                  | Whether to shorten links                                                                                                            | bool            | No       |
| unsplash                        | Unsplash image configuration                                                                                                        | str             | No       |
| requires\_approval              | Whether to enable approval workflow                                                                                                 | bool            | No       |
| random\_post                    | Whether to generate random post text                                                                                                | bool            | No       |
| random\_media\_url              | Whether to generate random media                                                                                                    | bool            | No       |
| notes                           | Additional notes for the post                                                                                                       | str             | No       |
| visibility                      | Post visibility: 'public' (default), 'connections' (personal only), 'loggedin'                                                      | str             | No       |
| alt\_text                       | Alt text for each image (accessibility feature, not supported for videos/documents)                                                 | List\[str]      | No       |
| titles                          | Title/caption for each image or video                                                                                               | List\[str]      | No       |
| document\_title                 | Title for document posts (max 400 chars, uses filename if not specified)                                                            | str             | No       |
| thumbnail                       | Thumbnail URL for video (PNG/JPG, same dimensions as video, <10MB)                                                                  | str             | No       |
| targeting\_countries            | Country codes for targeting (e.g., \['US', 'IN', 'DE', 'GB']). Requires 300+ followers in target audience.                          | List\[str]      | No       |
| targeting\_seniorities          | Seniority levels for targeting (e.g., \['Senior', 'VP']). Requires 300+ followers in target audience.                               | List\[str]      | No       |
| targeting\_degrees              | Education degrees for targeting. Requires 300+ followers in target audience.                                                        | List\[str]      | No       |
| targeting\_fields\_of\_study    | Fields of study for targeting. Requires 300+ followers in target audience.                                                          | List\[str]      | No       |
| targeting\_industries           | Industry categories for targeting. Requires 300+ followers in target audience.                                                      | List\[str]      | No       |
| targeting\_job\_functions       | Job function categories for targeting. Requires 300+ followers in target audience.                                                  | List\[str]      | No       |
| targeting\_staff\_count\_ranges | Company size ranges for targeting. Requires 300+ followers in target audience.                                                      | List\[str]      | No       |

### Outputs

| Output       | Description                           | Type         |
| ------------ | ------------------------------------- | ------------ |
| error        | Error message if the operation failed | str          |
| post\_result | The result of the post                | PostResponse |
| post         | The result of the post                | PostIds      |

### Possible use case

**Thought Leadership**: Automatically share blog posts or industry insights with a professional network.

**Scheduled Content**: Queue up a week's worth of LinkedIn posts with scheduled publishing times.

**Targeted Announcements**: Share company updates targeted to specific industries or seniority levels.

***




---

[Next Page](https://agpt.co/docs/llms-full.txt/1)

