Reading User Emails from Gmail or Outlook

Hello Everyone,

I am new to weweb and I had a question. I want to build an app that will have access to all user emails. Lets say my user is using my website, the user will be able to connect their email account( either gmail or outlook) and my app will have some type of trigger where if the user receives an email from lets say test@gmail.com a workflow will happen(maybe update a database field or something). Can anyone guide me on how I can accomplish that and if its possible or not?

Thank You!

Which backend are you using?

It is possible, but as Anthony pointed out, this leans more towards backend and less towards the front-end.

1 Like

I am currently using Supabase for my login and DB. I don’t have a custom backend that can do all of that. Do I have to create a custom backend (code it and host it somewhere) to accomplish this? Or is there a way to have it all done using weweb?

I’d recommend integrating Supabase with Nylas.

You would handle the authentication in the frontend (WeWeb) and then your workflows in Supabase/Xano.

That is expensive as hell

Yeah depending on the number of users, it runs $3 /mo / connected account. Could be a good way to get an MVP quickly up and running though.

I see that makes sense. Any other way that might be cheaper other than coding it myself?

1 Like

I decided to go with Nylas but have a question. I want the following:
User clicks “Authenticate with Google”, then they will get the Nylas Auth process to create a grant.

I am following this:

I enter my cleint_id, redirect_uri(this is where I want Nylas to redirect my user after successful login) and I leave the rest the same but once the user clicks on the button nothing happens (No popup for them to login with google).

Am Not understanding how Nylas works? I thought it would handle the whole authentication process by providing the user with the whole login page and all that. Or am I supposed to create it?

I went to the URL manually:
https://api.us.nylas.com/v3/connect/auth?client_id=&redirect_uri=应用宝官网-全网最新最热手机应用游戏下载
And I can reach it, it just wont open in my workflow. Am I supposed to have a RESTAPI, and then if succeeded open a new page with that URL?

I believe @Profound5753 has prior experience integrating Nylas with Xano+WeWeb and would be best suited to provide more detailed guidance.

After implementing this twice, Anthony, I would not go down this route because you don’t have control over the event lifecycle nor management. In fact, I was so disappointed with the speed (even in a Vue component) that I just built my own. It’s part of my coded vue pack - scheduler and scheduler editor are only two of the 25+ components to make one’s life easier. It started with making my life easier, but now, I’m ready to release it to developers who are ready to advance their development.

Check out my earlier post:

1 Like

Hello @Profound5753 , I filled out that form and am now waiting for a response. Would you be abe to explain what is in that 25+ coded components

I just DM’d you. :slight_smile: You get the sneak peek!