A quick update, I changed the function to be an add_action and I am able to write out the message as a string. What I can’t do is execute / evaluate the message property in the AJAX callback in on_sent_ok. I know this is more of a CF7 question, but perhaps someone knows of a better way to override the on_sent_ok?