Groq+Google 검색을 사용한 X(Twitter) 최신 속보 콘텐츠 자동 게시
중급
이것은Other, AI분야의자동화 워크플로우로, 8개의 노드를 포함합니다.주로 Set, Code, Twitter, HttpRequest, ScheduleTrigger 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. LLaMA3, Google 검색 및 X 게시를 사용한 자동 속보 헤드라인
사전 요구사항
- •Twitter API 인증 정보
- •대상 API의 인증 정보가 필요할 수 있음
사용된 노드 (8)
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"id": "1nKNN0OWmO90VSd0",
"meta": {
"instanceId": "1a464fcd616d0f5722598fd0bb6b3fc06b6b2c0849bc801b78243ad0d4266849"
},
"name": "Free_Auto_Post_Latest_Breaking_News_Content_Using_Groq_+_Google_Search_to_X__Twitter_",
"tags": [],
"nodes": [
{
"id": "62da7cc5-ea1d-47a0-b626-3ed6fb18e761",
"name": "스케줄 트리거",
"type": "n8n-nodes-base.scheduleTrigger",
"position": [
-1580,
140
],
"parameters": {
"rule": {
"interval": [
{
"field": "hours",
"hoursInterval": 5,
"triggerAtMinute": "={{Math.floor(Math.random() * 60)}}\n"
}
]
}
},
"typeVersion": 1.2
},
{
"id": "eb57a9d0-e0de-4d3d-adcf-d19e28a7e92e",
"name": "Post to X",
"type": "n8n-nodes-base.twitter",
"position": [
680,
140
],
"parameters": {
"text": "={{ $json.choices[0].message.content }}",
"additionalFields": {}
},
"credentials": {
"twitterOAuth2Api": {
"id": "QL1DHHlD4FxD18uu",
"name": "X account"
}
},
"typeVersion": 2
},
{
"id": "765d5be9-5b2c-445b-bf3d-0242d293276f",
"name": "Groq AI",
"type": "n8n-nodes-base.httpRequest",
"position": [
220,
140
],
"parameters": {
"url": "https://api.groq.com/openai/v1/chat/completions",
"method": "POST",
"options": {},
"jsonBody": "={\n \"model\": \"llama3-70b-8192\",\n \"messages\": [\n {\n \"role\": \"system\",\n \"content\": \"You are a social media assistant. Your task is to write a short, news-style headline for a given article title and link. Use exactly this format: <headline> <link>. Be objective and precise. Max 200 characters total.\"\n },\n {\n \"role\": \"user\",\n \"content\": \"{{ $('Function').item.json.prompt.replace(/\\n/g, '\\\\n') }}\"\n}\n ],\n \"temperature\": 0.7,\n \"top_p\": 0.95,\n \"max_tokens\": 200,\n \"presence_penalty\": 0,\n \"frequency_penalty\": 0.4\n}",
"sendBody": true,
"specifyBody": "json",
"authentication": "predefinedCredentialType",
"nodeCredentialType": "groqApi"
},
"credentials": {
"groqApi": {
"id": "SF8pX7HnnboYDrUD",
"name": "Groq account"
}
},
"typeVersion": 4.2
},
{
"id": "31a5bd1c-7fc1-4de8-9c9f-d345d6fede6f",
"name": "HTTP 요청",
"type": "n8n-nodes-base.httpRequest",
"position": [
-360,
140
],
"parameters": {
"url": "=https://www.googleapis.com/customsearch/v1?key={{ $json.google_api_key }}&cx={{ $json.google_cx }}?q{{ $node[\"Build Query\"].json[\"query\"] }}",
"options": {
"response": {
"response": {
"responseFormat": "json"
}
}
}
},
"typeVersion": 4.2
},
{
"id": "7fa6e3e8-1ebb-45c3-8f3b-d3a8df4ae6e4",
"name": "함수",
"type": "n8n-nodes-base.code",
"position": [
-40,
140
],
"parameters": {
"jsCode": "return items.map(item => {\n const results = item.json.items || [];\n if (results.length === 0) {\n throw new Error(\"No search results found\");\n }\n\n const top = results[0];\n item.json.headline = top.title;\n item.json.url = top.link;\n item.json.articleTitle = top.title;\n item.json.articleURL = top.link;\n item.json.prompt = `Write a short, objective headline (max 120 characters) for the following article, and append 1–2 relevant hashtags. Format: <headline> <link> <hashtags>. Title: ${top.title} Link: ${top.link}`;\n\n\n return item;\n});\n"
},
"typeVersion": 2
},
{
"id": "8c093688-de7a-4af7-a053-0e029c910e6f",
"name": "Google 설정",
"type": "n8n-nodes-base.set",
"position": [
-640,
140
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "e7d18eb2-7e33-4a4b-8c8b-4eccf2fbcbb3",
"name": "google_api_key",
"type": "string",
"value": "REPLACE_WITH_YOUR_KEY"
},
{
"id": "d59607c2-f942-4f78-968a-42ad57b62eed",
"name": "google_cx",
"type": "string",
"value": "REPLACE_WITH_YOUR_CX"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "542a21f1-78d2-4799-a922-bea3f9fa192b",
"name": "주제 설정",
"type": "n8n-nodes-base.set",
"position": [
-1200,
140
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "f7399b2d-4e42-4ea4-8eed-0fa9fe6b1fcf",
"name": "topic",
"type": "string",
"value": "AI"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "1da710ec-770b-4c6c-b0ad-33af5f58d6d5",
"name": "쿼리 작성",
"type": "n8n-nodes-base.set",
"position": [
-980,
140
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "8f4dec98-f070-47e3-9935-e99c60fd4cdf",
"name": "query",
"type": "string",
"value": "={{ \"latest \" + $node[\"Set Topic\"].json[\"topic\"] + \" news\" }}"
}
]
}
},
"typeVersion": 3.4
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "d84ce1e7-87ab-427b-afe5-4e2aeca0664a",
"connections": {
"765d5be9-5b2c-445b-bf3d-0242d293276f": {
"main": [
[
{
"node": "eb57a9d0-e0de-4d3d-adcf-d19e28a7e92e",
"type": "main",
"index": 0
}
]
]
},
"7fa6e3e8-1ebb-45c3-8f3b-d3a8df4ae6e4": {
"main": [
[
{
"node": "765d5be9-5b2c-445b-bf3d-0242d293276f",
"type": "main",
"index": 0
}
]
]
},
"542a21f1-78d2-4799-a922-bea3f9fa192b": {
"main": [
[
{
"node": "1da710ec-770b-4c6c-b0ad-33af5f58d6d5",
"type": "main",
"index": 0
}
]
]
},
"1da710ec-770b-4c6c-b0ad-33af5f58d6d5": {
"main": [
[
{
"node": "8c093688-de7a-4af7-a053-0e029c910e6f",
"type": "main",
"index": 0
}
]
]
},
"31a5bd1c-7fc1-4de8-9c9f-d345d6fede6f": {
"main": [
[
{
"node": "7fa6e3e8-1ebb-45c3-8f3b-d3a8df4ae6e4",
"type": "main",
"index": 0
}
]
]
},
"8c093688-de7a-4af7-a053-0e029c910e6f": {
"main": [
[
{
"node": "31a5bd1c-7fc1-4de8-9c9f-d345d6fede6f",
"type": "main",
"index": 0
}
]
]
},
"62da7cc5-ea1d-47a0-b626-3ed6fb18e761": {
"main": [
[
{
"node": "542a21f1-78d2-4799-a922-bea3f9fa192b",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
중급 - 기타, 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
귀하의 이메일에 시각화 요약 및 지식 그래프 통찰력 생성
이메일에 시각화 요약과 지식 그래프 통찰력 생성
If
Set
Code
+
If
Set
Code
38 노드InfraNodus
기타
YT 잠자리 이야기 - 짧은 비디오 - N8N 시장
OpenAI를 사용하여 YouTube 잠자리 이야기 생성
Set
Code
Wait
+
Set
Code
Wait
43 노드Samautomation.work
기타
YogiAI
LINE를 통해 매일 운동 계획과 풍부한 미디어 메시지를 가져옵니다.
Set
Code
Split Out
+
Set
Code
Split Out
31 노드lin@davoy.tech
기타
Hacker News 타임머신 - 매년 오늘의 인기 내용 확인
Hacker News 타임머신 - 매년 오늘의 인기 내용 확인
Set
Code
Html
+
Set
Code
Html
13 노드ibrhdotme
기타
Firecrawl 추출 - Quiver Q
🏛️ Firecrawl + OpenAI + Gmail을 사용하여 미국 의회의원 주식 거래 일일 보고서 생성
If
Set
Code
+
If
Set
Code
19 노드Automate With Marc
기타
AI 대리인 레스토랑 [템플릿]
🤖 WhatsApp, 인스타그램, 메신저의 AI 레스토랑 도우미
If
N8n
Set
+
If
N8n
Set
239 노드Amanda Benks
기타