---
agent:
  instructions: "Use this search API to find a ready-to-deploy Next Gen Zap for what the user wants to automate, with keywords or a natural-language description, instead of reading every zap. Results are returned in Markdown, each with the zap's SKILL.md install guide."
  endpoint: "https://zapier.sh/.well-known/search?q={query}"
  method: "GET"
  documentation: "https://zapier.sh/developers/"
---

# Lawmatics + Retently Integrations: Connect with Zapier MCP
> zapier.com/apps/lawmatics/integrations/retently
> Surface: zapier.com | Root map: zapier.com/llms.txt#integrations

Integrate Lawmatics and Retently 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).

## 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** (default for AI clients — self-contained for OAuth clients; no further docs needed):
  - Endpoint: `https://mcp.zapier.com/api/v1/connect` (Streamable HTTP only; SSE is not supported).
  - Auth: OAuth 2.0 + PKCE + Dynamic Client Registration. Do not create a server at `mcp.zapier.com` or ask for an API token; Zapier auto-provisions the server during browser sign-in.
  - Client setup: Claude Code `claude mcp add --transport http zapier https://mcp.zapier.com/api/v1/connect`; Cursor `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; VS Code and other clients `mcp.json` `{ "type": "http", "url": "https://mcp.zapier.com/api/v1/connect" }`; OpenCode `opencode.json` `{ "type": "remote", "url": "https://mcp.zapier.com/api/v1/connect" }`; Terminal auto-installer `npx @zapier/install-zapier`.
  - Setup guides: Claude https://docs.zapier.com/mcp/get-started/connect/claude.md; Claude Code https://docs.zapier.com/mcp/get-started/connect/claude-code.md; ChatGPT https://docs.zapier.com/mcp/get-started/connect/chatgpt.md; Cursor https://docs.zapier.com/mcp/get-started/connect/cursor.md; Codex https://docs.zapier.com/mcp/get-started/connect/codex.md.
  - After sign-in: call `discover_zapier_actions` for `lawmatics` and `retently`, then `enable_zapier_action`. If Lawmatics or Retently isn't connected in Zapier yet, running an action returns a browser OAuth link for the user.
- **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**: once Apply Tag to Response is enabled, call `retently_apply_tag_to_response`. Each operation below lists its MCP tool name.
- **SDK**:

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

const zapier = createZapierSdk();
const { data: connection } = await zapier.findFirstConnection({ app: "retently", owner: "me" });

const { data } = await zapier.runAction({
  app: "retently",
  actionType: "write",
  action: "apply_tag_to_response",
  connection: connection.id,
  inputs: {
    id: "", // Response ID
  },
});
```

- **CLI**:

```bash
npx zapier-sdk run-action retently write apply_tag_to_response \
  --inputs '{"id":""}'
```

## Lawmatics

### Identity
Lawmatics is an AI-powered legal CRM and marketing automation platform that converts leads into clients and scales law firm growth.

- App slug: lawmatics
- Operations published here: 21 (8 events, 8 functions, 5 queries)

### Authentication
Zapier connects to Lawmatics 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 lawmatics
```

### Capabilities

#### Events (8)

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

##### Matter Converted
Triggers when a PNC Matter is converted.

- Type: read · Key: `convertedProspects`
- Requires: nothing
- MCP tool: `lawmatics_matter_converted` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "convertedProspects" })`
- CLI: `npx zapier-sdk run-action lawmatics read convertedProspects`

##### Appointment Created
Triggers when an Appointment is created.

- Type: read · Key: `createdAppointments`
- Requires: nothing
- MCP tool: `lawmatics_appointment_created` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "createdAppointments" })`
- CLI: `npx zapier-sdk run-action lawmatics read createdAppointments`

##### Contact Created
Triggers when a Contact is created.

- Type: read · Key: `createdContacts`
- Requires: nothing
- MCP tool: `lawmatics_contact_created` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "createdContacts" })`
- CLI: `npx zapier-sdk run-action lawmatics read createdContacts`

##### Filled Out a Form
Triggers when a Custom Form Entry is submitted.

- Type: read · Key: `customFormEntries`
- Requires: share_uuid
- MCP tool: `lawmatics_filled_out_a_form` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "customFormEntries" })`
- CLI: `npx zapier-sdk run-action lawmatics read customFormEntries`

##### Custom Form Added
Triggers when a Custom Form is added.

- Type: read · Key: `customForms`
- Requires: nothing
- MCP tool: `lawmatics_custom_form_added` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "customForms" })`
- CLI: `npx zapier-sdk run-action lawmatics read customForms`

##### New Note Created
Triggers when a new Note is created.

- Type: read · Key: `notes`
- Requires: nothing
- MCP tool: `lawmatics_new_note_created` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "notes" })`
- CLI: `npx zapier-sdk run-action lawmatics read notes`

##### Matter Added
Triggers when a Matter is created.

- Type: read · Key: `prospects`
- Requires: nothing
- MCP tool: `lawmatics_matter_added` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "prospects" })`
- CLI: `npx zapier-sdk run-action lawmatics read prospects`

##### Matter Updated
Triggers when a Matter is updated.

- Type: read · Key: `updatedProspects`
- Requires: nothing
- MCP tool: `lawmatics_matter_updated` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "read", action: "updatedProspects" })`
- CLI: `npx zapier-sdk run-action lawmatics read updatedProspects`

#### Functions (8)

Functions change something in Lawmatics.

##### Create Appointment
Create a new Appointment.

- Type: write · Key: `createAppointment`
- Requires: name, all_day, start_date, end_date, eventable_type, eventable_id, description
- Optional: reminder_delay_length, reminder_type
- MCP tool: `lawmatics_create_appointment` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "createAppointment" })`
- CLI: `npx zapier-sdk run-action lawmatics write createAppointment`

##### Create Company
Create a new Company from values.

- Type: write · Key: `createCompany`
- Requires: name
- Optional: email, phone, street, street2, city, state, country, zipcode, primary_contact_id
- MCP tool: `lawmatics_create_company` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "createCompany" })`
- CLI: `npx zapier-sdk run-action lawmatics write createCompany`

##### Create Contact
Create a new Contact from values.

- Type: write · Key: `createContact`
- Requires: first_name
- Optional: last_name, email, phone, title, street, street2, city, state, zipcode, middle_name, citizenship, driver_license, name_prefix, name_sufix, informal_name, marital_status, hobbies, bio, birthdate, social_security, note
- MCP tool: `lawmatics_create_contact` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "createContact" })`
- CLI: `npx zapier-sdk run-action lawmatics write createContact`

##### Submit Custom Form Entry
Fill out a Custom Form with values.

- Type: write · Key: `createCustomFormEntry`
- Requires: share_uuid
- MCP tool: `lawmatics_submit_custom_form_entry` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "createCustomFormEntry" })`
- CLI: `npx zapier-sdk run-action lawmatics write createCustomFormEntry`

##### Create Matter
Create a new Matter from values.

- Type: write · Key: `createProspect`
- Requires: first_name
- Optional: last_name, company_name, email, phone, title, case_blurb, case_title, street, street2, city, state, zipcode, middle_name, citizenship, driver_license, name_prefix, name_sufix, informal_name, marital_status, hobbies, bio, birthdate, social_security, actual_value_cents, estimated_value_cents, lead_cost_cents
- MCP tool: `lawmatics_create_matter` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "createProspect" })`
- CLI: `npx zapier-sdk run-action lawmatics write createProspect`

##### Update Company
Update an existing Company with values.

- Type: write · Key: `updateCompany`
- Requires: id, name
- Optional: email, phone, street, street2, city, state, country, zipcode, primary_contact_id, note
- MCP tool: `lawmatics_update_company` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "updateCompany" })`
- CLI: `npx zapier-sdk run-action lawmatics write updateCompany`

##### Update Contact
Update an existing Contact with values.

- Type: write · Key: `updateContact`
- Requires: id, first_name
- Optional: last_name, email, phone, title, street, street2, city, state, zipcode, middle_name, citizenship, driver_license, name_prefix, name_sufix, informal_name, marital_status, hobbies, bio, birthdate, social_security, note, tags
- MCP tool: `lawmatics_update_contact` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "updateContact" })`
- CLI: `npx zapier-sdk run-action lawmatics write updateContact`

##### Update Matter
Update an existing Matter with values.

- Type: write · Key: `updateProspect`
- Requires: id, first_name
- Optional: last_name, email, phone, title, case_blurb, case_title, street, street2, city, state, zipcode, middle_name, citizenship, driver_license, name_prefix, name_sufix, informal_name, marital_status, hobbies, bio, birthdate, social_security, actual_value_cents, estimated_value_cents, lead_cost_cents, note
- MCP tool: `lawmatics_update_matter` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "write", action: "updateProspect" })`
- CLI: `npx zapier-sdk run-action lawmatics write updateProspect`

#### Queries (5)

Queries read from Lawmatics and return data. They change nothing.

##### Find Company
Find Company by email, name or phone

- Type: search · Key: `find_company`
- Requires: searchType, value
- MCP tool: `lawmatics_find_company` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "search", action: "find_company" })`
- CLI: `npx zapier-sdk run-action lawmatics search find_company`

##### Find Contact
Find Contact by email, name or phone

- Type: search · Key: `find_contact`
- Requires: searchType, value
- MCP tool: `lawmatics_find_contact` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "search", action: "find_contact" })`
- CLI: `npx zapier-sdk run-action lawmatics search find_contact`

##### Find Matter
Find Matter by email, name or phone

- Type: search · Key: `find_matter`
- Requires: searchType, value
- MCP tool: `lawmatics_find_matter` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "search", action: "find_matter" })`
- CLI: `npx zapier-sdk run-action lawmatics search find_matter`

##### Get Matter
Find a Matter by ID.

- Type: search · Key: `prospect`
- Requires: id
- MCP tool: `lawmatics_get_matter` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "search", action: "prospect" })`
- CLI: `npx zapier-sdk run-action lawmatics search prospect`

##### Get User
Find User by ID.

- Type: search · Key: `user`
- Requires: id
- MCP tool: `lawmatics_get_user` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "lawmatics", actionType: "search", action: "user" })`
- CLI: `npx zapier-sdk run-action lawmatics search user`

## Retently

### Identity
Retently helps you measure customer satisfaction via NPS, CSAT, and CES surveys. Collect, analyze, and act on valuable customer feedback.

- App slug: retently
- Operations published here: 14 (5 events, 6 functions, 2 queries, 1 search-or-write action)

### Authentication
Zapier connects to Retently 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.130.2 and @zapier/zapier-sdk-cli v0.93.2; 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 retently
```

### Capabilities

#### Events (5)

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

##### New Survey Response
Triggers when a new survey response is received.

- Type: read · Key: `response`
- Requires: nothing
- MCP tool: `retently_new_survey_response` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "read", action: "response" })`
- CLI: `npx zapier-sdk run-action retently read response`

##### Campaign Score Updated
Triggers when the survey campaign’s score (NPS, CSAT, CES) is updated.

- Type: read · Key: `score_by_campaign`
- Requires: campaign_id
- MCP tool: `retently_campaign_score_updated` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "read", action: "score_by_campaign" })`
- CLI: `npx zapier-sdk run-action retently read score_by_campaign`

##### Company Score Updated
Triggers when a company’s score (NPS, CSAT, CES) is updated.

- Type: read · Key: `score_by_company`
- Requires: nothing
- MCP tool: `retently_company_score_updated` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "read", action: "score_by_company" })`
- CLI: `npx zapier-sdk run-action retently read score_by_company`

##### Overall Metric Score Updated
Triggers when the score is updated for a particular metric (NPS, CSAT, CES).

- Type: read · Key: `score_by_metric`
- Requires: metric_type
- MCP tool: `retently_overall_metric_score_updated` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "read", action: "score_by_metric" })`
- CLI: `npx zapier-sdk run-action retently read score_by_metric`

##### Customer Unsubscribed
Triggers when a customer opts out of surveys.

- Type: read · Key: `unsubscribed`
- Requires: nothing
- MCP tool: `retently_customer_unsubscribed` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "read", action: "unsubscribed" })`
- CLI: `npx zapier-sdk run-action retently read unsubscribed`

#### Functions (6)

Functions change something in Retently.

##### Apply Tag to Response
Adds a tag to a survey response.

- Type: write · Key: `apply_tag_to_response`
- Requires: id
- Optional: tags
- MCP tool: `retently_apply_tag_to_response` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "write", action: "apply_tag_to_response" })`
- CLI: `npx zapier-sdk run-action retently write apply_tag_to_response`

##### Apply Topic to Response
Adds a topic to a survey response.

- Type: write · Key: `apply_topic_to_response`
- Requires: id
- Optional: topics, sentiment
- MCP tool: `retently_apply_topic_to_response` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "write", action: "apply_topic_to_response" })`
- CLI: `npx zapier-sdk run-action retently write apply_topic_to_response`

##### Create or Update Customer
Creates a new customer or updates an existing one.

- Type: write · Key: `customer`
- Requires: email
- MCP tool: `retently_create_or_update_customer` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "write", action: "customer" })`
- CLI: `npx zapier-sdk run-action retently write customer`

##### Schedule a Web In-App Survey
Create a new contact or update an existing one, and schedule a web in-app survey.

- Type: write · Key: `schedule_inapp_survey`
- Requires: campaign_lookup, email
- MCP tool: `retently_schedule_a_web_in-app_survey` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "write", action: "schedule_inapp_survey" })`
- CLI: `npx zapier-sdk run-action retently write schedule_inapp_survey`

##### Send an Email Survey
Create a new contact or update an existing one, and send and trigger an email survey.

- Type: write · Key: `survey`
- Requires: campaign_lookup, email
- MCP tool: `retently_send_an_email_survey` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "write", action: "survey" })`
- CLI: `npx zapier-sdk run-action retently write survey`

##### Unsubscribe Customer
Unsubscribes a customer.

- Type: write · Key: `unsubscribe`
- Requires: email
- MCP tool: `retently_unsubscribe_customer` (before it's enabled, `execute_zapier_write_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "write", action: "unsubscribe" })`
- CLI: `npx zapier-sdk run-action retently write unsubscribe`

#### Queries (2)

Queries read from Retently and return data. They change nothing.

##### Find Customer by Email
Find a customer in Retently by email address.

- Type: search · Key: `customer`
- Requires: email
- MCP tool: `retently_find_customer_by_email` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "search", action: "customer" })`
- CLI: `npx zapier-sdk run-action retently search customer`

##### Find Company
Find a company by domain, name, or ID.

- Type: search · Key: `find_company`
- Requires: field, term
- MCP tool: `retently_find_company` (before it's enabled, `execute_zapier_read_action` runs it)
- SDK: `runAction({ app: "retently", actionType: "search", action: "find_company" })`
- CLI: `npx zapier-sdk run-action retently search find_company`

#### Search or Write Actions (1)

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

##### Find Customer
Find Customer

- Type: search_or_write · Key: `customer`
- Requires: email
- SDK: `runAction({ app: "retently", actionType: "search_or_write", action: "customer" })`
- CLI: `npx zapier-sdk run-action retently search_or_write customer`

## Frequently asked questions about automating with Lawmatics and Retently

### 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
- Lawmatics integrations: zapier.com/apps/lawmatics/integrations.md
- Retently integrations: zapier.com/apps/retently/integrations.md
- Full page: zapier.com/apps/lawmatics/integrations/retently
- MCP quickstart (non-OAuth / connection-token clients): docs.zapier.com/mcp/get-started/quickstart.md
- SDK: npmjs.com/package/@zapier/zapier-sdk