{
  "name": "Celebrate Every Closed-Won Salesforce Deal in Slack",
  "nodes": [
    {
      "name": "Salesforce — Deal Won",
      "type": "n8n-nodes-base.salesforce",
      "typeVersion": 1,
      "parameters": {
        "operation": "getAll",
        "filter": "stage=closed_won"
      },
      "notes": "Trigger on the Closed-Won stage.",
      "position": [
        260,
        300
      ]
    },
    {
      "name": "Deal Details",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3,
      "parameters": {
        "assignments": {
          "assignments": [
            {
              "id": "1003",
              "name": "deal_name",
              "value": "={{ $json.properties.dealname }}",
              "type": "string"
            },
            {
              "id": "1004",
              "name": "amount",
              "value": "={{ $json.properties.amount }}",
              "type": "string"
            },
            {
              "id": "1005",
              "name": "owner",
              "value": "={{ $json.properties.owner }}",
              "type": "string"
            }
          ]
        },
        "options": {}
      },
      "notes": "",
      "position": [
        500,
        300
      ]
    },
    {
      "name": "Notify Slack",
      "type": "n8n-nodes-base.slack",
      "typeVersion": 2,
      "parameters": {
        "text": "=🎉 Deal won: {{ $json.deal_name }} — {{ $json.amount }} ({{ $json.owner }})"
      },
      "notes": "Connect this channel's credential.",
      "position": [
        740,
        300
      ]
    },
    {
      "name": "Respond / Finish",
      "type": "n8n-nodes-base.noOp",
      "typeVersion": 1,
      "parameters": {},
      "notes": "End of flow — extend with extra steps as needed.",
      "position": [
        980,
        300
      ]
    }
  ],
  "connections": {
    "Salesforce — Deal Won": {
      "main": [
        [
          {
            "node": "Deal Details",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Deal Details": {
      "main": [
        [
          {
            "node": "Notify Slack",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Notify Slack": {
      "main": [
        [
          {
            "node": "Respond / Finish",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
