munders.← Back to the journal

Agentforce · DevOps

Research draft · Findings not yet published

Deploying an Agent Script agent into a clean scratch org

A developer reports a successful metadata deployment but an unusable agent with no assigned user in the new scratch org.

This page is a starting point for my own investigation. It does not yet provide a tested solution.

Read the original community question ↗

What I’ll investigate

  • Reproduce the deployment in a clean, correctly provisioned scratch org.
  • Identify required metadata, identity setup, and supported post-deployment steps.

Research findings

Pending research. I’ll record the reproduction, org prerequisites, release version, and relevant official documentation here.

Solution or simplified workaround

Pending validation. I’ll explain when to use it, the smallest steps, the expected result, limitations, and how to undo it.

Validation

Not yet tested. I’ll document normal and failure cases, the intended user’s permissions, and bulk or retry behavior where relevant.

Could this become a reusable tool?

A deployment checklist or small CLI utility.

An idea to evaluate after testing the simplest supported solution and checking existing Salesforce features.

← Explore the other research drafts