Hey everyone,
We’re trying to automate our backup process for Architect flows using the CX as Code CLI. Specifically, I’m running genesys cloud export architect-flow to dump everything into JSON for version control.
The command runs without errors, but when I inspect the output for our main inbound IVR, the resulting JSON is missing several decision nodes and routing selections. It looks like it’s truncating or simplifying the flow structure. Simple flows export fine, but anything with nested conditions or custom API integrations comes out looking incomplete.
Here’s the command I’m running:
genesys cloud export architect-flow --id <flow-id> --output ./exports/ivr-main.json
And here’s a snippet of the resulting JSON where things go weird. You can see the decision node exists, but the conditions array is empty, even though the flow definitely has logic there in the UI.
{
"id": "abc-123",
"name": "Main Inbound IVR",
"nodes": [
{
"id": "node-456",
"type": "decision",
"conditions": [],
"transitions": []
}
]
}
I’ve tried a few things:
- Verified the CLI is up to date (v2.1.4)
- Checked the division ID matches the flow’s division
- Tried exporting with
--include-all-versionsflag, but the latest version still has the same issue - Confirmed the flow is published and active
Is this a known limitation with the CLI export? Or am I missing a flag to get the full flow definition? The API docs for /api/v2/architect/flows suggest the full JSON should be available, but the CLI seems to be stripping it down.
Any ideas on how to get the complete flow structure?