Skip to main content

Importing BPMN Processes

Import your existing BPMN 2.0 process definitions into MeetLoyd and operationalize them with AI agents.

Why Import BPMN?

Enterprise teams already have business processes modeled in tools like:

  • MEGA HOPEX
  • Camunda Modeler
  • Signavio
  • ARIS
  • Bizagi

These tools all export to BPMN 2.0 XML (ISO 19510), making it the universal interchange format. Instead of rebuilding processes from scratch in MeetLoyd, you can import them directly and assign AI agents to each task.

How It Works

The import follows a three-step wizard:

  1. Upload & Validate - Drop your .bpmn or .xml file
  2. Preview - Review the mapped workflow, warnings, and unmapped elements
  3. Assign Agents - Pick which agents handle each task (or skip and assign later)

The result is a draft workflow that you can further customize in the visual editor before activating.

Step-by-Step Guide

1. Open the Import Dialog

Navigate to Workflows and click the Import BPMN button next to "New Workflow".

2. Upload Your BPMN File

Drag and drop your .bpmn or .xml file into the upload zone, or click to browse. Files up to 5MB are supported (typical BPMN files are 50-500KB).

The system automatically validates the file:

  • Well-formed XML with BPMN namespace
  • At least one start event and one end event
  • All elements are reachable from the start event

If validation fails, you'll see specific error messages explaining what needs to be fixed in the source tool.

3. Review the Preview

After validation passes, you'll see a preview of the mapped workflow:

  • Mapped nodes - Each BPMN element converted to a MeetLoyd node type
  • Agent slots - Tasks that need an agent assigned
  • Warnings - Elements that were approximated or partially supported
  • Unmapped elements - BPMN constructs that couldn't be imported

You can rename the workflow at this stage.

4. Assign Agents

For each agent slot, you can either:

  • Select an existing agent from your team
  • Leave it as a placeholder and assign later from the workflow editor

If your BPMN file uses lanes (swim lanes), the import suggests roles based on lane names to help you pick the right agent.

5. Confirm Import

Click Import Workflow to create the draft workflow. You can then:

  • Open it in the visual workflow editor to fine-tune
  • Assign remaining agents
  • Configure webhook URLs, conditions, and timeouts
  • Activate when ready

Element Mapping

Here's how BPMN elements map to MeetLoyd workflow nodes:

BPMN ElementMeetLoyd NodeWhat Happens
Start EventStartEntry point of the workflow
End EventEndExit point
Service TaskAgentPlaceholder for an AI agent
User TaskHumanHuman-in-the-loop approval step
Script TaskTransformScript stored as description (never executed)
Send/Receive TaskWebhookHTTP integration placeholder
Exclusive GatewayConditionConditional branching
Parallel Gateway (fork)ParallelExecute branches concurrently
Parallel Gateway (join)MergeWait for all branches
Timer EventDelayWait for specified duration
Sub-ProcessFlattenedChild elements are inlined into the main flow

Conditions

BPMN condition expressions are mapped to MeetLoyd's template syntax where possible:

BPMN:     ${approved == "true"}
MeetLoyd: {{input.approved}} == "true"

Complex expressions that can't be automatically converted are preserved as comments, and you'll see a warning to configure them manually.

Gateways

BPMN gateways can serve as both a join point (multiple incoming flows) and a fork point (multiple outgoing flows) at the same time. MeetLoyd separates these into a merge node followed by a parallel/condition node, connected automatically.

Supported Export Tools

Any tool that produces standard BPMN 2.0 XML is supported. We've tested with:

ToolStatus
Camunda ModelerFully supported
MEGA HOPEXFully supported
SignavioFully supported
BizagiFully supported
ARISFully supported
draw.io (BPMN mode)Fully supported

The importer detects the source tool from the XML metadata and handles tool-specific quirks automatically.

Limitations (v1)

Some BPMN constructs are partially supported or approximated:

BPMN FeatureHandling
Inclusive gatewaysTreated as exclusive (warning issued)
Complex gatewaysTreated as exclusive
Signal/compensation eventsSkipped with warning
Message flows between poolsNot supported (single-process import)
Data store referencesNoted in descriptions
Multi-instance tasksApproximated as loops

All limitations produce clear warnings during preview so you know exactly what was approximated.

API Usage

You can also use the import endpoints programmatically:

Validate

curl -X POST https://api.meetloyd.com/api/workflows/import/validate \
-H "Authorization: Bearer $TOKEN" \
-F "file=@process.bpmn"

Preview

curl -X POST https://api.meetloyd.com/api/workflows/import/preview \
-H "Authorization: Bearer $TOKEN" \
-F "file=@process.bpmn"

Confirm

curl -X POST https://api.meetloyd.com/api/workflows/import/confirm \
-H "Authorization: Bearer $TOKEN" \
-H "Content-Type: application/json" \
-d '{
"preview": { ... },
"name": "My Imported Process",
"agentAssignments": {
"bpmn_task_1": "agent_abc123",
"bpmn_task_2": "agent_def456"
}
}'

Tips

  • Export as BPMN 2.0 XML - Make sure your tool exports standard BPMN, not a proprietary format
  • Keep it under 100 tasks - Very large processes work but are easier to manage when split into smaller workflows
  • Use lanes - Lane names in your BPMN diagram become role suggestions during agent assignment
  • Add documentation - BPMN task documentation annotations become node descriptions in MeetLoyd
  • Start with draft - Imported workflows are always created as drafts, giving you time to review and configure before activation

Next: Learn more about Workflows and how to build them from scratch.