Articles:
The Flow Execution Logs in Ligantic provide a comprehensive view into the execution of your Flows. This user guide will cover key topics to help you understand and leverage the Execution Logs, including Flow version control, execution status monitoring, token usage tracking, and customisable logging levels. With these insights, you can effectively troubleshoot issues, optimise Flow performance, and gain deeper visibility into your Ligantic platform.
You can view the Flow Execution by navigating to "Space Settings > Flows" and clicking the "View Executions" section for each Flow.
The "Flow Execution" interface of the Ligantic platform has several key components:
The Ligantic Flow Designer incorporates industry-standard version control mechanisms to ensure the observability and stability of your solutions. Whenever a Flow is saved, the platform automatically increments the version number, allowing you to access and review previous iterations of the Flow as needed. This version control system provides a transparent audit trail of changes made to your Flows over time.
Every Flow Execution logs the specific version number used in the execution, enabling you to easily trace the state of the system at the time of execution. This level of versioning and logging empowers you to make controlled, reliable changes to your solutions on the Ligantic Platform, confident that you can revert to previous versions or understand the context of past executions if required.
The Flow Execution Status provides a clear indication of the current state of a flow's execution.
The status can take on one of five values:
The Flow Execution Status allows users to quickly see where a Flow is at in its lifecycle and identify any issues that may have occurred during the run. This status can also be accessed programmatically through the Ligantic API.
Ligantic Tokens are the billing mechanism used in the Ligantic Platform. Each Flow Execution on Ligantic consumes a certain number of tokens, which are deducted from the nominated Billing Account for that Space (either the User or the Space Owner). You can read more about the Ligantic Tokens and Billing Configuration here. The exact number of Ligantic Tokens consumed per execution depends on factors such as the complexity of the Flow, the Capabilities used, and the length of any inputs or outputs generated by Large Language Models (LLMs).
A Flow Execution costs between 10 and 40 tokens depending on your Ligantic Subscription Model. Then any additional steps or token calculations from the Flow Execution are added onto this base amount to calculate the Total Token Usage. The Total Token Usage is always shown at the top of the Flow Execution page, providing a clear summary of the overall tokens consumed.
When the "Debug" Log Level is selected, the Log Details table outlines the exact token usage for each step in the Flow Execution. This gives users the ability to explore and understand the costs associated with each Flow Node, and optimise the capabilities and configurations that make the most sense for their Flows.
In this example, this step in the Flow Execution cost a total of 2 Ligantic Tokens. This is driven by a calculation against the Execution step costs, in this case an external call to the Ada Embedding Model, and your subscription multiplier.
The system provides a range of log levels that can be configured to control the amount and type of information captured during the execution of a Flow. The default log level can be set at the Flow level, which will apply to all executions of that Flow.
A specific Log Level can also be configured on a per-execution basis, allowing users to adjust the logging behaviour for individual runs as needed.
To access a single execution you can click the "Create Execution" from the "Flow Execution" page. From the "New Execution" page you can choose the Log Level for this single execution or leave it as the configured Flow Default.
The available log levels are:
The Flow Execution page provides visibility into the data that flows through your Flows. The Inputs section shows the data that was fed into the Flow when it was triggered, capturing the initial values that were used to start the Flow Execution. This allows you to observe and understand what information was used to kick off the Flow.
The Outputs section then displays the results, actions, and messages that were generated as the Flow executed. These outputs are produced by specific nodes in your Flow, like the "Flow: Result", "UX: Action", and "UX: Message" nodes. The outputs can be viewed on the Flow Execution page, passed to subsequently triggered Flows, or accessed programmatically through the Ligantic API. Together, the inputs and outputs give you full transparency into the data flowing into and out of your Flows.
The Log Details table contains all the logs from a Flow Execution. The number and detail of the log entries will depend on the Log Level selected for the Flow Execution.
Each log entry contains the following information: