{
  "schema_version": "1.0",
  "name": "Tutorial demo \u00b7 Apify website research (connect Apify first)",
  "nodes": [
    {
      "id": "start",
      "type": "nudge",
      "position": {
        "x": 0,
        "y": 180
      },
      "data": {
        "label": "Start a bounded website review",
        "kind": "trigger.manual",
        "eyebrow": "manual",
        "icon": "globe",
        "tone": "teal",
        "config": {}
      }
    },
    {
      "id": "crawl",
      "type": "nudge",
      "position": {
        "x": 300,
        "y": 180
      },
      "data": {
        "label": "Read one authorized page",
        "kind": "action.apify",
        "eyebrow": "apify",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "actor_id": "apify/website-content-crawler",
          "actor_input": {
            "startUrls": [
              {
                "url": "https://example.com"
              }
            ],
            "maxCrawlPages": 1,
            "maxCrawlDepth": 0,
            "respectRobotsTxtFile": true
          },
          "max_items": 1,
          "timeout_seconds": 120,
          "max_charge_usd": 0.25
        }
      }
    },
    {
      "id": "loop",
      "type": "nudge",
      "position": {
        "x": 600,
        "y": 180
      },
      "data": {
        "label": "One page at a time",
        "kind": "logic.loop",
        "eyebrow": "loop",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "items": "{{steps.crawl.items}}"
        }
      }
    },
    {
      "id": "map",
      "type": "nudge",
      "position": {
        "x": 900,
        "y": 180
      },
      "data": {
        "label": "Prepare a source record",
        "kind": "action.transform",
        "eyebrow": "transform",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "fields": [
            {
              "key": "title",
              "value": "{{input.metadata.title}}",
              "enabled": true
            },
            {
              "key": "url",
              "value": "{{input.url}}",
              "enabled": true
            },
            {
              "key": "source",
              "value": "Apify website content crawler",
              "enabled": true
            }
          ]
        }
      }
    },
    {
      "id": "save",
      "type": "nudge",
      "position": {
        "x": 1200,
        "y": 180
      },
      "data": {
        "label": "Write the source to Research",
        "kind": "action.sheets",
        "eyebrow": "sheets",
        "icon": "globe",
        "tone": "teal",
        "config": {
          "credential_id": "",
          "spreadsheet_id": "",
          "worksheet": "Research",
          "mode": "append",
          "values": [
            {
              "key": "title",
              "value": "{{input.title}}",
              "enabled": true
            },
            {
              "key": "url",
              "value": "{{input.url}}",
              "enabled": true
            },
            {
              "key": "source",
              "value": "{{input.source}}",
              "enabled": true
            }
          ]
        }
      }
    }
  ],
  "edges": [
    {
      "id": "p0",
      "source": "start",
      "target": "crawl"
    },
    {
      "id": "p1",
      "source": "crawl",
      "target": "loop"
    },
    {
      "id": "p2",
      "source": "loop",
      "target": "map"
    },
    {
      "id": "p3",
      "source": "map",
      "target": "save"
    }
  ],
  "settings": {}
}
