Skip to content

Start with a recipe.
Make it yours.

Explore 60 ways to put custom code to work in HubSpot, from cleaning contact data to routing leads and synchronizing your ERP.

Each recipe explains the problem, the data it needs and the rules you can customize. 60 recipes are available to use.

Find your starting point

Route by a territory table

Route records by configured country and segment territory rules while preserving existing owners.

Explore recipe

What do you need to do?

60 recipes

Data preparation and quality

Normalize person names

Normalize first and last names with spacing, capitalization, preservation, and compound-name review.

Ready to customize

Data preparation and quality

Normalize company names

Normalize company display names while retaining legal source text.

Ready to customize

Data preparation and quality

Normalize phone numbers

Validate phone strings against international numbering-plan metadata, normalize to E.164 and return extensions separately.

Ready to customize

Data preparation and quality

Clean generated record names

Remove configured anchored boilerplate from generated names idempotently.

Ready to customize

Data preparation and quality

Normalize date fields

Parse configured date text or timestamps into a UTC CRM date.

Ready to customize

Data preparation and quality

Reconcile contact preferences

Reconcile explicit preference additions and removals with remove-wins conflicts.

Ready to customize

Data preparation and quality

Backfill missing qualification fields

Backfill configured qualification fields while preserving existing values and rejecting invalid industries.

Ready to customize

Assignment and routing

Route by a territory table

Route records by configured country and segment territory rules while preserving existing owners.

Ready to customize

Commercial operations and calculations

Validate an installment plan

Reconciles installment amounts against a total and prior payments at configured precision.

Ready to customize

Commercial operations and calculations

Apply scheduled price changes

Apply the price effective at an explicit evaluation time to a HubSpot line item, while exposing the next scheduled change and notice window.

Ready to customize

Commercial operations and calculations

Process a scheduled payment

Collects a scheduled payment with Stripe PaymentIntents.

Ready to customize

Commercial operations and calculations

Calculate line-item margins

Calculates revenue, cost, margin and margin percentage per line item.

Ready to customize

Commercial operations and calculations

Generate future deals from a contract

Creates future renewal deals from a bounded contract schedule using a CRM-enforced unique schedule key.

Ready to customize

CRM records and relationships

Find or create a contact company

Matches a contact to a company by domain, optionally creates it, then associates it.

Ready to customize

History and lifecycle management

Record and explain field changes

Record tracked field transitions with deduplication and optional HubSpot note.

Ready to customize

History and lifecycle management

Merge duplicate contacts

Search contacts by a trusted key and merge only confident unprotected duplicates.

Ready to customize

History and lifecycle management

Merge duplicate companies

Normalize company domains and merge confident duplicate companies.

Ready to customize

History and lifecycle management

Complete associated tasks

Complete open tasks associated with a selected CRM record.

Ready to customize

Messaging, documents, and calendar work

Send and track an SMS

Send one idempotent Twilio SMS and return provider acceptance status.

Ready to customize

Messaging, documents, and calendar work

Create staff follow-up tasks

Create one owner-specific follow-up task associated to a source record.

Ready to customize

Messaging, documents, and calendar work

Manage event calendar bookings

Reconcile one Google Calendar booking by stable booking ID, including cancellation.

Ready to customize

Messaging, documents, and calendar work

Archive a signed quote document

Archive a signed quote document in HubSpot Files and associate it with a deal.

Ready to customize

Messaging, documents, and calendar work

Translate customer feedback

Translate customer feedback with DeepL and preserve source text.

Ready to customize

Integrations and data imports

Import campaign performance metrics

Import HubSpot campaign performance into a pre-created custom object keyed by reporting period.

Ready to customize

Integrations and data imports

Synchronize ERP customers

Synchronizes one ERPNext Customer into a HubSpot company.

Ready to customize

Integrations and data imports

Synchronize a product catalog

Synchronize a bounded catalog REST page into HubSpot products by SKU.

Ready to customize

Integrations and data imports

Synchronize orders and quotes

Projects one ERPNext Sales Order and its line-item snapshot into a HubSpot order.

Ready to customize

Integrations and data imports

Import invoices into CRM

Imports Stripe invoice totals, status, currency and line snapshots into a configured HubSpot custom object.

Ready to customize

Integrations and data imports

Verify email deliverability

Verify email deliverability with ZeroBounce and write the signal to a HubSpot contact.

Ready to customize

How available recipes become your actions.

You don’t need to provision a server or wire up a separate API. Focus on the part that is specific to your workflow.

  1. 1. Choose and customize

    Pick a pattern, inspect the logic and replace the sample rules with yours.

  2. 2. Connect and test

    Map your data, add the credentials you need and inspect a sample result.

  3. 3. Use it in HubSpot

    Publish the action, add it to your workflow and use the outputs in the next step.

Follow the complete setup guide