What is the Best Way to Setup a Trigger/Webhook that Parses Email Contents Upon Receipt?

This topic was automatically generated from Slack. You can find the original thread here.

hey all, I’m looking for what I think should be a relatively simple solution - I’ve set up a dedicated email address to receive emails. I need some sort of trigger/webhook that will fire when the email is received, and then parse the content of the email.

Any idea what the best way to go about that would be?

Hey! Have you tried the New Email trigger? It’ll run whenever an email comes through the generated address

You can set up a forwarding rule to this email

From the one you’ve set up

Thanks . I think I can work with that and just set up a second workflow to parse the email and then pass it back to the other workflow.

Thanks again. That worked!

One last question - any idea how I can send the output BACK to my other workflow?

Awesome!

Well, it depends

How’s the second workflow being called?

It’s literally just this at this point.

So I just want to output that ChatGPT step to some sort of temp file or URL that I can grab via webhook in the other workflow.

Does that make sense?

Can you use a data store for that?

Yep it makes sense!

Sounds logical but I’m not entirely sure how to go about that. haha

Oh gotcha, let me fetch the docs on Data Stores

Thanks so much!
I’m very self-taught at all of this, so I appreciate the guidance :slightly_smiling_face:

The magic behind data stores is that any workflow can access it, so you can essentially share data between workflows

Np! That’s amazing

That did it! Thanks again man.
That process just made it the most complicated automation I’ve ever ever built, so I really appreciate it.

Awesome, glad to hear! Hope you are able to save more time by automating much more!