Why Integrate SMS with HubSpot?
Plenty of HubSpot emails sit unopened. SMS is the channel for things that can't wait: a D2C brand confirming a COD order, a demo reminder an hour before the call, or a rep's follow-up to a lead who just filled a form.
Two integration methods: Custom Coded Actions in HubSpot Workflows (Node.js snippet), or Webhooks to an external endpoint that calls SpringEdge.
Lead Nurturing
SMS drip sequences for new leads alongside email workflows
Deal Stage Alerts
Notify sales reps via SMS when deals move to key stages
Appointment Reminders
SMS reminders before scheduled meetings reduce no-shows
Campaign SMS
Send promotional SMS to HubSpot contact lists
// HubSpot Custom Coded Action (Node.js)
// Add this in Workflow → Actions →
// Custom Code
const axios = require('axios');
const API_URL =
'https://web.springedge.com/api/web/send/';
exports.main = async (event) => {
const phone = event.inputFields['phone'];
const name = event.inputFields['firstname'];
// Must match your DLT-approved template
const message = `Hi ${name}, thanks `
+ `for your interest in SpringEdge. `
+ `Our team will contact you shortly.`
+ ` - SEDEMO`;
// Form-encoded POST (URLSearchParams)
const params = new URLSearchParams({
apikey: process.env.SPRINGEDGE_API_KEY,
sender: 'SEDEMO',
to: phone,
message: message,
format: 'json',
});
const { data } = await axios.post(
API_URL, params, { timeout: 10000 }
);
// data: { groupID: 61, MessageIDs: '61-1',
// status: 'AWAITED-DLR' }
return {
outputFields: { messageIds: data.MessageIDs },
};
};
CUSTOM CODED ACTION
HubSpot Workflow Integration
HubSpot's Custom Coded Actions let you run Node.js code directly inside Workflows. It's the simplest way to send SMS from HubSpot because you don't need a server of your own. The code makes a form-encoded POST to the SpringEdge /api/web/send/ endpoint with your apikey, DLT sender ID, number and message; see the SMS API documentation for all parameters.
Setup Steps:
- Go to Automation → Workflows → Create Workflow
- Set your trigger (e.g. "Contact created" or "Deal stage changed")
- Add action: Custom Code
- Set
phoneandfirstnameas input fields - Add your SpringEdge API key as a secret named
SPRINGEDGE_API_KEY, then paste the Node.js code - Activate the workflow
Note: Custom Coded Actions require HubSpot Operations Hub Professional or Enterprise.
Use Cases
Lead Welcome SMS
Instant SMS when a new contact is created from a form, chatbot, or import.
Deal Closed Won
Congratulate customers and notify internal teams when deals close.
Meeting Reminders
SMS reminders 1 hour before scheduled HubSpot meetings. Reduces no-shows by 30%+.
Re-Engagement
SMS to dormant contacts who haven't opened emails in 30+ days.
Frequently Asked Questions
- How do I send SMS from HubSpot?
Use Custom Coded Actions in HubSpot Workflows. Add a Node.js code snippet that calls the SpringEdge SMS API with the contact's phone number and a personalised message. Alternatively, use a Webhook action to call an external endpoint that forwards to SpringEdge.
- Which HubSpot plan supports SMS integration?
Custom Coded Actions require Operations Hub Professional or Enterprise. The Webhook approach works on any HubSpot plan that supports Workflows (Marketing Hub Professional or higher).
- Do I need coding knowledge?
The Custom Coded Action approach needs basic JavaScript/Node.js knowledge to paste and configure the code snippet. The Webhook approach needs an external server endpoint but no HubSpot coding.
- Can I use contact properties in the SMS message?
Yes. Map HubSpot contact properties (firstname, lastname, company, deal_amount, etc.) as input fields in the Custom Coded Action, then reference them in your SMS message using template literals.
- How much does it cost?
Prepaid, with no monthly fees. The smallest pack is 10,000 SMS at ₹0.20 each (₹2,000 + GST), falling to ₹0.13 per SMS at 5 lakh+. Visit our pricing page.
