Our Segment integration lets you:
- Create and update contacts
- Send events to trigger cocoonmail
Configuring the destination
After opening the link above, click Configure Cocoonmail (Actions).

Mappings
Segment action destinations require that you map specific fields from your source to your destination (in this case Cocoonmail). You can set this up by clicking into the Mappings tab and adding a new mapping. Currently we support updating contacts in Cocoonmail and sending events into Cocoonmail.Create or update contact
First, select which events to map. Typically for contact creation and updates, the most useful event to map will beidentify
:

identify
event:

favoriteColor
and favoriteNumber
. However, these fields can be passed in as a dictionary to “Custom Contact Attributes”.
Ensure that the keys and values you provide match the schema you’ve created in your Contact Properties



Note, sending another test event with the same User ID or Email will update the existing contact instead of creating a new contact.
Send Event
First, select which events to map. Typically for sending an event, the most useful event to map will betrack
. It’s suggested you filter the events down to only ones that you plan on using within Cocoonmail:


