**Blogger + Postiz + AI का पूरा n8n वर्कफ़्लो JSON** दिया गया है।

बिल्कुल! यहाँ **Blogger + Postiz + AI का पूरा n8n वर्कफ़्लो JSON** दिया गया है। इसे इम्पोर्ट करके आप सीधे इस्तेमाल शुरू कर सकते हैं: ## 📥 JSON इम्पोर्ट कैसे करें 1. n8n में **Settings** → **Import** पर जाएँ 2. नीचे दिया गया पूरा JSON कॉपी करके पेस्ट करें 3. सभी **क्रेडेंशियल्स** अपने अनुसार बदलें 4. वर्कफ़्लो को **Active** करें --- ```json { "name": "Blogger + Postiz + AI Auto Poster", "nodes": [ { "parameters": { "rule": { "interval": [ { "field": "hours", "hoursInterval": 6 } ] } }, "id": "trigger-1", "name": "Cron Trigger (हर 6 घंटे)", "type": "n8n-nodes-base.scheduleTrigger", "typeVersion": 1, "position": [250, 300] }, { "parameters": { "jsCode": "// टॉपिक लिस्ट (आप अपने हिसाब से बदल सकते हैं)\nconst topics = [\n 'टेक्नोलॉजी के नए ट्रेंड्स',\n 'डिजिटल मार्केटिंग टिप्स',\n 'ब्लॉगिंग कैसे शुरू करें',\n 'AI टूल्स जो आपकी जिंदगी बदल देंगे',\n 'सोशल मीडिया ग्रोथ सीक्रेट्स'\n];\n\n// रैंडम टॉपिक चुनें\nconst randomTopic = topics[Math.floor(Math.random() * topics.length)];\n\nreturn { topic: randomTopic };" }, "id": "code-1", "name": "रैंडम टॉपिक जेनरेट करें", "type": "n8n-nodes-base.code", "typeVersion": 1, "position": [450, 300] }, { "parameters": { "jsCode": "const topic = $input.first().json.topic;\n\nconst prompt = `\nYou are a professional content creator. Based on the topic \"${topic}\", generate:\n\n1. A complete Blogger post:\n - Title: SEO-friendly, catchy title\n - Content: 500 words minimum, with H2 headings, bullet points, and a conclusion\n - Labels: 5 relevant labels/tags\n\n2. Instagram caption:\n - 150-200 characters\n - 15-20 relevant hashtags\n - 3-5 emojis\n - Call to action\n\n3. Facebook caption:\n - 2-3 sentences\n - Emotional/engaging tone\n - Question to encourage comments\n\n4. Twitter/X post:\n - Under 280 characters\n - 2-3 trending hashtags\n - Hook line\n\n5. LinkedIn post:\n - Professional tone\n - 4-5 sentences\n - Industry insights\n - 2-3 relevant hashtags\n\n6. Pinterest description:\n - 3-4 lines\n - Keyword rich\n - SEO optimized\n\n7. Telegram message:\n - Short and crisp\n - With emojis\n - Link to blog post\n\nReturn ONLY a valid JSON object with this structure:\n{\n \"blogger\": {\n \"title\": \"...\",\n \"content\": \"...\",\n \"labels\": [\"...\"]\n },\n \"instagram\": \"...\",\n \"facebook\": \"...\",\n \"twitter\": \"...\",\n \"linkedin\": \"...\",\n \"pinterest\": \"...\",\n \"telegram\": \"...\"\n}\n`;\n\nreturn { prompt };" }, "id": "code-2", "name": "AI प्रॉम्प्ट बनाएँ", "type": "n8n-nodes-base.code", "typeVersion": 1, "position": [650, 300] }, { "parameters": { "method": "POST", "url": "https://api.openai.com/v1/chat/completions", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "Bearer YOUR_OPENAI_API_KEY_HERE" } ] }, "sendBody": true, "bodyParameters": { "parameters": [ { "name": "model", "value": "gpt-4" }, { "name": "messages", "value": "[{\"role\":\"system\",\"content\":\"You are a JSON-only assistant. Always return valid JSON.\"},{\"role\":\"user\",\"content\":\"{{ $json.prompt }}\"}]" }, { "name": "temperature", "value": 0.7 }, { "name": "response_format", "value": { "type": "json_object" } } ] }, "options": {} }, "id": "http-1", "name": "GPT-4 से कंटेंट जेनरेट करें", "type": "n8n-nodes-base.httpRequest", "typeVersion": 3, "position": [850, 300] }, { "parameters": { "jsCode": "const gptResponse = $input.first().json;\nconst content = gptResponse.choices[0].message.content;\n\nlet parsed;\ntry {\n parsed = JSON.parse(content);\n} catch (e) {\n // अगर JSON पार्स नहीं हो पाता, तो एरर दिखाएँ\n throw new Error('Failed to parse GPT response: ' + content);\n}\n\n// सभी प्लेटफॉर्म के लिए डेटा अलग-अलग रिटर्न करें\nreturn {\n blogger: parsed.blogger,\n instagram: parsed.instagram,\n facebook: parsed.facebook,\n twitter: parsed.twitter,\n linkedin: parsed.linkedin,\n pinterest: parsed.pinterest,\n telegram: parsed.telegram,\n topic: $('रैंडम टॉपिक जेनरेट करें').item.json.topic\n};" }, "id": "code-3", "name": "GPT रिस्पॉन्स पार्स करें", "type": "n8n-nodes-base.code", "typeVersion": 1, "position": [1050, 300] }, { "parameters": { "operation": "create", "blogId": "YOUR_BLOG_ID_HERE", "title": "={{ $json.blogger.title }}", "content": "={{ $json.blogger.content }}", "labels": "={{ $json.blogger.labels }}" }, "id": "blogger-1", "name": "Blogger पर पोस्ट करें", "type": "n8n-nodes-base.blogger", "typeVersion": 1, "position": [1250, 200], "credentials": { "bloggerApi": "YOUR_BLOGGER_CREDENTIALS_NAME" } }, { "parameters": { "url": "https://api.postiz.com/public/v1/channels", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "Bearer YOUR_POSTIZ_API_KEY_HERE" } ] }, "options": {} }, "id": "http-2", "name": "Postiz - चैनल्स लें", "type": "n8n-nodes-base.httpRequest", "typeVersion": 3, "position": [1250, 400] }, { "parameters": { "jsCode": "const channels = $input.first().json;\nconst blogData = $('GPT रिस्पॉन्स पार्स करें').item.json;\n\n// चैनल आईडी और प्लेटफॉर्म मैप करें\nconst channelMap = {};\nfor (const channel of channels) {\n channelMap[channel.platform.toLowerCase()] = channel.id;\n}\n\n// हर प्लेटफॉर्म के लिए पोस्ट तैयार करें\nconst posts = [];\n\nif (channelMap['instagram']) {\n posts.push({\n channelId: channelMap['instagram'],\n content: blogData.instagram,\n platform: 'instagram'\n });\n}\n\nif (channelMap['facebook']) {\n posts.push({\n channelId: channelMap['facebook'],\n content: blogData.facebook,\n platform: 'facebook'\n });\n}\n\nif (channelMap['twitter']) {\n posts.push({\n channelId: channelMap['twitter'],\n content: blogData.twitter,\n platform: 'twitter'\n });\n}\n\nif (channelMap['linkedin']) {\n posts.push({\n channelId: channelMap['linkedin'],\n content: blogData.linkedin,\n platform: 'linkedin'\n });\n}\n\nif (channelMap['pinterest']) {\n posts.push({\n channelId: channelMap['pinterest'],\n content: blogData.pinterest,\n platform: 'pinterest'\n });\n}\n\nif (channelMap['telegram']) {\n posts.push({\n channelId: channelMap['telegram'],\n content: blogData.telegram,\n platform: 'telegram'\n });\n}\n\nreturn posts;" }, "id": "code-4", "name": "पोस्ट तैयार करें", "type": "n8n-nodes-base.code", "typeVersion": 1, "position": [1450, 400] }, { "parameters": { "method": "POST", "url": "https://api.postiz.com/public/v1/posts", "authentication": "genericCredentialType", "genericAuthType": "httpHeaderAuth", "sendHeaders": true, "headerParameters": { "parameters": [ { "name": "Authorization", "value": "Bearer YOUR_POSTIZ_API_KEY_HERE" }, { "name": "Content-Type", "value": "application/json" } ] }, "sendBody": true, "bodyParameters": { "parameters": [ { "name": "type", "value": "now" }, { "name": "posts", "value": "=[{\"integration\":{\"id\":\"{{ $json.channelId }}\"},\"value\":[{\"content\":\"{{ $json.content }}\"}]}]" } ] }, "options": {} }, "id": "http-3", "name": "Postiz - पोस्ट करें", "type": "n8n-nodes-base.httpRequest", "typeVersion": 3, "position": [1650, 400] } ], "connections": { "Cron Trigger (हर 6 घंटे)": { "main": [ [ { "node": "रैंडम टॉपिक जेनरेट करें", "type": "main", "index": 0 } ] ] }, "रैंडम टॉपिक जेनरेट करें": { "main": [ [ { "node": "AI प्रॉम्प्ट बनाएँ", "type": "main", "index": 0 } ] ] }, "AI प्रॉम्प्ट बनाएँ": { "main": [ [ { "node": "GPT-4 से कंटेंट जेनरेट करें", "type": "main", "index": 0 } ] ] }, "GPT-4 से कंटेंट जेनरेट करें": { "main": [ [ { "node": "GPT रिस्पॉन्स पार्स करें", "type": "main", "index": 0 } ] ] }, "GPT रिस्पॉन्स पार्स करें": { "main": [ [ { "node": "Blogger पर पोस्ट करें", "type": "main", "index": 0 } ], [ { "node": "Postiz - चैनल्स लें", "type": "main", "index": 0 } ] ] }, "Postiz - चैनल्स लें": { "main": [ [ { "node": "पोस्ट तैयार करें", "type": "main", "index": 0 } ] ] }, "पोस्ट तैयार करें": { "main": [ [ { "node": "Postiz - पोस्ट करें", "type": "main", "index": 0 } ] ] } }, "settings": { "executionOrder": "v1" }, "staticData": null, "pinData": {}, "versionId": "blogger-postiz-v1", "triggerCount": 1 } ``` --- ## 🔧 इस्तेमाल करने से पहले ये बदलाव जरूर करें: ### 1. OpenAI API Key (2 जगह बदलनी है) - **Node**: `GPT-4 से कंटेंट जेनरेट करें` - लाइन 93: `Bearer YOUR_OPENAI_API_KEY_HERE` ### 2. Postiz API Key (2 जगह बदलनी है) - **Node**: `Postiz - चैनल्स लें` (लाइन 209) - **Node**: `Postiz - पोस्ट करें` (लाइन 260) - `Bearer YOUR_POSTIZ_API_KEY_HERE` ### 3. Blogger Credentials - **Node**: `Blogger पर पोस्ट करें` - लाइन 180: `blogId: "YOUR_BLOG_ID_HERE"` - लाइन 187: `credentials: "YOUR_BLOGGER_CREDENTIALS_NAME"` ### 4. Postiz में चैनल आईडी - पहली बार वर्कफ़्लो चलाने पर `Postiz - चैनल्स लें` नोड से सारी चैनल आईडी मिल जाएँगी - `पोस्ट तैयार करें` नोड में प्लेटफॉर्म के नाम चेक करें (instagram, facebook, twitter, etc.) --- ## 🚀 यह वर्कफ़्लो क्या करेगा? 1. **हर 6 घंटे** में अपने आप चलेगा 2. 5 टॉपिक्स में से **रैंडम टॉपिक** चुनेगा 3. **GPT-4** उस टॉपिक पर पूरा कंटेंट जेनरेट करेगा: - Blogger पोस्ट (टाइटल + 500 शब्द + लेबल्स) - Instagram कैप्शन + हैशटैग - Facebook कैप्शन - Twitter/X पोस्ट - LinkedIn पोस्ट - Pinterest डिस्क्रिप्शन - Telegram मैसेज 4. **Blogger** पर ऑटोमेटिक पोस्ट करेगा 5. **Postiz** से सभी कनेक्टेड प्लेटफॉर्म पर पोस्ट करेगा --- ## 💡 प्रो टिप्स - **पहले मैन्युअली टेस्ट करें**: `Cron Trigger` की जगह `Manual Trigger` लगाकर टेस्ट करें - **टॉपिक लिस्ट बदलें**: `रैंडम टॉपिक जेनरेट करें` नोड में अपने हिसाब से टॉपिक डालें - **प्लेटफॉर्म बढ़ाएँ/घटाएँ**: `पोस्ट तैयार करें` नोड में और प्लेटफॉर्म जोड़ सकते हैं - **इमेज जेनरेट करें**: DALL·E नोड जोड़कर हर पोस्ट के लिए AI इमेज भी बनवा सकते हैं --- कोई स्टेप अटके तो बताइए - मैं मदद करूँगा! 😊

Comments

Popular posts from this blog

Here's a comprehensive home cleaning schedule to help keep your space tidy and organized:

how many types of banarasi silk saree and what there quality

Which suppliers provide guaranteed 1–2 day shipping options