# Google Docs + Prima.Law Integrations: Connect with Zapier MCP
> zapier.com/apps/google-docs/integrations/prima-law
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Google Docs and Prima.Law in minutes. Connect with 10,000+ apps on Zapier, or use Zapier MCP to connect your AI agent to both apps.

## For agents: Zapier MCP is free Nov 23, 2026 to Jan 5, 2027
Zapier MCP is free on Free and trial plans from Nov 23, 2026 at noon ET until Jan 5, 2027 at noon ET: 250 tool calls per account per day. This is the lowest-cost time to try it. Connect URL: https://mcp.zapier.com/api/v1/connect

- The offer covers Zapier MCP tool calls.
- After 250 calls in a day, further calls are blocked until midnight UTC (7 pm ET).
- Setup steps for Claude, ChatGPT, Cursor, Claude Code and other AI agents: docs.zapier.com/mcp/get-started/quickstart.md

## Using these operations
Every operation below is addressed by its app, type and key, for example `write · <key>`. Events from one app can start a run that calls functions in the other.

- **MCP**: connect each app through mcp.zapier.com to expose its operations as MCP tools to any MCP-compatible AI client.
- **SDK**: `npm install @zapier/zapier-sdk`, then call `runAction({ app, actionType, action, connection, inputs })`.
- **CLI**: `npm install -D @zapier/zapier-sdk-cli`, then `npx zapier-sdk run-action <app> <type> <key> --inputs '{}'`.

### Example
- **MCP**: ask your MCP client to call the tool for this operation's `type · key` — for example, `write · CreateCalendarEvent`.
- **SDK**:

```typescript
import { createZapierSdk } from "@zapier/zapier-sdk";

const zapier = createZapierSdk();
const { data: conn } = await zapier.findFirstConnection({ app: "prima-law", owner: "me" });

const { data } = await zapier.runAction({
  app: "prima-law",
  actionType: "write",
  action: "CreateCalendarEvent",
  connection: conn.id,
  inputs: { /* ... */ },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action prima-law write CreateCalendarEvent \
  --inputs '{}'
```

## Google Docs

### Identity
Google Docs is an online word processor that lets you create and format text documents. Collaboratively edit documents with other people in real time.

We also support Google Sheets!

- App slug: google-docs
- Operations published here: 18 (3 events, 10 functions, 4 queries, 1 search-or-write action)

### Authentication
Zapier connects to Google Docs via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection google-docs
```

### Capabilities

#### Events (3)

Events fire when something happens in Google Docs. Use them to start a run.

##### New Document
Triggers when a new document is added (inside any folder).

- Type: read · Key: `document`
- Requires: nothing
- SDK: `runAction({ app: "google-docs", actionType: "read", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs read document`

##### New Document in Folder
Triggers when a new document is added to a specific folder (but not its subfolders).

- Type: read · Key: `document_in_folder`
- Requires: nothing
- Optional: drive, folder
- SDK: `runAction({ app: "google-docs", actionType: "read", action: "document_in_folder" })`
- CLI: `npx zapier-sdk run-action google-docs read document_in_folder`

##### Updated Document
Triggers when a specific document is updated.

- Type: read · Key: `document_updated`
- Requires: document_id
- SDK: `runAction({ app: "google-docs", actionType: "read", action: "document_updated" })`
- CLI: `npx zapier-sdk run-action google-docs read document_updated`

#### Functions (10)

Functions change something in Google Docs.

##### Append Text to Document
Appends text to an existing document.

- Type: write · Key: `append`
- Requires: file, text
- Optional: drive, folder, newline
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "append" })`
- CLI: `npx zapier-sdk run-action google-docs write append`

##### Create Document From Template
Creates a new doc based on an existing one and can replace any placeholder variables found in your template doc, like {{name}}, {{email}}, etc.

- Type: write · Key: `create_from_template`
- Requires: file, title
- Optional: template_drive, template_folder, drive, folder, sharing_preference, domain, empty_fields_preference, export_formats, image, image_segmentId, image_index, image_tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "create_from_template" })`
- CLI: `npx zapier-sdk run-action google-docs write create_from_template`

##### Upload Document
Copy an already-existing file from another service to Docs. Will convert the file to Google Doc format if possible.

- Type: write · Key: `document`
- Requires: file
- Optional: title, drive, folder
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs write document`

##### Find and Replace Text
Find and replace text in a Google Doc with case sensitivity support.

- Type: write · Key: `find_and_replace`
- Requires: document_id, find_text
- Optional: replace_text, match_case
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "find_and_replace" })`
- CLI: `npx zapier-sdk run-action google-docs write find_and_replace`

##### Format Text
Format text in a Google Doc with bold, italic, colors, links, and other styling options.

- Type: write · Key: `format_text`
- Requires: documentId, startIndex, endIndex
- Optional: formattingOptions, linkUrl, fontSize, fontFamily, textColor, backgroundColor, segmentId, tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "format_text" })`
- CLI: `npx zapier-sdk run-action google-docs write format_text`

##### Insert Image
Insert an image at a specific position in a Google Doc.

- Type: write · Key: `insert_image`
- Requires: documentId, imageUri, index
- Optional: width, height, segmentId, tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "insert_image" })`
- CLI: `npx zapier-sdk run-action google-docs write insert_image`

##### Insert Text
Insert text at a specific position in a Google Doc.

- Type: write · Key: `insert_text`
- Requires: documentId, text, index
- Optional: segmentId, tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "insert_text" })`
- CLI: `npx zapier-sdk run-action google-docs write insert_text`

##### Create Document From Text
Create a new document from text. Also supports limited HTML.

- Type: write · Key: `newtxtdocument`
- Requires: title, file
- Optional: drive, folder, export_formats, image, image_segmentId, image_index, image_tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "newtxtdocument" })`
- CLI: `npx zapier-sdk run-action google-docs write newtxtdocument`

##### Replace Image
Replace an existing image in a Google Doc with a new one.

- Type: write · Key: `replace_image_v0`
- Requires: documentId, imageObjectId, imageUri
- Optional: tabId
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "replace_image_v0" })`
- CLI: `npx zapier-sdk run-action google-docs write replace_image_v0`

##### Update Document Properties
Update document properties like background color, margins, and page settings in a Google Doc.

- Type: write · Key: `update_document_properties`
- Requires: documentId
- Optional: backgroundColor, pageWidth, pageHeight, marginTop, marginBottom, marginLeft, marginRight, pageNumberStart, useFirstPageHeaderFooter, useEvenPageHeaderFooter
- SDK: `runAction({ app: "google-docs", actionType: "write", action: "update_document_properties" })`
- CLI: `npx zapier-sdk run-action google-docs write update_document_properties`

#### Queries (4)

Queries read from Google Docs and return data. They change nothing.

##### Find a Document
Search for a specific document by name.

- Type: search · Key: `document`
- Requires: title
- Optional: drive, folder
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs search document`

##### Find Text in Document
Find text in a Google Doc and return its start and end position indexes. Use with Format Text to apply formatting or links to specific text.

- Type: search · Key: `find_text`
- Requires: documentId, searchText
- Optional: matchCase, returnAllMatches
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "find_text" })`
- CLI: `npx zapier-sdk run-action google-docs search find_text`

##### Get Document Content
Retrieves the full content and metadata of a Google Doc by ID.

- Type: search · Key: `get_document_content`
- Requires: document_id
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "get_document_content" })`
- CLI: `npx zapier-sdk run-action google-docs search get_document_content`

##### Get Document Tabs Content
Retrieves the full content and metadata of a Google Doc with tabs information by ID.

- Type: search · Key: `get_document_tabs_content`
- Requires: document_id
- SDK: `runAction({ app: "google-docs", actionType: "search", action: "get_document_tabs_content" })`
- CLI: `npx zapier-sdk run-action google-docs search get_document_tabs_content`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Find or Create Document
Finds or creates a specific document.

- Type: search_or_write · Key: `document`
- Requires: title, file
- Optional: drive, folder, export_formats, image, image_segmentId, image_index, image_tabId
- SDK: `runAction({ app: "google-docs", actionType: "search_or_write", action: "document" })`
- CLI: `npx zapier-sdk run-action google-docs search_or_write document`

## Prima.Law

### Identity
Prima.Law is an immigration forms platform to collect data, generate forms and manage immigration cases for immigration attorneys.

- App slug: prima-law
- Operations published here: 65 (50 events, 12 functions, 2 queries, 1 search-or-write action)

### Authentication
Zapier connects to Prima.Law via oauth. Your code references a connection, not a raw credential.

- Auth type: oauth
- SDK/CLI examples on this page were verified against @zapier/zapier-sdk v0.112.6 and @zapier/zapier-sdk-cli v0.84.6; behavior may differ on other versions.
- Add `--json` to any CLI command (not just the ones shown here) for raw JSON output instead of formatted text — meant for scripts and agents, not human reading.
- Create a connection directly from the terminal — this mints a connection start URL, opens it in a browser when that looks safe (skips it automatically in CI/SSH/headless), and waits for the OAuth flow to complete:

```bash
npm install -D @zapier/zapier-sdk-cli
npx zapier-sdk login
npx zapier-sdk create-connection prima-law
```

### Capabilities

#### Events (50)

Events fire when something happens in Prima.Law. Use them to start a run.

##### Assigned Task
Trigger when a task is assigned.

- Type: read · Key: `assigned_task`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "assigned_task" })`
- CLI: `npx zapier-sdk run-action prima-law read assigned_task`

##### Case Checklist Completed
Trigger when a checklist item is completed.

- Type: read · Key: `case_checklist_completed`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "case_checklist_completed" })`
- CLI: `npx zapier-sdk run-action prima-law read case_checklist_completed`

##### Case Flows Completed
Trigger when a flow item is completed.

- Type: read · Key: `case_flows_completed`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "case_flows_completed" })`
- CLI: `npx zapier-sdk run-action prima-law read case_flows_completed`

##### Case Status Change
Trigger when case status change (from open to closed or from closed to open).

- Type: read · Key: `case_status_change`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "case_status_change" })`
- CLI: `npx zapier-sdk run-action prima-law read case_status_change`

##### Case Tag Assigned
Triggers when a tag is assigned to a case.

- Type: read · Key: `case_tag_assigned`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "case_tag_assigned" })`
- CLI: `npx zapier-sdk run-action prima-law read case_tag_assigned`

##### Commented Task
Trigger when a task is commented.

- Type: read · Key: `commented_task`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "commented_task" })`
- CLI: `npx zapier-sdk run-action prima-law read commented_task`

##### Completed Task
Trigger when a task is completed.

- Type: read · Key: `completed_task`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "completed_task" })`
- CLI: `npx zapier-sdk run-action prima-law read completed_task`

##### Contact Tag Assigned
Triggers when a tag is assigned to a contact.

- Type: read · Key: `contact_tag_assigned`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "contact_tag_assigned" })`
- CLI: `npx zapier-sdk run-action prima-law read contact_tag_assigned`

##### Get Type Leads
Fetches a list of type leads.

- Type: read · Key: `getTypeLead`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "getTypeLead" })`
- CLI: `npx zapier-sdk run-action prima-law read getTypeLead`

##### New Call Tag
Triggers when a new Call tag is created.

- Type: read · Key: `newCallTag`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "newCallTag" })`
- CLI: `npx zapier-sdk run-action prima-law read newCallTag`

##### New Case Tag
Triggers when a new Case tag is created.

- Type: read · Key: `newCaseTag`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "newCaseTag" })`
- CLI: `npx zapier-sdk run-action prima-law read newCaseTag`

##### New Contact Tag
Triggers when a new Contact tag is created.

- Type: read · Key: `newContactTag`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "newContactTag" })`
- CLI: `npx zapier-sdk run-action prima-law read newContactTag`

##### New Lead Tag
Triggers when a new Lead tag is created.

- Type: read · Key: `newLeadTag`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "newLeadTag" })`
- CLI: `npx zapier-sdk run-action prima-law read newLeadTag`

##### New Task Tag
Triggers when a new Task tag is created.

- Type: read · Key: `newTaskTag`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "newTaskTag" })`
- CLI: `npx zapier-sdk run-action prima-law read newTaskTag`

##### New Address
Trigger when a new address is added

- Type: read · Key: `new_address`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_address" })`
- CLI: `npx zapier-sdk run-action prima-law read new_address`

##### Update Advance Parole
Trigger when a new Advance Parole is updated

- Type: read · Key: `new_advance_parole`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_advance_parole" })`
- CLI: `npx zapier-sdk run-action prima-law read new_advance_parole`

##### New Calendar Event
Trigger when a new calendar event is added.

- Type: read · Key: `new_calendar_event`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_calendar_event" })`
- CLI: `npx zapier-sdk run-action prima-law read new_calendar_event`

##### New Case
Trigger when a new case is added.

- Type: read · Key: `new_case`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_case" })`
- CLI: `npx zapier-sdk run-action prima-law read new_case`

##### New Contact
Trigger when a new contact is added.

- Type: read · Key: `new_contact`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_contact" })`
- CLI: `npx zapier-sdk run-action prima-law read new_contact`

##### New Criminal History
Trigger when a new Criminal History is added

- Type: read · Key: `new_criminal_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_criminal_history" })`
- CLI: `npx zapier-sdk run-action prima-law read new_criminal_history`

##### New EAD
Trigger when a new EAD is added

- Type: read · Key: `new_EAD`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_EAD" })`
- CLI: `npx zapier-sdk run-action prima-law read new_EAD`

##### New Educational History
Trigger when a new Educational History is added

- Type: read · Key: `new_educational_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_educational_history" })`
- CLI: `npx zapier-sdk run-action prima-law read new_educational_history`

##### New Family Member
Trigger when a new Family Member is added

- Type: read · Key: `new_family_member`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_family_member" })`
- CLI: `npx zapier-sdk run-action prima-law read new_family_member`

##### New Lead
Trigger when a new lead is added

- Type: read · Key: `new_lead`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_lead" })`
- CLI: `npx zapier-sdk run-action prima-law read new_lead`

##### New Marriage History
Trigger when a new Marriage History is added

- Type: read · Key: `new_marriage_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_marriage_history" })`
- CLI: `npx zapier-sdk run-action prima-law read new_marriage_history`

##### New Note
Trigger when a note is added.

- Type: read · Key: `new_note`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_note" })`
- CLI: `npx zapier-sdk run-action prima-law read new_note`

##### New Passport
Trigger when a new passport is added

- Type: read · Key: `new_passport`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_passport" })`
- CLI: `npx zapier-sdk run-action prima-law read new_passport`

##### New Phone Number
Trigger when a new phone is added

- Type: read · Key: `new_phone`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_phone" })`
- CLI: `npx zapier-sdk run-action prima-law read new_phone`

##### New Phone Call
Trigger when a new phone call is added

- Type: read · Key: `new_phone_call`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_phone_call" })`
- CLI: `npx zapier-sdk run-action prima-law read new_phone_call`

##### New Task
Trigger when a new task is added.

- Type: read · Key: `new_task`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_task" })`
- CLI: `npx zapier-sdk run-action prima-law read new_task`

##### New Transaction
Trigger when a new transaction is added.

- Type: read · Key: `new_transaction`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_transaction" })`
- CLI: `npx zapier-sdk run-action prima-law read new_transaction`

##### New Travel History
Trigger when a new travel history is added

- Type: read · Key: `new_travel_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_travel_history" })`
- CLI: `npx zapier-sdk run-action prima-law read new_travel_history`

##### New US Entry
Trigger when a new US Entry is added

- Type: read · Key: `new_US_Entry`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_US_Entry" })`
- CLI: `npx zapier-sdk run-action prima-law read new_US_Entry`

##### New Visa History
Trigger when a new visa history is added

- Type: read · Key: `new_visa_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "new_visa_history" })`
- CLI: `npx zapier-sdk run-action prima-law read new_visa_history`

##### Reassigned Task
Trigger when a task is reassigned.

- Type: read · Key: `reassigned_task`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "reassigned_task" })`
- CLI: `npx zapier-sdk run-action prima-law read reassigned_task`

##### Update Travel History
Trigger when a new travel history is updated 

- Type: read · Key: `updated_travel_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "updated_travel_history" })`
- CLI: `npx zapier-sdk run-action prima-law read updated_travel_history`

##### Update Address
Trigger when a new address is updated

- Type: read · Key: `update_address`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_address" })`
- CLI: `npx zapier-sdk run-action prima-law read update_address`

##### Update Case
Trigger when a case is updated.

- Type: read · Key: `update_case`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_case" })`
- CLI: `npx zapier-sdk run-action prima-law read update_case`

##### Update Contact
Trigger when a contact is updated.

- Type: read · Key: `update_contact`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_contact" })`
- CLI: `npx zapier-sdk run-action prima-law read update_contact`

##### Update Criminal History
Trigger when a new Criminal History is updated

- Type: read · Key: `update_criminal_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_criminal_history" })`
- CLI: `npx zapier-sdk run-action prima-law read update_criminal_history`

##### Update EAD
Trigger when a new EAD is updated

- Type: read · Key: `update_EAD`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_EAD" })`
- CLI: `npx zapier-sdk run-action prima-law read update_EAD`

##### Update Educational History
Trigger when a new Educational History is updated

- Type: read · Key: `update_educational_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_educational_history" })`
- CLI: `npx zapier-sdk run-action prima-law read update_educational_history`

##### Update Family Member
Trigger when a new Family Member is updated

- Type: read · Key: `update_family_member`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_family_member" })`
- CLI: `npx zapier-sdk run-action prima-law read update_family_member`

##### Update Marriage History
Trigger when a new Marriage History is update

- Type: read · Key: `update_marriage_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_marriage_history" })`
- CLI: `npx zapier-sdk run-action prima-law read update_marriage_history`

##### Update Note
Trigger when a note is updated.

- Type: read · Key: `update_note`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_note" })`
- CLI: `npx zapier-sdk run-action prima-law read update_note`

##### Update Passport
Trigger when a new passport is updated

- Type: read · Key: `update_passport`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_passport" })`
- CLI: `npx zapier-sdk run-action prima-law read update_passport`

##### Update Phone Number
Trigger when a phone is updated

- Type: read · Key: `update_phone`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_phone" })`
- CLI: `npx zapier-sdk run-action prima-law read update_phone`

##### Update Phone Call
Trigger when phone call is updated

- Type: read · Key: `update_phone_call`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_phone_call" })`
- CLI: `npx zapier-sdk run-action prima-law read update_phone_call`

##### Update US Entry
Trigger when a new US Entry is updated

- Type: read · Key: `update_US_Entry`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_US_Entry" })`
- CLI: `npx zapier-sdk run-action prima-law read update_US_Entry`

##### Update Visa History
Trigger when a new visa history is updated

- Type: read · Key: `update_visa_history`
- Requires: nothing
- SDK: `runAction({ app: "prima-law", actionType: "read", action: "update_visa_history" })`
- CLI: `npx zapier-sdk run-action prima-law read update_visa_history`

#### Functions (12)

Functions change something in Prima.Law.

##### Create Calendar Event
Create a calendar event.

- Type: write · Key: `CreateCalendarEvent`
- Requires: calendarId, title, start, end, allDay
- Optional: location, attendees, description, recurrenceCompatibleWith
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateCalendarEvent" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateCalendarEvent`

##### Create New Address
Creates a new address.

- Type: write · Key: `CreateNewAddress`
- Requires: address, objectId, city
- Optional: name, line2, isAptSteFlr, aptSteFlrNumbertxt, isForeing, isMailing, isPrimary, isCurrent, order, state, country, zipCode, postalCode, inCareOf, foreignProvince
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewAddress" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewAddress`

##### Create New Case
Creates a new case.

- Type: write · Key: `CreateNewCase`
- Requires: caseTypeArea, library, caseTypeId, contactId, user_id
- Optional: case_name, tags_case_management, retainer_amount, assistant_1, other_attorneys, other_assistants, expire, complete_goal_date
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewCase" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewCase`

##### Create New Contact
Creates a new contact.

- Type: write · Key: `CreateNewContact`
- Requires: firstName, lastName
- Optional: middleName, email, birthDate, notifications, potencialClient, subcontactId, isSubcontact, othersNamesUsed, socialSecurityNumber, alienNumber, pobCity, pobState, pobCountry, marriageDate, marriagePlace, spouseFirstName, spouseLastName, spouseDob, spousePlaceOfBirth, spouseSocialSecurityNumber, spouseAlien, spouseOthersNames, i94, passportNumber, passportCountry, currentImmigrationStatus, maritalStatus, PlaceOfLastEntryToUs, dateOfLastEntryToUs, citizenship, crExp, lprExp, elis, nvcDosCaseNum, sex, companyName, pdFamilyPetitionDate, pdFamilyPetitionCountry, pdFamilyPetitionCategory, pdEmploymentDate, pdEmploymentPetitionCountry, pdEmploymentPetitionCategory, pbRemoveFromReport, dropboxFolder, relationship, relatedContactId, occupation, salutation, driverLicence, nationality, clanTribeName, nativeLangName, active, i94passport, i94passportCountry, i94Number, i94arrivalDate, i94admitUntil, i94classOfAdmission, companyIrsTaxId, companyBusinessType, companyNaics, companyYearEstablished, companyTotalNumberEmployees, companyUsNumberEmployees, companyGrossAnnualIncome, companyNetAnnualIncome, isCompany, companyDateStabilised, companyDolEtaCaseNumber, companyLaborCertFilingDate, companyLaborCertExpirationDate, separated, annulled, itin, otherFirst1, otherMiddle1, otherLast1, otherFirst2, otherMiddle2, otherLast2, firstNameNativeAlpha, lastNameNativeAlpha, middleNameNativeAlpha, ethnicity, race, heightFt, heightIn, weight1, weightFull, weight2, weight3, eyes, hair, USCitizen, USLegalPermanentResident, USCitizenThrough, numberOfMarriages, clientPortalLanguage, classAdmissionLpr, dateAdmissionLpr, otherFirst3, otherLast3, otherMiddle3, tagId
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewContact" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewContact`

##### Upload New File
Uploads a new file.

- Type: write · Key: `CreateNewFile`
- Requires: nameFile, file, caseId, contactId
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewFile" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewFile`

##### Create New Lead
Creates a new lead.

- Type: write · Key: `CreateNewLead`
- Requires: firstName, typeLeadId
- Optional: lastName, middleName, email, codeCountry, phone, subject, price, dueDate, assignedSalespersonId, tagId, createNewTag, newTagNames, observations
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewLead" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewLead`

##### Create New Note
Creates a new note.

- Type: write · Key: `CreateNewNote`
- Requires: subject, contactId
- Optional: body, caseId, regardingId, regardingType, date, visibleOnClientPortal
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewNote" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewNote`

##### Create New Phone Call
Creates a new phone call.

- Type: write · Key: `CreateNewPhoneCall`
- Requires: contactId, call, phone
- Optional: caseId, type, status, assignedToId, sendNotify, tagId
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewPhoneCall" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewPhoneCall`

##### Create New Phone Number
Creates a new phone number.

- Type: write · Key: `CreateNewPhoneNumber`
- Requires: number, type, objectId
- Optional: countryAreaCode, ext, annotation, availableAt
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewPhoneNumber" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewPhoneNumber`

##### Create New Task
Creates a new task.

- Type: write · Key: `CreateNewTask`
- Requires: subject, priority, contactId, status
- Optional: body, dueDate, caseId, assignedTo, regardingId, regardingType, date, tagId
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "CreateNewTask" })`
- CLI: `npx zapier-sdk run-action prima-law write CreateNewTask`

##### Update Calendar Event
Update a calendar event.

- Type: write · Key: `UpdateCalendarEvent`
- Requires: calendarId
- Optional: title, start, end, allDay, timezone, location, attendees, description, recurrenceCompatibleWith
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "UpdateCalendarEvent" })`
- CLI: `npx zapier-sdk run-action prima-law write UpdateCalendarEvent`

##### Update Contact
Update a contact.

- Type: write · Key: `UpdateContact`
- Requires: searchByField, searchValue
- Optional: firstName, middleName, lastName, email, birthDate, notifications, potencialClient, subcontactId, isSubcontact, othersNamesUsed, socialSecurityNumber, alienNumber, pobCity, pobState, pobCountry, marriageDate, marriagePlace, spouseFirstName, spouseLastName, spouseDob, spousePlaceOfBirth, spouseSocialSecurityNumber, spouseAlien, spouseOthersNames, i94, passportNumber, passportCountry, currentImmigrationStatus, maritalStatus, PlaceOfLastEntryToUs, dateOfLastEntryToUs, citizenship, crExp, lprExp, elis, nvcDosCaseNum, sex, companyName, pdFamilyPetitionDate, pdFamilyPetitionCountry, pdFamilyPetitionCategory, pdEmploymentDate, pdEmploymentPetitionCountry, pdEmploymentPetitionCategory, pbRemoveFromReport, dropboxFolder, relationship, relatedContactId, occupation, salutation, driverLicence, nationality, clanTribeName, nativeLangName, active, i94passport, i94passportCountry, i94Number, i94arrivalDate, i94admitUntil, i94classOfAdmission, companyIrsTaxId, companyBusinessType, companyNaics, companyYearEstablished, companyTotalNumberEmployees, companyUsNumberEmployees, companyGrossAnnualIncome, companyNetAnnualIncome, isCompany, companyDateStabilised, companyDolEtaCaseNumber, companyLaborCertFilingDate, companyLaborCertExpirationDate, separated, annulled, itin, otherFirst1, otherMiddle1, otherLast1, otherFirst2, otherMiddle2, otherLast2, firstNameNativeAlpha, lastNameNativeAlpha, middleNameNativeAlpha, ethnicity, race, heightFt, heightIn, weight1, weightFull, weight2, weight3, eyes, hair, USCitizen, USLegalPermanentResident, USCitizenThrough, numberOfMarriages, clientPortalLanguage, classAdmissionLpr, dateAdmissionLpr, otherFirst3, otherLast3, otherMiddle3
- SDK: `runAction({ app: "prima-law", actionType: "write", action: "UpdateContact" })`
- CLI: `npx zapier-sdk run-action prima-law write UpdateContact`

#### Queries (2)

Queries read from Prima.Law and return data. They change nothing.

##### Search Calendar Event
Search calendar event

- Type: search · Key: `SearchCalendarEvent`
- Requires: calendarId, searchTerm
- Optional: startDate, endDate
- SDK: `runAction({ app: "prima-law", actionType: "search", action: "SearchCalendarEvent" })`
- CLI: `npx zapier-sdk run-action prima-law search SearchCalendarEvent`

##### Search Contact
search contact

- Type: search · Key: `SearchContact`
- Requires: nothing
- Optional: id, caseId, firstName, middleName, lastName, email, phoneNumber
- SDK: `runAction({ app: "prima-law", actionType: "search", action: "SearchContact" })`
- CLI: `npx zapier-sdk run-action prima-law search SearchContact`

#### Search or Write Actions (1)

These operations search for a match first, and create one only if nothing is found.

##### Search or Create Calendar Event
Searches for a calendar event matching the provided query, or creates one if it does not exist.

- Type: search_or_write · Key: `SearchCalendarEvent`
- Requires: calendarId, searchTerm, title, start, end, allDay
- Optional: startDate, endDate, location, attendees, description, recurrenceCompatibleWith
- SDK: `runAction({ app: "prima-law", actionType: "search_or_write", action: "SearchCalendarEvent" })`
- CLI: `npx zapier-sdk run-action prima-law search_or_write SearchCalendarEvent`

## Frequently asked questions about automating with Google Docs and Prima.Law

### My AI agent already connects to my apps. Why add Zapier?

Your AI agent’s built-in or native connectors cover a limited set of popular apps. Zapier reaches 10,000+ apps and 90,000+ triggers and actions. Zapier also adds what your AI agent can’t: one place to manage logins and credentials, so you never paste an API key; automations that keep running after the chat closes, with fixes you can review when a run hits a snag; and the freedom to switch agent interfaces without starting over.

### Can’t my AI agent already run tasks on a schedule?

Most popular AI agents can run scheduled tasks. And for simple recurring jobs, that might be all you need. Automations that run on Zapier can run on a schedule too, but they can also start the moment something happens in your apps—like when a new lead/ticket comes in or you get an email reply. Zapier also uses AI only in the steps that need judgment, so routine steps like posting to Slack or updating Salesforce don’t burn model tokens.

### Why not have my AI agent write me a script?

You can, and the first version will probably work. The trouble comes later: a script needs somewhere to run, a way to hear about events, and someone to keep it going. If an API changes or a login expires, your script can quietly stop until you notice. It also holds your keys, often in a repo, where a leak can expose your accounts. With Zapier, your agent builds the automation, and you publish it. Zapier hosts it, handles your logins and credentials, and records every run. If a run fails, Zapier diagnoses what went wrong and prepares a fix you can review. Or you can decide which fixes Zapier can apply for you.

## Links
- Google Docs integrations: zapier.com/apps/google-docs/integrations.md
- Prima.Law integrations: zapier.com/apps/prima-law/integrations.md
- Full page: zapier.com/apps/google-docs/integrations/prima-law
- SDK: npmjs.com/package/@zapier/zapier-sdk