{
  "name": "Clasificar emails de soporte con IA",
  "description": "Detecta urgencia, tema e idioma y crea el ticket con la prioridad correcta.",
  "tags": [
    "Atención al cliente"
  ],
  "pieces": [
    "@flooows/component-gmail",
    "@flooows/component-claude",
    "@flooows/component-attendo"
  ],
  "template": {
    "displayName": "Clasificar emails de soporte con IA",
    "trigger": {
      "name": "trigger",
      "type": "PIECE_TRIGGER",
      "valid": false,
      "displayName": "Nuevo email en el buzón de soporte",
      "settings": {
        "pieceName": "@flooows/component-gmail",
        "pieceVersion": "~0.18.6",
        "pieceType": "OFFICIAL",
        "packageType": "REGISTRY",
        "triggerName": "gmail_new_email_received",
        "input": {
          "to": "soporte@tuempresa.com"
        },
        "inputUiInfo": {},
        "propertySettings": {}
      },
      "nextAction": {
        "name": "step_1",
        "type": "PIECE",
        "valid": false,
        "skip": false,
        "displayName": "Detectar urgencia, tema e idioma",
        "settings": {
          "pieceName": "@flooows/component-claude",
          "pieceVersion": "~0.9.0",
          "pieceType": "OFFICIAL",
          "packageType": "REGISTRY",
          "actionName": "extract-structured-data",
          "input": {
            "model": "claude-haiku-5-5",
            "text": "{{trigger.subject}}\n\n{{trigger.body_plain}}",
            "mode": "simple",
            "schema": {
              "fields": [
                {
                  "name": "urgencia",
                  "type": "string",
                  "description": "alta, media o baja"
                },
                {
                  "name": "tema",
                  "type": "string"
                },
                {
                  "name": "idioma",
                  "type": "string"
                }
              ]
            }
          },
          "inputUiInfo": {},
          "propertySettings": {},
          "errorHandlingOptions": {
            "retryOnFailure": {
              "value": true
            },
            "continueOnFailure": {
              "value": false
            }
          }
        },
        "nextAction": {
          "name": "step_2",
          "type": "PIECE",
          "valid": false,
          "skip": false,
          "displayName": "Crear el ticket con la prioridad correcta",
          "settings": {
            "pieceName": "@flooows/component-attendo",
            "pieceVersion": "~1.0.0",
            "pieceType": "OFFICIAL",
            "packageType": "REGISTRY",
            "actionName": "create_ticket",
            "input": {
              "subject": "{{trigger.subject}}",
              "priority": "{{step_1.urgencia}}",
              "category": "{{step_1.tema}}",
              "customerEmail": "{{trigger.from}}"
            },
            "inputUiInfo": {},
            "propertySettings": {},
            "errorHandlingOptions": {
              "retryOnFailure": {
                "value": true
              },
              "continueOnFailure": {
                "value": false
              }
            }
          }
        }
      }
    },
    "valid": false,
    "schemaVersion": "1"
  },
  "blogUrl": "https://flooows.com/plantillas/clasificar-emails-soporte-ia",
  "metadata": {
    "publisher": "flooows",
    "lang": "es",
    "setupMinutes": 6,
    "creditsPerRun": 3
  }
}