Autorun AI Docs

Difference between UI and Business Processes

When building applications in Autorun.ai, it’s important to separate UI Processes from Business Processes. Both are essential, but they serve very different purposes and run in completely different parts of the system.


UI Processes

UI Processes are tied directly to the visual components in your application. They run in the browser, inside pages, tables, forms, and buttons.

UI processes are responsible for:

  • Handling immediate actions triggered by the user

  • Updating what the user sees

  • Managing component-level state

  • Running code based on UI events

UI processes are triggered by UI events such as:

  • onClick (button pressed)

  • onLoad (page loaded)

  • onChange (field changed)

  • onSave (form saved)

Typical UI Process examples:

  • Loading data when a page opens

  • Showing or hiding components conditionally

  • Prefilling form fields

  • Running client-side validation before submission

  • Executing lightweight logic directly on the page

  • Calling a business process via a button

Think of UI Processes as the frontend logic: they react to what the user does and update the interface accordingly.


Business Processes

Business Processes run on the server, independent of the UI. They are tied to data events and background automation, not user interactions.

Business Processes are triggered by backend events such as:

  • Before Create / After Create

  • Before Update / After Update

  • Before Delete / After Delete

  • Scheduled (CRON) triggers

  • API calls / webhooks

  • Button-triggered back-end actions

Business processes are responsible for:

  • Complex logic and validations

  • Creating or updating related records

  • Performing calculations

  • Integrating with external APIs

  • Enforcing business rules

  • Running background workflows

Typical Business Process examples:

  • When a new Offer is created → send a notification or email to users

  • When a new Project is created → automatically generate Tasks

  • Every night at 02:00 → run a cleanup or reporting job

  • Before saving a record → validate required fields

  • After deleting a record → update related entities or remove dependencies


Summary

UI Processes run on the frontend and are tied to visible components such as pages, tables, forms, and buttons. Business Processes run on the backend and handle system logic that is independent of the user interface.