Mailchimp synchronizer
Synchronizing contacts between Twenty and Mailchimp
Requirements
- twenty-cli
npm install -g twenty-cli - an
apiKey. Go tohttps://twenty.com/settings/api-webhooksto generate one - Mailchimp API key - Mailchimp > avatar in top right corner > Profile > Extras > API keys
Setup
- Add app to your workspace
twenty auth login
cd mailchimp-synchronizer
twenty app sync
- Go to Settings > Integrations > Mailchimp synchronizer > Settings and add required variables
Flow
- Check if required variables are set, if not, exit
- Validate data based on set constraints, if data doesn't match constraints, exit
- Check if person already exists in Mailchimp:
- if yes, check if UPDATE_PERSON is set to true
- if UPDATE_PERSON is true, check if Twenty record is the same as Mailchimp record
- if they're the same, exit
- if not, update
- if UPDATE_PERSON is false, exit
- if UPDATE_PERSON is true, check if Twenty record is the same as Mailchimp record
- if person doesn't exist in Mailchimp, send a request to Mailchimp with new contact
- if yes, check if UPDATE_PERSON is set to true
Note
- SMS support is experimental and may cause errors
- constraints are directly responsible for sent data so if e.g. you want to have a company name in Mailchimp, you have to set IS_COMPANY_CONSTRAINT to true