{
  "name": "SynapsAI — BSP pipeline, reply leg (Agent replied → BSP send)",
  "flow": [
    {
      "id": 1,
      "module": "synapsai:agentReplied",
      "version": 1,
      "parameters": {
        "__IMTCONN__": null,
        "agentKey": "",
        "__IMTHOOK__": null
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        }
      }
    },
    {
      "id": 2,
      "module": "synapsai:getConversation",
      "version": 1,
      "parameters": {
        "__IMTCONN__": null
      },
      "mapper": {
        "conversationId": "{{1.conversationId}}"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        }
      },
      "filter": {
        "name": "Replied (not failed)",
        "conditions": [
          [
            {
              "a": "{{1.status}}",
              "b": "REPLIED",
              "o": "text:equal"
            }
          ]
        ]
      }
    },
    {
      "id": 3,
      "module": "http:ActionSendData",
      "version": 3,
      "parameters": {},
      "mapper": {
        "url": "https://api.your-bsp.example/v1/messages",
        "method": "post",
        "bodyType": "raw",
        "contentType": "application/json",
        "data": "{\"to\":\"{{2.externalUserId}}\",\"text\":\"{{1.text}}\"}"
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        }
      }
    }
  ],
  "metadata": {
    "version": 1,
    "instant": true,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "sequential": false,
      "confidential": false,
      "dataloss": false,
      "dlq": false
    },
    "designer": {
      "orphans": []
    },
    "requires": "SynapsAI Make app (synapsai) >= 1.0.0; SynapsAI GROWTH+"
  }
}