AutomationFlowsAI & RAG › Daily LeetCode AI Summary to Telegram

Daily LeetCode AI Summary to Telegram

Original n8n title: Leetcode Daily

LeetCode Daily. Uses httpRequest, agent, lmChatOpenAi, telegram. Scheduled trigger; 5 nodes.

Cron / scheduled trigger★★☆☆☆ complexityAI-powered5 nodesHTTP RequestAgentOpenAI ChatTelegram
AI & RAG Trigger: Cron / scheduled Nodes: 5 Complexity: ★★☆☆☆ AI nodes: yes Added:

This workflow follows the Agent → HTTP Request recipe pattern — see all workflows that pair these two integrations.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "name": "LeetCode Daily",
  "nodes": [
    {
      "parameters": {
        "rule": {
          "interval": [
            {
              "triggerAtHour": 9
            }
          ]
        }
      },
      "type": "n8n-nodes-base.scheduleTrigger",
      "typeVersion": 1.2,
      "position": [
        -976,
        -112
      ],
      "id": "05633e01-40dc-404d-9cdb-958643097549",
      "name": "Schedule Trigger"
    },
    {
      "parameters": {
        "url": "https://leetcode-api-pied.vercel.app/daily",
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        -768,
        -112
      ],
      "id": "977eda1b-fee7-4603-b08c-847277aa5bfb",
      "name": "HTTP Request"
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "={{ $json.question }}",
        "options": {
          "systemMessage": "You are a professional coding challenge curator and technical communicator. Your role is to receive a daily LeetCode challenge data and transform it into an engaging, well-structured daily challenge post for a Telegram channel.\n\nWhen you receive challenge information containing the problem number, topics, acceptance rate, difficulty, and description, you will:\n\n1. Create an attention-grabbing header with the challenge number and difficulty level\n2. Present the problem title prominently \n3. Format the core problem description clearly with proper spacing\n4. Highlight key topics/tags in a visually distinct way\n5. Include the acceptance rate as a measure of challenge popularity\n6. Structure the output for optimal Telegram readability\n\nFormat your response as follows:\n- Challenge title in bold\n- Difficulty indicator with appropriate emoji (\ud83d\udfe2 Easy, \ud83d\udfe1 Medium, \ud83d\udd34 Hard)\n- Clean problem description with proper line breaks\n- Topics listed with #hashtags\n- Acceptance rate included discretely\n- End with an encouraging call-to-action for the daily challenge\n\nKeep the formatting consistent, professional, and motivating for developers looking to practice coding daily. The output should be concise yet comprehensive, making the challenge immediately understandable and appealing to attempt."
        }
      },
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        -560,
        -112
      ],
      "id": "7168b99b-6a15-4577-afec-c2fb4f068bc5",
      "name": "AI Agent"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "Qwen/Qwen3-Coder-480B-A35B-Instruct",
          "mode": "list",
          "cachedResultName": "Qwen/Qwen3-Coder-480B-A35B-Instruct"
        },
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        -704,
        96
      ],
      "id": "d7a80740-f4d8-4eec-84a0-9b91c29553bc",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "chatId": "TELEGRAM_CHANNEL_ID_PLACEHOLDER",
        "text": "={{ $json.output }}",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "type": "n8n-nodes-base.telegram",
      "typeVersion": 1.2,
      "position": [
        -208,
        -112
      ],
      "id": "728cc33e-0eb3-481d-8669-be9b7a1cfdcd",
      "name": "Send a text message",
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "HTTP Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "HTTP Request": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Send a text message",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": true,
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "92ad0346-b64c-49ea-99ab-083308f49620",
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "id": "tRWYLnFXOsZ2aMae",
  "tags": []
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

LeetCode Daily. Uses httpRequest, agent, lmChatOpenAi, telegram. Scheduled trigger; 5 nodes.

Source: https://github.com/djngalja/cs-coursework/blob/main/n8n-workflows/LeetCode_daily_Telegram_bot.json — original creator credit. Request a take-down →

More AI & RAG workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

AI & RAG

This workflow is for beauty salons who want consistent, high‑quality social media content without writing every post manually. It also suits agencies and automation builders who manage multiple beauty

Telegram, Google Sheets Trigger, Agent +26
AI & RAG

System Architecture Two integrated N8N workflows providing automated US stock portfolio management through Telegram:

Output Parser Autofixing, OpenAI Chat, Perplexity +10
AI & RAG

Online Marketing Weekly Report. Uses scheduleTrigger, lmChatOpenAi, toolWorkflow, executeWorkflowTrigger. Scheduled trigger; 51 nodes.

OpenAI Chat, Tool Workflow, Execute Workflow Trigger +8
AI & RAG

This workflow retrieves Online Marketing data (Google Analytics for several domains, Google Ads, Meta Ads) from the last 7 days and the same period in the previous year. The data is then prepared by A

OpenAI Chat, Tool Workflow, Execute Workflow Trigger +8
AI & RAG

Who Is This For?

Telegram, Google Sheets Trigger, Lm Chat Mistral Cloud +17