View as Markdown
ActiveCampaign icon

ActiveCampaign ACTION

Create Deal

Creates a new deal. See the docs here.
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's ActiveCampaign account once, then configure and run Create Deal 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: "activecampaign-create-deal",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    activecampaign: { authProvisionId: "apn_xxxxxxx" },
    title: "Title",
    value: 10,
  },
})

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.

Create Deal inputs
Property Type Description
title Title string
Deal's title.
Required
value Value integer
Deal's value in cents. (i.e. $456.78 => 45678). Must be greater than or equal to zero.
Required
currency Currency string
Deal's currency in 3-digit ISO format, lowercased.
Required
group Group string
Deal's pipeline id. Required if deal.stage is not provided. If deal.group is not provided, the stage's pipeline will be assigned to the deal automatically.
Optional
stage Stage string
Deal's stage id. Required if deal.group is not provided. If deal.stage is not provided, the deal will be assigned with the first stage in the pipeline provided in deal.group.
Optional
owner Owner string
Deal's owner id. Required if pipeline's auto-assign option is disabled.
Required
description Description string
Deal's description.
Optional
account Account string
Deal's account id.
Optional
contact Contact string
Deal's primary contact's id.
Optional
percent Percent integer
Deal's percentage.
Optional
status Status integer

Deal's status. Valid values:

  • 0 - Open
  • 1 - Won
  • 2 - Lost
Optional
fields Fields string[]
Deal's custom field values [{customFieldId, fieldValue}]
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
activecampaign-create-deal
Version
0.2.3
App
ActiveCampaign
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes