View as Markdown
iContact icon

iContact ACTION

Create and Dispatch Message

Creates and dispatches a new message using custom HTML. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's iContact account once, then configure and run Create and Dispatch Message 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: "icontact-create-message",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    icontact: { authProvisionId: "apn_xxxxxxx" },
    campaignId: "Campaign ID",
    messageType: "Message Type",
  },
})

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 and Dispatch Message inputs
Property Type Description
campaignId Campaign ID string
The sender property from which the message will pull its sending information.
Required Dynamic
messageType Message Type string
The kind of message being added.
Required
subject Subject string
The subject line of the email.
Required
htmlBody HTML Body string
Contains the HTML version of the email message body.
Optional
textBody Text Body string
Contains the text version of the email message body.
Optional
messageName Message Name string
The reference name of the message. This is used for organizational purposes and will not be seen by your contacts.
Optional
previewText Preview Text string
Indicates the preview text that some email systems display before opening the email.
Optional
replyToCampaignId Reply To Campaign Id string
Indicates the sender property where you want reply emails to be sent to.
Optional Dynamic

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
icontact-create-message
Version
0.0.2
App
iContact
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes