Skip to content

Instantly share code, notes, and snippets.

<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %},
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
<p><em>Leads! Leads! Leads!</em></p>
<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %},
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
<p>Perhaps you've seen this before...</p>
{
"clearbit": [
{ "service": "customer_io", "hull": "Customer.io" },
{ "service": "facebook_custom_audience", "hull": "Facebook Custom Audiences" },
{ "service": "hubspot", "hull": "HubSpot" },
{ "service": "intercom", "hull": "Intercom" },
{ "service": "mailchimp", "hull": "Mailchimp" },
{ "service": "salesforce", "hull": "Salesforce" },
{ "service": "segment", "hull": "Segment" },
{ "service": "sendgrid", "hull": "SendGrid" },
<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %},
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
<p>This week we've two announcements for you -</p>
<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %},
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
{% if customer.account_salesforce-type == "Customer" or customer.account_salesforce-type == "Trial" %}
<p>Today, we're announcing new Hull Free Trials for new teams joining Hull. Teams will be able to sign up and install up to 5 connectors to test drive Hull for their workflows.</p>
<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %},
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
{% if customer.account_clearbit-tags contains "SAAS" %}<p>Quick question to start - any chance you’ll be at SaaStr next month? Would be great to meet you there - reply and let me know!</p>{% endif %}
// Write Datanyze Alerts into Account Attributes
// and as a (fake) User Event => can only trigger enrichment & prospecting with User Segments
// If it looks like it has a .com and a subdomain
// Or allow anything with a two-part domain (e.g. outshine.ca)
if ((_.endsWith(body.data.domain, ".com")) && (_.size(_.split(body.data.domain, ".", 3)) > 2)) {
// Strip off the sub-domain
var domain_cleansed =
_.trimStart(
_.trim(
<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %},
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
<p>{% if customer.clearbit-location == "FR" %}
Joyeux Noël
<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %}!
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
<p>Two weeks ago, we announced <a href="https://www.hull.io/playbooks/?utm_source=newsletter&amp;utm_medium=email&amp;utm_campaign=spotted&amp;">Hull Playbooks</a> - the most common use cases we’ve spotted teams using on Hull.</p>
<p>{% if customer.clearbit-location == "FR" %}
Bonjour
{% if customer.first_name != blank %} {{ customer.first_name | capitalize }}{% else %}{% endif %}!
{% else %}
Hi
{% if customer.first_name != blank %}{{ customer.first_name | capitalize }}{% else %}there{% endif %},{% endif %}
</p>
{% if customer.hubspot-lead_interest == "Webinar registered" %}<p>Thanks for registering for our webinar last week - if you've any other questions on Hull, MadKudu or engineering demand, just hit reply.</p>{% endif %}