Forward AI Agent Stats

Describe the problem/error/question

Is it somehow possible to get execution data from AI Agents to use in following nodes? I want to save more information, e.g. used model, used tools, response times etc., to the messages in my database for later quality evaluation.

Information on your n8n setup

  • n8n version: 1.67.1
  • Database (default: SQLite): PostgreSQL
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker

Hey @Banacho , I just replied to How to fetch one tool output as input to another input - #3 by ihortom. I think it also answers your question somewhat.

Hey @ihortom, thanks for your reply. I don’t think that this really helps me since the stats I want to use are not part of the AI Agent node’s output. Remember I want to access things like which AI model was used or which tools were called. We have a lot of AI Agent workflows for different use cases and don’t want to hardcode these values but take them from the nodes’ configurations when persisting messages in our db.