{
  "kind": "open-flow-workflow",
  "version": 1,
  "name": "Summarize a support ticket",
  "content": {
    "modelVersion": 14,
    "document": {
      "bindings": {},
      "graph": {
        "nodes": {
          "start": {
            "name": "Start",
            "kind": "start",
            "inputDefs": [
              {
                "jsonSchema": {
                  "type": "string"
                },
                "nullable": false,
                "handle": "text"
              }
            ]
          },
          "summarize": {
            "inputs": {
              "messages": {
                "kind": "value",
                "value": null
              },
              "input": {
                "kind": "sources",
                "sources": [
                  {
                    "kind": "node",
                    "nodeId": "start",
                    "output": "text"
                  }
                ]
              },
              "template": {
                "kind": "value",
                "value": [
                  {
                    "role": "user",
                    "content": "Summarize this support ticket in one sentence: {{input}}"
                  }
                ]
              },
              "model": {
                "kind": "value",
                "value": {
                  "model": "deepseek-v4-flash"
                }
              }
            },
            "name": "Summarize a ticket",
            "kind": "task",
            "task": {
              "inputs": [
                {
                  "jsonSchema": {
                    "items": {
                      "type": "object"
                    },
                    "type": "array"
                  },
                  "nullable": true,
                  "handle": "messages",
                  "value": null
                },
                {
                  "jsonSchema": {
                    "type": "string"
                  },
                  "nullable": false,
                  "handle": "input",
                  "value": ""
                },
                {
                  "jsonSchema": {
                    "items": {
                      "type": "object"
                    },
                    "minItems": 1,
                    "type": "array"
                  },
                  "nullable": false,
                  "handle": "template",
                  "value": [
                    {
                      "role": "user",
                      "content": "Summarize this support ticket in one sentence: {{input}}"
                    }
                  ]
                },
                {
                  "jsonSchema": {
                    "type": "object"
                  },
                  "nullable": false,
                  "handle": "model",
                  "value": {
                    "model": "deepseek-v4-flash"
                  }
                }
              ],
              "outputs": [
                {
                  "description": "A one-sentence summary",
                  "jsonSchema": {
                    "type": "string"
                  },
                  "nullable": false,
                  "handle": "output"
                }
              ],
              "name": "Summarize a ticket",
              "executor": {
                "kind": "llm",
                "mode": "chat"
              }
            }
          }
        },
        "edges": [
          {
            "source": "start",
            "target": "summarize"
          }
        ]
      }
    },
    "modules": {}
  },
  "presentation": {
    "designer": {
      "version": 1,
      "flow": {
        "nodes": {
          "start": {
            "x": 0,
            "y": 0
          },
          "summarize": {
            "x": 340,
            "y": 0
          }
        }
      }
    }
  }
}
