Merchandising
AuraScore 79/100

Real-Time Dynamic Bundling Agent Workflow Specification

Design an autonomous tool-calling pipeline that creates and prices high-margin product bundles dynamically in real time.

Deploy this template when building an autonomous bundling service that listens to cart events, evaluates margin constraints, and dynamically generates customized product kits. It outlines tool chains, validation rules, and latency limits.

Template

Role: Lead E-commerce Merchandising Automation Engineer specializing in agentic systems and dynamic pricing.

Context

  • Storefront platform: {{storefront_platform}}
  • Target customer segment: {{target_customer_tier}}
  • Bundle recommendation engine: {{bundle_rule_engine}}
  • Minimum combined basket margin: {{min_basket_margin}}
  • Maximum allowable agent latency: {{max_tool_invocation_latency_ms}}
  • Human supervisor escalation threshold: {{human_override_threshold}}

Task

Produce an end-to-end technical workflow specification for an autonomous agent that intercepts customer basket events, calls recommendation and pricing tools, and publishes dynamically generated product bundles to {{storefront_platform}}.

Method

  1. Define the event hook listener structure capturing cart state changes for {{target_customer_tier}} customers.
  2. Construct the tool-calling signature for the candidate generator calling {{bundle_rule_engine}} with current basket IDs.
  3. Specify the margin evaluation tool schema that calculates composite discount eligibility against {{min_basket_margin}}.
  4. Build the dynamic bundle injection tool definition compatible with {{storefront_platform}} checkout APIs.
  5. Map the sequential execution DAG ensuring strict evaluation of margin rules prior to basket injection.
  6. Incorporate a timeout budget enforcement step ensuring total chain latency remains under {{max_tool_invocation_latency_ms}}.
  7. Establish the risk rating heuristic that pauses autonomous publication and escalates to {{human_override_threshold}} when anomalies arise.

Constraints

  • Dynamic bundle discounts MUST NOT breach the {{min_basket_margin}} boundary under any condition.
  • The agent MUST terminate execution gracefully if API latency exceeds {{max_tool_invocation_latency_ms}}.
  • Tool parameter declarations must strictly enforce integer prices and string SKU formats.
  • No bundle may be injected without an automated inventory stock reservation check.

Output format

Provide the completed specification structured in these exact sections:

  1. Pipeline Summary (1 paragraph, max 150 words)
  2. Agent Tool Definitions (JSON schemas for 3 distinct tools)
  3. Workflow State Machine (state transitions and decision branches)
  4. Risk Control & Escalation Criteria (table format)

Self-review

  • Confirm that latency constraints are enforced at each tool invocation step.
  • Validate that human escalation boundaries are distinct, measurable, and complete.
  • Check that all parameter schemas match standard JSON schema conventions.
AuraScore breakdown
79/100Provisional
Instruction clarity15/15 · Strong

Explicit role, a named task, and discrete steps the model can follow.

Context architecture12/12 · Strong

Background, inputs and variables the model needs before it starts.

Constraint engineering10/12 · Adequate

Hard boundaries — what the model must and must not do.

Output specification6/14 · Thin

A named, field-level shape for the response.

Reasoning structure10/10 · Strong

Ordered work items that force analysis before an answer.

Model compatibility10/10 · Strong

Length and structure that travel across frontier models.

Token efficiency5/10 · Thin

Signal density — instruction weight without padding.

Reusability7/7 · Strong

Documented variables so the scaffold adapts to new inputs.

Robustness3/5 · Adequate

Quality bar, assumptions and behaviour when inputs are thin.

Observed performance1/5 · Thin

How much real usage the template has behind it.

ecommerce-retail
ecom-merchandising
autonomous-agents-workflows
dynamic-bundling
e-commerce-agent
pricing-engine