{
  "id": "jpAgentMcpServer",
  "name": "JobsPipe: AI agent with the JobsPipe MCP server",
  "nodes": [
    {
      "parameters": {
        "content": "## JobsPipe MCP agent\n\n1. Create a **Header Auth** credential named `JobsPipe API`: name `Authorization`, value `Bearer jp_live_...` (the same one the HTTP templates use).\n2. Add your OpenAI key to **OpenAI Chat Model**. To use Claude instead, delete that node and attach an **Anthropic Chat Model** to the agent's Chat Model input.\n3. Click **Open chat** and ask, for example: \"Who is hiring senior data engineers in Berlin this week?\"\n\nThe agent sees every JobsPipe MCP tool: search, fetch, search_jobs, create_signal and more. Searches cost 1 credit per job returned.",
        "height": 380,
        "width": 600
      },
      "id": "3ed5f725-0865-52b0-9258-418996e1bb8e",
      "name": "About this template",
      "type": "n8n-nodes-base.stickyNote",
      "typeVersion": 1,
      "position": [
        -260,
        -460
      ]
    },
    {
      "parameters": {
        "options": {}
      },
      "id": "4cb9c38d-246c-57ae-b026-5dba4b71c25d",
      "name": "When chat message received",
      "type": "@n8n/n8n-nodes-langchain.chatTrigger",
      "typeVersion": 1.3,
      "position": [
        0,
        0
      ],
      "webhookId": "31417f1f-2b12-536a-9add-2d1163e5f38c"
    },
    {
      "parameters": {
        "options": {
          "systemMessage": "You help the user research the job market with JobsPipe tools.\n- Use `search` for plain-language requests and `search_jobs` when the user names exact filters (country codes, salary floors, seniority, remote).\n- Every job a search returns costs the user one credit (once per calendar month), so keep limits small (10 or fewer) unless the user asks for more.\n- To watch for new postings over time, offer `create_signal` instead of repeating a search; signals use no credits.\n- Always cite the posting URL for every job you mention.",
          "maxIterations": 8
        }
      },
      "id": "17c5b39f-a615-5eac-a25c-e4b9df455080",
      "name": "JobsPipe agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 2.2,
      "position": [
        260,
        0
      ]
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "mode": "list",
          "value": "gpt-5-mini"
        },
        "options": {}
      },
      "id": "460d463e-95e2-5137-85cc-a189d175dc8c",
      "name": "OpenAI Chat Model",
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.2,
      "position": [
        120,
        240
      ],
      "credentials": {
        "openAiApi": {
          "name": "OpenAI account"
        }
      }
    },
    {
      "parameters": {
        "contextWindowLength": 10
      },
      "id": "ac36e0f9-9da2-50f5-8c36-0c79e7dd761a",
      "name": "Chat memory",
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        300,
        240
      ]
    },
    {
      "parameters": {
        "endpointUrl": "https://mcp.jobspipe.dev/mcp",
        "serverTransport": "httpStreamable",
        "authentication": "headerAuth",
        "include": "all",
        "options": {}
      },
      "id": "c3aeb940-04e6-58a6-b54a-50d27ec684f6",
      "name": "JobsPipe MCP",
      "type": "@n8n/n8n-nodes-langchain.mcpClientTool",
      "typeVersion": 1.2,
      "position": [
        480,
        240
      ],
      "credentials": {
        "httpHeaderAuth": {
          "name": "JobsPipe API"
        }
      }
    }
  ],
  "connections": {
    "When chat message received": {
      "main": [
        [
          {
            "node": "JobsPipe agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "JobsPipe agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Chat memory": {
      "ai_memory": [
        [
          {
            "node": "JobsPipe agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "JobsPipe MCP": {
      "ai_tool": [
        [
          {
            "node": "JobsPipe agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1"
  },
  "pinData": {},
  "tags": []
}
