Your first AI agent
Run it — before we explain anything
You are about to talk to an AI agent running on our university server. You did not build it. You do not know how it works yet. That is fine. Run it first.
- Open https://n8n.32dots.de in your browser. Log in with your own student email + password cos2026. (No demo? Sign up at https://curriculum.32dots.de/signup or use demo@cos.uni-heidelberg.de.)
- Log in with the credentials shown above.
- In the left sidebar, click Workflows. Find 'Session 01 — Your first AI agent'.
- Click the ⋯ menu on the workflow → Duplicate. Edit your copy (not the shared original).
- Open the workflow. Click the Chat button in the bottom-right corner.
- Ask: 'What is CRISPR and how does it work?'
- Ask a follow-up: 'What are the main ethical concerns about using CRISPR in humans?'
- Ask something it probably cannot answer well: 'What did Professor Müller publish last week?'
Anatomy of an AI agent — every node explained
Go back to the workflow canvas. Click on each node to inspect it. The Agent node is the centre: everything else is plugged into it. Your goal here is to understand what each piece does and why it is there — not to memorise settings.
Probe-Fragen
- Open the AI Agent node. Read its system prompt. Can you identify the four parts (role, constraints, style, output format)? Which part is strongest, which is weakest?
- Open the Simple Memory node. How many turns does it keep? What would break if you set it to 1? What would become expensive if you set it to 100?
- The agent has three tools wired to it. How does the agent decide which one to call — and how does the tool's description influence that decision?
- Why would you split an agent with 10 tools into a main agent + 2 sub-agents instead of just giving it all 10 tools?
Make it yours — prompt, tools, memory
You will duplicate the workflow and change three things: the system prompt (to shape personality), one tool (to change what it can do), and then you will test that memory actually works across turns.
Aufgabe: Duplicate the shared workflow. Then (1) rewrite the system prompt using the four-part anatomy, (2) add or remove one tool, (3) run a two-turn chat that proves memory is working.
- In n8n, open the workflow. Click ⋯ → Duplicate. Work in your copy only — never edit the shared original.
- Click the AI Agent node. Rewrite the system prompt with all four parts: ROLE (who am I?), CONSTRAINTS (what is off-limits?), STYLE (how do I sound?), OUTPUT FORMAT (how is the answer structured?). Keep it under 150 words. Example: 'You are LabBot, a specialist in protein folding. Only answer structural-biology questions — refuse clinical, legal, or political questions. Reply in 3-6 bullet points, no marketing language. End every answer with: ⚠ Uncertainty: <one sentence>.'
- Pick ONE tool change: either (a) remove a tool you will not use, or (b) add a new HTTP Request Tool pointing at a public API you care about (PubMed, UniProt, a weather API — anything). Give it a clear description — the description is what the agent reads to decide when to call it.
- Save (Ctrl+S) and open the chat.
- Turn 1: ask a question inside your domain (e.g. 'What are the main steps of protein folding?'). Turn 2: ask a follow-up that only makes sense with memory (e.g. 'Which of those steps is most error-prone?'). The agent should answer turn 2 without you re-explaining what 'those steps' refers to — that proves the memory node is feeding previous turns back in.
- Turn 3: ask something your constraints forbid (e.g. a clinical question). Confirm the agent refuses politely.
- Take one screenshot of the new system prompt and one screenshot showing all three turns in the chat.
Hast du das verstanden?
- I can open n8n, find the workflow, duplicate it, and edit my copy safely.
- I can point at the four parts of a good system prompt (role, constraints, style, output format) in my own prompt.
- I can explain in one sentence what gpt-oss-120b is and why Groq runs it fast (LPU hardware, MoE model with ~5B active params).
- I can explain the difference between the Simple Memory window and a Postgres/vector-store memory — and when I would use each.
- I can describe the 3-5 tools rule and explain when it is time to spawn a sub-agent instead of adding another tool.
- I personalised the agent's prompt, changed one tool, and verified memory works across at least two turns.
Direkt ausprobieren
Diese Links öffnen die laufenden Demos auf n8n.32dots.de + dify.32dots.de.
Frag den Tutor zu dieser Karte
Sokratisch: der Tutor antwortet mit Leitfragen statt fertigen Antworten — du erarbeitest die Lösung selbst.
Stell eine erste Frage zu dieser Karte unten.