Automate your work with AI, from the first rule to the complete workflow
Your progress
0 lesson completed out of 50

A lesson is completed when you tick it, when you watch its video to the end or when you score 80% on its quiz. The certificate is issued online after the final assessment, from a score of 32 out of 40.

Your progress is saved in this browser. Log in to your client area to pick it up on your other devices.

Video transcript

Lesson 23, module 6: AI agents Building an agent in n8n with its tools, its memory and human approval How do you build an agent that helps the team without doing anything behind your back?

A trigger, an agent, tools, and a person who approves. [Diagram: The site progress agent] 1. Chat Trigger 2. AI Agent 3. Read tools 4. Tool that acts 5. Reply The n8n workflow of the Pessac joinery firm, from the fitter's question to the reply. The AI Agent node expects three connections. A model, with your credentials A memory, if the conversation goes on At least one tool, mandatory The agent only knows what it reads on each turn. [Diagram: What the agent reads on each turn] The system prompt The memory The fitter's message The tool descriptions The results already obtained Anything that isn't in these layers, the agent doesn't know. The system prompt says what it does, and what it refuses. Request: Where are we with the glazing for the Roux site in Gradignan? Reply: "Order VIT-2211 placed on 3 November. The supplier expects delivery on 21 November (e-mail of the 12th). Fitting scheduled for the 25th on the planner. Source: orders spreadsheet, supplier e-mail." Whatever acts goes through human review; the rest doesn't exist. [Diagram: The agent's tools by level] Green: Connected freely Orange: Connected with human review Red: Never connected A tool that doesn't exist can't be hijacked. Twenty real questions, and every path reviewed. Expected tool, tool called Number of turns What the agent says when it doesn't know In the exercise, you build the joinery firm's after-sales service agent. Your turn: Build the joinery firm's after-sales service agent The written lesson, the corrected exercise and the quiz are below the video.

Lesson 23 of 50 · module 6, ai agents

Building an agent in n8n with its tools, its memory and human approval

An n8n agent is built from a trigger, the AI Agent node, a model, a memory if the conversation lasts, and carefully described tools. The system prompt sets its role, “Max Iterations” caps its iterations, and human review of tools has a person approve every action that writes or sends.

  • 26 min of reading
  • 1 min 48 of video
  • 7 diagrams
  • 0 demande to copy
  • 3 exemples pratiques
  • 4 exercices answerss
  • 5 questions
  • 1 ressource

By the end of this lesson, you will know how to

  • Assemble an agent in n8n with a model, memory and tools
  • Writing the system prompt and tool descriptions that make the agent predictable
  • Subject action tools to human review and test the agent on twenty real cases

What’s covered

  1. Assemble the node and its sub-nodes
  2. The system prompt
  3. The tools and their descriptions
  4. Human review on the tool that acts
  5. Test before handing the agent to the fitters
  6. 3 worked examples, followed from start to finish
  7. Exercise with answers · Building the joinery firm’s after-sales service agent
  8. 3 practice exercises, from guided to demanding cases
  9. The quiz

Key points

  • An n8n agent is a trigger, the AI Agent node, a model, a memory if needed and at least one tool.
  • The system prompt gives a numbered method, the format of the answer and what the agent refuses.
  • The model fills in the parameters from the descriptions: the tool’s and that of each $fromAI().
  • Every tool that writes or sends goes through human review; whatever must never happen has no tool.
  • Twenty real questions, intermediate steps reviewed, then two users before the whole team.