> For the complete documentation index, see [llms.txt](https://synergy-codes.gitbook.io/workflow-builder/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://synergy-codes.gitbook.io/workflow-builder/json-example.md).

# JSON Example

A workflow created in Workflow Builder can be exported as a JSON object, which fully describes its structure, steps, and configuration. This JSON file provides a standardized format for saving, editing, and re-importing workflows into your system or database, enabling easy management and automation of business processes

```
{
  "name": "Call flow",
  "layoutDirection": "DOWN",
  "diagram": {
    "nodes": [
      {
        "id": "a954a959-9bc1-4f6e-bd9f-35807a220c0b",
        "type": "node",
        "position": {
          "x": 1137,
          "y": 12
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Incoming Call",
            "description": "Trigger",
            "dataSource": "Time-based Trigger"
          },
          "type": "trigger",
          "icon": "Lightning"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "6e4c57e4-4136-4aa4-a183-43679b1f7170",
        "type": "node",
        "position": {
          "x": 1137,
          "y": 182
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Is the Call Answered?",
            "description": "Conditional",
            "title": "Conditional",
            "subtitle": "Branch the workflow"
          },
          "type": "conditional",
          "icon": "ListChecks"
        },
        "selected": true,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "a845d12e-0852-4809-96ce-334159e100fe",
        "type": "node",
        "position": {
          "x": 1362,
          "y": 373
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Greeting",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
          "icon": "PlayCircle"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "65706043-b1d2-4600-b918-3b82ff5dfc13",
        "type": "node",
        "position": {
          "x": 912,
          "y": 373
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Leave Voicemail",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
          "icon": "PlayCircle"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "c187ef68-0fb8-47da-9a62-310afe91bfaa",
        "type": "node",
        "position": {
          "x": 1362,
          "y": 543
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Is it a new Customer?",
            "description": "Conditional",
            "title": "Conditional",
            "subtitle": "Branch the workflow"
          },
          "type": "conditional",
          "icon": "ListChecks"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "b2a4b7a7-1900-4218-aea4-902de2e4eb51",
        "type": "node",
        "position": {
          "x": 912,
          "y": 543
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "End Workflow",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
          "icon": "PlayCircle"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "09c67367-8d0d-44ae-bf4e-66b36f5c389f",
        "type": "node",
        "position": {
          "x": 912,
          "y": 734
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Transfer to Sales",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
          "icon": "PlayCircle"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "b01ced25-ca06-47c7-a14f-21e5a0200a61",
        "type": "node",
        "position": {
          "x": 1362,
          "y": 734
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Technical Suppport or Billing?",
            "description": "Conditional",
            "title": "Conditional",
            "subtitle": "Branch the workflow"
          },
          "type": "conditional",
          "icon": "ListChecks"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        },
        "dragging": false
      },
      {
        "id": "f1d785cc-1715-4b27-97e4-59347f08e660",
        "type": "node",
        "position": {
          "x": 687,
          "y": 925
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Is Sales Available?",
            "description": "Conditional",
            "title": "Conditional",
            "subtitle": "Branch the workflow"
          },
          "type": "conditional",
          "icon": "ListChecks"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "6c3fca17-a1d4-4008-8a72-605d91eb7fd6",
        "type": "node",
        "position": {
          "x": 1137,
          "y": 925
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Conditional",
            "description": "Branch the workflow",
            "title": "Conditional",
            "subtitle": "Branch the workflow"
          },
          "type": "conditional",
          "icon": "ListChecks"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "6c0ecb78-cd09-4728-8dc7-414ab1c42ea2",
        "type": "node",
        "position": {
          "x": 1587,
          "y": 925
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Conditional",
            "description": "Branch the workflow",
            "title": "Conditional",
            "subtitle": "Branch the workflow"
          },
          "type": "conditional",
          "icon": "ListChecks"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        },
        "dragging": false
      },
      {
        "id": "18562830-da0b-443e-a859-79cb95473f59",
        "type": "node",
        "position": {
          "x": 462,
          "y": 1136
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Leave Voicemail",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
          "icon": "PlayCircle"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        }
      },
      {
        "id": "bc34e3ae-6dd2-4543-8efe-190863df49e6",
        "type": "node",
        "position": {
          "x": 1362,
          "y": 1136
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Leave Voicemail",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
          "icon": "PlayCircle"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        },
        "dragging": false
      },
      {
        "id": "6ab2c9e2-7e1e-4061-83ea-83a88aa246eb",
        "type": "node",
        "position": {
          "x": 12,
          "y": 1136
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Connect to Sales",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
          "icon": "PlayCircle"
        },
        "selected": false,
        "measured": {
          "width": 259,
          "height": 63
        },
        "dragging": false
      },
      {
        "id": "feb863db-de51-4aee-8746-f9e02d993cb7",
        "type": "node",
        "position": {
          "x": 912,
          "y": 1136
        },
        "data": {
          "segments": [],
          "properties": {
            "label": "Connect to Support",
            "description": "Action",
            "title": "Send E-mail",
            "subtitle": "Send E-mail Action"
          },
          "type": "action",
        ...
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://synergy-codes.gitbook.io/workflow-builder/json-example.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
