View as Markdown
Gist icon

Gist ACTION

Create Or Update Contact

Create or update a contact in Gist See docs
  • Action
  • Writes data
  • Destructive
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Gist account once, then configure and run Create Or Update Contact 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: "gist-create-or-update-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    gist: { authProvisionId: "apn_xxxxxxx" },
    email: "Email",
    userId: "User 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.

Create Or Update Contact inputs
Property Type Description
email Email string
The contact's email address. Required on create. Required if no user_id is supplied on update.
Optional
userId User Id string
A unique string identifier for the user. It is required to create Contact of type User. Required on create. Required if no email is supplied.
Optional Dynamic
name Name string
The full name of the contact
Optional
phone Phone string
The contact number of the contact
Optional
signedUpAt Signed Up At string
The time the contact signed up
Optional
lastSeenIp Last Seen Ip string
The last IP address the contact visited your website from
Optional
lastSeenUserAgent Last Seen User Agent string
The last contact agent the contact was seen using
Optional
customProperties Custom Properties object
A JSON object containing the contact's custom properties. E.g. { "name": "John Doe" }
Optional
unsubscribedFromEmails Unsubscribed From Emails boolean
If the contact has unsubscribed from emails or not
Optional
tagId Tag string[]
The tag that will be added
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
gist-create-or-update-contact
Version
0.0.2
App
Gist
Authentication
OAuth
Read-only
No
Destructive
Yes
Open world
Yes