Overview
BPMN integration allows you to:- Automate document processing in the background
- Make AI-powered decisions at process gateways
- Generate content automatically within workflows
- Validate data using AI analysis
Integration methods
Method 1: Start Integration Workflow action
Use the Start Integration Workflow action to call an AI agent from any BPMN node.Start Integration Workflow
Detailed configuration reference
Method 2: Custom Agent Node
For complex agent interactions, use the Custom Agent Node in Integration Designer:| Feature | Start Integration Workflow | Custom Agent Node |
|---|---|---|
| Setup complexity | Simple | More complex |
| Flexibility | Standard call/response | Full workflow control |
| Error handling | Basic | Advanced |
| Best for | Single agent calls | Multi-step AI workflows |
Custom Agent Node
Integration Designer agent configuration
Common patterns
Document extraction
Extract data from uploaded documents and continue the process with structured data.- Input: Document file ID or content
- Output: Extracted fields mapped to process variables
- Error handling: Route to manual review if confidence is low
Automated decisions
Use AI to make or recommend decisions at process gateways.- Input: All relevant process data
- Output: Decision result and confidence score
- Human override: Optional review step for low-confidence decisions
Content generation
Generate documents, emails, or reports automatically.- Input: Template reference and data to include
- Output: Generated content (text, HTML, or document)
- Review: Optional human approval before sending
Input/Output mapping
Sending data to agents
Map process variables to agent input:Receiving agent responses
Map agent output back to process variables:Error handling
Timeout handling
Timeout handling
Configure timeouts for agent calls. If an agent doesn’t respond in time, route to a fallback path or retry.
Low confidence results
Low confidence results
Check confidence scores in gateway conditions. Route low-confidence results to human review.
Agent failures
Agent failures
Use boundary error events to catch agent failures and handle them gracefully.
Best practices
Async processing
Use async patterns for long-running agent tasks to avoid blocking the process
Idempotency
Design agent calls to be safe to retry in case of failures
Monitoring
Track agent call metrics (latency, success rate, confidence scores)
Fallbacks
Always have a fallback path for when agents fail or return uncertain results

