Telegram에서 AI를 사용하여 소셜 미디어 콘텐츠 생성
고급
이것은Other, AI분야의자동화 워크플로우로, 16개의 노드를 포함합니다.주로 Set, Switch, Telegram, HttpRequest, Agent 등의 노드를 사용하며인공지능 기술을 결합하여 스마트 자동화를 구현합니다. Telegram에서 AI를 사용하여 소셜 미디어 콘텐츠를 만들기
사전 요구사항
- •Telegram Bot Token
- •대상 API의 인증 정보가 필요할 수 있음
- •OpenAI API Key
사용된 노드 (16)
워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
"meta": {
"instanceId": "b41148c809c7896d124743d940fc0964703e540af66564ef95e25a4ceea61c77",
"templateCredsSetupCompleted": true
},
"nodes": [
{
"id": "070fd7b4-58ca-4372-a347-6f60f590e20b",
"name": "Telegram 메시지 수신",
"type": "n8n-nodes-base.telegramTrigger",
"position": [
40,
140
],
"webhookId": "4e2cd560-ae4e-4ed7-a8ea-984518404e51",
"parameters": {
"updates": [
"message"
],
"additionalFields": {}
},
"credentials": {
"telegramApi": {
"id": "lff3pLERRdQmkmeV",
"name": "Telegram account"
}
},
"typeVersion": 1.1
},
{
"id": "0e0f3a32-fbde-42a9-aa7f-70fda7b05357",
"name": "음성 또는 텍스트?",
"type": "n8n-nodes-base.switch",
"position": [
400,
220
],
"parameters": {
"rules": {
"values": [
{
"outputKey": "Audio",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "af30c479-4542-405f-b315-37c50c4e2bef",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json.message.voice.file_id }}",
"rightValue": ""
}
]
},
"renameOutput": true
},
{
"outputKey": "Text",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "a3ca8cd4-fbb2-40b5-829a-24724f2fbc85",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "={{ $json.message.text || \"\" }}",
"rightValue": ""
}
]
},
"renameOutput": true
},
{
"outputKey": "Error",
"conditions": {
"options": {
"version": 2,
"leftValue": "",
"caseSensitive": true,
"typeValidation": "strict"
},
"combinator": "and",
"conditions": [
{
"id": "9bcfdee0-2f09-4037-a7b9-689ef392371d",
"operator": {
"type": "string",
"operation": "exists",
"singleValue": true
},
"leftValue": "error",
"rightValue": ""
}
]
},
"renameOutput": true
}
]
},
"options": {}
},
"typeVersion": 3.2
},
{
"id": "b01dde88-bede-4500-974f-b2dc203ff841",
"name": "음성 메시지 가져오기",
"type": "n8n-nodes-base.telegram",
"position": [
760,
120
],
"webhookId": "23645237-4943-4c32-b18c-97c410cc3409",
"parameters": {
"fileId": "={{ $json.message.voice.file_id }}",
"resource": "file"
},
"credentials": {
"telegramApi": {
"id": "lff3pLERRdQmkmeV",
"name": "Telegram account"
}
},
"typeVersion": 1.2
},
{
"id": "fe91414e-3b10-482e-b8dd-d55266828dd7",
"name": "음성을 텍스트로 변환",
"type": "@n8n/n8n-nodes-langchain.openAi",
"position": [
980,
120
],
"parameters": {
"options": {},
"resource": "audio",
"operation": "translate"
},
"credentials": {
"openAiApi": {
"id": "uFPD9I4pWJ4xUVf7",
"name": "OpenAi account"
}
},
"typeVersion": 1.8
},
{
"id": "74549458-fd4d-4824-a561-944f2f536b9b",
"name": "LLM 준비",
"type": "n8n-nodes-base.set",
"position": [
880,
340
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "b324a329-3c49-4f7f-b683-74331b7fe7f8",
"name": "=text",
"type": "string",
"value": "={{$json.message.text}}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "886246ad-7127-462a-a2b2-b4281f369d8b",
"name": "스티키 노트2",
"type": "n8n-nodes-base.stickyNote",
"position": [
-40,
0
],
"parameters": {
"width": 260,
"height": 320,
"content": " \n**This workflow listens for incoming voice or text messages from Telegram users.** "
},
"typeVersion": 1
},
{
"id": "d052bd49-dc23-4ec5-b153-a9eb305f0641",
"name": "스티키 노트3",
"type": "n8n-nodes-base.stickyNote",
"position": [
700,
20
],
"parameters": {
"width": 460,
"height": 260,
"content": " **Voice messages are fetched from Telegram and transcribed into text using OpenAI's Whisper API.** "
},
"typeVersion": 1
},
{
"id": "156580f1-adf5-43ba-b54d-89b84ca87818",
"name": "AI 에이전트",
"type": "@n8n/n8n-nodes-langchain.agent",
"position": [
1460,
320
],
"parameters": {
"text": "={{$json.text}}",
"options": {
"systemMessage": " \n**1. AI Agent Goal Prompt (Overall Task)**\n\n* **Purpose:** To define the agent's overall objective, removing the image creation step.\n\n```\nYou are an AI social media content creator. Your task is to research a given topic using SerpAPI, create engaging and SEO-optimized social media content (800-1000 characters), and generate a detailed image prompt. The content must be factually accurate and engaging. Prioritize factual accuracy and engaging storytelling in your content. The generated image prompt should be detailed and specific enough to be used with an image generation tool like DALL-E or Stable Diffusion.\n```\n\n**2. SerpAPI Tool Prompt (Research Phase)**\n\n* **Purpose:** To instruct the agent on how to use SerpAPI to effectively gather information. (No change from previous version)\n\n```\nUse the SerpAPI tool to research the following topic: [TOPIC]. Focus on identifying key facts, trends, and interesting angles relevant for social media. Extract information from the top search results. Return a summary of the information you found focusing on key data and facts.\n```\n\n* **Explanation:**\n * `[TOPIC]` is a variable that will be replaced with the specific topic.\n * Focuses the agent on extracting key facts and trends rather than just providing a list of results.\n * Limits the scope to the top search results to maintain efficiency.\n\n**3. Social Media Content Creation Prompt**\n\n* **Purpose:** To guide the agent in creating engaging and SEO-friendly content based on the research. (No change from previous version)\n\n```\nBased on the following research summary: [RESEARCH_SUMMARY], create a social media post that is:\n\n* Engaging and attention-grabbing\n* Factually accurate\n* Optimized for SEO (include relevant keywords naturally)\n* Within 800-1000 characters\n* Clearly and concisely written.\n* Avoid jargon and technical terms.\n* Include a call to action.\n\nThe tone should be informative but also enthusiastic and easily understandable.\n```\n\n* **Explanation:**\n * `[RESEARCH_SUMMARY]` will be replaced with the output from the SerpAPI tool.\n * Specific instructions on tone, length, and SEO optimization.\n * Explicitly asks for clear and concise writing, avoiding jargon.\n * Added \"Include a call to action\" to make the content more actionable\n\n**4. Image Generation Prompt (for hypothetical image generation tool)**\n\n* **Purpose:** To create a prompt that generates a detailed and descriptive image prompt for an image generation tool. This prompt should now be the *final output* related to the image.\n\n```\nBased on the following topic: [TOPIC] and social media content: [SOCIAL_MEDIA_CONTENT], generate a detailed image prompt for a photorealistic image that visually represents the topic and complements the content. The image should be:\n\n* Photorealistic and high-quality.\n* Visually appealing and attention-grabbing.\n* Relevant to the topic and content.\n* Appropriate for social media.\n\nThe prompt should be exceptionally detailed and specific, providing precise instructions for an image generation tool like DALL-E or Stable Diffusion. Include details about the subject, setting, style, lighting, camera angles, and any other relevant visual elements. Aim for a prompt that leaves no room for misinterpretation by the image generation AI. Mention specific artists or photographic styles to emulate if appropriate.\n```\n\n* **Explanation:**\n * `[TOPIC]` and `[SOCIAL_MEDIA_CONTENT]` are variables that will be replaced with the topic and the created social media content, respectively.\n * Focuses on *photorealism*, relevance, and visual appeal.\n * Emphasizes the need for an *exceptionally detailed and specific* prompt for the image generation tool.\n * Explicitly mentions DALL-E and Stable Diffusion as target tools.\n * Advises the inclusion of artist styles or photographic techniques to guide the image generation.\n\n**5. JSON Output Instruction**\n\n* **Purpose:** To ensure the AI agent provides the output in the correct format. The `image_url` field is replaced with `image_prompt`.\n\n```\nAfter generating the social media content and the image prompt, output the results in the following JSON format:\n\n```json\n{\n\"content\": \"[SOCIAL_MEDIA_CONTENT]\",\n\"image_prompt\": \"[IMAGE_PROMPT]\"\n}\n```\n\n`[SOCIAL_MEDIA_CONTENT]` is the social media content you created.\n`[IMAGE_PROMPT]` is the detailed image prompt you generated.\n```\n\n**Example Usage:**\n\nLet's say the topic is still \"The Benefits of Regular Exercise.\"\n\n1. **SerpAPI Tool:** The agent uses SerpAPI to find information about the benefits of exercise.\n2. **Social Media Content:** The agent generates content like: \"Boost your mood & health! 💪 Regular exercise reduces stress, improves sleep, and lowers disease risk. Get moving today! #exercise #healthylifestyle #fitness\"\n3. **Image Prompt:** The agent generates an image prompt like: \"A photorealistic image of a diverse group of people happily participating in various forms of exercise in a vibrant outdoor setting. Some are jogging in a park with lush green trees, others are doing yoga poses on a grassy field, and a few are cycling on a paved path. The lighting is warm and golden, as if it's early morning or late afternoon. The style should be reminiscent of a National Geographic photograph, emphasizing the natural beauty of the scene and the healthy glow of the people. Use a shallow depth of field to blur the background slightly, drawing focus to the subjects. Camera angle: slightly low, capturing the energy and movement of the scene. Consider influences from the photographic style of Steve McCurry.\"\n4. **JSON Output:**\n\n```json\n{\n\"content\": \"Boost your mood & health! 💪 Regular exercise reduces stress, improves sleep, and lowers disease risk. Get moving today! #exercise #healthylifestyle #fitness\",\n\"image_prompt\": \"A photorealistic image of a diverse group of people happily participating in various forms of exercise in a vibrant outdoor setting. Some are jogging in a park with lush green trees, others are doing yoga poses on a grassy field, and a few are cycling on a paved path. The lighting is warm and golden, as if it's early morning or late afternoon. The style should be reminiscent of a National Geographic photograph, emphasizing the natural beauty of the scene and the healthy glow of the people. Use a shallow depth of field to blur the background slightly, drawing focus to the subjects. Camera angle: slightly low, capturing the energy and movement of the scene. Consider influences from the photographic style of Steve McCurry.\"\n}\n```\n\n**Key Improvements and Techniques Used (Beyond the Previous Version):**\n\n* **Focus on Photorealism:** The image prompt now explicitly aims for photorealistic results.\n* **Detailed Image Prompting:** The prompt emphasizes extreme detail and specificity in the image prompt.\n* **Tool Agnostic:** The prompt mentions DALL-E and Stable Diffusion as example tools, but is designed to be usable with other image generation AIs.\n* **Artist Style Guidance:** The prompt encourages the inclusion of artist or photographic style references.\n\n \n"
},
"promptType": "define",
"hasOutputParser": true
},
"typeVersion": 1.7
},
{
"id": "74f99543-d7e6-4d9b-8af1-9d86e0566ddc",
"name": "OpenAI 채팅 모델",
"type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
"position": [
1460,
560
],
"parameters": {
"model": {
"__rl": true,
"mode": "list",
"value": "gpt-4o-mini"
},
"options": {}
},
"credentials": {
"openAiApi": {
"id": "uFPD9I4pWJ4xUVf7",
"name": "OpenAi account"
}
},
"typeVersion": 1.2
},
{
"id": "62b9bb5f-0c87-4df4-ac1c-70b96a0a5cc4",
"name": "SerpAPI",
"type": "@n8n/n8n-nodes-langchain.toolSerpApi",
"position": [
1580,
560
],
"parameters": {
"options": {}
},
"credentials": {
"serpApi": {
"id": "AuYW6wcagKBXR214",
"name": "SerpAPI account"
}
},
"typeVersion": 1
},
{
"id": "3782a100-3210-4c87-9e6a-5808cd488601",
"name": "구조화된 출력 파서",
"type": "@n8n/n8n-nodes-langchain.outputParserStructured",
"position": [
1700,
560
],
"parameters": {
"jsonSchemaExample": "{\n\"content\": \"[SOCIAL_MEDIA_CONTENT]\",\n\"image_prompt\": \"[IMAGE_PROMPT]\"\n}"
},
"typeVersion": 1.2
},
{
"id": "87bf4b00-4f75-4098-993b-b4bd168339c2",
"name": "파일에서 추출",
"type": "n8n-nodes-base.extractFromFile",
"position": [
2380,
320
],
"parameters": {
"options": {},
"operation": "binaryToPropery"
},
"typeVersion": 1
},
{
"id": "9a273f0b-bcb0-4ed8-93f5-6161d192e3ef",
"name": "스티키 노트",
"type": "n8n-nodes-base.stickyNote",
"position": [
1460,
160
],
"parameters": {
"width": 280,
"height": 140,
"content": " **The AI agent uses the OpenAI Chat Model and SerpAPI tool to conduct research and generate social media content and an image prompt based on the user request.**"
},
"typeVersion": 1
},
{
"id": "c907aa15-1ccf-475e-94da-3a81e54b3746",
"name": "최종 출력 준비",
"type": "n8n-nodes-base.set",
"position": [
2740,
320
],
"parameters": {
"options": {},
"assignments": {
"assignments": [
{
"id": "df5eb034-ef40-44a3-a620-48981efd1a69",
"name": "content",
"type": "string",
"value": "={{ $('AI Agent').item.json.output.content }}"
},
{
"id": "9ed8afc9-a957-4aea-8554-8c67017ef0e6",
"name": "image",
"type": "string",
"value": "={{ $json.data }}"
}
]
}
},
"typeVersion": 3.4
},
{
"id": "0893eac1-e72b-4a95-8c3c-4803aaaed9b9",
"name": "이미지 생성",
"type": "n8n-nodes-base.httpRequest",
"position": [
2020,
320
],
"parameters": {
"url": "https://router.huggingface.co/hf-inference/models/stabilityai/stable-diffusion-3.5-large",
"method": "POST",
"options": {},
"sendBody": true,
"authentication": "predefinedCredentialType",
"bodyParameters": {
"parameters": [
{
"name": "inputs",
"value": "={{ $json.output.image_prompt }}"
}
]
},
"nodeCredentialType": "huggingFaceApi"
},
"credentials": {
"httpHeaderAuth": {
"id": "ERi7DgDYlifAQg7i",
"name": "Header Auth account"
},
"huggingFaceApi": {
"id": "2koOz09ZdzCYUNif",
"name": "HuggingFaceApi account"
}
},
"typeVersion": 4.2
},
{
"id": "b99a090f-73de-4703-b569-8992df36132f",
"name": "스티키 노트1",
"type": "n8n-nodes-base.stickyNote",
"position": [
1960,
240
],
"parameters": {
"width": 220,
"height": 240,
"content": " **An image is generated using the image prompt** "
},
"typeVersion": 1
}
],
"pinData": {},
"connections": {
"62b9bb5f-0c87-4df4-ac1c-70b96a0a5cc4": {
"ai_tool": [
[
{
"node": "156580f1-adf5-43ba-b54d-89b84ca87818",
"type": "ai_tool",
"index": 0
}
]
]
},
"156580f1-adf5-43ba-b54d-89b84ca87818": {
"main": [
[
{
"node": "0893eac1-e72b-4a95-8c3c-4803aaaed9b9",
"type": "main",
"index": 0
}
]
]
},
"0893eac1-e72b-4a95-8c3c-4803aaaed9b9": {
"main": [
[
{
"node": "87bf4b00-4f75-4098-993b-b4bd168339c2",
"type": "main",
"index": 0
}
]
]
},
"0e0f3a32-fbde-42a9-aa7f-70fda7b05357": {
"main": [
[
{
"node": "b01dde88-bede-4500-974f-b2dc203ff841",
"type": "main",
"index": 0
}
],
[
{
"node": "74549458-fd4d-4824-a561-944f2f536b9b",
"type": "main",
"index": 0
}
]
]
},
"74549458-fd4d-4824-a561-944f2f536b9b": {
"main": [
[
{
"node": "156580f1-adf5-43ba-b54d-89b84ca87818",
"type": "main",
"index": 0
}
]
]
},
"87bf4b00-4f75-4098-993b-b4bd168339c2": {
"main": [
[
{
"node": "c907aa15-1ccf-475e-94da-3a81e54b3746",
"type": "main",
"index": 0
}
]
]
},
"74f99543-d7e6-4d9b-8af1-9d86e0566ddc": {
"ai_languageModel": [
[
{
"node": "156580f1-adf5-43ba-b54d-89b84ca87818",
"type": "ai_languageModel",
"index": 0
}
]
]
},
"b01dde88-bede-4500-974f-b2dc203ff841": {
"main": [
[
{
"node": "fe91414e-3b10-482e-b8dd-d55266828dd7",
"type": "main",
"index": 0
}
]
]
},
"c907aa15-1ccf-475e-94da-3a81e54b3746": {
"main": [
[]
]
},
"3782a100-3210-4c87-9e6a-5808cd488601": {
"ai_outputParser": [
[
{
"node": "156580f1-adf5-43ba-b54d-89b84ca87818",
"type": "ai_outputParser",
"index": 0
}
]
]
},
"fe91414e-3b10-482e-b8dd-d55266828dd7": {
"main": [
[
{
"node": "156580f1-adf5-43ba-b54d-89b84ca87818",
"type": "main",
"index": 0
}
]
]
},
"070fd7b4-58ca-4372-a347-6f60f590e20b": {
"main": [
[
{
"node": "0e0f3a32-fbde-42a9-aa7f-70fda7b05357",
"type": "main",
"index": 0
}
]
]
}
}
}자주 묻는 질문
이 워크플로우를 어떻게 사용하나요?
위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.
이 워크플로우는 어떤 시나리오에 적합한가요?
고급 - 기타, 인공지능
유료인가요?
이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.
관련 워크플로우 추천
뮤직 생성 워크플로우
Suno API, Flux, Runway 및 Creatomate를 사용하여 AI 노래 및 음악 비디오 생성
Set
Wait
Merge
+
Set
Wait
Merge
60 노드Joseph
기타
AI 자동화 및 에이전트 구축 및 판매
构建与판매AI자동화与스마트体
If
Set
Wait
+
If
Set
Wait
74 노드NICKYAI
기타
Telegram에서 직접 Todoist 작업 생성하는 쉬운 작업 관리
쉬운 작업 관리: Telegram을 통해 AI를 통해 Todoist 작업 생성
Set
Switch
Todoist
+
Set
Switch
Todoist
13 노드Onur
인공지능
AI 대리인 레스토랑 [템플릿]
🤖 WhatsApp, 인스타그램, 메신저의 AI 레스토랑 도우미
If
N8n
Set
+
If
N8n
Set
239 노드Amanda Benks
기타
개인 - TRM 신청
Telegram 로봇과 AI 날짜 인식을 사용하여 코리아 페소兑 미국 달러 환율 가져오기
If
Set
Code
+
If
Set
Code
31 노드Juan Sanchez
금융
오디오 트랜스크립션 기능을 가진 HR 및 IT 서비스 데스크 전화 봇
인력자원 및 IT 서비스 데스크 전화 봇, 오디오 트랙션 기능
Set
Switch
Telegram
+
Set
Switch
Telegram
27 노드Felipe Braga
지원
워크플로우 정보
난이도
고급
노드 수16
카테고리2
노드 유형12
저자
Onur
@onurpolat05Hello, I'm Onur I've been working as a freelance software developer for about four years. In addition, I develop my own projects. For some time, I have been improving myself and providing various services related to AI and AI workflows. Both by writing low code and code. If you have any questions, don't hesitate to contact me.
외부 링크
n8n.io에서 보기 →
이 워크플로우 공유