<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/create-a-chatgpt-like-chatbot-with-ollama-and-spring-ai-d1udd5gqf" -->

---
title: Create a ChatGPT Like Chatbot With Ollama and Spring AI
description: Learn how to create a basic help desk chatbot using the Spring AI module and the open-source Ollama library with Meta's llama3 model. The guide covers setting...
canonical: https://daily.dev/posts/create-a-chatgpt-like-chatbot-with-ollama-and-spring-ai-d1udd5gqf
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Create a ChatGPT Like Chatbot With Ollama and Spring AI | daily.dev
og:description: Learn how to create a basic help desk chatbot using the Spring AI module and the open-source Ollama library with Meta's llama3 model. The guide covers setting...
og:url: https://daily.dev/posts/create-a-chatgpt-like-chatbot-with-ollama-and-spring-ai-d1udd5gqf
og:image: https://api.daily.dev/og/posts/d1UDd5gqF.png
og:image:alt: Create a ChatGPT Like Chatbot With Ollama and Spring AI
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Create a ChatGPT Like Chatbot With Ollama and Spring AI

**[Baeldung](https://daily.dev/sources/baeldung)** · 8 min read · 24 upvotes · 0 comments

## Summary

Learn how to create a basic help desk chatbot using the Spring AI module and the open-source Ollama library with Meta's llama3 model. The guide covers setting up the environment, adding necessary dependencies, configuring the chatbot, and managing conversational history. Example API calls and responses are provided to demonstrate interaction with the chatbot.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://feeds.feedblitz.com/~/902715821/0/baeldung~Create-a-ChatGPT-Like-Chatbot-With-Ollama-and-Spring-AI>

---

Tags: [#ai](https://daily.dev/tags/ai), [#bots](https://daily.dev/tags/bots), [#java](https://daily.dev/tags/java), [#ollama](https://daily.dev/tags/ollama), [#spring-ai](https://daily.dev/tags/spring-ai)

[View this post on daily.dev](https://daily.dev/posts/create-a-chatgpt-like-chatbot-with-ollama-and-spring-ai-d1udd5gqf)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Create a ChatGPT Like Chatbot With Ollama and Spring AI","url":"https://daily.dev/posts/create-a-chatgpt-like-chatbot-with-ollama-and-spring-ai-d1udd5gqf","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/create-a-chatgpt-like-chatbot-with-ollama-and-spring-ai-d1udd5gqf"},"datePublished":"2024-08-12T06:28:02.455Z","dateModified":"2025-09-06T02:33:10.314Z","description":"Learn how to create a basic help desk chatbot using the Spring AI module and the open-source Ollama library with Meta's llama3 model. The guide covers setting...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12905fc8b5e08fc88dae1ce1f16b2af3?_a=AQAEuiZ","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/12905fc8b5e08fc88dae1ce1f16b2af3?_a=AQAEuiZ","isAccessibleForFree":true,"articleSection":"Baeldung","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Baeldung","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/52cccfb454d946c4b7dfa5e816f9e576","url":"https://daily.dev/sources/baeldung"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/create-a-chatgpt-like-chatbot-with-ollama-and-spring-ai-d1udd5gqf","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":24},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai,bots,java,ollama,spring-ai","timeRequired":"PT8M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Baeldung","item":"https://daily.dev/sources/baeldung"},{"@type":"ListItem","position":3,"name":"Create a ChatGPT Like Chatbot With Ollama and Spring AI"}]}
```

