← Code Exchange

Temporal + Spring AI Integration Framework

A library and sample application showing how the Temporal Java SDK can be used to power AI applications with Spring AI.


⚠️ Community Contributed Project

This project was generously donated by one of our fabulous Temporal community members! We encourage you to check it out, but urge caution as Temporal does not formally support or endorse this project.

Introduction#

This repository contains an experimental Temporal + Spring AI integration.

What is Spring AI#

Spring AI is an application framework for AI engineering. Its goal is to apply to the AI domain Spring ecosystem design principles such as portability and modular design and promote using POJOs as the building blocks of an application to the AI domain.

Features#

Current Features are:

  • Easily call AI models from within a Temporal Workflow
  • First class integration with the Chat client model and conversation history
  • Automatically converting activities, local activities, nexus operations and child workflows (TBD) into tools
  • MCP integration
  • Support for autowiring AI models, MCP clients, and vector store clients directly into activities
  • Multiple model support
  • Native multimedia support
  • Support vector stores and vector search for RAG and context fetching

Language

Java
💖 Community SpringAI

About the Author

Gray Toyota logo with three overlapping ellipses forming a stylized T on white background

Quinn Klassen

Sr. Software Engineer

Temporal