def METHOD_NAME(schedule_item, request):
    invitation_admin_url = request.build_absolute_uri(
        schedule_item.get_invitation_admin_url()
    )
    schedule_item_admin_url = request.build_absolute_uri(schedule_item.get_admin_url())
    submission = schedule_item.submission
    publish_message(
        "NewScheduleInvitationAnswer",
        body={
            "speaker_id": submission.speaker_id,
            "schedule_item_id": schedule_item.id,
            "invitation_admin_url": invitation_admin_url,
            "schedule_item_admin_url": schedule_item_admin_url,
        },
        deduplication_id=str(uuid4()),
    )