Attio ACTION
Create Person
Create a new person record in Attio. Use when adding a contact. Set any of the person fields (name, email, job title, phone, socials) and optionally link a company by its record id. Example: First Name
Ada, Last Name Lovelace, Email ada@example.com, Job Title Analyst. Returns the created person record with its id. See the documentation.- Action
- Writes data
- OAuth
- SDK
- MCP
IMPLEMENTATION
Call this tool
Connect a user's Attio 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: "attio-create-person",
externalUserId: "{external_user_id}", // any stable ID for this user in your system
configuredProps: {
attio: { authProvisionId: "apn_xxxxxxx" },
firstName: "First Name",
lastName: "Last Name",
},
})
console.log(result)curl -X POST https://api.pipedream.com/v1/connect/{project_id}/actions/run \
-H "Content-Type: application/json" \
-H "X-PD-Environment: production" \
-H "Authorization: Bearer {access_token}" \
-d '{
"external_user_id": "{external_user_id}",
"id": "attio-create-person",
"configured_props": {
"attio": { "authProvisionId": "apn_xxxxxxx" },
"firstName": "First Name",
"lastName": "Last Name"
}
}'// accessToken: mint a short-lived token with the Connect SDK — see the MCP guide
const transport = new StreamableHTTPClientTransport(
new URL("https://remote.mcp.pipedream.net/v3"),
{
requestInit: {
headers: {
Authorization: `Bearer ${accessToken}`,
"x-pd-project-id": "{project_id}",
"x-pd-environment": "production",
"x-pd-external-user-id": "{external_user_id}", // any stable ID for this user in your system
"x-pd-app-slug": "attio",
},
},
},
)
const mcp = new Client({ name: "my-agent", version: "1.0.0" })
await mcp.connect(transport)
const { tools } = await mcp.listTools()
// listTools() hands your model this tool's input schema, so it can
// fill the arguments itself:
const result = await mcp.callTool({
name: "attio-create-person",
arguments: {
firstName: "First Name",
lastName: "Last Name",
},
})SCHEMA
Inputs
Pipedream supplies the connected account. Your application provides the operation-specific values below. Dynamic inputs are resolved against that user's account.
| Property | Type | Description |
|---|---|---|
firstName First Name | string | The person's first name. Optional |
lastName Last Name | string | The person's last name. Optional |
emailAddress Email | string | The contact's email address. Optional |
description Description | string | A description of the person. Optional |
jobTitle Job Title | string | The person's job title. Optional |
phoneNumber Phone Number | string | The person's phone number which is either a) prefixed with a country code (e.g. +44....) or b) a local number, where Phone Number - Country Code is specified in addition. Optional |
phoneNumberCountryCode Phone Number - Country Code | string | The country code for the phone number. Optional |
linkedin LinkedIn | string | The person's LinkedIn profile URL. Optional |
twitter Twitter | string | The person's Twitter handle. Optional |
facebook Facebook | string | The person's Facebook profile URL. Optional |
instagram Instagram | string | The person's Instagram profile URL. Optional |
companyId Company ID | string | The ID of the company to associate with the person. Use the List Records action (object companies) to look up company record IDs. 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
- attio-create-person
- Version
- 0.0.6
- App
- Attio
- Authentication
- OAuth
- Read-only
- No
- Destructive
- No
- Open world
- Yes
- Source
- View on GitHub ↗