Skip to main content

What is a process?

When you deploy a use case, the platform creates a process — the public, discoverable representation of your automation. Users can find, install, and run processes with their own credentials. Each process has three layers:
Process (public listing)
  └── Deployment template (immutable version snapshot)

Process instance (user installation)
  └── Deployment instance (running copy with real workflow IDs)

Process

The top-level entity. Represents your automation on the platform.
PropertyDescription
TitleDisplay name
DescriptionWhat the automation does
VisibilityWho can see and install it
TagsCategorization (e.g., email, ai, crm)
Process typepersonal (one per user) or organizational (one per org)

Visibility levels

LevelWho can see and install
privateOnly the owner
userListSpecific users
teamListSpecific teams
organizationalAll members of the organization
publicAnyone on the platform

Deployment template

An immutable snapshot of a specific version. When you deploy version 1.2, the platform stores a template containing all workflow data with placeholders still present (not yet replaced with real values). Templates are never modified after creation. A new deployment always creates a new template.
PropertyDescription
VersionAPI version (e.g., 1.0, 1.1, 2.0)
Statusinactivepublisheddeprecated
WorkflowsWorkflow metadata (triggers, schemas, integrations)

Process instance

A user’s personal installation of a process. Each user gets their own instance with isolated state and credentials.
PropertyDescription
Environmentdev or prod
VersionWhich template version this instance runs
ActiveWhether workflows are enabled
SharingWho in the org can use this instance
Deployment parametersUser-configured values (from INSTPARM placeholders)

Instance states

StateBehavior
ActiveFully functional, workflows execute on triggers
User pausedVisible but workflows disabled (user chose to pause)
Deploy failedVisible but needs retry (deployment error occurred)
Missing integrationVisible but needs reconnection (OAuth token expired or deleted)
ArchivedHidden and disabled (soft-deleted)

Dev/Prod environments

Process owners get automatic environment management. By default, only one environment is active at a time:
  • First deploy: Creates a dev instance, activates it
  • Publish to prod: Auto-creates prod instance, deactivates dev
  • Redeploy to dev: Deactivates prod, activates dev
This ensures you always test in dev before going live in prod.

Deployment instance

The running copy of a process instance with real n8n workflow IDs. This is what connects your process instance to live workflows in n8n.
PropertyDescription
Statuspendingdeployingdeployed or failed
Workflow mappingsLinks between your workflow template IDs and live n8n workflow IDs

Deployment status flow

pending → deploying → deployed (success)
                   → failed (error)
deployed → updating → deployed (version update success)
                   → failed (version update error)

Deployment pipeline

When you run codika-helper deploy use-case, the platform:
  1. Validates the request (authentication, format, required fields)
  2. Calculates version based on your version strategy (patch/minor/major)
  3. Creates a deployment template — an immutable version snapshot
  4. Creates or updates the process, process instance, and deployment instance
  5. Deploys to n8n — for each workflow:
    • Replaces all placeholders with real values (credentials, parameters, IDs)
    • Creates or updates the workflow in n8n
  6. Returns the deployment result (IDs, version, status)

Version updates

When a new version is published:
  • Pinned instances: Users are notified that an update is available and can choose when to apply it
  • Unpinned instances: Automatically updated to the new version — the platform creates a new deployment instance and updates the live workflows
If an automatic update fails, the instance falls back to showing “update available” for manual retry.

Public API access

Process instances with HTTP triggers expose a public API for triggering workflows and checking execution status. Authentication uses a per-instance API key passed via the X-API-Key header. The codika-helper trigger and codika-helper get execution commands wrap these endpoints — you don’t need to call them directly.