{
  "id": "IrUAOWzrU4e7sjdvEW962",
  "name": "Yelp-Lead-Responder",
  "tags": [],
  "nodes": [
    {
      "id": "ba375698-67b7-40f5-8efe-8fb64f805319",
      "name": "Call to check new leads",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        208,
        0
      ],
      "parameters": {
        "url": "https://api.leadresponder.ai/yelp/leads/new",
        "options": {},
        "sendHeaders": true,
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY"
            }
          ]
        }
      },
      "typeVersion": 4.3,
      "alwaysOutputData": false
    },
    {
      "id": "763fce25-5305-4292-8c14-c10d2a9da3a4",
      "name": "Prepare message for reply",
      "type": "n8n-nodes-base.code",
      "position": [
        416,
        0
      ],
      "parameters": {
        "mode": "runOnceForEachItem",
        "jsCode": "\nconst message_text = \"Hello! Thanks for reaching out. We are reviewing your request and will get back to you shortly.\";\n\nreturn {\n  conversation_id: $json?.conversation_id,\n  message_text: message_text\n}"
      },
      "typeVersion": 2
    },
    {
      "id": "8aa94be3-1a73-4bc7-b1ff-eb55d213404d",
      "name": "Push message as a reply to a new lead.",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        624,
        0
      ],
      "parameters": {
        "url": "https://api.leadresponder.ai/yelp/message/reply",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "conversation_id",
              "value": "={{ $json?.conversation_id }}"
            },
            {
              "name": "message_text",
              "value": "={{ $json?.message_text }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "X-API-KEY"
            }
          ]
        }
      },
      "typeVersion": 4.3
    },
    {
      "id": "9ae4439e-2662-4f06-9dc6-69c162ec2039",
      "name": "Schedule Trigger for 1 minute check",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "minutes",
              "minutesInterval": 1
            }
          ]
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "c4ead257-b6b6-473b-9a13-be0620536782",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -464,
        -384
      ],
      "parameters": {
        "width": 272,
        "height": 784,
        "content": "## Yelp Lead Responder\nAutomate replies for new Yelp leads. This workflow helps small businesses win clients through immediate engagement the moment they reach out and increasing revenue by 30%.\n\n### How it works\nYelp is monitored every minute for new leads. Once a lead is detected, an automated reply is sent immediately.\n\n### Setup steps\nFirst, sign up at https://leadresponder.ai/ to obtain an API key. Then, enter the key into the workflow settings.\n\n### Customization\nUpgrade from static messages to AI-generated personalization. Additionally, you can automate your scheduling by sending availability in your response.\n\n### Video\n@[youtube](LWCUU32ZK0A)"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "settings": {
    "availableInMCP": false,
    "executionOrder": "v1"
  },
  "versionId": "cf930c10-c5e6-44eb-bfa9-c848de768346",
  "connections": {
    "Call to check new leads": {
      "main": [
        [
          {
            "node": "Prepare message for reply",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Prepare message for reply": {
      "main": [
        [
          {
            "node": "Push message as a reply to a new lead.",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Schedule Trigger for 1 minute check": {
      "main": [
        [
          {
            "node": "Call to check new leads",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}