{
  "id": "AILeadTelegramSmokePublic",
  "name": "TEST - Telegram Inline Keyboard",
  "active": false,
  "nodes": [
    {
      "parameters": {},
      "id": "f2caf8ba-3897-4ba9-a4ad-e256377b8822",
      "name": "Manual Trigger",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        -260,
        0
      ]
    },
    {
      "parameters": {
        "resource": "message",
        "operation": "sendMessage",
        "chatId": "OWNER_CHAT_ID",
        "text": "🧭 LEAD REVIEW\n\nLead: Amara Okafor\nCompany: Northstar Growth Studio\nEmail: tester@example.com\nSource: MANUAL_TEST\n\nScores\n• AI fit: 85/100 (HOT)\n• Urgency: 90/100\n• Rule score: 80/100\n• Confidence: 90%\n\nSummary\nAgency with urgent need to streamline lead management across three channels, citing inconsistent follow-up delaying responses by up to 24 hours.\n\nPain points\nInconsistent lead follow-up across channels | Strong leads waiting up to 24 hours for response | Potential revenue loss from delayed engagement\n\nReview reason\nHigh-value lead requires approval before outreach; Valid lead with clear urgency and fit for lead management automation\n\nProposed reply\nSubject: Optimizing Lead Response Times for Northstar Growth Studio\nHi Amara, I noticed Northstar Growth Studio is experiencing delays in lead follow-up across multiple channels. With your 30-day timeline and focus on improving response consistency, I'd love to discuss how we can help prioritize and automate critical touchpoints. Would you be available for a discovery call this week?\n\nChoose an action below.",
        "replyMarkup": "inlineKeyboard",
        "inlineKeyboard": {
          "rows": [
            {
              "row": {
                "buttons": [
                  {
                    "text": "✅ Approve",
                    "additionalFields": {
                      "callback_data": "approve|lead_cde3917d"
                    }
                  },
                  {
                    "text": "✏️ Edit reply",
                    "additionalFields": {
                      "callback_data": "edit|lead_cde3917d"
                    }
                  }
                ]
              }
            },
            {
              "row": {
                "buttons": [
                  {
                    "text": "❌ Reject",
                    "additionalFields": {
                      "callback_data": "reject|lead_cde3917d"
                    }
                  }
                ]
              }
            }
          ]
        },
        "additionalFields": {
          "parse_mode": "HTML",
          "appendAttribution": false
        }
      },
      "id": "b7e42db0-5394-42a6-88e5-058bbac4c56c",
      "name": "Send Test Keyboard",
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        0,
        0
      ],
      "onError": "continueErrorOutput"
    },
    {
      "parameters": {
        "jsCode": "throw new Error(JSON.stringify($json));"
      },
      "id": "edcedbc4-837d-4c6b-84c6-072de81b3cc1",
      "name": "Expose Telegram Error",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        260,
        100
      ]
    }
  ],
  "connections": {
    "Manual Trigger": {
      "main": [
        [
          {
            "node": "Send Test Keyboard",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Send Test Keyboard": {
      "main": [
        [],
        [
          {
            "node": "Expose Telegram Error",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1",
    "timezone": "UTC"
  },
  "pinData": {},
  "tags": []
}
