Get startedGet started for free

Creating our first agent

This exercise is part of the course

Building AI Agents with Haystack

View Course

Exercise instructions

You’re upgrading your setup from a basic chat interface to a full agent. This lightweight agent acts like a chat generator now, but it's ready to grow into something more powerful.

  • Add a system prompt to assign the response style to the LLM.
  • Access the final reply from the agent to see its response.


Note: If you’re running DataLab in Restricted Mode, this exercise isn’t supported yet. We’re actively working on making it available in the future.


Hands-on interactive exercise

Turn theory into action with one of our interactive exercises

Start Exercise