This is just a simple Ruby script that imports contacts from the "Nurture" stage of Pipedrive into the "Nurture" list in our dobtco_marketing
Sendgrid account.
- It grabs the emails current on the nurture list
- It grabs the emails of any participants of a deal that's in Pipedrive's "nurture" stage: see a screenshot
- Any emails that exist in the list, but not in the pipeline, are destroyed
- Any emails that exist in the pipeline, but not in the list, are added
This script is deployed to Heroku, and runs daily via Heroku Scheduler.
Currently, there is no CI configured -- if changes are made, it must be re-deployed manually.