Taking dates and labels from API and putting them into calendar plugin

Hi, I am trying to take a series of labels and dates that I am recieving from the OpenAI API that I have installed, and separate them into individual events that I can put into the full calendar plugin. Is this possible, and how? Thanks.