AI Agent Log Streamer

Stream logs from AI agents in n8n workflows

Overview

This node streams logs from various AI agents used within n8n workflows. It allows users to filter logs by agent type and minimum log level, and optionally include additional metadata. This is useful for monitoring and debugging AI agent behavior in real-time during workflow execution.

Use Case Examples

  1. Monitoring logs from all AI agents at the debug level to troubleshoot issues.
  2. Streaming logs only from the SQL Agent at the info level to track database-related AI operations.
  3. Capturing error-level logs from the Conversational Agent with metadata for detailed analysis.

Properties

Name Meaning
Agent Type Specifies the type of AI agent to stream logs from, such as Conversational Agent, OpenAI Functions Agent, ReAct Agent, etc.
Log Level Sets the minimum log level to capture, filtering out less severe logs.
Include Metadata Determines whether to include additional metadata in the log output.

Output

JSON

  • level - The severity level of the log entry (debug, info, warn, error).
  • message - The log message content.
  • agentType - The type of AI agent that generated the log (included if metadata is enabled).
  • additional metadata fields - Other metadata fields related to the log entry, included if metadata is enabled.

Troubleshooting

  • Ensure the selected agent type matches the agents active in your workflows to receive relevant logs.
  • Set the log level appropriately; setting it too high (e.g., error) may miss important informational logs.
  • If no logs appear, verify that the AI agents are generating logs and that the node is correctly configured to capture them.

Discussion