A structured lesson workspace with readable content, hands-on examples, and a clean path to completion.
The final piece is delivering the quote. n8n provides pre-built connectors for Gmail. Add the Gmail tool to your agent. For production safety, configure the operation to 'Create a Draft' rather than sending immediately.
Adding email integration
This video requires an access code. Enter your code below to unlock it instantly.
Don't have a code? Contact us to get access.
Configure the 'To' field to be defined by the model. Instruct the agent via the system prompt to route standard quotes to the client's email address, but route high-value enterprise prospects to the internal sales team distribution list.
{"subject": "Your Tech Innovate 2026 Quote","emailType": "html","message": "={{ $json.html_body }}","to": "={{ $json.routing_email }}"}
Ensure the agent knows it must collect the client's email address before attempting to call the Gmail tool. If the field is missing, the tool execution will fail or default to an incorrect address.
Finish the lesson once you have worked through the material. This awards ★ 30 XP.