Create Contact

google_contacts.create_contact
ActionCRM & salesconnection required

Calls the People API POST /people:createContact.

Create a contact in Google Contacts (People API).

Connection

Required
Yes — the node will not save without one
Auth type
OAuth 2.0
Providers
Google Contacts
Secret shape
{"client_id", "client_secret", "refresh_token"}
Resolved by
config.connection_id, else node.connection_id

Configuration

11 fields, none required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.

FieldTypeRequiredDefaultConstraintsExample
given_name
First name. Supports {{ }}.
stringNo———
family_name
Stored on the contact in Google Contacts; blank leaves it unset.
stringNo———
middle_name
Stored on the contact in Google Contacts; blank leaves it unset.
stringNo———
email
Email address.
stringNo—email format—
phone
Phone number.
stringNo———
organization
Company; blank leaves it out of the call.
stringNo———
job_title
Stored on the contact in Google Contacts; blank leaves it unset.
stringNo———
notes
Free-text notes on the contact.
stringNo———
address
Postal address, written as one line.
stringNo———
website
A URL for the contact.
stringNo———
group_resource_name
Contact group to file them under, e.g. contactGroups/abc123 from google_contacts.list_contact_groups.
stringNo———
  • At least one of given_name, family_name, email, phone must be set.

Output

One shape.

result

FieldTypeExample
ok
boolean—
resource_name
Id of the created contact.
string—
etag
Needed by google_contacts.update_contact.
string—
display_name
string—
email
string—
phone
string—
contact
The contact as stored: resource_name, display_name, email (the primary one), etag (required to update the contact), given_name, middle_name, family_name, emails[{value, type, primary}], phone, phones[{value, type, primary}], organization, job_title, notes, addresses[{formatted, type, street, city, region, postal_code, country, country_code}], urls[{value, type, primary}], photo_url, group_resource_names, updated, sources[{type, id}], deleted.
object—
{
  "contact": {},
  "display_name": "",
  "email": "",
  "etag": "",
  "ok": false,
  "phone": "",
  "resource_name": ""
}

Notes

  • Google Contacts has no natural key, so creating the same person twice makes two contacts. Search first and branch, or file both under a group you can reconcile.

See Create Contact run in a workflow.

In a technical demo we add the Google Contacts connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.