{
  "name": "ASMR Video Workflow",
  "nodes": [
    {
      "parameters": {
        "path": "asmr",
        "options": {}
      },
      "id": "1",
      "name": "Webhook Trigger",
      "type": "n8n-nodes-base.webhook",
      "typeVersion": 1,
      "position": [
        250,
        300
      ],
      "webhookDescription": "Tetiklemek i\u00e7in: http://localhost:5678/webhook/asmr"
    },
    {
      "parameters": {
        "model": "gpt-4o-mini",
        "messages": [
          {
            "role": "system",
            "content": "Sen bir ASMR i\u00e7erik yazar\u0131 AI's\u0131n. Kullan\u0131c\u0131y\u0131 rahatlatacak k\u0131sa bir senaryo yaz."
          },
          {
            "role": "user",
            "content": "K\u0131sa bir ASMR senaryosu yaz."
          }
        ]
      },
      "id": "2",
      "name": "OpenAI - Script",
      "type": "n8n-nodes-base.openAi",
      "typeVersion": 2,
      "position": [
        500,
        300
      ],
      "credentials": {
        "openAiApi": {
          "name": "<your credential>"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.elevenlabs.io/v1/text-to-speech/YOUR_VOICE_ID",
        "sendBody": true,
        "jsonParameters": true,
        "options": {},
        "bodyParametersJson": "={ \"text\": $json[\"choices\"][0][\"message\"][\"content\"], \"voice_settings\": { \"stability\": 0.5, \"similarity_boost\": 0.8 } }",
        "headerParametersJson": "={ \"xi-api-key\": \"YOUR_ELEVENLABS_API_KEY\", \"Content-Type\": \"application/json\" }"
      },
      "id": "3",
      "name": "ElevenLabs TTS",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        750,
        300
      ]
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://api.pikalabs.com/generate",
        "sendBody": true,
        "jsonParameters": true,
        "bodyParametersJson": "={ \"prompt\": \"ASMR i\u00e7in sakinle\u015ftirici bir animasyon videosu\" }",
        "headerParametersJson": "={ \"Authorization\": \"Bearer YOUR_PIKALABS_API_KEY\", \"Content-Type\": \"application/json\" }"
      },
      "id": "4",
      "name": "Pika Labs Video",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 1,
      "position": [
        1000,
        300
      ]
    },
    {
      "parameters": {
        "command": "ffmpeg -i audio.mp3 -i video.mp4 -c:v libx264 -c:a aac -shortest C:/Users/hasan/Videos/asmr_final.mp4"
      },
      "id": "5",
      "name": "FFmpeg Merge",
      "type": "n8n-nodes-base.executeCommand",
      "typeVersion": 1,
      "position": [
        1250,
        300
      ]
    },
    {
      "parameters": {
        "fromEmail": "n8n-bot@example.com",
        "toEmail": "hasan24243434@gmail.com",
        "subject": "ASMR Video Haz\u0131r \ud83c\udfa7",
        "text": "Merhaba \ud83d\udc4b ASMR videon haz\u0131r! Dosya \u015furada: C:/Users/hasan/Videos/asmr_final.mp4"
      },
      "id": "6",
      "name": "Send Email",
      "type": "n8n-nodes-base.emailSend",
      "typeVersion": 1,
      "position": [
        1500,
        300
      ],
      "credentials": {
        "smtp": {
          "name": "<your credential>"
        }
      }
    }
  ],
  "connections": {
    "Webhook Trigger": {
      "main": [
        [
          {
            "node": "OpenAI - Script",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI - Script": {
      "main": [
        [
          {
            "node": "ElevenLabs TTS",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ElevenLabs TTS": {
      "main": [
        [
          {
            "node": "Pika Labs Video",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Pika Labs Video": {
      "main": [
        [
          {
            "node": "FFmpeg Merge",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "FFmpeg Merge": {
      "main": [
        [
          {
            "node": "Send Email",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}