They mostly work by making your brain think you’re full and satiated with many fewer calories than is normal for you.
For example, sometimes I feel hungry but just not in the “mood” to eat. This is in contrast to my pre-glp times, when I might not be hungry but still in the mood for something.