{
  "name": "Hello Agent (free sample from Agent Starter Kit for n8n)",
  "nodes": [
    {
      "parameters": {
        "content": "## Hello Agent (free sample)\n1. Open **Say Hello (OpenAI)** and connect your own OpenAI API key.\n2. Fill in **Config**.\n3. Click **Execute workflow**. The answer appears in **Show Answer**.\n\nNothing is sent anywhere. Costs a fraction of a cent per run on gpt-4o-mini.\n\nThe 5 full agents: https://whop.com/jreamers-com/agent-starter-kit/",
        "height": 300,
        "width": 420
      },
      "id": "7ce98407-5d4f-41ab-8dc0-bb42b08900ee",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        0,
        -340
      ]
    },
    {
      "parameters": {},
      "id": "3ad6673a-8b4e-4fb7-8d7f-a8cfea0eb23d",
      "name": "Run Me",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        0,
        0
      ]
    },
    {
      "parameters": {
        "mode": "manual",
        "includeOtherFields": false,
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "335e0372-df04-462e-aa97-2b90a72ea879",
              "name": "cfg_your_name",
              "value": "REPLACE: your first name",
              "type": "string"
            },
            {
              "id": "9167fe5f-6edb-4362-a614-529d0090b7d9",
              "name": "cfg_business",
              "value": "REPLACE: one sentence about what your business does",
              "type": "string"
            },
            {
              "id": "90cac82d-ca1e-4cd7-8241-ce2223ba1bb1",
              "name": "cfg_openai_model",
              "value": "gpt-4o-mini",
              "type": "string"
            }
          ]
        }
      },
      "id": "55053b89-de77-4bb8-8b51-6a39ba6dd587",
      "name": "Config",
      "type": "n8n-nodes-base.set",
      "typeVersion": 3.4,
      "position": [
        220,
        0
      ]
    },
    {
      "parameters": {
        "resource": "text",
        "operation": "response",
        "modelId": {
          "__rl": true,
          "mode": "id",
          "value": "={{ $('Config').first().json.cfg_openai_model }}"
        },
        "responses": {
          "values": [
            {
              "type": "text",
              "role": "system",
              "content": "You are a friendly assistant. Reply in 3 short lines: greet the user by name, suggest one task an n8n AI agent could take off their plate, and say that a human should review anything before it is sent."
            },
            {
              "type": "text",
              "role": "user",
              "content": "=My name is {{ $json.cfg_your_name }}. My business: {{ $json.cfg_business }}"
            }
          ]
        },
        "simplify": true,
        "options": {}
      },
      "id": "30d8da3e-d0be-4614-9828-48407b489b0c",
      "name": "Say Hello (OpenAI)",
      "type": "@n8n/n8n-nodes-langchain.openAi",
      "typeVersion": 2.1,
      "position": [
        440,
        0
      ],
      "credentials": {
        "openAiApi": {
          "id": "REPLACE",
          "name": "OpenAI account"
        }
      }
    },
    {
      "parameters": {
        "jsCode": "// Pulls the plain text out of the OpenAI reply, whatever shape it comes in.\nconst j = $input.first().json;\nlet text = j.output_text || j.text || j.content || '';\nif (!text && Array.isArray(j.output)) {\n  text = j.output.flatMap(o => (o.content || []).map(c => c.text || '')).join('\\n');\n}\nif (!text) text = JSON.stringify(j);\nreturn [{ json: { hello_agent_says: String(text).trim() } }];"
      },
      "id": "7cc4521c-e46f-464e-a0b1-6d50ceffde94",
      "name": "Show Answer",
      "type": "n8n-nodes-base.code",
      "typeVersion": 2,
      "position": [
        660,
        0
      ]
    }
  ],
  "connections": {
    "Run Me": {
      "main": [
        [
          {
            "node": "Config",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Config": {
      "main": [
        [
          {
            "node": "Say Hello (OpenAI)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Say Hello (OpenAI)": {
      "main": [
        [
          {
            "node": "Show Answer",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "active": false
}