{
  "name": "COS \u00c2\u00b7 Mattermost Example \u00e2\u20ac\u201d AI posts to channel",
  "nodes": [
    {
      "parameters": {},
      "id": "d1e2f3a4-0001-0001-0001-000000000001",
      "name": "Run manually",
      "type": "n8n-nodes-base.manualTrigger",
      "typeVersion": 1,
      "position": [
        200,
        300
      ]
    },
    {
      "parameters": {
        "promptType": "define",
        "text": "Write a short, friendly 1-sentence AI tip of the day for students learning about AI automation. Keep it practical and under 20 words.",
        "options": {}
      },
      "id": "d1e2f3a4-0001-0001-0001-000000000002",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 3.1,
      "position": [
        440,
        300
      ]
    },
    {
      "parameters": {
        "model": "llama-3.3-70b-versatile",
        "options": {}
      },
      "id": "d1e2f3a4-0001-0001-0001-000000000003",
      "name": "Groq",
      "type": "@n8n/n8n-nodes-langchain.lmChatGroq",
      "typeVersion": 1,
      "position": [
        440,
        480
      ],
      "credentials": {
        "groqApi": {
          "id": "groq-shared-cred",
          "name": "Groq (shared, students)"
        }
      }
    },
    {
      "parameters": {
        "method": "POST",
        "url": "https://mattermost.32dots.de/hooks/yar59motxtgj7rf7shwio1dyoa",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "text",
              "value": "=\u00f0\u0178\u2019\u00a1 **AI Tip of the Day**\n\n{{ $json.output }}\n\n_Posted by n8n workflow_"
            },
            {
              "name": "username",
              "value": "n8n Bot"
            }
          ]
        },
        "options": {}
      },
      "id": "d1e2f3a4-0001-0001-0001-000000000004",
      "name": "Post to Mattermost #AI-test",
      "type": "n8n-nodes-base.httpRequest",
      "typeVersion": 4.2,
      "position": [
        680,
        300
      ]
    }
  ],
  "connections": {
    "Run manually": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "AI Agent": {
      "main": [
        [
          {
            "node": "Post to Mattermost #AI-test",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Groq": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    }
  },
  "settings": {
    "executionOrder": "v1"
  },
  "meta": {
    "templateCredsSetupCompleted": true
  }
}