Hi everyone,
I'm building my first AI Agent workflow and I'm facing a very strange issue on the final step. I'm really close, but completely stuck!
My goal is simple: An AI Agent talks to a user and outputs a JSON string with the collected lead data. The next node, ClickUp, should create a new task with this data.
The Problem:
The workflow runs successfully (all green nodes!), and a task IS created in ClickUp. However, the task is created with empty fields. The static text from my expression (like "**Empresa:**") is written correctly, but the dynamic part
{{ … }}seems to evaluate to an empty string.
I'm using this expression to get the lead's name:
{{ JSON.parse($json.output).json.dados.nome_lead }}
This seems to be a silent failure in the expression engine. I've already tried:
- Using an Edit Fields node to parse the JSON first (it returned null).
- Double-checking the data path, which seems correct based on the AI Agent's output.
I'm attaching a few screenshots showing the AI Agent's successful JSON output, and the final empty task created in ClickUp.
Is this a known bug, or is there a better way to reliably parse a JSON string from a previous node for the ClickUp fields?
Thank you so much for any help!