Skip to main content
StateSet’s Rust engines give your application and AI agents two complementary capabilities: operate commerce records and coordinate work across systems over time. MCP exposes selected operations as tools your assistant can discover and call. You do not need to write Rust to start. Use the embedded engine through a supported language binding, configure hosted workflows in Response, or connect an assistant to the appropriate MCP server.

Choose the engine for the job

ResponseCX and Workstream are different management surfaces. An agent created in Response is not automatically an active-horizon workflow agent, and a local commerce database is not automatically connected to your hosted brand.

What you can build with the commerce engine

The linked examples execute against @stateset/embedded 1.35.1, the Node binding to the native engine. Their results establish the behavior described here; other bindings and versions may expose different methods. A completed record is evidence about that record. For example, receiving goods does not make inventory sellable unless the stock-posting process also completed. Preserve related IDs and verify each outcome when combining these operations.

Your first commerce task through MCP

Run Your First Operation to create a persistent local database and its MCP configuration. Then ask your assistant to read the generated order ID and stock SKU. The guide supplies actual identifiers, so the assistant can compare tool results with your independent inspection program. The iCommerce MCP server uses that database. It does not gain access to Shopify, Response, or Workstream merely because those services also expose MCP. Configure the source of truth and integration explicitly before using it for real operations. For native Rust integration and other bindings, use the embedded engine guide and binding reference. Check the chosen binding’s actual surface before translating a Node example into Rust or another language.

What you can build with the workflow engine

The Rust workflow engine separates orchestration from activities that call external services. It provides an API, a control plane for brands/configuration/connectors, and workers that execute workflows through Temporal. A customer-support workflow can fetch a ticket, evaluate routing and escalation rules, gather context, generate a response, wait for configured review, and dispatch through a provider. The source also includes workflow families for returns, warranties, subscription retention, payment recovery, support follow-up, delivery exceptions, and connector work. Inspect each family’s contract and deployment prerequisites; they do not all share one request schema. Start with the workflow API walkthrough or the workflow reference, then use the matching endpoint reference for the operation you select.
Durable execution is not a guarantee that an external action happens exactly once. An activity can be retried after an uncertain response. Provider idempotency, stable request identities, and reconciliation still matter for messages, orders, refunds, and other effects.

Long-running agents

Workstream’s start_agent tool starts an active-horizon agent backed by Temporal and an isolated sandbox. It returns a workflow ID that can be inspected after the initiating assistant conversation closes. get_agent_status reports progress, evidence, budgets, and approval needs. Supply the required task, duration, turn/failure, sandbox, and budget bounds using the current start schema. Do not equate a durable agent with unlimited execution or permission to take any action. See active-horizon agents.

Scheduled operations

list_scheduled_jobs inspects a brand’s schedules, and create_scheduled_job configures a supported recurring workflow. A schedule is a future source of runs, so review its target, frequency, timezone, scope, and possible customer effects before enabling it. Inspect the actual runs and outcomes after scheduling; schedule creation alone proves no work completed.

Use MCP to inspect, operate, and improve

These are starting points, not a fixed catalogue. Credentials, scopes, profiles, and deployment versions determine the tools your connection exposes. Use tools/list, inspect input schemas, and verify results in the same tenant and data source.

Combine the systems around one business task

For an order-status request, a possible integration is:
  1. Response or a helpdesk webhook captures the question.
  2. The workflow obtains the order identity and reads the authoritative commerce system.
  3. A model drafts an answer using the actual order/tracking result and approved policy.
  4. The configured review process approves or escalates the draft.
  5. The channel integration dispatches the reply and records its outcome.
This is an integration design, not an automatically connected demo. The commerce system might be your embedded deployment or an external store. Choose one authority for the task and map its order IDs to the workflow and conversation. Use Connect Your Operation for that mapping. Ask your assistant to plan the operation before enabling it:
Success: a plan tied to actual tools and systems, followed by a trial whose records and outcomes your team can verify. Expand only after that first operation works.

Next steps

Last modified on September 20, 2026