Custom Execution Data

Autom8 AI allows you to attach custom metadata to each workflow execution. This is useful for tracking internal state, tagging runs, or filtering execution logs.

You can set custom data using the Code Node or Execution Data Node, and then use it:

  • To filter execution logs

  • Inside the workflow for conditional logic

  • For debugging and context tracking

Setting Custom Data in the Code Node

You can define custom key-value pairs using JavaScript or Python within the Code Node.

Set a single key/value:

javascriptCopyEdit$execution.customData.set("key", "value");

Set multiple values at once (overwrites existing):

javascriptCopyEdit$execution.customData.setAll({
  "userId": "123",
  "source": "webhook"
});

Accessing Custom Data in the Workflow

To retrieve previously set values during the same execution:

Get the full custom data object:

javascriptCopyEditconst data = $execution.customData.getAll();

Get a specific value:

javascriptCopyEditconst value = $execution.customData.get("key");

Limits

  • Keys and values must be strings

  • Max key length: 50 characters

  • Max value length: 255 characters

  • Max items per execution: 10

Note: The Execution Data Node can set data but cannot retrieve it.

Last updated