Magento GPT

Magento GPT · Acciones GPT

User Data Collection

  • POST /Salva nome, email, ruolo e preferenze marketing
Esquema original API
{
  "openapi": "3.1.0",
  "info": {
    "title": "User Data Collection",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://hook.eu2.make.com/tmy1w9dwllqdn5qeyeb9miqs2nynj1gq"
    }
  ],
  "paths": {
    "/": {
      "post": {
        "operationId": "saveUserMarketingPreferences",
        "summary": "Salva nome, email, ruolo e preferenze marketing",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "properties": {
                  "name": {
                    "type": "string",
                    "description": "Nome e Cognome dell'utente"
                  },
                  "email": {
                    "type": "string",
                    "description": "Email dell'utente"
                  },
                  "role": {
                    "type": "string",
                    "description": "Ruolo dell'utente (es. developer, merchant, ecc.)"
                  },
                  "marketing_preferences": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "enum": [
                        "Corsi & Webinar",
                        "Eventi Meet Magento",
                        "Tool & Risorse gratuite",
                        "Aggiornamenti Hyvä / Mage-OS"
                      ]
                    },
                    "description": "Preferenze su contenuti da ricevere"
                  },
                  "question": {
                    "type": "string",
                    "description": "Domanda originaria dell’utente a Magento GPT"
                  },
                  "timestamp": {
                    "type": "string",
                    "description": "Timestamp ISO della registrazione"
                  }
                },
                "required": [
                  "name",
                  "email",
                  "role"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          }
        }
      }
    }
  }
}