Canonical URL: Republished from munonye.com. Full code on GitHub.
๐ฏ Weekend project โ You already built a Friends CRUD app with Angular and Spring Boot. This guide shows how to add AI to your Angular CRUD app in one weekend: natural-language search, summaries, and guided actions โ without throwing away your existing code.
The fastest way to ship AI in 2026 is not a greenfield chatbot โ it is extending software you already run. If you completed our Angular CRUD tutorial series or the complete CRUD guide, you have FriendsAPI (Spring Boot) and FriendsUI (Angular). We will add an AI assistant that understands your domain.
Part of the AI Developer Tutorials hub. Builds on Spring AI agents with tool calling.
Time: one weekend (~6โ8 hours) ยท Prerequisites: CRUD app running locally, OpenAI API key
Table of contents
- Before you start
- Architecture: CRUD + AI layer
- Saturday AM โ Backend tools
- Saturday PM โ Agent endpoint
- Sunday AM โ Angular chat panel
- Sunday PM โ Wire up and test
- Before production
Before you start {#before-you-start}
Confirm your stack matches the CRUD series:
| App | Port | Tech |
|---|---|---|
| FriendsAPI | 9001 | Spring Boot, JPA, /api/friends
|
| FriendsUI | 9002 | Angular 19, HttpClient, standalone components |
Refresh Angular 19 patterns in Part 1 setup if needed. For forms in the AI panel, reuse patterns from reactive forms validation (M6).
๐ก Why this beats a standalone chat app: Your AI tools call the same FriendService as your REST controllers โ one source of truth, no duplicate business logic.
Architecture: CRUD + AI layer {#architecture}
FriendsUI (Angular)
โโโ Existing CRUD screens (unchanged)
โโโ NEW: AiAssistantPanel โ POST /api/agent
FriendsAPI (Spring Boot)
โโโ Existing FriendController (/api/friends)
โโโ NEW: AgentController + FriendTools (@Tool)
โโโ FriendService (shared)
This mirrors the agent pattern from our Spring AI agents tutorial but grounded in your CRUD domain.
Saturday AM โ Backend tools {#backend}
Add Spring AI to FriendsAPI pom.xml:
<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-openai-spring-boot-starter</artifactId>
</dependency>
Expose CRUD operations as tools โ reuse your service:
---
**Read the full tutorial with all code on munonye.com โ**
---
**Full tutorial:** [Add AI to Your Angular + Spring Boot CRUD App in One Weekend (2026)](https://www.munonye.com/add-ai-to-angular-spring-boot-crud-app-weekend-2026/)
**Kindson Munonye** โ [GitHub](https://github.com/KindsonTheGenius) ยท [LinkedIn](https://www.linkedin.com/in/kindson) ยท [About](https://www.munonye.com/about/)
Top comments (0)