I could not find the answer to my need, so any help is highly appreciated.
I’m trying to find a way to extract an email address sent from the user via chat conversation and then send this email address to a Google spreadsheet.
In other words, how can I separate only the email address from the whole conversation? Is there a node for this?
Here’s a workflow where you can use a second agent to output the email into the sheet. It could also be completed with a tool if you want to keep the flow a little cleaner.
I do this manually with another agent, or a tool. Can you explain how you would do it with OCR? Would be great if I didnt need to jump through hoops like I do now.
There are many ways to achieve this. One approach I use to save AI credits is to parse user messages and apply a regex pattern to extract email addresses, For example:
Excuse me, OCR was wrong since you’re not scanning documents.
You’d need to apply information extractor AI agent to get the email address from a text.
Regex might work but only in certain scenarios since the provided code only works for top level domains with a length of 2 characters (.gg, .at, .de) but would fail with longer TLDs (.com, .net, .shop) since it would only get the first 2 characters after the separator (.)
They are. You can easily test this and you should before putting someone’s solution at a doubt publicly. Ignorance or lack of knowledge is not a valid excuse.
I think you owe Mohamed an apology. This is a community despite we’re only present here virtually.
Thank you very much for all your efforts to help me. I think I got what I wanted with the suggestion of @diego.lagolago using the information extractor. It worked just fine!