{
  "appId": "redi-preentrevista",
  "name": "R.E.D.I. Preentrevista",
  "shortName": "R.E.D.I.",
  "vendor": "Xaura Global",
  "version": "1.0.0",
  "domains": ["xauraspain.com", "xauraeuropa.com"],
  "category": "network-marketing",
  "description": "Cuestionario de clasificación estratégica para detectar perfiles con potencial para Network Marketing basado en el sistema R.E.D.I.",
  "entry": "/",
  "capabilities": [
    "form",
    "scoring",
    "classification",
    "crm_tags",
    "pdf_export",
    "csv_export",
    "whatsapp",
    "email",
    "session_state"
  ],
  "integration": {
    "modes": ["iframe_postmessage", "url_params"],
    "outboundEvents": ["ready", "handshake", "session", "result", "crm_synced", "error"],
    "inboundCommands": ["prefill", "reset", "goto", "get_state", "ping"],
    "messageSource": "xaura-redi",
    "messageApp": "redi-preentrevista"
  },
  "dataSchema": {
    "guest": {
      "name": "string",
      "phone": "string",
      "date": "string (ISO date)",
      "distributor": "string"
    },
    "scores": { "r": "number", "e": "number", "d": "number", "i": "number", "total": "number" },
    "classification": "PRIORIDAD ALTA | BUEN POTENCIAL | PERFIL MEDIO | PERFIL CLIENTE",
    "tags": ["REDI", "Preentrevista", "LEAD | CUSTOMER | DISTRIBUIDOR", "<nivel>", "<distribuidor>", "<fecha>"]
  },
  "crm": {
    "trackingId": "tk_2581815bc223428798d137502c742834",
    "locationId": "gUChWtXhh1AHxam9v23W"
  }
}
