Senses unfolded proteins in the lumen of the endoplasmic reticulum via its N-terminal domain which leads to enzyme auto-activation. The active endoribonuclease domain splices XBP1 mRNA to generate a new C-terminus, converting it into a potent unfolded-protein response transcriptional activator and triggering growth arrest and apoptosis.