Configuring the Agent

This chapter is the Modeler-facing reference for the AI Agent service task (connectorId = cibseven-ai-agent). For an exhaustive parameter table including the Knowledge Ingestor, see the Configuration Reference.

The element template and its field groups

Apply the CIB seven - AI Agent template (id org.cibseven.connect.ai.agent) to a bpmn:ServiceTask. The fields are organized into five groups:

Group What it configures
Input agentName, message, instruction, instructionMode
Agent baseUrl, model, apiKey, customHeaders, reasoningEffort, reasoningSummary, agentDescription, persistChatLog
Tools mcpServers, toolClasses → see Tools
Memory useChatMemory, memoryId, chatMemoryMaxMessages → see Chat Memory
RAG pgHost…pgTable, maxRagResults, minRagScore, embeddingDimension, embeddingModelName → see RAG

Only Agent name and Message are required; everything else is optional.

Core inputs

Field Parameter Notes
Agent name agentName Required. Logical name of the agent. Default value in the template: CIB seven AI Agent.
Message message Required. The user message. Typically references a process variable, e.g. Summarize: ${feedbackText}.
Agent description agentDescription Optional, human-readable description.

LLM provider (endpoint, model, authentication)

The connector speaks to any OpenAI-compatible API. Four fields control the endpoint and model:

Field Parameter Default / resolution
Base URL baseUrl baseUrl → env OPENAI_BASE_URL → https://api.openai.com/v1
Model model model → system property cibseven.connect.ai-agent.defaultModel → env CIBSEVEN_CONNECT_AI_AGENT_DEFAULT_MODEL → built-in gpt-6-luna
API key apiKey apiKey → env OPENAI_API_KEY, only for the server’s endpoint (see API key and endpoint)
HTTP headers customHeaders JSON object of header → value, e.g. {"X-Request-Source": "cibseven"}

Note

The built-in default model is intentionally a configurable placeholder. Operators set the organisation-wide default via the system property or environment variable above; see Installation. Don’t rely on the hard-coded value being a model your provider actually serves.

API key and endpoint

The API key from the server’s OPENAI_API_KEY environment variable belongs to the endpoint the operator configured: OPENAI_BASE_URL, or https://api.openai.com/v1 if OPENAI_BASE_URL is not set. The connector sends it only

  • when the model does not set Base URL, or
  • when Base URL has the same scheme, host and port as that endpoint.

A Base URL taken from a process variable therefore cannot receive the server’s key. For any other endpoint, the request is sent without an API key and the connector logs a warning naming the endpoint (scheme, host and port only); the provider typically rejects the request with HTTP 401. To use another provider that needs a key, set OPENAI_BASE_URL to its endpoint (see the recipes below), or define API key in the model. An API key defined in the model is sent to the model’s endpoint, whatever it is. Endpoints that need no key, such as a local Ollama, are not affected.

For remote embedding models in the agent and in the Knowledge Ingestor, see the note on data residency below.

Allowed endpoints

Operators can restrict the endpoints the agent may contact with the JVM system property cibseven.connect.cibseven-ai-agent.allowed-endpoints (environment variable CIBSEVEN_CONNECT_CIBSEVEN_AI_AGENT_ALLOWED_ENDPOINTS) or the global cibseven.connect.allowed-endpoints. The base URL, every MCP server, the pgvector host and, for remote embeddings, the OpenAI embedding endpoint are checked before anything is sent. List all of them, for example:

JAVA_OPTS="-Dcibseven.connect.cibseven-ai-agent.allowed-endpoints=https://api.openai.com,https://mcp.example.com,postgresql://db.example.com:5432"

The Knowledge Ingestor (cibseven-knowledge-ingestor) checks its pgvector host and embedding endpoint the same way. A refused endpoint fails the task with a ConnectorEndpointNotAllowedException. For the syntax and all settings, see Allowed Endpoints.

Provider recipes

The same task works against any OpenAI-compatible endpoint — only baseUrl, model, and the authentication differ. Use a current model ID from your provider’s catalogue in place of the placeholders below.

OpenAI (default) — omit baseUrl; set the key in the server’s OPENAI_API_KEY env var.

model:   <an OpenAI chat model>

Azure OpenAI — on the server, set OPENAI_BASE_URL to your Azure deployment endpoint (https://<resource>.openai.azure.com/openai/v1) and OPENAI_API_KEY to the Azure key. Many Azure setups expect the key in a header; use customHeaders if your gateway requires it.

model:   <your Azure deployment name>

OpenRouter — on the server, set OPENAI_BASE_URL to https://openrouter.ai/api/v1 and OPENAI_API_KEY to the OpenRouter key; prefix the model with its provider.

model:   <vendor>/<model>     # e.g. openai/<model>, anthropic/<model>

Anthropic (Claude) — Anthropic’s OpenAI-compatible endpoint, with an API key from the Claude Console. Leave Reasoning effort and Reasoning summary empty. Anthropic describes this endpoint as meant for trying out and comparing models rather than for long-term production use.

baseUrl: https://api.anthropic.com/v1
model:   <a Claude model>
apiKey:  ${anthropicKey}

The key is always an API key of the provider’s developer platform. A chat subscription, such as ChatGPT, Claude.ai or Claude Code, is not an API key and cannot be used here.

Ollama (local / self-hosted) — no API key needed for a local server.

baseUrl: http://localhost:11434/v1
model:   <a model you've pulled into Ollama>

Data Residency Note

baseUrl governs the chat model. In this release it does not govern a remote embedding model used for RAG — a remote embeddingModelName currently always calls the public OpenAI endpoint. If you must keep embeddings on a private/sovereign endpoint, use the local default embedding model.

Remote embeddings receive OPENAI_API_KEY only if OPENAI_BASE_URL is not set or points to OpenAI as well, so another provider’s key is not sent to OpenAI. An API key defined in the model belongs to its Base URL and is only used for remote embeddings if that base URL is OpenAI as well. With another provider configured, leave embeddingModelName empty to use the local embedding model. The Knowledge Ingestor sends its own API key field to OpenAI, since it has no chat endpoint. See RAG and Limitations.

System prompt and instruction modes

The connector ships a default system prompt that frames the agent as a CIB seven workflow agent and tells it how to use whatever tools/RAG/memory are wired in, and how to format its reply for the next BPMN step. You influence the prompt with two fields:

  • Instruction (instruction) — your system prompt text. Leave empty to use only the bundled default.
  • Instruction mode (instructionMode) — how your instruction combines with the bundled default. Ignored when instruction is empty.
Mode Value Effect
Replace default replace (default) Only your instruction is sent; the bundled default is discarded.
Append to default append Bundled default first, then your instruction (blank-line separated).
Prepend to default prepend Your instruction first, then the bundled default.

An unknown instructionMode value makes the connector reject the request with an AgentConnectorException. Use append when you want to keep the CIB seven framing and just add task-specific guidance.

Reasoning models

For reasoning-capable models, two optional hints are forwarded to the provider:

Field Parameter Example Effect
Reasoning effort reasoningEffort low / medium / high Thinking-budget hint, forwarded as-is.
Reasoning summary reasoningSummary auto / concise / detailed Enables reasoning-summary text. Switches the connector to the OpenAI Responses API (required for summaries).

Allowed values are model-dependent and passed through unchanged. Setting reasoningSummary changes the underlying client, so only set it for models that support the Responses API.

Output variables

Output field (template default) Source Description
agentOutput ${output} The agent’s final text answer. Required output mapping.
agentOutput_aiMeta ${outputAiMeta} Map marking the value AI-generated (aiGenerated, runId, provider, model, responseId, generatedAt). Leave unset to skip. See Audit Trail.
memoryId ${memoryId} The chat-memory id; only meaningful with chat memory. Leave unset to skip. See Chat Memory.

Note

The full chat-log audit timeline is not an output parameter — it’s written to a process variable automatically. See Audit Trail & AI Transparency.

On this Page: