You could use Bitcoin Script.
// Main script
OP_OVER OP_HASH160
OP_IF
OP_VERIFY
OP_ELSE
OP_RETURN
OP_ENDIF
//
OP_VERIFY
OP_BOOLAND
//
// Example condition: check if the event content contains a specific string
//
// Example: Unlock the UTXO by sending the funds to a specific address