Skip to content

Instantly share code, notes, and snippets.

@mhasan3
Forked from LiviaSarban/Help_Scout_example.json
Created September 20, 2018 19:22
Show Gist options
  • Save mhasan3/61da699804a258bec76b802b7f4c2175 to your computer and use it in GitHub Desktop.
Save mhasan3/61da699804a258bec76b802b7f4c2175 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