{
  "schema_version": 1,
  "name": "Post from a CSV list",
  "version": 1,
  "description": "Run one flow per row of a CSV (for_each_row): open the composer, type the post text from the row, submit. Point data.path at your own CSV with a 'text' column. Pacing keeps it human-paced; a checkpoint stops the whole run.",
  "vars": {
    "compose_url": "https://example.com/compose",
    "compose_field": "What's on your mind",
    "post_button": "Post"
  },
  "data": { "source": "csv", "path": "posts.csv", "columns": ["text"] },
  "on_error": "screenshot_and_stop",
  "steps": [
    { "open": {} },
    { "repeat": { "for_each_row": true },
      "do": [
        { "goto": { "url": "{{compose_url}}" } },
        { "wait_for": { "text": "{{post_button}}", "timeout": 15 } },
        { "type": { "into": "{{compose_field}}", "text": "{{text}}" } },
        { "click": { "text": "{{post_button}}" } },
        { "wait": { "seconds": 5 } }
      ] },
    { "close": {} }
  ]
}
