View as Markdown
NationBuilder icon

NationBuilder ACTION

Create Person

Create a new person with the provided data. See the documentation
  • Action
  • Writes data
  • OAuth
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's NationBuilder account once, then configure and run Create Person 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: "nationbuilder-create-person",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    nationbuilder: { authProvisionId: "apn_xxxxxxx" },
    firstName: "First Name",
    lastName: "Last Name",
  },
})

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 Person inputs
Property Type Description
firstName First Name string
The person's first name and middle names.
Optional
lastName Last Name string
The person's last name.
Optional
email Email string
Email address for this person.
Optional
phone Phone string
This person's home phone number.
Optional
sex Sex string
This person's gender.
Optional
signupType Signup Type string
The type of signup for this person.
Optional
employer Employer string
The name of the company for which this person works.
Optional
party Party string
A one-letter code representing provincial parties for nations.
Optional
registeredAddress1 Registered Address 1 string
First Address Line.
Optional
registeredAddress2 Registered Address 2 string
Second Address Line.
Optional
registeredAddress3 Registered Address 3 string
Third Address Line.
Optional
registeredAddressCity Registered Address City string
The city of the registered address.
Optional
registeredAddressState Registered Address State string
The state of the registered address.
Optional
registeredAddressZip Registered Address Zip string
The zip code of the registered address.
Optional
registeredAddressCountryCode Registered Address Country Code string
The country code of the registered address (using ISO-3166-1 alpha-2).
Optional
registeredAddressLat Registered Address Lat string
The latitude of the registered address (using WGS-84).
Optional
registeredAddressLng Registered Address Lng string
The longitude of the registered address (using WGS-84).
Optional
facebookUsername Facebook Username string
The person's Facebook username.
Optional
twitterLogin Twitter Login string
The person's Twitter login name.
Optional
tags Tags string[]
The tags assigned to this person.
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
nationbuilder-create-person
Version
0.0.2
App
NationBuilder
Authentication
OAuth
Read-only
No
Destructive
No
Open world
Yes