I receive an application to become a member of a jazz club via Gmail. I want to retrieve the candidate’s details and transfer them to a Google Sheet.
What is the problem?
I have a lot of unwanted characters in what I’m retrieving. Despite using different filters (trim, replace, etc.), it’s impossible to get clean text that I can then split into an array.
What have you tried so far?
For example, I replace line breaks with a single space between quotation marks, but I still find lots of quotation marks in the output. And I want to split this variable into an array, but it doesn’t do that and writes everything into the first cell of the Google Sheet.
Have you tried Make AI Toolkit? Maybe you can feed it the text from the email and ask it to format that text for you. It can then output json to insert into Google Sheets.
If that’s possible, change your process and collect details using a form service like Tally.so . You can connect it to Make and create a whole workflow around that. It will simplify your life as you will receive structured input.
If your users submit their applications using plain text, @damato’s solution with using AI sounds reasonable as it will be able to “understand” the application and process it. So +1.
Another solution is to use Regular expression (Regex), but that will only work if your email is somehow structured, for example (GPT generated):
To help us better understand and troubleshoot the issue, could you please share an example of the data you are receiving via Gmail - similar to the ones you are processing?
This will allow us to test it and suggest a solution to clean and transfer the details properly into Google Sheets.
Best regards, Msquare Automation Platinum Partner of Make @Msquare_Automation