{
  "name": "AgentSteps · Voice Note to Video Script",
  "flow": [
    {
      "id": 1,
      "module": "google-drive:watchFilesInAFolder",
      "version": 4,
      "parameters": {
        "select": "list",
        "folder": "",
        "limit": 1
      },
      "mapper": {},
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Watch 'Voice Notes' folder"
        }
      }
    },
    {
      "id": 2,
      "module": "google-drive:getAFile",
      "version": 4,
      "parameters": {},
      "mapper": {
        "select": "map",
        "file": "{{1.id}}"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "Download the file"
        }
      }
    },
    {
      "id": 3,
      "module": "openai-gpt-3:CreateTranscription",
      "version": 1,
      "parameters": {},
      "mapper": {
        "model": "whisper-1",
        "fileName": "{{2.fileName}}",
        "fileData": "{{2.data}}"
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0,
          "name": "Transcribe"
        }
      }
    },
    {
      "id": 4,
      "module": "openai-gpt-3:CreateCompletion",
      "version": 1,
      "parameters": {},
      "mapper": {
        "select": "chat",
        "model": "gpt-4o-mini",
        "max_tokens": "800",
        "temperature": "0.7",
        "n_completions": "1",
        "messages": [
          {
            "role": "user",
            "content": "Turn this transcript into a LinkedIn post. Keep my words and tone. Short lines. End with one question. Under 200 words.\n\n{{3.text}}"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0,
          "name": "AI writes the post"
        }
      }
    },
    {
      "id": 5,
      "module": "google-docs:createADocument",
      "version": 1,
      "parameters": {},
      "mapper": {
        "name": "Draft for review",
        "content": "{{4.result}}",
        "folder": ""
      },
      "metadata": {
        "designer": {
          "x": 1200,
          "y": 0,
          "name": "Save as Google Doc"
        }
      }
    },
    {
      "id": 6,
      "module": "openai-gpt-3:CreateCompletion",
      "version": 1,
      "parameters": {},
      "mapper": {
        "select": "chat",
        "model": "gpt-4o-mini",
        "max_tokens": "800",
        "temperature": "0.7",
        "n_completions": "1",
        "messages": [
          {
            "role": "user",
            "content": "Rewrite this post as a 60-second video script. 150 words at most. Open with a hook. Plain spoken English.\n\n{{4.result}}"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 1500,
          "y": 0,
          "name": "AI writes the script"
        }
      }
    },
    {
      "id": 7,
      "module": "google-docs:createADocument",
      "version": 1,
      "parameters": {},
      "mapper": {
        "name": "Video script",
        "content": "{{6.result}}",
        "folder": ""
      },
      "metadata": {
        "designer": {
          "x": 1800,
          "y": 0,
          "name": "Save as Google Doc"
        }
      }
    }
  ],
  "metadata": {
    "instant": false,
    "version": 1,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    }
  }
}
