Folder

AI Blocks

AI blocks add language-model reasoning and generation to a workflow. The current catalog provides AI Agent (ai.generate), which can use a Builders model or a configured private AI agent, receive runtime data and files, maintain optional conversation memory, and call explicitly approved tools.

AI Agent is an executable workflow block. It is separate from the AI Designer Assistant, which helps people edit a workflow in the Designer. AI Agent runs as part of the workflow itself and its result is passed to downstream blocks.

Understand the execution boundary

An AI Agent execution follows this sequence:

workflow input
  -> prompt templates and optional file attachments
  -> selected model source
  -> optional conversation history
  -> zero or more approved tool calls
  -> text or structured output
  -> Out or Error

The model does not automatically gain access to the entire project. It receives the rendered prompt, configured attachments, retained conversation history when memory is enabled, and only the tools explicitly enabled in the block.

Choose an AI source

AI Agent can use one of three source classes:

SourceCredentials and modelUsage modelTypical use
Builders Free AIPlatform-managed modelAI usage is free, globally queued; workflow execution still consumes compute tokensDevelopment, interactive tests, and non-urgent experiments
Boilerplate Pro AIPlatform-managed premium modelConsumes the billing owner's available AI-token balance in addition to workflow computeProduction tasks that need the premium platform source
Private or team AI agentProvider, model, credentials, and defaults configured in AI AgentsProvider usage is billed through the connected provider; workflow execution still consumes compute tokensOrganization-controlled providers, models, limits, and credentials

Source availability, model names, context limits, and balances can change. Read the source card in the block settings before publishing rather than relying on a model name copied from an older workflow or screenshot.

The settings are deliberately divided into independent panels. Treat each panel as a separate design decision rather than configuring the block as one large prompt form.

The seven AI Agent configuration panels in Block SettingsThe seven AI Agent configuration panels in Block Settings

PanelDecision it controls
ModelBuilders or private source, provider defaults, system prompt override, temperature, and maximum output tokens
PromptTemplate-enabled user instruction built from workflow input, Vault values, and run data
Attachment sourcesCanonical File or File array values made available to a model that supports their media types
OutputFree-form text or a response constrained by a JSON Schema
ToolsExplicit actions the model may request, including tools backed by selected integrations
MemoryStateless execution or retained conversation history keyed by a conversation identifier
AdvancedProvider timeout and execution controls

AI Agent documentation

AI Agent will be documented as a nested section instead of one oversized article:

ArticleScope
AI Agent OverviewEnd-to-end data flow, ports, configuration order, and the relationship between the detailed topics
Choose a Model Source and Control UsageBuilders Free, Builders Pro, private and team agents, defaults, context limits, compute tokens, AI tokens, and provider billing
Write Prompts and Tune GenerationPrompt templates, system prompt overrides, temperature, maximum tokens, timeouts, and prompt-data boundaries
Return Structured OutputJSON Schema, schema validation, downstream contracts, and failures caused by invalid model output
Use Conversation MemoryConversation IDs, history limits, isolation between users or threads, stored exchanges, and stateless alternatives
Attach Files to an AI AgentCanonical File and File array sources, model media capabilities, attachment modes, limits, and unsupported inputs
Configure Tools and IntegrationsTool allowlisting, integration selection, MCP enablement, permissions, side effects, and least-privilege design
Test Runs, Output, Usage, and ErrorsOut and Error, tool-call inspection, usage, provider errors, timeouts, retries, and production verification

This division follows the product settings while keeping cross-cutting runtime behavior in the overview and testing articles.

Design an AI step safely

  1. Define the exact task and the downstream output contract.
  2. Choose the model source according to capability, latency, cost, and credential ownership.
  3. Pass only the input and files required for that task.
  4. Prefer stateless execution unless the workflow has a stable conversation identifier and a clear need for history.
  5. Enable the smallest possible set of tools and integrations.
  6. Use structured output when downstream blocks require predictable fields.
  7. Connect and test the Error path for provider, schema, tool, and timeout failures.
  8. Inspect usage and external side effects before publishing.

Do not place provider credentials or unrelated sensitive data in prompts, schemas, labels, or screenshots. Store credentials in private or team AI-agent configuration and use Vault-backed values only where the model genuinely needs them.

Distinguish data access from tool access

Prompt data and tools are different capabilities:

  • a template such as {{input.registration.attendeeEmail}} gives the model that rendered value;
  • an attachment gives it the selected canonical File content when supported by the model;
  • memory gives it retained messages for the resolved conversation ID;
  • a tool gives it permission to request a specific operation during execution;
  • an integration authorizes an integration-backed tool against an external service.

Selecting an AI model does not automatically grant Slack, Drive, email, database, or other integration access. Those capabilities must be enabled as tools and, where required, bound to an eligible integration.

Next steps

Explore this folder

Boilerplate Wiki - AI Blocks