Skip to main content
Win Tun Lin avatar

Win Tun Lin has completed

Building AI Agents with Haystack

Start course For Free
1 hr 30 min
850 XP
Statement of Accomplishment Badge

Loved by learners at thousands of companies


Course Description

Build AI agents that reason, retrieve, and act

AI agents can do more than generate text. They can plan, make decisions, and take actions based on the tools and data available to them. In this course, you’ll learn how to build intelligent AI agents using Haystack, an open-source framework for orchestrating large language models and external components. You’ll create a healthcare agent that answers user questions by combining up-to-date online content with structured patient records.

Conntect your agents

You’ll start by using Haystack components to communicate with an LLM, then move on to creating your first agent. You’ll connect tools such as real-time web search and a SQL database query pipeline, giving the agent the ability to pull in both public and private information. You’ll also learn how to register Haystack pipelines as tools, making it easier to reuse structured workflows inside your agent.

Build and extend real-world workflows

By the end of the course, you’ll have a robust agent that combines LLM reasoning with external tools and structured pipelines. You’ll understand when to use agents, when to use pipelines, and how to build flexible systems that can use both. Whether you’re building assistants, retrieval-augmented generation systems, or domain-specific tools, you’ll be ready to create production-ready AI agents with Haystack.
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.
DataCamp for BusinessFor a bespoke solution book a demo.
  1. 1

    Meet Your Agent

    Free

    Explore how Haystack components interact with LLMs, understand what makes agents different from traditional language models, and create your first working agent. And then, learn how to give your agent access to real-world tools like web search, transforming it from a passive responder into an active problem solver!

    Play Chapter Now
    Welcome to the course!
    50 xp
    Talking to LLMs with Components
    100 xp
    What can a Haystack agent do?
    50 xp
    Creating our first agent
    100 xp
    Connecting tools to our agent
    100 xp
  2. 2

    Designing Robust Agents

    Unlock the tools to make your agents smarter, more transparent, and easier to debug in this chapter. From tracing agent decisions with streaming callbacks to building reusable Haystack pipelines, you’ll transform your agents into with a range of capabilities, including running SQL queries. Get ready to customize, connect, and supercharge your Haystack pipeline!

    Play Chapter Now
For Business

Training 2 or more people?

Get your team access to the full DataCamp platform, including all the features.

datasets

Haystack Additional Resources

collaborators

Collaborator's avatar
Francesca Donadoni

prerequisites

Intermediate Python
Bilge Yücel HeadshotBilge Yücel

Developer Relations Engineer at deepset

Bilge is a Developer Relations Engineer at deepset, helping developers build agentic AI apps with Haystack. Passionate about AI, she makes complex concepts approachable through hands-on tutorials, both online and at real-life events.
See More

Join over 18 million learners and start Building AI Agents with Haystack today!

Create Your Free Account

or

By continuing, you accept our Terms of Use, our Privacy Policy and that your data is stored in the USA.