Skip to content
TheChatArchiveThe Chat Archive
Amazon Novaamazon.nova-pro-v1:0· AmazonHugging Face LMArena Human Preference 140K

now give me the .json file

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with MiniMaxminimax-m1’s answer.
  1. User

    now give me the .json file

  2. Amazon Nova Assistant

    Creating a complete .json file for an n8n workflow with all the described nodes and configurations would be quite extensive and complex. However, I can provide you with a simplified version of the workflow in JSON format that includes the main nodes and their basic configurations. You'll need to expand upon this, adding specific details, API keys, and other configurations as needed.

    Here's a simplified version of the workflow in JSON format:

    {
      "nodes": [
        {
          "parameters": {
            "path": "/webhook-trigger",
            "options": {
              "auth": "apiKey"
            }
          },
          "name": "Webhook Trigger",
          "type": "n8n-nodes-base.webhook",
          "typeVersion": 1,
          "position": [
            250,
            400
          ]
        },
        {
          "parameters": {
            "options": {
              "checkExists": [
                {
                  "value1": "={{$json[\"script\"]}}",
                  "operation": "notEquals",
                  "value2": ""
                }
              ],
              "ifTrue": {
                "parameters": {
                  "value": "={{$json[\"script\"]}}"
                },
                "name": "Use Provided Script",
                "type": "n8n-nodes-base.function",
                "typeVersion": 1
              },
              "ifFalse": {
                "parameters": {
                  "model": "gpt-3.5-turbo",
                  "prompt": "Generate a detailed, engaging YouTube video script for the topic: '{{$json[\"topic\"]}}'. The script should include sections for intro, main content (broken down logically), and outro. Include suggestions for visuals or B-roll in parentheses. Aim for a script length suitable for a 5-7 minute video. Output only the script text.",
                  "apiKey": "openai_api_key"
                },
                "name": "Generate Script from Topic",
                "type": "n8n-nodes-base.openai",
                "typeVersion": 1
              }
            }
          },
          "name": "Check Script",
          "type": "n8n-nodes-base.if",
          "typeVersion": 1,
          "position": [
            500,
            400
          ]
        },
        {
          "parameters": {
            "model": "gpt-3.5-turbo",
            "prompt": "Take the following YouTube video script. Extract the main narration text, identify keywords or descriptive phrases suitable for finding stock footage/images, and structure the output as JSON with keys like 'narration', 'visual_cues', and 'script_segments'. Ensure narration is clean text suitable for text-to-speech.\n\n{{script}}",
            "apiKey": "openai_api_key"
          },
          "name": "Refine Script",
          "type": "n8n-nodes-base.openai",
          "typeVersion": 1,
          "position": [
            800,
            400
          ]
        },
        {
          "parameters": {
            "options": {
              "method": "POST",
              "url": "https://api.elevenlabs.io/v1/text-to-speech/{voice_id}",
              "headers": {
                "Accept": "audio/mpeg",
                "Content-Type": "application/json",
                "xi-api-key": "elevenlabs_api_key"
              },
              "body": {
                "text": "{{$json[\"narration\"]}}",
                "model_id": "eleven_multilingual_v1"
              }
            }
          },
          "name": "Generate Voiceover",
          "type": "n8n-nodes-base.httpRequest",
          "typeVersion": 1,
          "position": [
            1100,
            400
          ]
        },
        {
          "parameters": {
            "options": {
              "apiKey": "pexels_api_key",
              "query": "{{$json[\"visual_cues\"]}}",
              "perPage": 1,
              "page": 1,
              "orientation": "landscape"
            }
          },
          "name": "Retrieve Visuals",
          "type": "n8n-nodes-base.pexels",
          "typeVersion": 1,
          "position": [
            1400,
            400
          ]
        },
        {
          "parameters": {
            "options": {
              "apiKey": "google_api_key",
              "part": "snippet",
              "mine": true,
              "maxResults": 1
            }
          },
          "name": "YouTube Upload",
          "type": "n8n-nodes-base.google",
          "typeVersion": 1,
          "position": [
            1700,
            400
          ]
        }
      ],
      "connections": {
        "Webhook Trigger": {
          "main": [
            [
              "Check Script"
            ]
          ]
        },
        "Check Script": {
          "main": [
            [
              "Refine Script"
            ]
          ]
        },
        "Refine Script": {
          "main": [
            [
              "Generate Voiceover"
            ]
          ]
        },
        "Generate Voiceover": {
          "main": [
            [
              "Retrieve Visuals"
            ]
          ]
        },
        "Retrieve Visuals": {
          "main": [
            [
              "YouTube Upload"
            ]
          ]
        }
      }
    }
    

    Notes:

    1. API Keys: Replace placeholders like openai_api_key, elevenlabs_api_key, and pexels_api_key with your actual API keys.
    2. Voice ID: Replace {voice_id} in the Generate Voiceover node with the actual voice ID you want to use from ElevenLabs.
    3. Google API: The YouTube Upload node is simplified. You need to configure it properly to upload videos to YouTube, including setting up OAuth2 credentials.
    4. Error Handling: This JSON doesn't include error handling or retries. You should add these based on your specific needs.
    5. Expanding the Workflow: You'll need to add more nodes for metadata generation, video assembly, and potentially other steps depending on the specific services you're using.

    This JSON provides a starting point. You'll need to expand and configure it further based on the exact requirements and services you're integrating.

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.