
Discover how AI agents and agentic workflows connect to applications via the Model Context Protocol (MCP). Build Java and Spring Boot demos that automate workflows and analytics with safety gates.
Explore how Ollama enables local model execution on your machine with a docker-like workflow. Install, download models, and run via commands, while noting hardware and API considerations.
Create a Gemini API key in Google AI studio by creating a project and copying the key. Explore free-tier limits, billing, and quota options, including models like 3.1 flashlight.
Explore a Spring Boot Maven playground project with Spring AI modules for OpenAI, Google, and Olama, learning concepts through independent demos while managing providers with Spring profiles and secrets.env.
Learn to start simple by interacting with large language models, sending simple prompts through a chat client, understanding the integration, and building concepts before applying to real applications.
Demonstrate first LLM interaction by launching the olama container with docker-compose, pulling the model, and testing API chat across Google and OpenAI profiles.
Learn how chat options, especially maximum tokens, govern model responses to limit length and cost, with notes on API changes between older and final Spring AI releases.
Explore how temperature controls randomness in model responses, with a 0–2 range; low temperatures produce stable, deterministic outputs for code, while higher values boost creativity for brainstorming.
Configure a Spring app to use multi-model providers by creating separate chat clients for OpenAI, OLAMA, and Google Gen AI, with on-premise data handling and provider-specific profiles.
Explore structured output to convert model responses into Java objects, using native structured output and an advisor to enable reliable JSON formatting in Spring applications.
Understand how user prompts and system prompts steer language models toward domain-specific behavior, setting tone and constraints to prevent unwanted outputs.
Learn to use dynamic prompt templates with placeholders to create flexible, reusable prompts for chat clients. Parameterize issue and tone, load templates as resources, and apply system and user prompts.
Master prompt engineering through controlled iteration to improve outputs. Start with simple prompts, then refine rules to exclude the given title and produce three similar movie recommendations.
Implement a custom logging advisor to log llm requests and responses, using a call advisor framework with order, name, and mutate methods, and demonstrate logging during an llm call.
Learn to enable request and response logging with Spring's simple logger advisor, beautify output with Jackson, and set the class to debug level to reveal details.
Explore how prompts evolve into message roles for multi-turn AI chats, define user, assistant, and system roles, and explain including prior messages in the prompt object to preserve context.
Discover how Spring AI's chat memory manages conversation history on the application side, using a conversation id to include prior messages in each request.
Add AI-powered insights to the Talent Flow microservices by introducing a Career Advisor, enabling job fit analysis, skill-based comparisons, resume generation, and AI-assisted candidate evaluation for recruiters and candidates.
Explore a candidate service with a one-to-many candidate and work experience schema, exposing a minimal api that returns candidate data by id via a dto mapper.
Learn to build a client that talks to a large language model using feature-specific prompt templates, system and user messages, and career advisor prompts organized with Java records.
Implement a FindJobs API that fetches candidate and job data, scores matches with an LLM, and provides justified reasoning via a career advisor client.
Implement a find jobs api by injecting job, candidate, and advisor clients, retrieving candidate skills, searching jobs by skills, evaluating with the advisor, and returning a sorted match score list.
Create a compare jobs API that fetches candidate and job details, uses an LLM to compare based on skills, location, and salary, and returns a best job recommendation.
Implement the job application submission API, persist the application via the service and DTO mapper, and trigger an asynchronous event to review with an LLM, updating match score and reasoning.
Build and configure the hiring advisor client using a chat client builder, Jackson JSON mapper, and resource loader, loading prompt templates and enabling native structured output for requests.
Enhance an existing microservices app by layering AI on top of candidate, job, and hiring services, providing guidance for candidates and insights for recruiters.
Protect data in MCP by exposing only what AI needs, never direct database access; MCP like REST for AI access while safeguarding SSN, date of birth, and credit card details.
Identify the three core components of MCP architecture: LLM, MCP server, and MCP host—and understand how the MCP host coordinates requests between the LLM and servers.
Explore how an MCP server exposes capabilities by grouping features into resources, tools, and prompts. Resources are read-only data, tools perform actions, and prompts are reusable templates.
Clarifies that the LLM does not execute tools. The MCP host initiates conversations with the LLM, selects and calls tools, and executes them in a private network, sharing results.
Clarify why multiple Spring AI modules are included for MCP architecture, using the Spring AI starter MCP server and MCP client modules, with streamable HTTP and LLM integration.
Explore a Spring Boot Maven playground for the MCP, wiring MCP server and host with external LLMs like Google Gen AI or OpenAI, and run independent sectioned hosts and servers.
Discover how MCP maps instructions to tools and the role of tool calling in AI agents, comparing OpenAI, Google Gemini, and OLAMA implementations.
Explore how the system message defines the LLM's tone and behavior, instructing the use of available tools and proper responses when tools are unavailable, and encouraging experimentation and rule refinement.
MCP is a relatively new specification evolving through community feedback and real world usage, with tools as the foundation for building AI agents; resources and prompts are also important.
Move from data providers to goal-driven, more autonomous systems where the LLM decides what to do and the MCP host executes tool calls via MCP servers.
Explore file operations with the file tools, including creating, reading, deleting, converting csv to json, merging files, and managing runtime directories under target/classes.
Learn how to structure tool parameters using a Java record to pass a single structured input, describe each field, and keep code clean while scaling parameter handling.
Demonstrates structured input workflows using a local server and browser UI to list and schedule reminders with an LLM tool, and verifies timings via server logs.
Explore tool design approaches for an order service, implementing a seven-day cancellation rule and comparing low-level tools, logic-in-tools, and robust failure handling to improve reliability.
Capture tool errors as part of the tool response, avoid exceptions, and use clear messages with status codes such as 400, 401, 404 in MCP-hosted LLM interactions.
Explore pattern 3: design encapsulated and robust tools with try-catch handling, eligibility checks for cancel orders, and user-friendly messages for not found errors, then deploy and test on localhost:8080.
Configure a MCP meta driven project setup that enforces premium user permissions for listing and canceling orders, using a shared dto package, user context, and host-server communication.
Start the server and host app, pass a user id as a parameter, and show that premium users cancel order 35 while standard users cannot, with order 1 not found.
Demonstrates flight agent orchestration across city, flight, user, and weather MCP servers to book Seattle tomorrow, guided by user preferences (Sam: cheapest; Mike: shortest duration).
Enable progress notifications between the MCP host and server using a unique progress token and MCPSyncRequestContext, then forward updates via MCPProgressAnnotation to the UI across multiple servers.
Expose real-time progress updates to the UI using a Sync object and Flux, broadcasting via multicast with backpressure in reactive programming.
Create a unique progress token to route per-user updates from the MCP host to the UI, with a flux API filtering by token.
Build AI Agents and Agentic Workflows using Spring AI, MCP and Java. (Latest Spring Boot 4.X, Spring AI 2.X)
This entire course is about developing our own AI Agents From Scratch. It is a deep-dive, architecture-first masterclass on building production-grade AI Agents and Agentic Workflows using Java, Spring AI and the Model Context Protocol (MCP).
What you will master:
Building AI Agents using Spring AI and Java
Designing Agentic Workflows and multi-turn reasoning systems
Understanding MCP Architecture and communication flow
Implementing MCP Tools, Resources and Prompts
Building Human-in-the-Loop workflows using Elicitation
Handling asynchronous workflows using Progress Notifications
Integrating OpenAI, Gemini and local models using Ollama
Using ChatClient, ChatMemory and Advisors effectively
Implementing Structured Output and Prompt Engineering techniques
Designing AI-Powered Microservices using Spring Boot
Writing Integration Tests for MCP-based systems
Applying real-world AI architecture patterns and implementation best practices
By the end of the course, you will be able to:
Build production-grade AI Agents and Agentic Workflows using Spring AI and Java
Design and implement MCP Servers with Tools, Resources and Prompts
Integrate OpenAI, Gemini and local LLMs into Spring Boot applications
Build context-aware AI systems using ChatMemory, Advisors and Structured Output
Apply production-oriented AI architecture patterns, testing strategies and best practices
Throughout the course, we will build practical, production-style AI systems using Spring Boot, Spring AI and MCP.