According to Merriam- Webster, an ambivert is a person who has characteristics of both an introvert and an extrovert. You could be a introverted extrovert, who is outgoing in certain situations. Or you you could be an extroverted introvert where you need to recharge before social interactions.
Either way, for a long time I knew I did not fit in either category. Finding this term helped me explain a lot of how I feel and how I interact with others.
There are also tons of other characteristics that fall under the two categories. It is common for many people to feel one or the other, yet the area in between is somewhere you can't quite explain. It becomes exhausting trying to balance your time to fit your mental and physical health.
There is no clear answer on how to fully incorporate both aspects; it is a trial and error for each person. Some days you want to be alone, but don't want to miss out on plans you made with friends. Other days you need to spend time to yourself to have enough energy to interact with the people around you.
Go to that party if you feel like socializing, or stay home if you want to be alone. It is all about the stability that you create to fit your personal lifestyle.
I'm writing this to tell you that I, along with many other people, are the same way. The best advice I can give is to be yourself. You're only capable of giving so much physically and mentally. It is a day by day thing that only you can decide.
Being an ambivert, I find that I over think a lot more than I should and always try to make everything work. Advice that I would like myself to follow and anyone else that needs it is to stop over thinking. You have so many choices in life and you do not need to struggle over the little things. Do what you are comfortable with, and don't worry about the rest.