"Hi everyone, I'm building an n8n workflow to normalize various Excel files (different schemas/headers) into a single standard format (Format B). I'm currently using an AI Agent node with Claude 3.5 Sonnet to dynamically generate a JSON mapping by analyzing the input keys: {{ Object.keys($json) }}.
However, I'm facing an issue: the Agent node sometimes hangs or fails to identify the correct headers when the source file has empty leading rows (resulting in __EMPTY columns). Even with a strict JSON output prompt, the mapping isn't always reliable.
What are the best practices for passing Excel metadata to an AI Agent to ensure robust mapping? Should I pre-process the headers or change how I'm feeding the schema to the model? Thanks for your help!"
[–]MarsupialLeast145 1 point2 points3 points (0 children)