integrating Lottie animations into a Java web app

Integrating Lottie web animations for better UX in Java apps

When building useful applications, things like animations are typically the last thing to think about. They all seem like extra work away from solving the “real problem.” Yet, we all know that they enhance the user experience by making interactions smoother and more intuitive. I’ve always been ...

Calling ChatGPT and OpenAI APIs in Spring Boot with Java

This article will guide you on integrating OpenAI APIs, such as ChatGPT, in your Spring Boot application. We will cover moderation, embedding, and chat completion requests. It is a part of our Building an AI chatbot in Java series. Prerequisites This tutorial assumes you already have a Spring Boot ...
How to build a custom AI Chatbot in Java

Building a custom AI agent in Java: A hands-on guide

Large Language Models (LLMs) are amazing tools. We can ask them to do things for us in plain language, and they use their vast knowledge of the world to deliver an answer in an instant. But when it comes to building AI-powered applications, there's a big problem: LLMs are generic, while our ...
Best DateTimePicker components to consider for your next project

6 DateTimePicker components for your web apps

Inputting dates and times in web applications is a common task—whether users select a birthdate, book travel, or schedule an appointment. A reliable DateTimePicker component can drastically enhance the user experience by minimizing errors and simplifying input. There are many components designed ...
Handling slow actions in the Java UI

Handling slow backend actions in Vaadin apps

Vaadin’s business-app-oriented web frameworks come with a helpful productivity feature that automatically indicates to users when a backend call takes unusually long. While this feature is incredibly useful for developers to understand and manage performance, and is sufficient for most backend ...
Building Vaadin add-ons with minimal dependencies and Spring Boot setup

Building Vaadin add-ons with minimal dependencies and Spring Boot setup

In this blog, we'll show you how to minimize dependencies in Vaadin add-ons, use Spring Boot for easy development and testing, and set up a clean Maven project for compatibility with various tech stacks. It's crucial to keep the number of transitive dependencies in your add-ons to a minimum. This ...
How to summarize documents in Java with AI

Using AI to summarize documents in Java

In my previous article, I showed how to use an LLM to make sentiment analysis, draft responses to customer feedback, and create a chat-with-documents experience that uses your content. In this blog post, I continue exploring business use cases for AI by summarizing an uploaded document. I use ...
Learn how to build a Vaadin & Gemini AI chatbot.

Building a Vaadin & Gemini AI chatbot: Context management and UI customization

Welcome to part two of our series on building an AI-powered chatbot using Vaadin and Google's Gemini AI 1.5 model. In this post, we’ll enhance the basic Gemini AI chatbot from part one with advanced features like context management, a customized UI with Vaadin components, and an improved user ...
Learn how to use Web Serial API for device integration in Java web apps

Reading electronic competition card data with Web Serial API

In this blog, we'll cover how to integrate hardware devices like USB card readers with Java web apps using the Web Serial API in a Vaadin app. Many developers rule out web apps immediately when device integration is involved. But in many cases, it is for the wrong reasons. Technologies have ...