You can only create appointment slots while viewing your calendar in the Day or Week views. More detailed instructions can be found on Google's Documentation page. For example, professors can invite their students to reserve time during office hours each week.
You can create blocks of time on your calendar designed to let others reserve an appointment with you. These are called Appointment Slots in Google Calendar.