Manuel Roldán
LinkedIn GitHub CV ES
Manuel Roldán

Agentforce agent for delivery companies

Pivot

Check whether it fits before the truck leaves.

What
Agentforce agent
Status
Entered in #AgentforceInAction, result pending
For
Furniture delivery companies
Stack
Agent Script, Apex and Lightning Web Components. Python with NumPy, Shapely and FCL
What
Agentforce agent
Status
Entered in #AgentforceInAction, result pending
For
Furniture delivery companies
Stack
Agent Script, Apex and Lightning Web Components. Python with NumPy, Shapely and FCL

The problem

Large furniture deliveries fail at the door because people measure the box, not the item. By the box, the armchair doesn’t fit; on its side, it does. Pivot proves what fits before the truck leaves and leaves the final decision to a person.

Box

78 cm

The armchair’s box.

Door

76.6 cm

On paper, it doesn’t fit.

Clearance

1.17 cm

On its side, the armchair gets through.

door 76.6 cm · box 78 cm

Real shape versus box

The planner (RRT-Connect) searches for the manoeuvre in 3D with every part of the item. If the box can’t fit through the door, it keeps that as separate proof.

Agentforce · Live Test

A conversation with the coordinator

The coordinator asks in plain language. The agent starts the analysis, checks the product manual and explains the result.

Human approval · APPROVED

Human approval

The approved plan is bound to its hash. If the plan, the analysis or the delivery changes, it is no longer valid.

Verified maneuver · FEASIBLE

3D viewer inside Salesforce

Replays the verified manoeuvre and jumps to the point with the least clearance.

Engineering

Only a person with permission can approve a plan.

Agentforce

Agent Script

  • A router and two subagents
  • Five Apex actions
  • No approval action
invocable actions

Salesforce

Apex, LWC and custom objects

  • Analysis queue with a SHA-256 hash
  • Approval behind its own permission
  • 3D viewer in LWC, no libraries
queue read via SOQL

Python worker

no public endpoint

  • RRT-Connect planner
  • Independent verifier with FCL
  • Only uploads verified results
  1. The agent can’t approve

    Approving requires a permission the agent doesn’t have, a plan’s author can’t approve it, and the server recomputes the hash before accepting.

  2. Independent verification

    The verifier shares no code with the planner. It replays every trajectory and measures, with FCL, the distance between every part and every obstacle every 2 mm. All 367 stored trajectories pass with no collisions.

  3. Limits and removable parts

    It reads from the manual how far each product may tilt; for the fridge, Apex enforces a 45° maximum. It only removes what the record allows: with its legs off, the sofa clears by 1.12 cm.

  4. Red team

    I tested prompt injection in the notes and the manual, fake approvals, invented results and pressure to tip the fridge to 90°.

    First versionfailed 3 of 14
    Final versionwithstood 24 of 24

The result

Entered in Trailhead’s #AgentforceInAction contest, result pending. All 367 stored trajectories pass verification with no collisions, and the final version withstood all 24 red-team attacks.

The checks hold within the geometric model: rigid parts and known measurements. Public or synthetic data, in a developer org. If it finds no route, Pivot recommends a site survey.