{
  "name": "AI-Curious Starter - Blueprint 3 (Weekly business review)",
  "flow": [
    {
      "id": 1,
      "module": "notion:searchObjects1",
      "version": 1,
      "parameters": {
        "__IMTCONN__": ""
      },
      "mapper": {
        "select": "data_source_item",
        "data_source": "REPLACE_WITH_YOUR_BUSINESS_TABLE_DATA_SOURCE_ID",
        "limit": 25,
        "sorts": [
          {
            "select": "timestamp",
            "direction": "descending",
            "timestamp": "last_edited_time"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0
        },
        "restore": {
          "expect": {
            "select": {
              "mode": "chose",
              "label": "Data Source Items"
            },
            "sorts": {
              "mode": "chose",
              "items": [
                {
                  "select": {
                    "mode": "chose",
                    "label": "Timestamp"
                  },
                  "timestamp": {
                    "mode": "chose",
                    "label": "Last edited time"
                  },
                  "direction": {
                    "mode": "chose",
                    "label": "Descending"
                  }
                }
              ]
            }
          },
          "parameters": {
            "__IMTCONN__": {
              "data": {
                "scoped": "true",
                "connection": "notion2"
              },
              "label": "Your Notion connection (connect on import)"
            }
          }
        }
      }
    },
    {
      "id": 2,
      "module": "util:TextAggregator",
      "version": 1,
      "parameters": {
        "rowSeparator": "\n",
        "feeder": 1
      },
      "mapper": {
        "value": "- {{1.name}} ({{1.Type}}) - {{1.Status}}"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0
        },
        "restore": {
          "extra": {
            "feeder": {
              "label": "Notion - Search Objects [1]"
            }
          },
          "parameters": {
            "rowSeparator": {
              "label": "New row"
            }
          }
        }
      }
    },
    {
      "id": 3,
      "module": "google-email:ActionSendEmail",
      "version": 2,
      "parameters": {
        "account": ""
      },
      "mapper": {
        "to": [
          "REPLACE_WITH_YOUR_EMAIL"
        ],
        "subject": "Your weekly business review",
        "html": "Here is what is on your plate this week:<br><br>{{2.text}}<br><br>Sent automatically by your AI-Curious Starter (Blueprint 3). Edit the aggregator step to include the columns you care about."
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0
        },
        "restore": {
          "parameters": {
            "account": {
              "data": {
                "scoped": "true",
                "connection": "google-restricted"
              },
              "label": "Your Gmail connection (connect on import)"
            }
          }
        }
      }
    }
  ],
  "metadata": {
    "version": 1,
    "instant": false,
    "scenario": {
      "roundtrips": 1,
      "maxErrors": 3,
      "autoCommit": true,
      "autoCommitTriggerLast": true,
      "sequential": false,
      "slots": null,
      "confidential": false,
      "dataloss": false,
      "dlq": false,
      "freshVariables": false
    },
    "designer": {
      "orphans": []
    }
  }
}
