Workflows: Use cases (HubSpot)

Angelica A
Angelica A
  • Updated

When a ticket is closed, create a contract with pre-populated ticket and contact details

Consider a ticket from a customer with standard service requests, like a package upgrade, where the customer's SLA needs to be updated.

Prerequisites

  • The Oneflow template should contain data fields.
  • HubSpot contact properties should be mapped to Oneflow data fields in the Two-way sync & mapping settings. To learn more, see Two-way sync.

Trigger

  • Configure a ticket-based workflow that triggers when a ticket reaches a particular stage (e.g., ticket closure).
HubSpot ticket workflow trigger configuration

Actions

  • Add a branch based on 'Time to First Response SLA Status'.
  • From the Oneflow panel, add a Create contract action to the "happy path" (i.e., when the SLA is restored on time) to create a Oneflow contract with a template of your choice. This will contain all contact and ticket-related property mappings.
Create contract action in HubSpot workflow
  • Upon creation, the contract will be populated with the contact and ticket property values, ready to be signed by the customer.
  • You can add the contact from HubSpot as a participant to the contract via the Add participants to a contract action.
  • You can then publish and send the contract to be signed by the signatories via the Send contract action.

A lead submits a marketing form on your website

Automatically create a contract in Oneflow whenever a lead submits a marketing form on your website.

Prerequisites

  • The fields in the marketing form must be mapped to properties in HubSpot when you design the form.
  • The Oneflow template should contain data fields.
  • HubSpot contact properties should be mapped to Oneflow data fields in the Two-way sync & mapping settings. To learn more, see Two-way sync.

Trigger

  • Enroll a contact whenever they submit a marketing form on the website.
HubSpot form submission workflow trigger

Action

  • Add a Oneflow action to Create a contract. The contact's information will be populated in the contract's data fields.
  • You can add the contact from HubSpot as a participant to the contract via the Add participants to a contract action.
Create contract action setup

Automatically create contracts based on HubSpot triggers

Workflows provide endless customization options for your contract flow. You can add Oneflow’s Create contract and Send contract actions to a workflow trigger of your choice to automate the contract creation and publishing process. The workflow will run whenever a specific trigger condition is met in HubSpot (for instance, when a deal moves from one stage to another, or exceeds a certain monetary value).

Generic create contract workflow action

Trigger

  • For instance, you can add a trigger that enrolls a deal whenever it moves to the "Decision-maker bought-In" stage in your sales pipeline.

Action

  • Add a Oneflow action to Create a contract based on a template of your choice. Note: With two-way sync configured, your contract will automatically populate with deal-related information mapped to data fields.
  • You can then add HubSpot contacts associated with the deal object as participants to your Oneflow contract via the Add participants to a contract action.

Automatically create contracts tailored to customer segments

Use if/then branches to tailor your contracts to diverse customer segments.

Branching workflow based on customer segment

Trigger

  • Add a trigger to enroll a contact when they become a sales-qualified lead.

Actions

  • Add a branch based on Industry (or any other contact property by which you wish to segment customers).
  • In this example, if the contact’s industry is “IT”, the Create contract action is added to create a contract using a specific template in a particular workspace. Likewise, if the contact’s industry is “Telecommunications”, the Create contract action is configured to create a contract using a different template and workspace.

Keep Oneflow contracts updated when HubSpot deal details change (push updates)

Sales cycles are dynamic. Deal terms can change after a contract has already been created, especially during negotiation. Instead of manually updating the contract or creating a new one, you can use the Push updates to contract action to send the latest mapped HubSpot values to the existing Oneflow contract.

For example, a sales rep creates a contract from a HubSpot deal. Before the prospect signs, they request a change to the deal amount and close date. The sales rep updates those values in HubSpot, and a workflow pushes the updated values to the matching Oneflow contract.

Prerequisites

BEFORE YOU BEGIN

  • The Oneflow contract should already exist.
  • The workflow should have access to the contract ID. For example, use the contract ID from a previous Oneflow action, or manually enter the contract ID in the workflow action.
  • HubSpot properties should be mapped to Oneflow data fields in Two-way sync & mapping.
  • The mapped fields should allow updates from HubSpot to Oneflow.
  • The Oneflow contract should not be signed or declined.
  • If you want to sync HubSpot deal line items to product tables in Oneflow, product syncing and product table mappings should be configured correctly.

Trigger

  • Configure a deal-based workflow that triggers when key deal properties are updated.
  • For example, trigger the workflow when Amount, Close date, Deal stage, or another mapped deal property changes.

Actions

  • From the Oneflow panel, add the Push updates to contract action.
  • Select the Oneflow user who should perform the action.
  • Add the contract ID of the Oneflow contract you want to update.
  • When the workflow runs, HubSpot uses the enrolled deal record as the source of the updated values.
  • Oneflow then updates the matching mapped data fields in the selected contract.
  • If the contract is connected to a HubSpot deal with line items, the action can also update product table rows in Oneflow, provided the product mappings are valid.

Sync negotiated Oneflow contract updates back to HubSpot (fetch updates)

Oneflow contracts can be interactive. During the contract process, participants may update editable fields, such as quantities, billing details, or other negotiated terms. Use the Fetch updates from contract action to bring those updates back into HubSpot, so your CRM reflects the latest contract data.

For example, a prospect receives a Oneflow contract and changes the product quantity directly in the Oneflow contract. A HubSpot workflow can then fetch that updated quantity from Oneflow and update the associated HubSpot deal's line item property. This helps keep CRM reporting in HubSpot in sync with what was actually agreed in the contract.

Prerequisites

BEFORE YOU BEGIN

  • The Oneflow contract should already exist.
  • The workflow should have access to the contract ID. For example, use the contract ID from a previous Oneflow action, or manually enter the contract ID in the workflow action.
  • Oneflow data fields should be mapped to HubSpot properties in Two-way sync & mapping.
  • The mapped fields should allow updates from Oneflow to HubSpot.
  • If you want to sync product updates from Oneflow to HubSpot, the contract should be created from a HubSpot deal with line items.

Trigger

  • Configure a workflow trigger based on your preferred sync point.
  • For example, run the workflow on a schedule, after a deal reaches a specific stage, or when your team marks a contract as ready to sync.

Actions

  • From the Oneflow panel, add the Fetch updates from contract action.
  • Select the Oneflow user who should perform the action.
  • Add the contract ID of the Oneflow contract you want to fetch updates from.
  • When the workflow runs, Oneflow uses the contract ID to retrieve the latest supported updates from the contract.
  • HubSpot then updates the mapped properties on the enrolled HubSpot record.
  • If the contract is connected to a HubSpot deal with line items, the action can also update supported deal line item values in HubSpot.

NOTE

The workflow trigger determines which HubSpot records are enrolled in the workflow. The contract ID determines which Oneflow contract the action fetches updates from. Make sure the enrolled HubSpot record and the selected Oneflow contract are the intended pair before turning on the workflow.

App objects: Workflow uses cases

Oneflow Document and Oneflow Participant records can turn your contract activity into structured HubSpot data. 

You can use this data to update CRM records, notify teams, plan renewals, and report on contract progress.

This section provides practical examples based on the properties and associations created by Oneflow.

Choose the record that starts the workflow

Use the record whose properties describe the event you want to act on.

Start from Use it for Useful properties
Oneflow Document Contract progress, Deal updates, signing deadlines, renewals, and mapped business data State, State updated time, Published time, Signing period expiry time, lifecycle properties, Document value, and mapped data fields
Oneflow Participant Signing decisions, delivery issues, and participant-level follow-up Sign state, Delivery status, Delivery channel, Role, and participant details

IMPORTANT

Oneflow Participant records are associated with their Oneflow Document, not with HubSpot Contacts. Do not build a Contact-based workflow that assumes a direct Participant association.

Update a Deal when its contract is signed

This workflow keeps the Deal stage aligned with the contract without requiring a sales representative to update it manually.

This example applies when the contract was created from a HubSpot Deal and the Oneflow Document is associated with that Deal.

  1. In HubSpot, go to Automation > Workflows.
  2. Select Create workflow > From scratch.
  3. Select Met filter criteria.
  4. Choose Oneflow Document as the record type.
  5. Set the enrollment trigger to State is equal to signed. Select Next, then save the trigger.

    Add the following trigger:

    • Property: State
    • Rule: is equal to any of
    • Value: signed

    NOTE

    State is a text property populated from Oneflow. Use the exact value displayed on an existing Oneflow Document record when you configure the trigger.

  6. Add the Edit record action.

    1. Select the + below the trigger.
    2. Search for and select Edit record.
  7. Select the associated Deal as the record to edit, then set Deal stage to your signed or closed-won stage.

    1. Configure the action as follows:
    • Target object: Deal
    • Association to object: the available Deal association
    • Property to edit: Deal stage
    • Change type: Replace
    • Choose a value: Closed won
  8. Add an internal notification for the Deal owner or onboarding team, if needed.
  9. Review the workflow, test it with a sample Oneflow Document, then publish it.

You can create a similar workflow for declined contracts. Set State to declined, then notify the Deal owner or move the associated Deal to the appropriate stage.

Create a renewal reminder

Use the Oneflow Document lifecycle dates to surface contracts before they reach the end of their term.

  1. Create a Oneflow Document workflow.
  2. Trigger: Set the enrollment criteria so Lifecycle contract end time is after today and within your renewal window, such as the next 90 days.

    You can add other criteria required by your process, such as Lifecycle state.

  3. Action: Under Communications, choose a notification type, such as email or an in-app notification, and configure it. 

  4. In the action configuration fields, include the Oneflow contract properties you need, such as the contract name, end time, document value, and Document link

  5. Test the date criteria with a sample record, then publish the workflow.

If the Oneflow Document is associated with a Deal, you can also edit that Deal or create the next CRM step required by your renewal process.

NOTE

Document value and Currency are captured when the Oneflow Document record is created. They do not update after later value changes in Oneflow.

Other workflow ideas

Goal Start from Example trigger Example action
Follow up on a pending contract Oneflow Document State is pending and Published time is more than a chosen number of days ago Notify the Deal owner or create a follow-up task
Warn about an approaching signing deadline Oneflow Document Signing period expiry time is within a chosen number of days Notify the Deal owner
Start work from mapped contract data Oneflow Document A property in the Data Fields group meets your business rule Update an associated record or notify a team
Escalate a declined participant Oneflow Participant Sign state is declined Send an internal notification
Investigate a delivery issue Oneflow Participant Delivery status matches the failed-delivery value used in your account Notify the contract owner or operations team

The available workflow actions depend on your HubSpot subscription. When an action targets another record, that record must be associated with the enrolled Oneflow record.

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request