Prints a message to the console for debugging or monitoring app flow. Log message block

Overview

The Log message block writes a message to the workflow log. Use it to record information, debug workflows, or track the progress of your blueprint execution. You can specify any message, including variables or state values, to help with troubleshooting or monitoring. To view the logs, click the Log tab in the Agent Builder editor. Log message block

Common use cases

  • Debugging workflow execution by logging variable values
  • Tracking the progress of a workflow
  • Recording errors or important events
  • Auditing workflow steps for compliance

How it works

  1. Message: Enter the message to log. You can log variables using the @{variable_name} syntax. For example, to log the value of the @{payload} variable, you can use the message "Payload: @{payload}".
  2. Type: Choose the type of message to log. You can choose from the following options:
    • info: Log a message with information.
    • error: Log a message with an error.
The block writes the message to the log. The message is available in the workflow execution logs for review.

Examples

Debug workflow execution

This example shows how to add logging throughout a workflow that processes multiple resumes from job applicants. The workflow extracts key information from each resume PDF and generates a summary report. The log message block is used to record the progress of the workflow. Blueprint Flow:
  1. UI Trigger → HR manager uploads multiple resumes for processing
  2. For-each loop → Processes document sections
  3. Log message → Records section completion and confirms parsing success
  4. Parse PDF → Parses the PDF file
  5. Text generation → Assembles final document
Block Configuration:
  • Message: Processing resume for @{itemId}.
  • Type: info
Log message block The logs display the progress of the workflow as it processes each resume. You can see the logs in the Log tab of the Agent Builder editor. Log message block

Fields

NameTypeControlDefaultDescriptionOptionsValidation
TypeText-info-
  • info - Info
  • error - Error
-
MessageTextTextarea----

End states

Below are the possible end states of the block call.
NameFieldTypeDescription
Success-successThe request was successful.
Error-errorThe blueprint was executed successfully.
The return value of the Log message block is the message that was logged. You can access the return value in the next block in the workflow using the @{result} variable.