Google Sheets에서 Telegram으로의 자동화 퀴즈 전송 및 상태 추적
중급
이것은Social Media, Multimodal AI분야의자동화 워크플로우로, 13개의 노드를 포함합니다.주로 If, Set, Code, Telegram, HttpRequest 등의 노드를 사용하며. Google Sheets에서 Telegram으로의 자동화된 퀴즈 전송 및 상태 추적
사전 요구사항
- •Telegram Bot Token
- •대상 API의 인증 정보가 필요할 수 있음
- •Google Sheets API 인증 정보
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "c5e931c455fcffaf668d434579b8144a682ba36c13be12948f5ddd388753d54c"
},
"nodes": [
{
"id": "56689bfc-a856-463e-bf85-53dde3ddd928",
"name": "퀴즈 데이터 읽기",
"type": "n8n-nodes-base.googleSheets",
"notes": "Read all quiz rows from Google Sheets",
"position": [
-768,
240
],
"parameters": {
"options": {},
"sheetName": "Sheet1",
"documentId": "<<<YOUR_SHEET_ID>>>"
},
"typeVersion": 4
},
{
"id": "dec9e4a5-2815-4a95-a148-94d22f00cfea",
"name": "대기 중 퀴즈 필터링",
"type": "n8n-nodes-base.code",
"notes": "Keep only the earliest pending quiz (🟨). If none, pass a marker item.",
"position": [
-448,
240
],
"parameters": {
"jsCode": "// Filter for pending quizzes (🟨) and pick the lowest quiz_number\nconst items = $input.all();\nconst pending = items.filter(i => i.json.status && i.json.status === '🟨');\nif (pending.length) {\n pending.sort((a,b) => parseInt(a.json.quiz_number) - parseInt(b.json.quiz_number));\n return [pending[0]];\n}\nreturn [{ json: { message: 'not exist' } }];\n"
},
"typeVersion": 2
},
{
"id": "807289e3-a0e7-4750-b3f2-9d39fe20fee3",
"name": "퀴즈 존재 여부 확인",
"type": "n8n-nodes-base.if",
"notes": "If status exists (i.e., a real quiz row), send the poll; else send a refill notice.",
"position": [
-192,
240
],
"parameters": {
"options": {},
"conditions": {
"options": {
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "dfdcc097-994d-4e6d-ac8b-9ef226a37ee1",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json.status }}"
}
]
}
},
"typeVersion": 2
},
{
"id": "3eadd4a7-7658-4f4e-89dc-3722d2e37c5d",
"name": "Telegram Poll 전송",
"type": "n8n-nodes-base.httpRequest",
"notes": "Calls Telegram sendPoll. Set TELEGRAM_BOT_TOKEN and TELEGRAM_CHAT_ID as env vars.",
"position": [
112,
112
],
"parameters": {
"url": "https://api.telegram.org/bot{{ $env.TELEGRAM_BOT_TOKEN }}/sendPoll",
"method": "POST",
"options": {},
"sendQuery": true,
"queryParameters": {
"parameters": [
{
"name": "chat_id",
"value": "={{ $env.TELEGRAM_CHAT_ID }}"
},
{
"name": "question",
"value": "={{ $json.question }}"
},
{
"name": "options",
"value": "=[\"{{ $json.option_a }}\", \"{{ $json.option_b }}\", \"{{ $json.option_c }}\", \"{{ $json.option_d }}\"]"
}
]
}
},
"typeVersion": 4.1
},
{
"id": "c48ba649-d2ea-41ff-8574-4d02039f21f7",
"name": "상태 업데이트 준비",
"type": "n8n-nodes-base.set",
"notes": "Set the new status and include the quiz_number for matching.",
"position": [
352,
0
],
"parameters": {
"fields": {
"values": [
{
"name": "status",
"stringValue": "✅"
},
{
"name": "quiz_number",
"stringValue": "={{ $('Read Quiz Data').item.json.quiz_number }}"
}
]
},
"include": "selected",
"options": {}
},
"typeVersion": 3.2
},
{
"id": "ce67a494-ff14-4b9c-9f9f-8b047d58c8ee",
"name": "누락 퀴즈 알림(Telegram)",
"type": "n8n-nodes-base.telegram",
"notes": "Sends a message if no pending quiz exists. Provide TELEGRAM_NOTIFY_CHAT_ID.",
"position": [
352,
320
],
"webhookId": "1b8bcd70-16eb-4e81-a0dd-aee8f847bd9e",
"parameters": {
"text": "⚠️ No pending quiz found in Google Sheet. Please refill.",
"chatId": "={{ $env.TELEGRAM_NOTIFY_CHAT_ID }}",
"additionalFields": {
"appendAttribution": false
}
},
"typeVersion": 1.1
},
{
"id": "f949b91d-aa8b-4453-bc49-5cb21befc1b3",
"name": "퀴즈 상태 업데이트1",
"type": "n8n-nodes-base.googleSheets",
"notes": "Update the row that matches quiz_number, setting status to ✅.",
"position": [
560,
64
],
"parameters": {
"columns": {
"mappingMode": "autoMapInputData",
"matchingColumns": [
"quiz_number"
]
},
"options": {},
"operation": "update",
"sheetName": "Sheet1",
"documentId": "<<<YOUR_SHEET_ID>>>"
},
"typeVersion": 4
},
{
"id": "7175b83d-7483-484e-8ddd-6e6d63b409f5",
"name": "스티키 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
-912,
48
],
"parameters": {
"color": 7,
"width": 368,
"height": 432,
"content": "## Note\n**Create the sheet with this headers**. \nquiz_number,\tquestion,\toption_a,\toption_b,\toption_c,\toption_d,\nstatus,"
},
"typeVersion": 1
},
{
"id": "19b16b1c-1bdd-495d-acfa-fbb25fcd025f",
"name": "스티키 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
-528,
48
],
"parameters": {
"color": 2,
"width": 288,
"height": 432,
"content": "Filters rows marked 🟨 and selects the earliest quiz by number."
},
"typeVersion": 1
},
{
"id": "6efd2557-da1d-4b98-a15e-111fb61a6561",
"name": "스티키 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-224,
48
],
"parameters": {
"color": 4,
"width": 288,
"height": 432,
"content": "Branches depending on whether a pending quiz was found."
},
"typeVersion": 1
},
{
"id": "26069e47-cfb6-4947-878e-2f6a0a927ec0",
"name": "스티키 노트3",
"type": "n8n-nodes-base.stickyNote",
"position": [
80,
-16
],
"parameters": {
"color": 5,
"width": 192,
"height": 496,
"content": "Sends the quiz as a poll to the group via Telegram Bot API."
},
"typeVersion": 1
},
{
"id": "8b424c6d-6733-467f-93f5-f6380381dce8",
"name": "스티키 노트4",
"type": "n8n-nodes-base.stickyNote",
"position": [
528,
-16
],
"parameters": {
"color": 7,
"width": 192,
"height": 496,
"content": "Marks the quiz row as ✅ to prevent re-sending."
},
"typeVersion": 1
},
{
"id": "c1057db4-4926-41b7-a0e0-d36aaf3cbc61",
"name": "스티키 노트5",
"type": "n8n-nodes-base.stickyNote",
"position": [
304,
176
],
"parameters": {
"color": 5,
"width": 192,
"height": 304,
"content": "Alerts admins if no pending quiz is available."
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"56689bfc-a856-463e-bf85-53dde3ddd928": {
"main": [
[
{
"node": "dec9e4a5-2815-4a95-a148-94d22f00cfea",
"type": "main",
"index": 0
}
]
]
},
"807289e3-a0e7-4750-b3f2-9d39fe20fee3": {
"main": [
[
{
"node": "3eadd4a7-7658-4f4e-89dc-3722d2e37c5d",
"type": "main",
"index": 0
}
],
[
{
"node": "ce67a494-ff14-4b9c-9f9f-8b047d58c8ee",
"type": "main",
"index": 0
}
]
]
},
"3eadd4a7-7658-4f4e-89dc-3722d2e37c5d": {
"main": [
[
{
"node": "c48ba649-d2ea-41ff-8574-4d02039f21f7",
"type": "main",
"index": 0
}
]
]
},
"dec9e4a5-2815-4a95-a148-94d22f00cfea": {
"main": [
[
{
"node": "807289e3-a0e7-4750-b3f2-9d39fe20fee3",
"type": "main",
"index": 0
}
]
]
},
"c48ba649-d2ea-41ff-8574-4d02039f21f7": {
"main": [
[
{
"node": "f949b91d-aa8b-4453-bc49-5cb21befc1b3",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 소셜 미디어, 멀티모달 AI
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
X 트윗 및 Meta Threads 게시器
Late API 및 Google Sheets를 사용하여 플랫폼 최적화 콘텐츠를 X 및 Threads에 자동 게시
If
Set
Code
+
If
Set
Code
20 노드Fariez
소셜 미디어
Telegram 자동 복사기
GPT-4o-mini 기반 Telegram 채널 콘텐츠 자동 복사 및 번역
If
Set
Code
+
If
Set
Code
19 노드Shohani
소셜 미디어
WhatsApp, 이메일 및 Twilio SMS를 통해 전송된 식단 업데이트 알림
식품 메뉴 업데이트 알림
If
Set
Code
+
If
Set
Code
22 노드Oneclick AI Squad
소셜 미디어
✨🩷 자동 소셜 미디어 콘텐츠 배포 공장 + 시스템 튜링 조합
GPT-4o를 사용하여 6개 플랫폼에서 플랫폼 최적화된 소셜 미디어 내용 생성
If
Set
Code
+
If
Set
Code
100 노드Luan Correia
소셜 미디어
LinkedIn 콘텐츠 공장(含 OpenAI 연구 및 브랜드 이미지 생성)
LinkedIn 콘텐츠 공장, OpenAI 연구 및 Replicate 브랜드 이미지 생성 통합
If
Set
Code
+
If
Set
Code
23 노드Onur
소셜 미디어
AI 기반 동영상 제작 및 Instagram, TikTok, YouTube 업로드
클라우드 드라이브 기반 AI 기반 비디오 제작 및 Instagram, TikTok, YouTube 업로드
If
Set
Code
+
If
Set
Code
53 노드DevCode Journey
콘텐츠 제작