For the complete documentation index, see llms.txt.
Skip to main content
Version: 8.10

AI Agent connector

Use the AI Agent connector to integrate Large Language Models (LLMs) with AI agents to build solutions using agentic orchestration.

About this connector​

The AI Agent connector enables AI agents to integrate with an LLM to provide interaction/reasoning capabilities. This connector is designed for use with an ad-hoc sub-process in an agent loop, providing automated tool selection.

For example, use this connector to enable an AI agent to autonomously select and execute tasks within ad-hoc sub-processes by evaluating the current process context and determining the relevant tasks and tools to use in response.

Core features include:

FeatureDescription
LLM provider supportSupports a range of model providers, such as Anthropic, AWS Bedrock, Google Gemini, and OpenAI.
MemoryProvides conversational/short-term memory handling to enable multi-turn conversations. For example, this allows a user to ask follow-up questions to an AI agent response.
Tool callingSupport for an AI agent to interact with tasks within an ad-hoc sub-process, allowing use of all Camunda features such as connectors and user tasks (human-in-the-loop). Automatic tool resolution allows an AI agent to identify the tools available in an ad-hoc sub-process.
tip

New to agentic orchestration?

  • The Build your first AI Agent guide provides a quick introduction to agentic orchestration and how to use the AI Agent Sub-process connector using a blueprint.
  • See further resources for examples of how you can use the AI Agent connector.

Prerequisites​

Before using this connector, set up an account and authentication details for the LLM model provider and backend you want to use. The required credentials depend on the provider and backend.

See AI Agent model providers for more details.

Choose an implementation​

The AI Agent connector family includes two connectors, each with different capabilities, suited for different use cases, and available with a dedicated element template:

The right implementation depends on your use case.

Use caseImplementationDescription
Agentic workflow with automatic tool calling (most use cases)AI Agent Sub-processIt handles tool resolution and the agent loop automatically. No explicit loop modeling is needed. You must include at least one activity/tool inside the sub-process.
Inference tasks that don't require tool callingAI Agent Task without toolsA single, one-shot LLM call with no ad-hoc sub-process.
Intercepting tool calls, for example, to add a human approval step or run PII detection before tool executionAI Agent Task with toolsTools are provided by an external ad-hoc sub-process that you model explicitly, giving you full control over the agent loop. This is the most complex configuration.
info

The recommended approach for most use cases is to use the AI Agent Sub-process implementation due to the simplified configuration and support for event sub-processes.

If your process models use templates from before 8.10, see upgrade AI Agent element templates to migrate to the latest version.

Compare implementations​

The following table summarizes the key configuration differences between the two implementations.

Configuration fieldAI Agent Sub-processAI Agent Task
Model providerYesYes
ModelYesYes
System promptYesYes
User promptYesYes
ToolsAutomatic (resolved from activities inside the sub-process)Optional. Requires ad-hoc sub-process ID and tool call results
Agent context (memory)Optional. Only needed when re-entering the agent for a response follow-upRequired. Must be aligned with the output mapping result variable
LimitsYesYes
Event handlingYesNo
ResponseYesYes
toolCalls in outputNoYes. Returned for routing to the ad-hoc sub-process
Error handlingYesYes
RetriesYesYes
Execution listenersYesYes
note

Execution listeners behave differently between the two implementations. On the AI Agent Sub-process, they only run when entering and exiting the ad-hoc sub-process, not on every loop iteration. On the AI Agent Task, they are triggered on every job execution.

Learn the fundamentals​

Understand the fundamental concepts of the AI Agent connector, configure the LLM provider, and pass documents to the model.

Dive into advanced topics​

Upgrade the element templates, migrate running process instances, and customize the connector in Self-Managed.

Explore further resources​

Dive into practical resources to see the AI Agent connector in action.