Issues with AI Agent and addLabels Gmail tool
Hi everyone! 👋
I'm working on an email classification automation in n8n using the AI Agent + Gmail AddLabels tool. The agent analyzes incoming emails and returns a JSON like this:
{
"À traiter": true,
"labelID": "Administratif/Finances"
}
The output is parsed via a Structured Output Parser, and I want to use the result to dynamically apply Gmail labels to the message using addLabels.
Issue: I’m getting an error in the "Label Names or IDs" field saying either "undefined" or "no path back to node".
Any tips on properly linking the label value from the AI Agent → Structured Output Parser → Gmail tool? 🙏
Thanks in advance!
4
37 comments
Corentin Niort
3
Issues with AI Agent and addLabels Gmail tool
AI Automation Society
skool.com/ai-automation-society
A community built to master no-code AI automations. Join to learn, discuss, and build the systems that will shape the future of work.
Leaderboard (30-day)
Powered by