How to make clustering based on energy?

GROMACS version: 2023
GROMACS modification: No
Here post your question
Hello, I want to clustering my conformation model based on energy, it is possible? And how?
Thank