Skip to main content
A factory is where your team’s automated work runs in Worklayer. Give it connected apps, skills, instructions, and memory—then send it Events from your product, Slack, or Gmail. Your factory decides what needs to happen, spins up background Workers to execute in parallel, pauses for human approval when required, and reports outcomes back to your team.
In parts of the Worklayer web app, a factory is also called an Environment. In webhook payloads, environmentId is the ID of your factory.
For example, in a support factory, new tickets arrive from a help desk, the factory investigates each issue, asks a support lead to approve refunds, and posts the outcome back to your app.
Support factory flow: your app sends an Event, the factory spawns a Worker, a support lead approves a Review, and the factory posts a room.response reply.Support factory flow: your app sends an Event, the factory spawns a Worker, a support lead approves a Review, and the factory posts a room.response reply.

What lives inside a factory

Everything a factory needs to do reliable work is scoped to that factory: Workers always execute using the factory’s connected accounts, not the personal accounts of whoever triggered the work. In the support example, refunds always run through the company Stripe account regardless of who submitted or approved the ticket. Apps, skills, memory, and files are shared across the entire factory, while conversations stay isolated inside each Room—with its own history, Events, Room notes, and Workers.

How a factory operates

You don’t script every branch or retry loop. Whenever a message or Event arrives, the factory evaluates the situation and decides what to do next:
  • Reply directly in the Room.
  • Start a Worker to run a multi-step task in the background.
  • Steer or stop a Worker that is already running.
  • Stay quiet if the Event is informational and doesn’t need action yet.
A single factory can run up to 20 Workers concurrently. As each Worker completes, it reports its outcome back to the factory, which decides what to share in the Room. Internal reasoning and tool calls stay inside Worklayer—people and your app see clean responses in Room History and room.response webhooks.

Who can use a factory

Team members access a factory based on their role: New members receive Full access by default. Older memberships may still hold legacy Runner (can use the factory and files, but cannot connect apps or change settings) or Viewer (read-only) roles.
Only the Owner and members with Full access can connect, reconnect, or remove app accounts on a factory.

Personal factories

Every Worklayer user also has a personal factory (Worky) backed by their own connected accounts and private to them. Factories are strictly isolated from one another—work running in one factory never accesses the apps, accounts, skills, or files of another.

Scoping in the Factory API

Apps & integrations

Connect built-in apps, custom remote MCP servers, OpenAPI specs, and approval policies.

Rooms

Isolate conversations per issue, ticket, customer, or work item.