{
  "format": "chatigram-workflow",
  "version": 1,
  "metadata": {
    "sourceName": "Send a website request to a service desk",
    "importHelp": {
      "note": "Setup required. Configure your service-desk intake URL and authorization, confirm it accepts plain text, replace the support fallback, and assign the workflow to a test Line. Placeholder endpoints use example.invalid and cannot call a real business service. Keep the workflow disabled until you finish the setup and review its effects."
    }
  },
  "workflow": {
    "instruction": null,
    "multiLanguageSupport": null,
    "properties": [],
    "trigger": {
      "$tag": "Trigger",
      "type": "CONVERSATION_CREATED",
      "data": {}
    },
    "nodes": [
      {
        "$tag": "Node",
        "id": "d0c00000-0000-4000-8000-000000000001",
        "name": "askForRequest",
        "parentId": null,
        "branchIndex": 0,
        "type": "SEND_TEXT_MESSAGE",
        "data": {
          "message": [
            {
              "$tag": "Constant",
              "value": "Please describe what you need help with."
            }
          ]
        }
      },
      {
        "$tag": "Node",
        "id": "d0c00000-0000-4000-8000-000000000002",
        "name": "requestText",
        "parentId": "d0c00000-0000-4000-8000-000000000001",
        "branchIndex": 0,
        "type": "RECEIVE_MESSAGE",
        "data": {
          "receiveText": true,
          "receiveAudio": false,
          "receiveImage": false,
          "receiveVideo": false,
          "receiveFile": false
        }
      },
      {
        "$tag": "Node",
        "id": "d0c00000-0000-4000-8000-000000000003",
        "name": "createRequest",
        "parentId": "d0c00000-0000-4000-8000-000000000002",
        "branchIndex": 0,
        "type": "HTTP_REQUEST_NODE_TYPE",
        "data": {
          "request": {
            "method": "POST",
            "path": [
              {
                "$tag": "Constant",
                "value": "https://business-api.example.invalid/service-desk/intake"
              }
            ],
            "headers": [
              {
                "key": "Content-Type",
                "value": [
                  {
                    "$tag": "Constant",
                    "value": "text/plain"
                  }
                ]
              }
            ],
            "queryStrings": [],
            "body": [
              {
                "$tag": "Variable",
                "name": "requestText.textMessage"
              }
            ]
          },
          "responseHandlers": [
            {
              "$tag": "GetWholeAsString",
              "variableName": "response"
            }
          ]
        }
      },
      {
        "$tag": "Node",
        "id": "d0c00000-0000-4000-8000-000000000004",
        "name": "confirmation",
        "parentId": "d0c00000-0000-4000-8000-000000000003",
        "branchIndex": 0,
        "type": "SEND_TEXT_MESSAGE",
        "data": {
          "message": [
            {
              "$tag": "Constant",
              "value": "Your request has been passed to the support intake service."
            }
          ]
        }
      },
      {
        "$tag": "Node",
        "id": "d0c00000-0000-4000-8000-000000000005",
        "name": "fallback",
        "parentId": "d0c00000-0000-4000-8000-000000000003",
        "branchIndex": 1,
        "type": "SEND_TEXT_MESSAGE",
        "data": {
          "message": [
            {
              "$tag": "Constant",
              "value": "We could not submit your request right now. Please use our usual support contact so the team can help."
            }
          ]
        }
      }
    ],
    "gotos": []
  }
}
