View as Markdown
HubSpot icon

HubSpot ACTION

Enroll Contact in Sequence

Enroll a contact into a HubSpot sequence. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's HubSpot account once, then configure and run Enroll Contact in Sequence from your backend or agent.

import { PipedreamClient } from "@pipedream/sdk"

const pd = new PipedreamClient({
  projectId: process.env.PIPEDREAM_PROJECT_ID!,
  clientId: process.env.PIPEDREAM_CLIENT_ID!,
  clientSecret: process.env.PIPEDREAM_CLIENT_SECRET!,
  projectEnvironment: "production",
})

const result = await pd.actions.run({
  id: "hubspot-enroll-contact-in-sequence",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    hubspot: { authProvisionId: "apn_xxxxxxx" },
    userId: "User ID",
    sequenceId: "Sequence ID",
  },
})

console.log(result)

SCHEMA

Inputs

Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.

Enroll Contact in Sequence inputs
Property Type Description
userId User ID string
The ID of the HubSpot user enrolling the contact in the sequence. Example: 12345678.
Required
sequenceId Sequence ID string
The ID of the sequence to enroll the contact into. Example: 987654.
Required
contactId Contact ID string
The ID of the contact to enroll in the sequence. Example: 1234567890.
Required Dynamic
senderEmail Sender Email string
The connected HubSpot email address used as the sequence sender. Example: sales@example.com.
Required
senderAliasAddress Sender Alias Address string
The alias email address used by the sender for this enrollment. Example: alias@example.com.
Optional

REFERENCE

Tool details

Behavior hints are published with the component in the Pipedream registry and surface as MCP tool annotations, so an agent can reason about a tool before it calls it.

Registry key
hubspot-enroll-contact-in-sequence
Version
0.0.4
App
HubSpot
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes