Skip to main content

Setup Flowable to use AI features

Introduction

In order to use the AI features, you have to setup Flowable with some environment properties to properly connect to an AI service and use those features inside Flowable Design and Work.

When using the model generation or the preview for the AI service you need to enable it for Flowable Design. For all features except the model generation the properties are required for Flowable Work.

note

In case you do not enable the AI, or you don't have an AI license for your system, you won't see the AI features like model generation in the user interface.

Use ChatGPT as the AI service

With the Flowable Artifacts

When you use the Flowable artifacts, you can use the following properties to enable OpenAI:

application.ai.type=openai
spring.ai.openai.api-key=<your OpenAI API Key>
spring.ai.openai.chat.options.temperature=0.3
spring.ai.openai.chat.options.model=gpt-4o

Building an Own Project

When you use create your own project, you need to add the following dependency to the source code:

<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-openai-spring-boot-starter</artifactId>
</dependency>

In addition, the following properties are required:

spring.ai.openai.api-key=<your OpenAI API Key>
spring.ai.openai.chat.options.temperature=0.3
spring.ai.openai.chat.options.model=gpt-4o

Use Anthropic Claude as the AI service

With the Flowable Artifacts

When you use the Flowable artifacts, you can use the following properties to enable Anthropic3:

application.ai.type=anthropic3
spring.ai.anthropic.api-key=<your Claude API Key>

Building an Own Project

When you use create your own project, you need to add the following dependency to the source code:

<dependency>
<groupId>org.springframework.ai</groupId>
<artifactId>spring-ai-anthropic-spring-boot-starter</artifactId>
</dependency>

In addition, the following properties are required:

spring.ai.anthropic.api-key=<your Claude API Key>