Skip to main content
v1

Consumer Guide

ConvEngine consumer integration is about wiring three things correctly:

  • framework bootstrapping (@EnableConvEngine)
  • LLM adapter (LlmClient)
  • DB-driven behavior (ce_* control-plane rows)

10-Minute Starter

1

Enable framework

Use @EnableConvEngine on your Spring Boot entry point.

2

Provide LlmClient

Register a concrete LlmClient bean for intent/schema/derived flows.

3

Apply ce_* schema

Apply DDL and seed minimum rows in ce_intent, ce_intent_classifier, ce_response, ce_prompt_template.

4

Validate with audit trace

Run a real turn and validate with /api/v1/conversation/audit/{conversationId} and /api/v1/conversation/audit/{conversationId}/trace.

Dependency

pom.xml dependency
package: project build
XML
<dependency>
<groupId>com.github.salilvnair</groupId>
<artifactId>convengine</artifactId>
<version>1.0.15</version>
</dependency>

Core Contracts

Consumer-side contracts

ContractWhy it mattersWhere it plugs in
@EnableConvEngineBootstraps engine + pipeline + transport wiringSpring Boot application class
LlmClientProvides text/json generation backendConsumer config bean
ce_* tablesDefines behavior as data, not hardcoded JavaConsumer database
EngineStepHookAllows pre/post step interventionConsumer extension bean
ResponseTransformerLast-mile payload normalizationConsumer extension bean
Spring Boot entry point
package: com.zapper.demofile: src/main/java/com/acme/demo/DemoApplication.java
JAVA
@SpringBootApplication
@EnableConvEngine(stream = true)
public class DemoApplication {
public static void main(String[] args) {
SpringApplication.run(DemoApplication.class, args);
}
}
LlmClient bean
package: com.zapper.demo.configfile: src/main/java/com/acme/demo/config/LlmConfig.java
JAVA
@Configuration
public class LlmConfig {
@Bean
public LlmClient llmClient(OpenAiClient openAiClient) {
return new OpenAiLlmClient(openAiClient);
}
}

Rollout Plan

Recommended rollout path

PhaseScopeExit criteria
Phase AEXACT responses + deterministic rulesNo unresolved intent collisions in audit
Phase BSchema extraction + clarification flowMissing-field loop converges in <= 2 turns
Phase CMCP + DERIVED outputStable tool-call traces and bounded token usage
Do not skip audit validation

Treat ce_audit as mandatory observability. Promote behavior changes only after reviewing multi-turn traces for each key intent.