Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

Package

Packages are reusable functional modules used via uses in steps and activities.

Built-in Packages

Core Packages

PackageTypeDescription
acts.core.irqIRQInterrupt request, pauses for client response
acts.core.msgMSGOne-way message to client
acts.core.blockIRQBlock with nested acts (supports sequence mode)
acts.core.parallelIRQParallel execution over a list
acts.core.sequenceIRQSequential execution over a list
acts.core.subflowIRQInvoke sub-workflow
acts.core.actionMSGEngine action (e.g. trigger error)

Transform Packages

PackageTypeDescription
acts.transform.setMSGSet variable values
acts.transform.codeIRQExecute JavaScript code (QuickJS engine)

Workflow start triggers are declared on the on field (manual/chat/hook/schedule); see Triggers.

Usage Example

steps:
    # IRQ — interrupt and wait for client response
    - id: step1
      uses: acts.core.irq
      params:
        key: act1

    # MSG — one-way notification
    - id: step2
      uses: acts.core.msg
      params:
        key: notification

    # Set variable
    - id: step3
      uses: acts.transform.set
      params:
        a: 10

    # Execute JavaScript
    - id: step4
      uses: acts.transform.code
      params: |
        return { result: a + 10 };

Custom Package

You can create custom packages. Refer to the package example for details.