Skip to content

Build Agent

Build Agent is where you define and test an Agent.

An Agent is a reusable workflow. It can use a Model, instructions, APIs, Skills, and credentials to do real work.

What an Agent is

An Agent is not just a prompt.

It is a saved configuration that answers four questions:

QuestionExample
What should it do?Research a company and return a sourced report
How should it think?Use a reasoning Model with clear instructions
What can it use?Search API, scrape API, internal Skills
How does it run?Manual test, published endpoint, or schedule

Build first, connect later

SandBase separates building from delivery:

  1. Build Agent — define and test the Agent.
  2. Services — expose a tested Agent to your app, users, or Setup.
  3. Schedules — run a tested Agent on a timer.
  4. Sessions — inspect persistent Agent interaction and event history.

This keeps the workflow easy to understand: build the Agent once, then decide how it should be used.

Agent lifecycle: Draft → Test → Service or Schedule → Session

1. Draft

Create an Agent with a clear name, outcome, Model, instructions, and expected output. Add APIs when it needs data or actions, Skills when it needs reusable know-how, and credentials when an API requires authentication.

Start with the smallest useful workflow. A focused Agent is easier to test, observe, and reuse than one broad prompt that tries to do everything.

2. Test

Run the draft in the Console with representative input. Inspect the final output, tool calls, timing, errors, and cost. Refine instructions and tools until both successful and failure cases behave predictably.

Do not publish a draft just because one happy-path test succeeded. Test missing input, unavailable tools, empty results, and output-format requirements.

3. Publish

Publish a tested version as a Service when an application, teammate, or Setup needs a stable callable Agent. A Service is backed by an Endpoint API resource and preserves the editable draft.

4. Schedule

Create a Schedule when the Agent should run later or repeatedly. Choose the Agent/version, cadence, input, and delivery behavior. A Schedule does not require a Service. Use Schedules for recurring reports, monitoring, synchronization, and routine operations.

5. Inspect Sessions

A direct or Service interaction is represented by a Session. Every Schedule trigger creates a separate DeploymentRun record and, on success, a new Session. Inspect Session events for Agent input, output, tool activity, and errors.

Production checklist

  • instructions define the expected result and failure behavior
  • only necessary APIs and Skills are enabled
  • API credentials are stored securely and injected as environment variables only at runtime, never placed in prompts
  • representative inputs and failure cases have been tested
  • a stable version is published before external use
  • scheduled work has an owner and a clear destination
  • Sessions and Schedule trigger records are reviewed after launch

Store Agents

Store Agents are examples and best practices.

You can test a public Agent, but if you need to change it, clone it into your workspace first. The cloned version becomes your Agent.

Next steps