Project Overview:
Here’s what I’m trying to do, in a nutshell (I’ve spent HOURS trying to figure this out):
I want to send emails to a Gmail address, have OpenAI process the emails, parse out implicit and explicit tasks/calendar event information (Day, Time, Event Name), send that information to a Google Spreadsheet, and then turn each row into a Google Calendar event.
The OpenAI node sends the list of extracted implicit and explicit calendar event items to a Get List Item node.
And lastly, the Get List Item node sends each calendar event item to a Google Sheets Writer node. One or more calendar events could be extracted from the email body by the OpenAI node.
I haven’t even tried to extract information from the spreadsheet and create Google Calendar events with it. I need to tackle getting the correct information into the spreadsheet first.
Here’s what I currently have set up and what I’m seeing:
I created a video to show you what I have set up in case my explanation below, doesn’t make sense: https://www.youtube.com/watch?v=iCeZ9Qbewb0
I have the Gmail Reader set to be a trigger. The “email_bodies” output is connected to the “prompt” input at the top of the OpenAI Assistant node. That is currently a gray dashed line.
I have selected the correct OpenAI Assistant in the OpenAI node (Here’s what I currently have set up for the instructions and JSON schema: OpenAI Assistant Instructions - Google Docs). I have the OpenAI node output going from “response” output to “list” input for Get List Item node. There is a red message, “Types do not match! Single value does not equal list,” in the middle of the red dashed line. Loop Mode is turned on on the Get List Item node and turned off on the OpenAI node.
I have “item” output for Get List Item node connected four inputs on the Get Sheets Writer node. The four inputs are the column header names (Event Name, Date, Time, and Processed).
I’ve been using Grok to help me work through this. It’s done a pretty good job compared to every other AI I’ve tried (ChatGPT, Claude, Gemini). However, I don’t know how good it is because I’m still stuck.
I can’t figure out what I’m doing wrong. There are probably other nodes that I’m supposed to use, but I don’t know what those would be.