Best way to get email text without the replies

I’ve been playing around with processing emails but the main issue is trying to remove all the replies in the thread to get just the body of the latest email.

This is a solved issue but can’t seem to find the preferred/ideal way to handle it.

I’ve seen talon from mailgun but is no longer maintained. I’ve had some success with gpt-4-1106-preview but haven’t perfected the system prompt just yet.

Anyone have any suggestions to what way they like to handle it or a good prompt?