View as Markdown
Quo icon

Quo ACTION

Create Contact

Create a new contact in OpenPhone. Example: call with firstName="Jane", lastName="Doe", phoneNumbers=[{"name": "Mobile", "value": "+15551234567"}] → returns the created contact record, including its id. See the documentation
  • Action
  • Writes data
  • API key
  • SDK
  • MCP

IMPLEMENTATION

Call this tool

Connect a user's Quo account once, then configure and run Create 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: "openphone-create-contact",
  externalUserId: "{external_user_id}", // any stable ID for this user in your system
  configuredProps: {
    openphone: { 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 Contact inputs
Property Type Description
firstName First Name string
The contact's first name
Required
lastName Last Name string
The contact's last name
Optional
company Company string
The contact's company name
Optional
role Role string
The contact's role
Optional
emails Emails string[]
Array of objects of contact's emails. Example: {"name": "Company Email", "value": "abc@example.com"}
Optional
phoneNumbers Phone Numbers string[]
Array of objects of contact's phone numbers. Example: {"name": "Company Phone", "value": "+12345678901"}
Optional
customFields Custom Fields string[]
Array of objects of custom fields for the contact. Example: {"key": "inbound-lead", "value": ["option1", "option2"]}
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
openphone-create-contact
Version
0.0.6
App
Quo
Authentication
API key
Read-only
No
Destructive
No
Open world
Yes