{
  "name": "AgentSteps · Weekly Research Brief",
  "flow": [
    {
      "id": 1,
      "module": "rss:ActionReadArticles",
      "version": 4,
      "parameters": {},
      "mapper": {
        "url": "https://news.google.com/rss/search?q=YOUR+TOPIC+OR+COMPETITOR&hl=en-US&gl=US&ceid=US:en",
        "maxResults": 15
      },
      "metadata": {
        "designer": {
          "x": 0,
          "y": 0,
          "name": "Read the news feed"
        }
      }
    },
    {
      "id": 2,
      "module": "util:TextAggregator",
      "version": 1,
      "parameters": {
        "feeder": 1,
        "rowSeparator": "\n"
      },
      "mapper": {
        "value": "{{1.title}} {{1.url}}"
      },
      "metadata": {
        "designer": {
          "x": 300,
          "y": 0,
          "name": "Collect into one list"
        }
      }
    },
    {
      "id": 3,
      "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": "Here are this week's news items for my business. Write a one-page brief: the 5 most important changes, why each matters to a small business, and the link. Use only these items. Say when something is unclear.\n\n{{2.text}}"
          }
        ]
      },
      "metadata": {
        "designer": {
          "x": 600,
          "y": 0,
          "name": "AI writes the brief"
        }
      }
    },
    {
      "id": 4,
      "module": "google-email:sendAnEmail",
      "version": 4,
      "parameters": {},
      "mapper": {
        "to": [
          "YOUR_OWN_EMAIL@example.com"
        ],
        "subject": "Weekly brief",
        "contentType": "text",
        "content": "{{3.result}}"
      },
      "metadata": {
        "designer": {
          "x": 900,
          "y": 0,
          "name": "Email to yourself"
        }
      }
    }
  ],
  "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": []
    }
  }
}
