Skip to content

Instantly share code, notes, and snippets.

@LiviaSarban
Last active September 20, 2018 19:22
Show Gist options
  • Save LiviaSarban/2e0b200f85926dc13f8e6922046c52e9 to your computer and use it in GitHub Desktop.
Save LiviaSarban/2e0b200f85926dc13f8e6922046c52e9 to your computer and use it in GitHub Desktop.
{
"type": "email",
"customer": {
"email": "{{customer.email}}",
"firstName":"{{customer.firstName}}",
"lastName":"{{customer.lastName}}"
},
"subject": "Low NPS rating from customer {{customer.firstName}} {{customer.lastName}}",
"mailbox": {
"id": MAILBOX-ID
},
"tags": [
"Customer.io"
],
"status": "active",
"createdAt": "{% assign current_time = 'now' %}{{current_time | date: "%F"}}",
"threads": [
{
"type": "customer",
"createdBy": {
"email": "{{customer.email}}",
"type": "customer",
"firstName":"{{customer.firstName}}",
"lastName":"{{customer.lastName}}"
},
"body": "{{customer.comment}} \n \n Rating: {{customer.NPS_rating}}",
"status": "active",
"createdAt": "{% assign current_time = 'now' %}{{current_time | date: "%F"}}"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment