1

Zapier question - Connecting Send Grid and Firebase together for triggering a welcome email.

I've managed to get sendgrid and firebase working together in zapier.

Problem I have is I need to get the email to trigger when a new user object is added to the Firebase users table.

Here is a screen shot of my current triggers:

enter image description here

4

2 回答 2

3

You won't have direct access to the Firebase users table (node) so that won't serve as a trigger.

However, traditionally, Firebase apps have a /users/ node where other data about a user would be stored; first and last name, address, love of pizza etc. And that node would have a key that matches their uid.

That's the node you want to use to trigger Zapier; when you create a new firebase user, you also add their data to your /users/ node to then trigger the email.

One thing to note is that Zapier will/can automatically remove a trigger node in Firebase so you may just want to dump the email in a /need_to_send_email/ node with the email address and let Zapier trigger and then remove that data as it would no longer be needed.

typical Zapier structure within firebase

app_name
  zapier_queue
    out
     email: "somedude@cooldudes.com"
于 2016-01-06T17:24:14.480 回答
0

This should be much easier now that Google Cloud Function for Firebase have been announced, example code here.

于 2017-03-09T19:43:47.517 回答