AI Email Agent cannot find email address

Describe the problem/error/question

Hello everyone
I tried to create my first AI Email Agent, but I am having some problem. When I communicate with the AI agent and ask it to send an email, the Ai agent can’t find the email address to send the email to.

Thank so much for helping me

What is the error message (if any)?




Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version:
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app):
  • Operating system:

Hey, the tool calling didn’t find the email address you were looking for

  1. Was the email present in the contacts DB?
  2. Did the tool call miss any parameters?

I’d focus more on debugging the AI agent node and ensure it’s picking up the correct data.

If you want more of error handling, you can add a conditional node before the email node

From the screenshots you shared, it looks like the subworkflow isn’t receiving any email address (send to), message content, or other required data.

In my opinion, you should improve the system prompt where you call the other workflow. For example, mention the tool name like send_email, and clearly specify what values need to be passed when calling that tool. Then test it properly.

Also, just wondering — what’s the reason for using a subworkflow to send emails? Why not just use the Gmail tool directly instead?

Thank you so much, I can try it.

Thanks Ahzem for your suggestion, to be honest this is my first AI agent. When I created it, I used Nate Herc’s video where he shows how to create an AI mail agent. I repeated everything, I thought so, but something is not working right. I’m trying to figure out what’s wrong, it’s been three days now, I’ve watched the video 5 times, everything is correct. After that I decided to ask for advice from the profesionals.

1 Like

If you have a time can you help me to understand how can I use Gmail tool? Thank you so much