{
  "name": "My workflow 7",
  "nodes": [
    {
      "parameters": {
        "agent": "openAiFunctionsAgent",
        "promptType": "define",
        "text": "={{ $json[\"numero del 1 al 10\"] }}",
        "hasOutputParser": true,
        "options": {
          "systemMessage": "=Enumera {{ $json['numero del 1 al 10'] }} animales mamíferos que empiecen por una letra aleatoria entre la a y la z\n\nenvíalos a la tool llamada \"enviar_post\" como un único array\n"
        }
      },
      "id": "fdf6df9e-a797-4d09-86fb-5000e19956ea",
      "name": "AI Agent",
      "type": "@n8n/n8n-nodes-langchain.agent",
      "typeVersion": 1.6,
      "position": [
        192,
        -32
      ]
    },
    {
      "parameters": {
        "formTitle": "Aleatorias",
        "formDescription": "Palabras aleatorias",
        "formFields": {
          "values": [
            {
              "fieldLabel": "numero del 1 al 10",
              "fieldType": "dropdown",
              "fieldOptions": {
                "values": [
                  {
                    "option": "=1"
                  },
                  {
                    "option": "2"
                  },
                  {
                    "option": "3"
                  },
                  {
                    "option": "4"
                  },
                  {
                    "option": "5"
                  },
                  {
                    "option": "6"
                  },
                  {
                    "option": "7"
                  },
                  {
                    "option": "8"
                  },
                  {
                    "option": "9"
                  },
                  {
                    "option": "10"
                  }
                ]
              }
            }
          ]
        },
        "options": {
          "buttonLabel": "Obtener"
        }
      },
      "type": "n8n-nodes-base.formTrigger",
      "typeVersion": 2.5,
      "position": [
        -112,
        -32
      ],
      "id": "001e8f9d-1044-44d6-9435-c06171371c9f",
      "name": "On form submission",
      "webhookId": "ed6629d4-75fa-44ae-922d-c6661fc7efb9"
    },
    {
      "parameters": {
        "model": {
          "__rl": true,
          "value": "gpt-4.1-mini",
          "mode": "list",
          "cachedResultName": "gpt-4.1-mini"
        },
        "builtInTools": {},
        "options": {}
      },
      "type": "@n8n/n8n-nodes-langchain.lmChatOpenAi",
      "typeVersion": 1.3,
      "position": [
        64,
        176
      ],
      "id": "25725dfa-d230-4e9e-8399-89af4a49b3fd",
      "name": "OpenAI Chat Model",
      "credentials": {
        "openAiApi": {
          "id": "9OmVf46abtgrmBl1",
          "name": "OpenAi account PS"
        }
      }
    },
    {
      "parameters": {
        "sessionIdType": "customKey",
        "sessionKey": "={{ $('On form submission').item.json.submittedAt }}"
      },
      "type": "@n8n/n8n-nodes-langchain.memoryBufferWindow",
      "typeVersion": 1.3,
      "position": [
        208,
        176
      ],
      "id": "0c675165-315a-4b0b-8de0-c90cc64d59bb",
      "name": "Simple Memory"
    },
    {
      "parameters": {
        "method": "POST",
        "url": "=http://extremaduraformacion.com/receiver-test.php",
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "ID",
              "value": "1"
            }
          ]
        },
        "options": {}
      },
      "type": "n8n-nodes-base.httpRequestTool",
      "typeVersion": 4.4,
      "position": [
        352,
        176
      ],
      "id": "02571da1-0f47-473b-8793-76f518188375",
      "name": "enviar_post"
    }
  ],
  "pinData": {},
  "connections": {
    "On form submission": {
      "main": [
        [
          {
            "node": "AI Agent",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "OpenAI Chat Model": {
      "ai_languageModel": [
        [
          {
            "node": "AI Agent",
            "type": "ai_languageModel",
            "index": 0
          }
        ]
      ]
    },
    "Simple Memory": {
      "ai_memory": [
        [
          {
            "node": "AI Agent",
            "type": "ai_memory",
            "index": 0
          }
        ]
      ]
    },
    "enviar_post": {
      "ai_tool": [
        [
          {
            "node": "AI Agent",
            "type": "ai_tool",
            "index": 0
          }
        ]
      ]
    }
  },
  "active": false,
  "settings": {
    "executionOrder": "v1",
    "binaryMode": "separate",
    "availableInMCP": false
  },
  "versionId": "293b3f59-96e7-452a-a1ee-63a0a0ed1650",
  "meta": {
    "templateCredsSetupCompleted": true,
    "instanceId": "8d9aa0babeef51fc93934784c24b6393b6017718242b0d310cecdebef9dab916"
  },
  "id": "H4rPAG0TdLVFVmoZ",
  "tags": []
}