Hook

Their other posts in the index, biggest breakout first.
here is how I built a simple AI agent that handles all my emails on autopilot. First we add the chat trigger node and connect it to an AI agent node for the brain. I will be using GPT 4.1 mini from the open router chat model. For the contacts, I am connecting my Google Sheets. This is all my contacts, their names, email and phone numbers. Next, we add the Gmail tools. We need get emails, send email, reply email and delete email. Now, this is the best part. For all the Gmail tools, make sure to click the let the model decide for all the parameters. In this way, the AI will fill in the fields by itself. The prompt is very important. You can copy this template to give your agent an identity. There are four sections: overview, this is to define the role. Rules, this is to set the boundaries. Examples, to show the AI what to do in specific scenarios. And lastly, is the final notes, where you tell the AI the current date time and its other behaviors. Let's test it out. Oh, an error occurred. Well, in this scenario, you just analyze the flow and find the problem. Here, it did not check the contact tool first and instead went directly to send an email. To fix this, we just add a rule. Let's tell the AI to always look for an email first in the Get Contacts tool before sending an email. Now let's try it again. And there you go, you now have your own email agent.