To create an invitation-only event on the Ayojak platform, an organizer would enable the invitation-only feature in the event settings, configure invitation codes and invites in the attendee section, and send invitations with a subject, message, and unique codes. Invited users would then need to enter their email and code on the event page to access it and purchase tickets. The organizer can view pending and sent invitation lists to monitor RSVPs.