invokeAutomation action sends an encodable payload to an onInvocation entrypoint. Use it for programmatic automation-to-automation calls.
Example
automations/forward-order.automation.ts
Inputs
String and signal targets resolve by automation name in the caller’s project. Passing the value returned by
automation() uses its name automatically. Invoked automation names must be unique within the project. Every other input accepts a compatible signal. runAt and runIn are mutually exclusive. Omit both to invoke immediately. The target automation must have an active onInvocation trigger with the selected entrypoint.
Output
Returns a signal containing{ id: string; runAt: Date }, where id identifies the accepted invocation and runAt is its normalized delivery time.