{
  "schemaVersion": "flowdrome.workflow.v1",
  "id": "",
  "name": "Support chat — Web Chat",
  "version": "0",
  "status": "draft",
  "nodes": [
    {
      "id": "chat",
      "type": "input.webchat",
      "label": "Web chat",
      "category": "trigger",
      "config": {
        "path": "/chat/demo",
        "title": "Support",
        "greeting": "Hi! How can we help?",
        "placeholder": "Type a message…",
        "accent": "#635bff",
        "position": "right",
        "replyField": "",
        "allowedOrigins": "*"
      },
      "position": {
        "x": 0,
        "y": 0
      }
    },
    {
      "id": "reply",
      "type": "output.chat-reply",
      "label": "Chat reply",
      "category": "output",
      "config": {
        "text": "You said: “{{ $json.message }}” — a human will pick this up shortly.",
        "replyField": ""
      },
      "position": {
        "x": 530,
        "y": 0
      }
    }
  ],
  "edges": [
    {
      "id": "e0",
      "sourceNodeId": "chat",
      "sourcePort": "output",
      "targetNodeId": "reply",
      "targetPort": "input"
    }
  ],
  "triggers": [
    {
      "id": "t0",
      "nodeId": "chat"
    }
  ],
  "meta": {
    "snippets": [],
    "source": "template-gallery",
    "description": "An embeddable chat bubble (one script tag on any site). Each visitor message runs the flow; Chat Reply answers in the widget. Wire an AI node in front of the reply for a real assistant (see the AI folder)."
  }
}