Could you perhaps help me understand better how to execute cloud function for contract events, specifically to read from that event and then send an email to registered users based off of that event.
Say I have two users (Bob and Alice). Both of them are in the user table with their emails. Bob buys and item from Alice and event is triggered indicating both of their addresses. I would like to send an email to Alice that her item was purchased. How do I do that?
I understand that step 1 is to get a plugin to sync and watch specific event (web3 -> plugins) - there is a great video explaining that so that’s not a problem.
Step 2 is to add afterSave trigger in cloud function, which is where I’m stuck.
I’m sure that what’s in the docs is really good for those with more experience however I am stuck in how to do this. Is there a good video explaining that or if not, could someone please help me get unstuck?
Thank you in advance!