BE: Tracking responses
Opened this issue · 0 comments
skassam21 commented
-
for each email sent in a step, how will we track responses?
- Use the gmail API to track responses - you may need to store something specific about the prospect in that step (probably some thread id)
-
Two approaches we can do to solve this problem:
- using a cron job (every day), in that job, check if you received any responses from any of the threads that you are tracking (backup approach)
- using a webhook with the gmail API, where we subscribe to certain threads, and the gmail API will send us push notifications when a response is sent from that thread (https://developers.google.com/gmail/api/guides/threads, https://developers.google.com/gmail/api/guides/push)
-
We will be receiving webhooks, google will send the user_id (the recipient), history_id (a point in a time), will have to get the messages and find the threads to update