Empathy First Media retweeted
(7/7) Insert Code Snippet & Execute
Step 8: Define Parameters for the Code to Execute
Language: Node.js 16 x
Secrets: HubSpot Access Key from Private App
Secret Constant defined as "secretName"
Property to include in code: Define the constant as “phone,” which is equal to the “phone number” property in the contact object
HubSpot Client: v3
Step 9: Copy & Paste This Code Snippet, Then Test the Workflow
Code Snippet:
const DEDUPE_PROPERTY = 'phone';
const hubspot = require('@hubspot/api-client');
exports.main = async (event, callback) => {
try {
const hubspotClient = new hubspot.Client({
accessToken: process.env.secretName
});
const contactResult = await hubspotClient.crm.contacts.basicApi.getById(event.object.objectId, [DEDUPE_PROPERTY]);
let dedupePropValue = contactResult.body.propertie…[DEDUPE_PROPERTY];
console.log(`Looking for duplicates based on ${DEDUPE_PROPERTY} = ${dedupePropValue}`);
const searchResults = await hubspotClient.crm.contacts.searchApi.doSearch({
filterGroups: [{
filters: [{
propertyName: DEDUPE_PROPERTY,
operator: 'EQ',
value: dedupePropValue
}]
}]
});
let idsToMerge = searchResults.body.results
.map(contact => contact.id)
.filter(vid => Number(vid) !== Number(event.object.objectId));
if (idsToMerge.length > 0) {
console.log(`Found multiple potential contact IDs to merge: ${idsToMerge.join(', ')}`);
// Merge all contacts into the first one found
for (let i = 1; i < idsToMerge.length; i++) {
await hubspotClient.apiRequest({
method: 'POST',
path: `/contacts/v1/contact/merge-vids/${idsToMerge[0]}`,
body: {
vidToMerge: idsToMerge[i]
}
});
console.log(`Merged contact id=${idsToMerge[i]} into contact id=${idsToMerge[0]}`);
}
} else {
console.log('No matching contact, nothing to merge');
}
} catch (error) {
console.error('An error occurred:', error);
}
};
Empathy First Media retweeted
(6/7) Private App In HubSpot
Step 7: HubSpot Workflows
Action: Returning to HubSpot Workflows now, add a delay of 5 minutes to low Zapier and HubSpot sync, and update the phone number value.
Note: Depending on your Zapier plan, this value could be higher; I am on the top-tier plan, so it happens almost instantly for me and my development team.
Step 8: Create a Private App & Secret Key
Go to the developer console, create a private app, and copy the private key that will be used to authenticate the CRM Database.
Empathy First Media retweeted
(5/7) Zapier Workflow To Standardize Phone Number
Step 3: Zapier
Action: Send a post webhook to Zapier to catch the rawhook.
Step 4: Zapier
Action: Catch hook using functionality by Zapier.
Step 5: Zapier
Action: The number is formatted by Zapier to standardize the number to the format of +1 555-800-1212 (International)
Step 6: Zapier
Action: Using Zapier, update contact in HubSpot with update phone number value.
Empathy First Media retweeted
(4/7) Validation & Test Contact
Using the HubSpot test contact functionality, use a test contact to verify that you understand how the Data OPS module works and have a control variable as we move forward.
Empathy First Media retweeted
(3/7) Workflow Trigger & Formatting
Trigger: Phone Number is known
Step 1: HubSpot Workflows
Action:
Format Data using Ops Hub with the following snippet.
cut(cut(cut(cut(cut(cut([phone], "-"), "("), ")"), "*"), "&"), "#")
Step 2: HubSpot Workflows
Action: Copy outcome of Format Data to phone number and update number values with no characters in the phone number for a raw numerical value in the string.
Empathy First Media retweeted
(2/7) Solution:
Using HubSpot workflows, I created a code snippet that executes in the HubSpot workflows utilizing the custom code functionality of Operations Hub to automatically run every phone number added to the HubSpot CRM to identify duplicates.
I have also attached 2 screenshots for a high-level overview of the workflow.
Empathy First Media retweeted
(1/7) Define The Problem:
When a lead calls in via a CallRail phone number, the contact in the HubSpot CRM will be created as number@callrail.com or with no email address at all, depending on the settings configured in the HubSpot integration settings of CallRail.
Empathy First Media retweeted
Client work is the death of me.
A client who paid $750 one-time over a year ago with a website from 10 years ago on Avads & Fusion Builder w/ no E-E-A-T.
He is freaking out his rankings drop, yet ghosted me for six months when I said it will go down over time I guarantee it.
No author on blogs or pages in medical niche, slow pagespeed, & old school mindset that he would rather lose rankings & leads vs. pay someone what they are worth.
Another client paying a few thousand for SEO had an increase in traffic from 600 to 1.8k monthy visitors, and now that is 18k.
That is just Google alone yet it is always a question of what are you doing & why should we pay you because you are not doing what I think is best?
Prospects who have millions of YouTube & social media followers who think directing all that traffic to a paywall Fullscripts page is better than paying an agency to build them their own It is comical - people rather be cheap and literally lose millions to know they got a deal or are so good they dont need help, yet are so blindly stupid they have no idea what they are doing.
Chiropractors & doctors post fear mongering videos of COVID and what not, & go from being a deadbeat to charging $3500 for a consultation.
It is hard to stomach people are stupid enough to pay that for a quack who knows nothing but is good on camera.
No wonder politicians have a field day with all of society, people are so easy to sway and mold with their beliefs.
With the exception of the handful of amazing clients who actually understand business, thus why I am always in Arizona, people undervalue marketing.
Amazing how people expect you to build a 7-8 figure business for pennies.
I think the future of my agency & my team is just building businesses & residuals internally.
I question some days if I would have been better growing my medical billing business or other companies.
Building a team, managing humans, and setting boundaries with demanding unappreciative with people has been quite the learning curve in 2023.
By the end of 2024, 50% of agencies will not exist, and people will realize going cheap & expecting too much will just get your more agencies that are frauds and only good at selling you into a contract to handcuff you.
Ask my client who pays $30k+ a month for marketing, if business is good on the backend, marketing should have no limit to the budget.
Back to the grind 3 all nighters a week, I have the winning with my team for SEO, PPC, Public Relations, PR, & API integrations.
The key is automating it and winning my time and life back as demand is only growing.
Here is my current passion project:
Custom fields in databases for each vertical with a two way sync using ETL and reverse ETL platforms.
Create custom post types, taxonomies, meta keys, relationships, & schema to create the backbone of a knowledge graph for the business.
Create a glossary and wikidata custom post type on CMS to start populating based on the knowledge graph.
Using n8n, Stack AI, and vector database such as pinecone, start populating data sets for cresting data points to train on industry, competitors, relevant tools or knowledgebased, social media, brand mentions, PR, videos, writings, books, everything possible in any data format.
Using wikidata as template, start identifying data points to populate based on knowledge base.
Now classify, analyze, & define the entities, taxonomy, tags, & categories for all posts.
For text, voice, images, & video - create a dedicated database table for each property above using the API integrations for IBM Watson NLP, openAI, Dandelion, Azure Cognitive AI, Azure AI to Speech, openAI chatGPT, openAI whisper, Google Cloud NLP, Google Cloud Vision, Google Cloud text to speech, and Amazon Rekognition.
Now you have all these data points on the CMS essentially adding as a headless CMS to manage Database Tables remotely.
Stay Tuned - @FirstEmpathy
#seo #ai #grok #gemini #openai
Empathy First Media retweeted
New website launch, three day turn around with a custom CSS @askmindbody booking widget
backinaflashnow.com
#digitalmarketing #denver
Empathy First Media retweeted
What is ozone?
Ozone is a gas made from oxygen. While oxygen in the air we breathe has two molecules of oxygen (O2) bound together, ozone is made of three oxygen molecules (O3).
https://xitter.cf/t.co/2lRxcPB3NS
#integrative #holistic #medicine
Empathy First Media retweeted
Brio-Medical is an integrative medicine treatment center and immune recovery facility offering advanced, research-based alternative medical modalities to patients diagnosed with serious and complex medical conditions like cancer and Lyme Disease
A thread: – at Scottsdale, AZ
Empathy First Media retweeted
The treatment center prides itself on combining conventional therapies & the latest in new treatment advancements from around the world!
For example:
PEMF
Prism Light Pod
IV Therapy
& Chelation Therapy
& many more – at Scottsdale, AZ
Empathy First Media retweeted
Brio-Medical prescribes the Prism Light Pod red light therapy system in their comprehensive, personalized treatment plans for different patients as a holistic approach to healing. – at Scottsdale, AZ
Empathy First Media retweeted
They treat the body, mind, and spirit, to treat each patient on an individual level with their personalized medical protocols.
They say that a healthy immune system is the cornerstone of well-being! And also a healthy body does not suffer from the disease. – at Scottsdale, AZ
Empathy First Media retweeted
Why Is Lyme Disease Not Covered By Insurance?
As families quarantine at home and spend more time outdoors across the country, another pandemic is lurking in their backyard.
Read the full post on the Medical Bill Gurus blog:
https://xitter.cf/t.co/1jXDBSC6Fd
#lymedisease #lyme
Empathy First Media retweeted
LIFE Health has partnered with Medical Bill Gurus to help patients with qualifying insurance pay a "deposit" or reduced amount upfront for the full treatment protocol at Life Heath and Research Center.
https://xitter.cf/t.co/yquXymuiRf
#lymedisease #lyme #cancer #hyperthermia
Empathy First Media retweeted
A Patient's Symbol of Hope
"I drew it in the rainbow colours to represent God's promise of faithfulness to never again destroy the earth by flood, and with the hand reaching up like that, I'm not sure why. . . to me it looked like a symbol of hope."
#lyme #lymewarrior
Empathy First Media retweeted
LIFE Health has partnered with Medical Bill Gurus to help patients with qualifying insurance pay a "deposit" or reduced amount upfront for the full treatment protocol at Life Heath and Research Center.
https://xitter.cf/t.co/yquXymcHsF
#lymedisease #lyme #cancer #hyperthermia
Empathy First Media retweeted
Loving my new camera equipment, checkout this video I made w my team – at Denver, CO
























