def METHOD_NAME(schedule_item, is_reminder: bool = False):
    submission = schedule_item.submission
    language_code = schedule_item.language.code
    invitation_url = urljoin(
        settings.FRONTEND_URL, f"/schedule/invitation/{submission.hashid}"
    )
    event_name = (
        "ScheduleInvitationReminderSent" if is_reminder else "ScheduleInvitationSent"
    )
    publish_message(
        event_name,
        body={
            "speaker_id": submission.speaker_id,
            "submission_title": submission.title.localize(language_code),
            "invitation_url": invitation_url,
            "is_reminder": is_reminder,
        },
        deduplication_id=str(schedule_item.id),
    )