Understanding HubSpot Workflows: The Foundation
At its core, a HubSpot workflow is an automated sequence of actions triggered by specific criteria or events.
Think of it as a digital assembly line for your business processes—one that works tirelessly in the background, executing tasks, updating records, sending communications, and making decisions without requiring manual intervention.
However, to truly understand the power of workflows, we need to explore their fundamental components, types, and capabilities within the HubSpot ecosystem.
What Are HubSpot Workflows?
HubSpot defines workflows as “a series of automated actions that execute based on a person’s behavior or contact information.”
However, this definition only scratches the surface of what modern HubSpot workflows can accomplish.
Today’s workflows extend far beyond contact-based automation, enabling businesses to automate processes across multiple object types, integrate with external systems, and execute complex logic that adapts to changing conditions.
The true value of workflows lies in their ability to:
- Eliminate repetitive manual tasks that consume valuable time and resources
- Ensure consistency in how processes are executed across your organization
- Scale operations without proportionally increasing headcount
- Deliver timely, personalized experiences to customers and prospects
- Connect disparate systems and data sources into cohesive processes
- Enforce business rules and compliance requirements automatically
As HubSpot has evolved from a marketing automation platform into a comprehensive CRM ecosystem, workflows have expanded in scope and capability, becoming the connective tissue that binds different functions, teams, and systems together.
Types of Workflows in the HubSpot Ecosystem
One of the most significant advancements in HubSpot’s workflow functionality has been the expansion of object types that can be enrolled in workflows.
While contact-based workflows were the original foundation, today’s HubSpot offers a diverse range of workflow types based on different objects:
Contact-Based Workflows
Contact-based workflows, the original and still most commonly used workflow, automate processes related to individual contacts in your database.
These workflows can be triggered by form submissions, property changes, list memberships, or specific dates, making them ideal for lead nurturing, contact data management, and personalized communication sequences.
Company-Based Workflows
These workflows operate at the organization level, allowing automation based on company properties or activities.
They’re particularly valuable for account-based marketing strategies, company data enrichment, and coordinating activities across multiple contacts within the same organization.
Deal-Based Workflows
Centered around opportunities in your sales pipeline, deal-based workflows automate sales processes, task assignments, follow-ups, and internal notifications.
They help standardize sales processes, ensure timely follow-up, and keep deals moving through your pipeline efficiently.
Ticket-Based Workflows
Available in Service Hub Professional and Enterprise, these workflows automate customer service processes, including ticket routing, escalation, follow-up, and resolution.
They help maintain service level agreements (SLAs) and ensure consistent customer support experiences.
Quote-Based Workflows
For Sales Hub Professional and Enterprise users, quote-based workflows automate the creation, approval, and follow-up processes for sales quotes and proposals, streamlining the path from opportunity to closed deal.
Custom Object Workflows
Enterprise users can create workflows based on custom objects, enabling automation for industry-specific or business-specific entities that don’t fit into HubSpot’s standard objects. This capability dramatically extends the flexibility of workflow automation for complex business models.
Other Specialized Workflows
HubSpot also supports workflows based on conversations, feedback submissions, subscriptions, payments, goals, leads, users, tasks, and calls—each addressing specific automation needs within their respective domains.
Key Components of HubSpot Workflows
Understanding the building blocks of workflows is essential for creating effective automation. Every workflow consists of several fundamental components:
Enrollment Triggers
These define the criteria that cause records to enter a workflow. Triggers can be:
- Filter-based: Enrolling records that match specific property values or conditions
- Event-based: Triggered by actions like form submissions, email clicks, or page views
- Date-based: Scheduled to run on specific dates or at regular intervals
- Webhook-based: Initiated by data received from external systems via webhooks
The flexibility of enrollment triggers allows workflows to respond to virtually any detectable event or condition within your HubSpot environment or connected systems.
Actions
Actions are the tasks that workflows perform on enrolled records. HubSpot offers dozens of built-in actions across various categories:
- Communications: Send emails, enroll in sequences, send notifications
- CRM: Create or update records, create tasks, manage properties
- Marketing: Add to lists, change subscription status, set lead status
- Data Operations: Execute custom code, call webhooks, create associations
Actions can be chained together, executed conditionally, or scheduled to occur after specific delays, creating sophisticated process flows that adapt to different scenarios.
Delays
Delays pause the workflow for a specified period before executing the next action. They can be:
- Fixed time delays: Wait for a specific number of minutes, hours, or days
- Date property-based: Wait until a date stored in a property field
- Day-of-week delays: Wait until a specific day of the week
- Time-of-day delays: Wait until a specific time of day
Delays are crucial for creating natural timing in automated processes, especially for communication sequences that shouldn’t appear obviously automated.
Branches
Branches create conditional paths within workflows, allowing different actions to execute based on property values, previous action outcomes, or complex criteria.
Branching logic enables workflows to adapt to different scenarios and personalize the automation experience based on relevant factors.
Workflow Settings and Configuration
Beyond the core components, several settings influence how workflows operate:
Enrollment Criteria and Re-enrollment
By default, records can only enter a workflow once, but re-enrollment settings allow records to re-enter under specific conditions.
This is particularly valuable for recurring processes or when you want to trigger the same sequence multiple times based on repeated behaviors.
Unenrollment and Suppression
These settings define when records should exit a workflow or be prevented from entering.
Suppression lists are especially important for ensuring compliance with communication preferences and preventing workflow conflicts.
Goals
Workflow goals define the ultimate objective of the automation sequence. When a record meets the goal criteria, it automatically exits the workflow, streamlining the process and providing valuable metrics on workflow effectiveness.
Execution Settings
These control when workflows run, including options to:
- Execute only during business hours
- Run only on specific days of the week
- Respect contact time zones for timing-sensitive actions
Best Practices for Workflow Organization and Management
As organizations scale their use of workflows, proper organization becomes critical for maintainability and efficiency:
Naming Conventions
Establish standardized naming patterns that clearly indicate the workflow’s purpose, trigger type, and target audience. For example: “[Object Type] – [Trigger] – [Purpose]” (e.g., “Contact – Form Submission – Product Demo Request Follow-up”).
Folder Structure
Organize workflows into logical folders based on department, function, or customer journey stage to make them easier to locate and manage.
Documentation
Use workflow descriptions to document the purpose, expected outcomes, and any dependencies or related workflows. This is especially important for complex workflows that may need to be maintained by different team members over time.
Testing and Validation
Always test workflows thoroughly before activation, ideally using test records that won’t impact real customers or prospects. HubSpot’s workflow history feature allows you to monitor execution and troubleshoot any issues that arise.
Performance Monitoring
Regularly review workflow performance metrics, including enrollment numbers, goal completion rates, and any error messages. This data helps identify opportunities for optimization and ensures workflows continue to meet business objectives.
Common Use Cases Across Business Functions
The versatility of HubSpot workflows makes them applicable to virtually every business function:
Marketing Automation
- Lead nurturing email sequences
- Lead scoring and qualification
- Event registration and follow-up
- Content download fulfillment
- Marketing-to-sales handoff processes
Sales Automation
- Lead rotation and assignment
- Sales activity scheduling and reminders
- Deal stage progression notifications
- Quote generation and approval
- Closed-won/lost follow-up processes
Customer Service Automation
- Ticket routing and escalation
- SLA monitoring and enforcement
- Customer onboarding sequences
- Feedback collection and response
- Knowledge base article recommendations
Operations Automation
- Data cleansing and standardization
- Cross-object record association
- System integration and data synchronization
- Compliance and governance enforcement
- Reporting and analytics automation
The true power of HubSpot workflows emerges when these functional areas are connected through cross-hub automation that creates seamless experiences for both customers and internal teams. As we’ll explore in subsequent sections, the addition of AI capabilities, cross-hub integration, and app marketplace connections exponentially expands what’s possible with workflow automation.
Understanding these foundational elements of HubSpot workflows provides the necessary context for exploring the more advanced capabilities we’ll cover throughout this guide. With this foundation in place, we can now dive deeper into how AI is transforming workflow automation within the HubSpot ecosystem.
The AI Revolution in HubSpot Workflows
Artificial intelligence has fundamentally transformed what’s possible with workflow automation in HubSpot. No longer confined to rigid if-then logic, workflows can now leverage AI to make intelligent decisions, generate personalized content, analyze patterns, and even predict future outcomes. This integration of AI capabilities represents perhaps the most significant evolution in HubSpot’s workflow functionality since its inception.
Introduction to Breeze: HubSpot’s Native AI Assistant for Workflows
In 2023, HubSpot introduced Breeze, its native AI assistant powered by large language models similar to ChatGPT. Breeze has been integrated throughout the HubSpot platform, but its implementation within workflows deserves special attention for how it democratizes the creation of sophisticated automation.
Generating Enrollment Triggers with AI
One of the most powerful applications of Breeze in workflows is the ability to generate enrollment triggers using natural language prompts. Instead of manually configuring complex filter criteria, users can simply describe what they want to accomplish:
“Enroll contacts who have visited the pricing page at least twice in the last 30 days but haven’t been contacted by sales”
Breeze interprets this request and generates the appropriate enrollment criteria, combining multiple conditions that might otherwise require advanced knowledge of HubSpot’s filtering system. This capability makes sophisticated targeting accessible to users of all technical skill levels, dramatically reducing the learning curve for creating effective workflows.
Creating Workflow Actions with AI
Similarly, Breeze can generate entire sequences of workflow actions based on natural language descriptions of desired outcomes.
For example, a user might prompt:
“Create a workflow that sends a personalized email to new enterprise leads, creates a task for the account executive, and schedules a follow-up email if they don’t respond within 3 days.”
From this simple description, Breeze can generate a complete workflow with appropriate delays, branching logic, and personalized content.
The system even suggests relevant personalization tokens and dynamic content based on the context of the request.
The code behind these AI-generated actions often includes conditional logic that would typically require manual configuration:
// Example of AI-generated conditional logic in a workflow
if (contact.lead_score > 80 && contact.company.industry === 'Healthcare') {
// Assign to healthcare specialist team
assignTo('healthcare_team');
sendEmail('healthcare_enterprise_template');
} else if (contact.lead_score > 80) {
// Assign to general enterprise team
assignTo('enterprise_team');
sendEmail('enterprise_template');
} else {
// Add to nurturing sequence
enrollInSequence('industry_nurturing');
}
AI Settings and Configuration
HubSpot provides several configuration options for Breeze in workflows:
- Creativity Level: Controls how innovative or conservative the AI suggestions will be
- Industry Context: Allows the AI to incorporate industry-specific knowledge into its suggestions
- Brand Voice: Adjusts generated content to match your organization’s communication style
- Data Sources: Determines which properties and historical data the AI can access for personalization
These settings enable organizations to tailor the AI experience to their specific needs and ensure that generated content aligns with their brand standards and business rules.
Third-Party AI Integrations for Enhanced Workflow Capabilities
While Breeze provides powerful native AI capabilities, the HubSpot ecosystem also supports numerous third-party AI integrations that extend workflow functionality in specialized ways.
AI Studio for Workflows: Features and Implementation
AI Studio for Workflows (by Resonate) is one of the most comprehensive AI integrations available in the HubSpot App Marketplace. This tool allows users to incorporate advanced AI models from providers like OpenAI and Google directly into their workflows.
Key features include:
- Content Generation: Create personalized emails, social posts, and other content based on contact data
- Sentiment Analysis: Automatically analyze and categorize customer communications by sentiment
- Language Translation: Translate workflow communications into recipients’ preferred languages
- Data Extraction: Pull structured data from unstructured text inputs like emails or notes
- Classification: Categorize contacts, companies, or deals based on textual information
Implementing AI Studio in workflows typically involves a three-step process:
- Configure the AI Model: Select the appropriate AI provider and model for your use case
- Define Inputs: Specify which HubSpot properties or data points should be sent to the AI
- Map Outputs: Determine where the AI’s responses should be stored in HubSpot
The following code example demonstrates how AI Studio can be implemented in a custom workflow action using Operations Hub:
const hubspot = require('@hubspot/api-client');
const hubspotClient = new hubspot.Client({ accessToken: process.env.HUBSPOT_TOKEN });
exports.main = async (event) => {
// Get contact data from the workflow
const contactId = event.object.objectId;
const contact = await hubspotClient.crm.contacts.basicApi.getById(contactId);
// Prepare data for AI processing
const aiInput = {
contactFirstName: contact.properties.firstname,
contactLastName: contact.properties.lastname,
companyName: contact.properties.company,
lastInteraction: contact.properties.last_meeting_notes,
productInterest: contact.properties.product_interest
};
// Call AI Studio API
const aiResponse = await fetch('https://api.aistudio.com/generate', {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'Authorization': `Bearer ${process.env.AI_STUDIO_API_KEY}`
},
body: JSON.stringify({
model: 'gpt-4',
prompt: `Generate a personalized follow-up email for ${aiInput.contactFirstName} at ${aiInput.companyName} who is interested in ${aiInput.productInterest}. Reference their last interaction: "${aiInput.lastInteraction}"`,
temperature: 0.7,
max_tokens: 500
})
}).then(res => res.json());
// Update HubSpot with the generated content
await hubspotClient.crm.contacts.basicApi.update(contactId, {
properties: {
ai_generated_email: aiResponse.text,
ai_generation_date: new Date().toISOString()
}
});
return {
outputFields: {
generatedContent: aiResponse.text
}
};
}
Workflow AI (ChatGPT) Actions: Use Cases and Setup
Another popular integration is Workflow AI Actions, which specifically leverages OpenAI’s models like GPT-4 within HubSpot workflows. This integration excels at:
- Personalized Outreach: Generating highly customized sales and marketing messages
- Content Summarization: Condensing lengthy communications or documents
- Lead Qualification: Analyzing lead information to determine quality and fit
- Meeting Preparation: Creating briefing documents based on contact and company data
- Customer Support: Generating knowledge base articles and support responses
Setting up Workflow AI Actions involves:
- Connecting your OpenAI API key to the integration
- Creating prompt templates that incorporate HubSpot property values
- Configuring where the AI-generated content should be stored
- Setting up error handling and fallback options
Sembly AI and Other Specialized AI Integrations
For more specialized use cases, integrations like Sembly AI focus on specific aspects of business operations. Sembly, for instance, specializes in meeting intelligence, allowing workflows to:
- Automatically transcribe and summarize meetings
- Extract action items and commitments
- Identify key topics and sentiment
- Create follow-up tasks based on meeting content
These specialized AI tools can be particularly valuable when integrated into workflows that manage specific business processes like sales calls, customer onboarding, or support interactions.
Advanced AI Use Cases in Workflow Automation
The combination of HubSpot’s workflow engine with AI capabilities enables several advanced use cases that were previously impossible or required extensive manual intervention.
Lead Qualification and Scoring
AI-enhanced lead scoring represents a significant advancement over traditional rules-based approaches. By analyzing patterns across thousands of historical leads, AI can identify subtle indicators of qualification that might not be obvious to human analysts.
In practice, this might involve:
- Training an AI model on your historical conversion data
- Integrating the model into workflows that evaluate new leads
- Automatically updating lead scores based on AI predictions
- Triggering appropriate follow-up actions based on those scores
The following serverless function demonstrates how this might be implemented:
const hubspot = require('@hubspot/api-client');
const hubspotClient = new hubspot.Client({ accessToken: process.env.HUBSPOT_TOKEN });
const { MachineLearningClient } = require('your-ml-service');
const mlClient = new MachineLearningClient(process.env.ML_API_KEY);
exports.main = async (event) => {
// Get contact and associated company data
const contactId = event.object.objectId;
const contact = await hubspotClient.crm.contacts.basicApi.getById(contactId);
const companyResponse = await hubspotClient.crm.contacts.associationsApi.getAll(contactId, 'company');
const companyId = companyResponse.results[0]?.id;
const company = companyId ? await hubspotClient.crm.companies.basicApi.getById(companyId) : null;
// Prepare data for AI scoring
const scoringData = {
// Contact data
email_domain: contact.properties.email?.split('@')[1],
job_title: contact.properties.jobtitle,
seniority: contact.properties.seniority_level,
lead_source: contact.properties.lead_source,
num_page_views: parseInt(contact.properties.num_page_views || '0'),
form_submissions: parseInt(contact.properties.num_form_submissions || '0'),
// Company data
industry: company?.properties.industry,
company_size: company?.properties.numberofemployees,
annual_revenue: company?.properties.annualrevenue,
country: company?.properties.country
};
// Get AI-generated lead score
const scorePrediction = await mlClient.predict('lead_qualification_model', scoringData);
// Update contact with new score and qualification status
const qualificationThreshold = 0.7; // 70% confidence
const isQualified = scorePrediction.score >= qualificationThreshold;
await hubspotClient.crm.contacts.basicApi.update(contactId, {
properties: {
ai_lead_score: Math.round(scorePrediction.score * 100),
lead_quality: isQualified ? 'Qualified' : 'Unqualified',
qualification_confidence: `${Math.round(scorePrediction.score * 100)}%`,
qualification_factors: JSON.stringify(scorePrediction.contributing_factors)
}
});
return {
outputFields: {
leadScore: Math.round(scorePrediction.score * 100),
isQualified: isQualified
}
};
}
Content Generation and Personalization
AI excels at generating and personalizing content at scale, making it ideal for workflows that manage communication with prospects and customers. Use cases include:
- Dynamic Email Content: Generating personalized email bodies based on recipient data
- Smart Content Blocks: Creating website content tailored to visitor attributes
- Product Recommendations: Suggesting relevant products based on purchase history
- Custom Proposals: Generating tailored proposals incorporating specific client needs
The key to effective AI content generation in workflows is providing sufficient context to the AI model. This typically includes:
- Relevant contact and company properties
- Interaction history and engagement data
- Product or service information
- Brand voice guidelines and messaging frameworks
Data Cleansing and Standardization
Data quality is a persistent challenge for CRM systems, but AI-powered workflows can automatically detect and correct issues like:
- Inconsistent formatting (e.g., phone numbers, addresses)
- Duplicate records with slight variations
- Missing or incomplete information
- Outdated data that needs refreshing
AI approaches to data cleansing are particularly valuable because they can learn from patterns in your specific dataset, adapting to your organization’s unique data quality challenges.
Predictive Analytics and Forecasting
Perhaps the most sophisticated application of AI in workflows involves predictive capabilities that anticipate future outcomes and trigger proactive actions. Examples include:
- Churn Prediction: Identifying customers likely to cancel and triggering retention workflows
- Deal Forecasting: Predicting which opportunities are most likely to close and when
- Inventory Management: Anticipating product demand to trigger reordering workflows
- Resource Allocation: Predicting service demand to automate staffing workflows
These predictive workflows typically combine historical data analysis with real-time monitoring to continuously refine their accuracy over time.
Technical Implementation of AI in Workflows
Implementing AI capabilities in HubSpot workflows can range from simple no-code approaches using native tools to sophisticated custom integrations requiring development expertise.
Custom Code for AI Integration
For organizations with specific AI requirements, Operations Hub Professional and Enterprise enable custom code actions within workflows. These actions can call external AI services, process the results, and update HubSpot accordingly.
A typical implementation pattern involves:
- Authentication: Securely managing API keys for AI services
- Data Preparation: Gathering and formatting HubSpot data for the AI service
- API Interaction: Sending requests to the AI service and handling responses
- Result Processing: Parsing and validating the AI output
- HubSpot Updates: Storing results in appropriate HubSpot properties
The integration of AI capabilities into HubSpot workflows represents a significant leap forward in automation sophistication. By combining the structured process management of workflows with the adaptive intelligence of AI, organizations can create systems that not only execute predefined steps but also learn, adapt, and make decisions based on complex patterns and insights.
As we continue to explore the capabilities of HubSpot Workflows, we’ll next examine how these automation tools connect across HubSpot’s various hubs to create seamless, end-to-end business processes.
Cross-Hub Integration: Maximizing the HubSpot Ecosystem
One of the most powerful aspects of HubSpot Workflows is their ability to connect and orchestrate processes across HubSpot’s various hubs. This cross-hub integration creates a unified automation ecosystem where data flows seamlessly between marketing, sales, service, content management, and operations functions. By leveraging workflows that span multiple hubs, organizations can create cohesive customer journeys, eliminate departmental silos, and ensure consistent experiences throughout the customer lifecycle.
Marketing Hub Workflow Capabilities
Marketing Hub was HubSpot’s original product, and its workflow capabilities remain among the most robust in the platform. These workflows primarily focus on lead generation, nurturing, and qualification processes.
Email Automation and Lead Nurturing
Email remains one of the most effective channels for nurturing leads, and Marketing Hub workflows excel at orchestrating sophisticated email campaigns:
- Triggered Email Sequences: Send personalized emails based on specific actions or property changes
- Drip Campaigns: Deliver educational content at predetermined intervals
- Re-engagement Campaigns: Automatically target disengaged contacts with specialized content
- Event-Based Communications: Send timely emails triggered by webinar registrations, content downloads, or form submissions
The following example demonstrates how to configure a workflow that sends different nurturing emails based on a contact’s industry and engagement level:
// Custom code example for industry-specific nurturing in Operations Hub
exports.main = async (event) => {
const { contact } = event.inputFields;
// Determine industry-specific content path
let contentPath;
switch(contact.industry.toLowerCase()) {
case 'healthcare':
contentPath = 'healthcare_nurture';
break;
case 'financial services':
contentPath = 'finserv_nurture';
break;
case 'manufacturing':
contentPath = 'manufacturing_nurture';
break;
default:
contentPath = 'general_nurture';
}
// Determine engagement level
const engagementScore = calculateEngagementScore(contact);
let engagementLevel;
if (engagementScore > 75) {
engagementLevel = 'high';
} else if (engagementScore > 40) {
engagementLevel = 'medium';
} else {
engagementLevel = 'low';
}
// Return the appropriate email template ID
return {
outputFields: {
emailTemplate: `${contentPath}_${engagementLevel}`,
engagementScore: engagementScore
}
};
};
function calculateEngagementScore(contact) {
// Calculate engagement based on various metrics
let score = 0;
// Email engagement
score += (contact.email_opens_count || 0) * 2;
score += (contact.email_clicks_count || 0) * 5;
// Website engagement
score += (contact.page_views_count || 0);
score += (contact.form_submissions_count || 0) * 10;
// Social engagement
score += (contact.social_clicks_count || 0) * 3;
return Math.min(score, 100); // Cap at 100
}
List Management and Segmentation
Marketing Hub workflows excel at dynamically managing contact lists based on behavior and properties:
- Smart Lists: Automatically add or remove contacts from lists based on criteria
- Segmentation Automation: Create and update segments for targeted campaigns
- Lifecycle Stage Management: Progress contacts through lifecycle stages based on engagement
- Lead Scoring Automation: Update lead scores and create lists of qualified leads
These list management capabilities are particularly valuable for ensuring that marketing communications remain relevant and targeted as contact information and behaviors evolve.
Marketing Contact Status Management
With the introduction of marketing contacts pricing, efficiently managing which contacts receive marketing communications has become crucial. Workflows can automate this process by:
- Setting contacts as marketing or non-marketing based on specific criteria
- Updating marketing status when leads become customers
- Managing subscription preferences and compliance
- Optimizing marketing contact usage to control costs
Ads Audience Integration
Marketing Hub Professional and Enterprise workflows can directly integrate with advertising platforms:
- Add contacts to or remove them from ad audiences
- Create lookalike audiences based on high-value segments
- Suppress converted leads from prospecting campaigns
- Adjust ad targeting based on CRM data
This integration between workflows and advertising platforms ensures consistent messaging across owned and paid channels while optimizing ad spend based on CRM data.
Sales Hub Workflow Automation
Sales Hub workflows focus on streamlining the sales process, from lead routing to deal management and beyond.
Deal Management and Pipeline Automation
Workflows can automate numerous aspects of deal management:
- Deal Creation: Automatically create deals when leads meet specific criteria
- Stage Progression: Move deals through pipeline stages based on activities or properties
- Deal Rotation: Distribute deals among sales representatives based on rules
- Forecasting Updates: Adjust forecasting categories based on deal activities
The following example shows how to implement a deal stage progression workflow with validation:
// Custom code for deal stage progression with validation
exports.main = async (event) => {
const hubspot = require('@hubspot/api-client');
const hubspotClient = new hubspot.Client({ accessToken: process.env.HUBSPOT_TOKEN });
const dealId = event.object.objectId;
const deal = await hubspotClient.crm.deals.basicApi.getById(dealId);
const currentStage = deal.properties.dealstage;
const proposedStage = event.inputFields.targetStage;
// Define stage progression requirements
const stageRequirements = {
'qualifiedtobuy': {
requiredProperties: ['budget_amount', 'decision_maker_identified'],
previousStages: ['appointmentscheduled']
},
'decisionmakerboughtin': {
requiredProperties: ['decision_maker_contact_id', 'needs_analysis_completed'],
previousStages: ['qualifiedtobuy']
},
'contractsent': {
requiredProperties: ['amount', 'contract_approval_status'],
previousStages: ['decisionmakerboughtin', 'presentationscheduled']
},
'closedwon': {
requiredProperties: ['closed_reason', 'contract_signed_date'],
previousStages: ['contractsent']
}
};
// Check if progression is valid
const requirements = stageRequirements[proposedStage];
if (!requirements) {
return {
outputFields: {
canProgress: true,
validationMessage: 'No validation requirements for this stage.'
}
};
}
// Validate previous stage requirement
if (!requirements.previousStages.includes(currentStage)) {
return {
outputFields: {
canProgress: false,
validationMessage: `Deal must be in one of these stages first: ${requirements.previousStages.join(', ')}`
}
};
}
// Validate required properties
const missingProperties = [];
for (const propName of requirements.requiredProperties) {
if (!deal.properties[propName]) {
missingProperties.push(propName);
}
}
if (missingProperties.length > 0) {
return {
outputFields: {
canProgress: false,
validationMessage: `Missing required properties: ${missingProperties.join(', ')}`
}
};
}
// All validations passed
return {
outputFields: {
canProgress: true,
validationMessage: 'Deal can progress to the next stage.'
}
};
};
Quote Generation and Management
For Sales Hub Professional and Enterprise users, workflows can automate the quoting process:
- Generate quotes based on deal information
- Route quotes for approval based on discount levels or deal size
- Send automated reminders for quote follow-ups
- Update deals when quotes are accepted or rejected
This automation streamlines what is often a time-consuming process and ensures consistency in how quotes are created and managed.
Lead Rotation and Assignment
Efficiently distributing leads among sales representatives is crucial for timely follow-up. Workflows can:
- Assign leads based on territory, industry, or company size
- Implement round-robin distribution for fair allocation
- Consider representative capacity and current workload
- Reassign leads if initial follow-up doesn’t occur within SLA timeframes
Sales Sequence Enrollment
Sales Hub Enterprise workflows can automatically enroll contacts in sales sequences:
- Trigger sequence enrollment based on lead scoring or behavior
- Select appropriate sequences based on contact properties
- Assign sequence ownership to specific sales representatives
- Unenroll contacts when they respond or take desired actions
This integration between workflows and sequences bridges the gap between marketing automation and personalized sales outreach.
Service Hub Workflow Solutions
Service Hub workflows focus on customer support and success processes, ensuring timely and effective service delivery.
Ticket Routing and Management
Workflows can automate the entire ticket lifecycle:
- Ticket Creation: Generate tickets from form submissions, emails, or chat
- Routing Logic: Assign tickets to the right team or individual based on topic, priority, or customer tier
- SLA Management: Escalate tickets that approach or breach SLA thresholds
- Resolution Verification: Confirm issue resolution before closing tickets
Customer Feedback Automation
Service Hub workflows can automate the collection and processing of customer feedback:
- Send NPS, CSAT, or CES surveys at appropriate moments
- Route negative feedback for immediate follow-up
- Update customer health scores based on feedback
- Trigger customer success interventions for at-risk accounts
This automation ensures that feedback is consistently collected and acted upon, rather than gathered but ignored.
Knowledge Base Article Suggestions
Workflows can leverage AI and customer data to suggest relevant knowledge base articles:
- Recommend articles based on ticket content
- Suggest content creation for frequently asked questions
- Update article recommendations based on resolution data
- Track article effectiveness in resolving issues
This integration between workflows and knowledge management improves self-service success rates and reduces support volume.
SLA Tracking and Enforcement
Service Hub Professional and Enterprise workflows can automate SLA management:
- Track time-to-first-response and time-to-resolution metrics
- Escalate tickets approaching SLA breach thresholds
- Notify management of SLA violations
- Adjust prioritization based on SLA status
These capabilities ensure consistent service delivery and help organizations meet their customer commitments.
CMS Hub Workflow Integration
CMS Hub workflows focus on website personalization, content management, and visitor engagement.
Smart Content Personalization
Workflows can power dynamic website personalization:
- Update smart content rules based on contact properties
- Personalize content based on visitor behavior
- Adjust messaging for different lifecycle stages
- Customize calls-to-action based on previous interactions
This integration between workflows and smart content creates tailored website experiences that adapt to each visitor’s needs and interests.
Form Submission Workflows
CMS Hub workflows can automate responses to form submissions:
- Send personalized follow-up emails
- Create records in appropriate CRM objects
- Notify relevant team members
- Trigger lead qualification processes
These workflows ensure that website interactions receive prompt, appropriate responses.
Membership and Gated Content Management
For CMS Hub Professional and Enterprise users, workflows can automate membership management:
- Process membership registrations and approvals
- Grant access to gated content based on criteria
- Manage subscription renewals and expirations
- Track content consumption and engagement
This automation streamlines the operation of membership sites and premium content hubs.
Website Performance Monitoring
Workflows can automate the monitoring and optimization of website performance:
- Track page load times and user experience metrics
- Alert teams to performance degradation
- Schedule content audits and updates
- Monitor and report on SEO performance
These capabilities ensure that website performance issues are identified and addressed promptly.
Operations Hub: The Workflow Powerhouse
Operations Hub represents the most significant expansion of HubSpot’s workflow capabilities, introducing features that extend automation far beyond what was previously possible.
Custom Code in Workflows
Operations Hub Professional and Enterprise enable the execution of custom JavaScript within workflows, allowing for:
- Complex business logic that exceeds standard workflow capabilities
- Custom data transformations and calculations
- Integration with external APIs and services
- Advanced error handling and validation
This capability effectively removes the ceiling on what workflows can accomplish, enabling developers to implement virtually any automation requirement.
Data Sync and Integration
Operations Hub’s data sync capabilities enable bidirectional synchronization between HubSpot and external systems:
- Keep customer data consistent across platforms
- Trigger workflows based on changes in external systems
- Update external systems based on HubSpot activities
- Create a unified view of customer data across your tech stack
This integration layer ensures that workflows have access to all relevant data, regardless of where it originates.
Programmable Automation
For the most sophisticated automation needs, Operations Hub Enterprise offers programmable automation:
- Create custom workflow actions that appear in the workflow editor
- Build reusable automation components for specific business needs
- Implement complex validation and business rules
- Create custom integrations with proprietary systems
This capability allows organizations to extend HubSpot’s native workflow functionality with custom components tailored to their specific requirements.
The power of cross-hub integration lies in creating seamless processes that span the entire customer lifecycle. By connecting workflows across Marketing, Sales, Service, CMS, and Operations Hubs, organizations can eliminate silos, ensure consistent experiences, and create truly end-to-end automation that drives efficiency and effectiveness across all customer-facing functions.