I have successfully created (with Troy’s help) an email parsing Zap that uses ChatGTP and Javascript.
That works well for extracing line by line.
I’m using something like this
Parse the contact details from the lead.
Return as fully structured JSON object like this:
{ "NameFirst": "",
"NameLast": "",
"Email": "",
"PhoneNumber": "",
"Company": "",
"Website": "",
"Comments": "" }
Content: {{CONTENT}}
I can grab those items out of an email but they are typically one liners.
If “Comments” included several paragraphcs of information that I wanted to grab, how do I tell ChatGPT exactly how much text to grab as part of that field? It could vary also. Some emails that could be two paragraphs, sometimes it may be three or more.
How do I grab a whole section vs. one line? Hmm…