Get your API key

Lesson 2 of 5

Tools and memory

Read-only Google Sheets tools with clear names and descriptions, $fromAI() parameters, and Simple Memory for follow-up questions.

9 min Log in to open
One step at a time, like flipping pages.

By the end of this lesson your Shree Sarees agent will look up real orders and stock in Google Sheets with two read-only tools, and remember the last few messages so follow-up questions make sense.

You need: the agent from lesson 1 and a Google Sheets credential in n8n (from n8n 101) · Time: 9 minutes

  1. Make one Google Sheet called Shree Sarees with two tabs. Use made-up test rows, not real customers:

    • Orders: Order ID | Item | Status | Courier | AWB | Expected delivery, with rows like SS-1042 | Maroon Banarasi | Shipped | DTDC | 1234567890 | 22/11/2026.
    • Stock: Item | Colour | Qty | Price, with rows like Banarasi silk | Maroon | 0 | 2450 and Banarasi silk | Green | 3 | 2450.

    Notice what is not in the sheet: no phone numbers, no addresses. The agent only needs what it takes to answer "where is my order?".

    Do it now

    Do it now

    Why?

    Everything a tool returns goes to the AI model. Keeping the sheet to the columns the agent needs means less personal data leaves your hands, and shorter, cheaper requests.

Log in free to read the rest of this lesson

Every lesson is free. A free account unlocks all of them and saves your progress.

Still to come in this lesson:

  1. Add the get_order tool
  2. Add check_stock the same way
  3. Add memory for follow-up questions
  4. Test the full conversation
  5. Recap