Guilds AI / AI Blog

,

Robotic Process Automation Architecture: Components and Design

A central automation control layer distributing work to several software execution environments connected to business applications.

Robotic process automation architecture is the arrangement of software components used to build, deploy, execute, and manage automated tasks. A typical RPA system has three core layers: a design environment where developers create automation instructions, a control layer that assigns and monitors work, and execution environments where software bots interact with business applications.

The term robotic refers to software, not physical machinery. For a comparison of platforms implementing these components, see our robotic process automation tool guide. An RPA bot might read a spreadsheet, enter data into a legacy desktop application, and retrieve a transaction reference. Its architecture determines how those actions are scheduled, secured, monitored, and recovered when something fails. Our robotic process automation examples illustrate the kinds of transactions this architecture supports. A conversational interface can also initiate a narrowly scoped job; our RPA chatbot guide explains how to connect chat requests to bot execution.

What is robotic process automation architecture?

RPA architecture describes the relationships between the automation package, the machines that run it, and the applications it operates. In a small deployment, one employee may launch a local bot to perform a repeatable task. A larger deployment may maintain a centralized inventory of workflows, work queues, credentials, runtime environments, and execution records.

RPA is often a component of digital workflow automation, particularly when a process depends on an application without a suitable API. The wider business process may also contain human decisions, document validation, and integrations that do not require a bot. See the distinction between workflow automation and process automation when defining the scope of an RPA system. For guidance on choosing between task-level bots and end-to-end process coordination, see business process automation vs. RPA.

RPA architecture diagram and components

The following simplified reference architecture shows how a centrally managed deployment can operate. Product-specific implementations differ, and a local attended bot does not necessarily need a separate central queue.

Design and release
Workflow studio ยท tested, versioned package
โ†“
Control layer
Scheduler ยท work queue ยท orchestration
โ†“
Bot runner A
Bot runner B
Bot runner C
โ†“
Business applications
Desktop software ยท web portals ยท supported APIs
Cross-cutting services: identity, secrets, audit logs and monitoring
Illustrative centrally managed RPA architecture. The control layer receives execution status and results from bot runners.
ComponentResponsibility
Workflow designerCreates task logic, input validation, interface selectors, and exception paths.
Package repositoryStores approved, versioned automation definitions and dependencies.
OrchestratorSchedules jobs, assigns available runtimes, tracks execution, and applies operational policies.
Work queueTracks pending transactions, assigned work, completion status, and exceptions.
Bot runtimeExecutes instructions in an authorized desktop, browser, virtual machine, or other supported environment.
Application interfaceProvides the screens, files, or supported APIs the bot interacts with.
Security and monitoringProtects identities and secrets, records execution, and alerts operators to errors.

Design layer: building automation packages

Developers describe a sequence of operations and specify conditions for handling different inputs. Recording user interactions can accelerate development, but a recorded sequence alone is rarely sufficient for production. A visual builder may support no-code automation, although complex interfaces can still require custom logic. For a broader process combining visual components and such extensions, see our low-code business process automation guide. A maintainable package separates reusable application interactions from business rules, exposes configuration safely, and includes tests for expected exceptions.

Control layer: scheduling and orchestration

The orchestrator coordinates execution. It may receive a scheduled trigger, monitor an incoming queue, or accept an authorized request from another system. It selects an eligible runtime, sends the relevant package and work reference, and tracks the resulting status. The precise distribution mechanism and available features depend on the platform.

Execution layer: bot runners

Runners perform the actual tasks. A UI-based automation may locate a field, enter a value, wait for the application to respond, and read the resulting confirmation. The runtime needs the appropriate operating system, application access, session configuration, and credentials. These dependencies should be documented alongside the package.

How RPA executes a transaction

Consider a hypothetical company that transfers approved purchase requests into an older procurement application. The source system holds the request and approval record, while the target application exposes a desktop interface but no suitable write API.

  1. The source system places an approved request into a work queue with a unique business identifier.
  2. The orchestrator assigns the item to an available bot runner using an approved package version.
  3. The bot checks required fields and verifies that the request remains eligible for processing.
  4. The bot opens the target application, searches for the identifier, and enters the permitted information only if the record does not already exist.
  5. The bot checks the resulting transaction reference against the source request and records success or a recoverable exception.
  6. An operator reviews unresolved errors. Completed transactions are reconciled against the source system.

The queue status alone cannot prove the target application was updated correctly. A bot can lose its connection immediately after submitting a record, leaving the result uncertain. Before repeating the transaction, the automation must determine whether the target record already exists. If that cannot be established, send the item for reconciliation rather than blindly retrying.

Attended and unattended bot architecture

CharacteristicAttended RPAUnattended RPA
TriggerAn employee initiates or supervises a task.A scheduler, event, queue, or authorized request starts a job.
RuntimeTypically an employee desktop or supported session.Typically a dedicated machine, virtual desktop, or managed runtime.
Human involvementA person can supply missing inputs or continue the process.Exceptions are routed separately for review.
Typical useAssist an employee with a repetitive form or lookup.Process batches of approved records overnight.

A hybrid deployment combines the two. For instance, a support employee initiates a case from a desktop, while a separate unattended bot performs an approved data transfer later. Design explicit handoff states and avoid depending on a particular employee remaining logged in when background execution is expected.

RPA integration and deployment options

An RPA architecture can run entirely on company-managed infrastructure, use a hosted control service with runners in the company network, or use managed execution environments where the software and security requirements permit. The control plane and the actual bot execution location do not have to be the same.

Choose the runtime location based on access to target applications, licensing, operating-system requirements, network connectivity, data sensitivity, and operational responsibilities. If an application is only accessible from a private network, a cloud-based scheduler does not remove the need for a runner with authorized connectivity.

User interfaces versus APIs

UI automation is useful when a process relies on software that cannot be integrated through a suitable supported API. However, layout changes, unexpected dialogs, authentication requirements, and screen timing can make UI automation fragile. Where a supported API can satisfy the same requirement, evaluate it first. For a CRM-specific example, our Salesforce robotic process automation guide compares native integrations with external RPA runners. Our integration guide covers the trade-offs between direct interfaces and adapters.

A mixed architecture might retrieve approved data through an API, use an RPA bot for the legacy application, and send a structured result back to a workflow engine. Our guide to RPA for HR and payroll applies this architecture to approved employee-record transfers and payroll batches. Each connection needs its own authorization and validation.

How to design a reliable, scalable RPA architecture

Separate environments and responsibilities

Keep development, test, and production execution distinct where practical. Release tested packages through a controlled process and grant production credentials only to approved runtimes. A business process owner defines expected outcomes; developers maintain the automation, and operations staff manage exceptions and recovery.

Plan capacity around real transaction times

Estimate the number of runtimes using measured processing time, workload, operating window, application limits, and expected downtime. For example, if a bot needs two minutes per item, an eight-hour shift provides a theoretical capacity of 240 items. At an illustrative 75% effective utilization, one runner handles about 180 items. A workload of 600 items would therefore require at least four equivalent runners under those assumptions.

This is a planning calculation rather than a guarantee. Parallel execution may be constrained by application licenses, record locking, rate limits, or shared resources. Benchmark representative tasks before committing to additional capacity.

Design for failures and changes

Failure scenarioArchitectural response
Application screen changesUse stable selectors where supported; run regression tests after updates.
Temporary network failureUse bounded retries for operations known to be safe to repeat.
Uncertain transaction resultReconcile the target state before another write.
Invalid business inputRoute the item to an exception queue for correction.
Runner unavailableAssign eligible pending work to another compatible runner.
Credential expiresStop the affected operation and alert the authorized owner.

Log the package version, runner identity, transaction identifier, decision status, and outcome without collecting unnecessary secrets or personal data. Restrict each bot to its authorized actions and maintain a tested stop procedure. These practices complement the controls in our AI workflow automation governance guide. For a detailed control matrix and practical failure scenarios, see our guide to robotic process automation and risk mitigation.

Where AI fits into RPA architecture

Traditional RPA can follow deterministic instructions without a language model. Cognitive robotic process automation adds AI-assisted interpretation to this architecture when fixed input rules are insufficient. AI capabilities such as document recognition or text classification may extend the inputs a workflow can interpret. For example, a document model can propose invoice fields, while deterministic validation checks the values against approved records before a bot enters them into the target application.

The AI component should not bypass the orchestrator, access controls, or business rules. Where a system coordinates models and tools in addition to software bots, AI orchestration may be useful. Add AI only when it solves a specific problem that fixed instructions cannot handle reliably.

Frequently asked questions

What are the main layers of RPA architecture?

A common architecture separates workflow design, operational control, and bot execution. Supporting services may include package storage, work queues, credential management, application interfaces, and monitoring.

Does every RPA system need an orchestrator?

Not necessarily. An employee-triggered local automation can operate without centralized scheduling. A shared orchestrator becomes useful when many bots, packages, and transactions must be coordinated and monitored.

What is the difference between a bot and a bot runner?

A bot often refers to the automation logic or package. A runner is the execution environment or runtime that performs the instructions. Terminology varies among products.

Can RPA run in the cloud?

Yes, depending on the product and target application requirements. Hosted control services and remote execution environments are possible, but network access, session configuration, security, and licensing must be considered.

Does RPA architecture require artificial intelligence?

No. Rule-based RPA is sufficient for many repetitive tasks. AI can supplement the design where variable documents or unstructured information must be interpreted, provided the workflow validates outputs and retains appropriate oversight.