{
  "meta": {
    "templateId": "2234"
  },
  "nodes": [
    {
      "id": "e0f68f60-f036-4103-a9fc-d6cb80b6f8a2",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        1980,
        1100
      ],
      "parameters": {
        "model": "gpt-4-turbo",
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "23779dea-c21d-42da-b493-09394bc64436",
      "name": "OpenAI Chat Model1",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2420,
        660
      ],
      "parameters": {
        "model": "gpt-4-turbo",
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "af59863e-12c5-414c-bf64-dd6712e3aa7b",
      "name": "Schedule Trigger",
      "type": "n8n-nodes-base.scheduleTrigger",
      "position": [
        1680,
        960
      ],
      "parameters": {
        "rule": {
          "interval": [
            {
              "field": "hours",
              "hoursInterval": 12
            }
          ]
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "bc2ad02b-72c9-4132-96e8-b64487f589f7",
      "name": "Recursive Character Text Splitter",
      "type": "@n8n/n8n-nodes-langchain.textSplitterRecursiveCharacterTextSplitter",
      "position": [
        2160,
        1140
      ],
      "parameters": {
        "options": {},
        "chunkSize": 500,
        "chunkOverlap": 300
      },
      "typeVersion": 1
    },
    {
      "id": "cb11a8bb-bdca-43cb-a586-7f93471d58f7",
      "name": "OpenAI Chat Model2",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "position": [
        2420,
        1300
      ],
      "parameters": {
        "options": {}
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1
    },
    {
      "id": "9d02b910-a467-4d4d-a2fa-32d1d3361d21",
      "name": "Create a Prompt for DALL-E",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        2400,
        1080
      ],
      "parameters": {
        "options": {
          "summarizationMethodAndPrompts": {
            "values": {
              "prompt": "Summarize the characters in this story based on their appearance and describe them if they are humans or animals and how they look like and what kind of are they, the prompt should be no-text in the picture.\n\n\n\n\n\"{text}\"\n\n\nCONCISE SUMMARY:",
              "summarizationMethod": "stuff"
            }
          }
        }
      },
      "typeVersion": 2
    },
    {
      "id": "4723dd65-96f5-41c1-9ff6-f1a344d96241",
      "name": "Generate an Image for the Story",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2860,
        1080
      ],
      "parameters": {
        "prompt": "=Produce an image ensuring that no text is generated within the visual content. {{ $json.response.text }}",
        "options": {},
        "resource": "image"
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.3
    },
    {
      "id": "70b7f55a-31c4-456b-8273-8250bac74409",
      "name": "Generate Audio for the Story",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "position": [
        2640,
        820
      ],
      "parameters": {
        "input": "={{ $json.response.text }}",
        "options": {},
        "resource": "audio"
      },
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      },
      "executeOnce": true,
      "typeVersion": 1.3
    },
    {
      "id": "c381dbe4-6112-441c-b213-8a2d218f4cc2",
      "name": "Send the Story To Channel",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3160,
        480
      ],
      "parameters": {
        "text": "={{ $json.response.text }}",
        "chatId": "=-4170994782",
        "additionalFields": {
          "appendAttribution": false
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "78289bfa-54b4-4acb-b513-7a0134a010f3",
      "name": "Send Image to the Channel",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3180,
        1080
      ],
      "parameters": {
        "chatId": "=-4170994782",
        "operation": "sendPhoto",
        "binaryData": true,
        "additionalFields": {}
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "f779047b-6dec-4e4e-ae09-4dd91f961d08",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        380,
        240
      ],
      "parameters": {
        "width": 1224.7156767468991,
        "height": 1282.378312060854,
        "content": "# \uc544\ub78d\uc5b4\ub85c \ub41c \uc5b4\ub9b0\uc774 \uc774\uc57c\uae30 \ud15c\ud50c\ub9bf\n\nn8n \ud15c\ud50c\ub9bf\uc740 \uc544\ub78d\uc5b4\ub85c \uc5b4\ub9b0\uc774 \uc774\uc57c\uae30\ub97c \ub9cc\ub4dc\ub294 \ub370 \uc0ac\uc6a9\ub418\uba70, \uc774\uc57c\uae30\uafbc\ub4e4\uc774 \uad50\uc721\uc801\uc774\uace0 \uc0c1\ud638\uc791\uc6a9\uc801\uc778 \uc774\uc57c\uae30\ub97c \ud1b5\ud574 \uc5b4\ub9b0 \uccad\uc911\uc744 \uc0ac\ub85c\uc7a1\uc744 \uc218 \uc788\ub294 \ub2e4\uc7ac\ub2e4\ub2a5\ud55c \ud50c\ub7ab\ud3fc\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4. \uc774 \ud15c\ud50c\ub9bf\uc758 \ud575\uc2ec \uae30\ub2a5 \uc678\uc5d0\ub3c4 \ub2e4\uc591\ud55c \uc6a9\ub3c4\uc5d0 \ub9de\uac8c \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\ud560 \uc218 \uc788\uc73c\uba70, \uc27d\uac8c \uc124\uc815\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n\n\uc774 \uc608\uc2dc\ub97c \ud655\uc778\ud558\uc138\uc694: [https://t.me/st0ries95](https://t.me/st0ries95)\n\n\n## \ub178\ub4dc \uae30\ub2a5\n\n\n## \uc790\ub3d9\ud654\ub41c \uc774\uc57c\uae30 \uc0dd\uc131 \ud504\ub85c\uc138\uc2a4\n\n\n## \uc6a9\ub3c4 \uc0ac\ub840\n1. **\uad50\uc721 \ud50c\ub7ab\ud3fc**:\n   \uad50\uc721 \ud50c\ub7ab\ud3fc\uc740 \uc774 \ud15c\ud50c\ub9bf\uc744 \uc0ac\uc6a9\ud558\uc5ec \uc544\ub78d\uc5b4\ub85c \ub41c \uad50\uc721\uc801 \uc774\uc57c\uae30\ub97c \uc790\ub3d9\uc73c\ub85c \uc0dd\uc131\ud558\uace0 \ubc30\ud3ec\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc2dc\uac01\uc801 \ubc0f \uccad\uac01\uc801 \uc694\uc18c\ub97c \uc774\uc57c\uae30 \uc0dd\uc131 \ud504\ub85c\uc138\uc2a4\uc5d0 \ud1b5\ud569\ud558\uc5ec \ud559\uc2b5 \uacbd\ud5d8\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uace0 \uc5b4\ub9b0 \ud559\uc2b5\uc790\ub97c \ud6a8\uacfc\uc801\uc73c\ub85c \ucc38\uc5ec\uc2dc\ud0ac \uc218 \uc788\uc2b5\ub2c8\ub2e4.\n\n2. **\uc5b4\ub9b0\uc774 \ub3c4\uc11c\uad00**:\n   \uc5b4\ub9b0\uc774 \ub3c4\uc11c\uad00\uc740 \uc774 \ud15c\ud50c\ub9bf\uc744 \ud65c\uc6a9\ud558\uc5ec \uc5b4\ub9b0 \ub3c5\uc790\ub4e4\uc744 \uc704\ud55c \ub2e4\uc591\ud55c \uc544\ub78d\uc5b4 \uc774\uc57c\uae30\ub97c \ud050\ub808\uc774\ud2b8\ud558\uace0 \uacf5\uc720\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc2dc\uac01 \ucf58\ud150\uce20\uc640 \uc624\ub514\uc624 \ud30c\uc77c\uc758 \uc790\ub3d9 \uc0dd\uc131\uc740 \uc774\uc57c\uae30 \uacbd\ud5d8\uc744 \ud5a5\uc0c1\uc2dc\ud0a4\uba70, \uc5b4\ub9b0\uc774\ub4e4\uc774 \ub9e4\ub825\uc801\uc778 \uc11c\uc0ac\ub85c \uc0c8\ub85c\uc6b4 \uc138\uacc4\uc640 \uce90\ub9ad\ud130\uc5d0 \ubab0\uc785\ud558\ub3c4\ub85d \uc7a5\ub824\ud569\ub2c8\ub2e4.\n\n3. **\uc5b8\uc5b4 \ud559\uc2b5 \uc571**:\n   \uc544\ub78d\uc5b4\uc5d0 \uc911\uc810\uc744 \ub454 \uc5b8\uc5b4 \ud559\uc2b5 \uc571\uc740 \uc774 \ud15c\ud50c\ub9bf\uc744 \ud1b5\ud569\ud558\uc5ec \uc5b4\ub9b0\uc774\ub4e4\uc774 \uc5b8\uc5b4\ub97c \ubc30\uc6b0\ub294 \ub370 \ubb38\ud654\uc801\uc73c\ub85c \ud48d\ubd80\ud55c \uc774\uc57c\uae30 \uacbd\ud5d8\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4. \uc774\uc57c\uae30\ub97c \uc544\ub78d\uc5b4\ub85c \ubc88\uc5ed\ud558\uace0 \uc2dc\uac01\uc801 \ubc0f \uccad\uac01\uc801 \uad6c\uc131 \uc694\uc18c\ub97c \ucd94\uac00\ud558\uc5ec \uc7ac\ubbf8\uc788\uace0 \uc0c1\ud638\uc791\uc6a9\uc801\uc778 \ubc29\uc2dd\uc73c\ub85c \uc5b8\uc5b4 \uc2b5\ub4dd\uc744 \ucd09\uc9c4\ud569\ub2c8\ub2e4.\n\n## \ub178\ub4dc \uad6c\uc131 \uac00\uc774\ub4dc\n\n### OpenAI \ucc44\ud305 \ubaa8\ub378 \ub178\ub4dc:\n- **\uc790\uaca9 \uc99d\uba85**: OpenAI GPT-4 Turbo \ubaa8\ub378\uc758 \ud544\uc694\ud55c API \uc790\uaca9 \uc99d\uba85\uc744 \uc81c\uacf5\ud569\ub2c8\ub2e4.\n- **\uc635\uc158**: \ucc44\ud305 \ubaa8\ub378\uc5d0 \ud544\uc694\ud55c \ud2b9\uc815 \uc635\uc158\uc744 \uad6c\uc131\ud569\ub2c8\ub2e4.\n\n### DALL-E \ub178\ub4dc\ub97c \uc704\ud55c \ud504\ub86c\ud504\ud2b8 \uc0dd\uc131:\n- **\ud504\ub86c\ud504\ud2b8 \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5**: \uc774\uc57c\uae30\ub97c \uc704\ud55c \uad00\ub828 \uc2dc\uac01 \ucf58\ud150\uce20\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud574 \ud504\ub86c\ud504\ud2b8\ub97c \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\ud569\ub2c8\ub2e4.\n- **\uc694\uc57d \ubc29\ubc95 \ubc0f \ud504\ub86c\ud504\ud2b8**: \ud14d\uc2a4\ud2b8\uac00 \uc5c6\ub294 \uc2dc\uac01 \ucf58\ud150\uce20\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud55c \uc694\uc57d \ubc29\ubc95\uacfc \ud504\ub86c\ud504\ud2b8\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.\n\n### \uc774\uc57c\uae30 \ub178\ub4dc\ub97c \uc704\ud55c \uc774\ubbf8\uc9c0 \uc0dd\uc131:\n- **\ub9ac\uc18c\uc2a4**: \ub9ac\uc18c\uc2a4 \uc720\ud615(\uc774\ubbf8\uc9c0)\uc744 \uc9c0\uc815\ud569\ub2c8\ub2e4.\n- **\ud504\ub86c\ud504\ud2b8**: \uc2dc\uac01 \ucf58\ud150\uce20 \ub0b4 \ud14d\uc2a4\ud2b8\uac00 \uc5c6\ub294 \uc774\ubbf8\uc9c0\ub97c \uc0dd\uc131\ud558\uae30 \uc704\ud55c \ud504\ub86c\ud504\ud2b8\ub97c \uc124\uc815\ud569\ub2c8\ub2e4.\n\n### \uc774\uc57c\uae30 \ub178\ub4dc\ub97c \uc704\ud55c \uc624\ub514\uc624 \uc0dd\uc131:\n- **\ub9ac\uc18c\uc2a4**: \ub9ac\uc18c\uc2a4 \uc720\ud615(\uc624\ub514\uc624)\uc744 \uc120\ud0dd\ud569\ub2c8\ub2e4.\n- **\uc785\ub825**: \uc624\ub514\uc624 \ud30c\uc77c\uc744 \uc0dd\uc131\ud558\uae30 \uc704\ud55c \uc785\ub825 \ud14d\uc2a4\ud2b8\ub97c \uc815\uc758\ud569\ub2c8\ub2e4.\n\n### \uc774\uc57c\uae30\ub97c \uc544\ub78d\uc5b4\ub85c \ubc88\uc5ed\ud558\ub294 \ub178\ub4dc:\n- **\uccad\ud06c\ub9c1 \ubaa8\ub4dc**: \uccad\ud06c\ub9c1 \ubaa8\ub4dc(\uace0\uae09)\ub97c \uc120\ud0dd\ud569\ub2c8\ub2e4.\n- **\uc694\uc57d \ubc29\ubc95 \ubc0f \ud504\ub86c\ud504\ud2b8**: \uc774\uc57c\uae30\ub97c \uc544\ub78d\uc5b4\ub85c \ubc88\uc5ed\ud558\uae30 \uc704\ud55c \uc694\uc57d \ubc29\ubc95\uacfc \ud504\ub86c\ud504\ud2b8\ub97c \uc124\uc815\ud569\ub2c8\ub2e4.\n\n### \uc774\uc57c\uae30\ub97c \ucc44\ub110\uc5d0 \ubcf4\ub0b4\ub294 \ub178\ub4dc:\n- **\ucc44\ud305 ID**: \uc774\uc57c\uae30 \ud14d\uc2a4\ud2b8\uac00 \ubcf4\ub0b4\uc9c8 \ucc44\ud305 ID\ub97c \uc81c\uacf5\ud569\ub2c8\ub2e4.\n- **\ud14d\uc2a4\ud2b8**: \ucc44\ub110\uc5d0 \ubcf4\ub0b4\uc9c8 \ud14d\uc2a4\ud2b8\ub97c \uad6c\uc131\ud569\ub2c8\ub2e4.\n\n\uc704 \uac00\uc774\ub4dc\uc5d0 \ub530\ub77c \uac01 \ub178\ub4dc\ub97c \uad6c\uc131\ud558\uba74, \uc0ac\uc6a9\uc790\ub294 n8n \ud15c\ud50c\ub9bf\uc744 \ud6a8\uacfc\uc801\uc73c\ub85c \uc124\uc815\ud558\uace0 \ucee4\uc2a4\ud130\ub9c8\uc774\uc9d5\ud558\uc5ec \uc544\ub78d\uc5b4\ub85c \ub41c \uc5b4\ub9b0\uc774 \uc774\uc57c\uae30\ub97c \ud2b9\uc815 \uc6a9\ub3c4\uc5d0 \ub9de\uac8c \uc870\uc815\ud560 \uc218 \uc788\uc73c\uba70, \uc5b4\ub9b0 \uccad\uc911\uc5d0\uac8c \uc6d0\ud65c\ud558\uace0 \ub9e4\ub825\uc801\uc778 \uc774\uc57c\uae30 \uacbd\ud5d8\uc744 \uc81c\uacf5\ud560 \uc218 \uc788\uc2b5\ub2c8\ub2e4."
      },
      "typeVersion": 1
    },
    {
      "id": "5ef92ebc-e4e4-4165-a7df-9f94802f8e27",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1620,
        240
      ],
      "parameters": {
        "width": 1811.9647367735226,
        "height": 1280.7253282813103,
        "content": "### Output\n(Translated from English to Korean as per the instruction, but since the input is empty, the output is also empty.)"
      },
      "typeVersion": 1
    },
    {
      "id": "76d2b256-8083-42d9-8465-63b2f9c73a67",
      "name": "Translate the Story to Arabic",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        2400,
        480
      ],
      "parameters": {
        "options": {
          "summarizationMethodAndPrompts": {
            "values": {
              "prompt": "Translate this story texts to \"Arabic\" and make it easy to understands for kids with easy words and moral lesson :\n\n\n\"{text}\"\n\n\n",
              "summarizationMethod": "stuff"
            }
          }
        },
        "chunkingMode": "advanced"
      },
      "executeOnce": true,
      "typeVersion": 2
    },
    {
      "id": "126e463e-f1e8-4cd2-856d-aaaebc279797",
      "name": "Send Audio to the Channel",
      "type": "n8n-nodes-base.telegram",
      "position": [
        3180,
        820
      ],
      "parameters": {
        "chatId": "-4170994782",
        "operation": "sendAudio",
        "binaryData": true,
        "additionalFields": {
          "caption": "\u0646\u0647\u0627\u064a\u0629 \u0627\u0644\u0642\u0635\u0629 ... "
        }
      },
      "credentials": {
        "telegramApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 1.1
    },
    {
      "id": "162049a0-620a-4044-966a-27b665827b60",
      "name": "Create a Story for Kids",
      "type": "@n8n/n8n-nodes-langchain.chainSummarization",
      "position": [
        1980,
        960
      ],
      "parameters": {
        "options": {
          "summarizationMethodAndPrompts": {
            "values": {
              "prompt": "Create a captivating short tale for kids, whisking them away to magical lands brimming with wisdom. Explore diverse themes in a fun and simple way, weaving in valuable messages. Dive into cultural adventures with lively language that sparks curiosity. Let your story inspire young minds through enchanting narratives that linger long after the last word. Begin crafting your imaginative tale now! (Approximately 900 characters)\n\n\n\"{text}\"\n\nCONCISE SUMMARY:",
              "summarizationMethod": "stuff"
            }
          }
        },
        "chunkingMode": "advanced"
      },
      "executeOnce": true,
      "typeVersion": 2
    }
  ],
  "connections": {
    "Schedule Trigger": {
      "main": [
        [
          {
            "node": "Create a Story for Kids",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "Create a Story for Kids",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model1": {
      "ai_languageModel": [
        [
          {
            "node": "Translate the Story to Arabic",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model2": {
      "ai_languageModel": [
        [
          {
            "node": "Create a Prompt for DALL-E",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Create a Story for Kids": {
      "main": [
        [
          {
            "node": "Translate the Story to Arabic",
            "type": "main",
            "index": 0
          },
          {
            "node": "Create a Prompt for DALL-E",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Create a Prompt for DALL-E": {
      "main": [
        [
          {
            "node": "Generate an Image for the Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate Audio for the Story": {
      "main": [
        [
          {
            "node": "Send Audio to the Channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Translate the Story to Arabic": {
      "main": [
        [
          {
            "node": "Send the Story To Channel",
            "type": "main",
            "index": 0
          },
          {
            "node": "Generate Audio for the Story",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Generate an Image for the Story": {
      "main": [
        [
          {
            "node": "Send Image to the Channel",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Recursive Character Text Splitter": {
      "ai_textSplitter": [
        [
          {
            "node": "Create a Story for Kids",
            "type": "ai_textSplitter",
            "index": 0
          }
        ]
      ]
    }
  }
}