Token Usage icon

Token Usage

Track LLM token usage from n8n executions

Save Execution ID

AI-generated

Summary

Save the current n8n workflow execution ID to track token usage related to that execution.

Inputs

  • Operation (required) — Set to 'Save Execution ID' to save the current execution ID for later token tracking.

Output shape

a single JSON object containing the saved execution_id

The output includes metadata wrapping an object with the saved execution_id. This ID can be used in a later fetch operation to retrieve token usage.

Examples

Example 1: Save the current execution ID

Set the operation parameter to 'Save Execution ID' to store the current workflow execution ID.

Discussion