# Builder Prime

> Send leads, projects and appointments into Builder Prime, the CRM for home improvement contractors: add leads, log calls and notes, create and update projects, and book, confirm, cancel or record the result of meetings.

App · 6 actions. Web page: https://docs.lodol.com/docs/integrations/builder-prime

## Actions

### Add lead

Add a lead to Builder Prime: a new client with an opportunity, with their contact details, address, lead source and status. Returns the new record's id.

**Inputs**

- First name (`first_name`, text): The lead's first name.
- Last name (`last_name`, text): The lead's last name.
- Email (`email`, text): The lead's email address.
- Mobile phone (`mobile_phone`, text): With the country code, like +18005554444. A 10 digit US number gets +1.
- Home phone (`home_phone`, text): With the country code, like +18005554444.
- Office phone (`office_phone`, text): With the country code, like +18005554444.
- Company (`company_name`, text): The lead's company, for a business client.
- Job title (`title`, text): The lead's job title.
- Street address (`address_line1`, text): The first line of the address.
- Address line 2 (`address_line2`, text): Suite, unit or apartment.
- City (`city`, text): The city.
- State (`state`, text): The state, such as CA.
- ZIP code (`zip_code`, text): The ZIP or postal code.
- Notes (`notes`, text): Notes to keep on the lead.
- Lead status (`lead_status_name`, text): One of your lead statuses, spelled exactly as in Builder Prime, such as Lead received.
- Lead source (`lead_source_name`, text): One of your lead sources, spelled exactly as in Builder Prime, such as Facebook.
- Salesperson (`sales_person`, text): The salesperson's first and last name, exactly as in Builder Prime.
- Lead setter (`lead_setter`, text): The lead setter's first and last name, exactly as in Builder Prime.
- Class (`class_name`, text): One of your classes, spelled exactly, such as Residential.
- Project type (`project_type_name`, text): One of your project types, spelled exactly, such as Kitchen Renovation.

**Outputs**

- `client` (object): What Builder Prime returned
- `id` (text): The new or changed record's Builder Prime id, empty if none was given

**Example output**

```json
{
  "client": {
    "firstName": "John",
    "id": 1234,
    "lastName": "Smith"
  },
  "id": "1234"
}
```

### Create meeting

Put a meeting on the Builder Prime calendar, such as an estimate appointment for a client's opportunity, with who it's with and a reminder.

**Inputs**

- Title (`title`, text, required): What the meeting is called.
- Start (`start_time`, date and time, required): When it starts, on a quarter hour (such as 10:00 or 10:15).
- End (`end_time`, date and time, required): When it ends, on a quarter hour.
- Opportunity ID (`client_opportunity_id`, number): The Builder Prime id of the client's opportunity it's for.
- Description (`description`, text): What it's for.
- Location (`location`, text): Where it is, such as the client's address.
- All day (`all_day`, true/false): Whether it lasts all day.
- Confirmed (`confirmed`, true/false): Whether the client has confirmed it.
- Employee (`employee`, text): Who it's with. Their email address, Builder Prime id, or first and last name.
- Meeting type ID (`meeting_type_id`, number): The Builder Prime id of the meeting type.
- Reminder (`reminder_minutes`, number): Minutes before the start to remind people. At least 1.

**Outputs**

- `id` (text): The new or changed record's Builder Prime id, empty if none was given
- `meeting` (object): The meeting

**Example output**

```json
{
  "id": "223456789",
  "meeting": {
    "clientOpportunityId": 102988,
    "endDateTime": 1742410800000,
    "id": 223456789,
    "startDateTime": 1742403600000,
    "title": "Kitchen walkthrough"
  }
}
```

### Create project

Create a project on a client's opportunity in Builder Prime, with its status, type, team, work site, estimated value and custom fields.

**Inputs**

- Opportunity ID (`client_opportunity_id`, number, required): The Builder Prime id of the client's opportunity, such as one 'Add lead' returned.
- Status (`project_status`, text, required): One of your project statuses, spelled exactly as in Builder Prime, such as Estimate Request.
- Name (`project_name`, text): The project's name.
- Project type (`project_type`, text): One of your project types, spelled exactly, such as Replacement Windows.
- Description (`description`, text): What the job is.
- Project manager (`project_manager`, text): Their email address, Builder Prime id, or first and last name.
- Foreman (`foreman`, text): Their email address, Builder Prime id, or first and last name.
- Salesperson (`sales_person`, text): Their email address, Builder Prime id, or first and last name.
- Work site street (`work_site_address_line1`, text): The job's street.
- Work site line 2 (`work_site_address_line2`, text): Suite, unit or apartment.
- Work site city (`work_site_city`, text): The job's city.
- Work site state (`work_site_state`, text): The job's state, such as CA.
- Work site ZIP code (`work_site_zip`, text): The job's ZIP code.
- Class (`class_name`, text): One of your classes, spelled exactly.
- Estimated value (`estimated_value`, number): What the job is expected to be worth, in dollars. At least 0.
- Allow card payments (`allow_credit_card_payments`, true/false): Let the client pay by card, in place of your default.
- Allow bank payments (`allow_ach_payments`, true/false): Let the client pay by bank transfer (ACH), in place of your default.
- Custom fields (`custom_fields`, object): Each custom field's name with its value, for example {"Budget": "5000"}. Names must match your custom fields.

**Outputs**

- `id` (text): The new or changed record's Builder Prime id, empty if none was given
- `project` (object): The project

**Example output**

```json
{
  "id": "123456789",
  "project": {
    "clientOpportunityId": 1234,
    "estimatedValue": 15000,
    "id": 123456789,
    "projectName": "Replace windows for customer",
    "projectStatus": "Estimate Request",
    "projectType": "Replacement Windows"
  }
}
```

### Log activity

Log a call, email, text message or note on a client's opportunity in Builder Prime, with when it happened and, for a call, how it went.

**Inputs**

- Opportunity ID (`opportunity_id`, number, required): The Builder Prime id of the opportunity, such as one 'Add lead' returned.
- Type (`activity_type`, text, required): What kind of activity it was. One of: `NOTE`, `CALL`, `EMAIL`, `SMS` (Text message).
- Description (`description`, text): What was said or written.
- When (`activity_time`, date and time): When it happened. Leave empty for Builder Prime's default.
- Call outcome (`call_outcome`, text): How the call went. Only when Type is Call. One of: `CONNECTED`, `NO_ANSWER` (No answer), `BUSY`, `WRONG_NUMBER` (Wrong number), `LEFT_LIVE_MESSAGE` (Left a message with someone), `LEFT_VOICEMAIL` (Left a voicemail).

**Outputs**

- `activity` (object): What Builder Prime returned
- `id` (text): The new or changed record's Builder Prime id, empty if none was given
- `opportunity_id` (text): The opportunity it was logged on

**Example output**

```json
{
  "activity": {
    "activityType": "CALL",
    "id": 5678
  },
  "id": "5678",
  "opportunity_id": "1234"
}
```

### Update meeting

Change a Builder Prime meeting: move it, confirm or cancel it, or record its result, such as Sale. Only the fields given change.

**Inputs**

- Meeting ID (`meeting_id`, number, required): The meeting's Builder Prime id, such as one 'Create meeting' returned.
- Title (`title`, text): What the meeting is called. Leave empty to keep it.
- Start (`start_time`, date and time): When it starts, on a quarter hour (such as 10:00 or 10:15). Leave empty to keep it.
- End (`end_time`, date and time): When it ends, on a quarter hour. Leave empty to keep it.
- Description (`description`, text): What it's for. Leave empty to keep it.
- Location (`location`, text): Where it is, such as the client's address. Leave empty to keep it.
- All day (`all_day`, true/false): Whether it lasts all day.
- Confirmed (`confirmed`, true/false): Whether the client has confirmed it.
- Employee (`employee`, text): Who it's with. Their email address, Builder Prime id, or first and last name.
- Meeting type ID (`meeting_type_id`, number): The Builder Prime id of the meeting type.
- Reminder (`reminder_minutes`, number): Minutes before the start to remind people. Replaces the meeting's reminders. At least 1.
- Canceled (`canceled`, true/false): Turn on to cancel the meeting.
- Result (`meeting_result_name`, text): The meeting's result, spelled exactly as in Builder Prime, such as Sale. Replaces any result it has.
- Result notes (`meeting_result_notes`, text): Notes on the result, such as Signed on site.

**Outputs**

- `id` (text): The new or changed record's Builder Prime id, empty if none was given
- `meeting` (object): The meeting, as changed

**Example output**

```json
{
  "id": "223456789",
  "meeting": {
    "clientOpportunityId": 102988,
    "endDateTime": 1742410800000,
    "id": 223456789,
    "isMeetingConfirmed": true,
    "startDateTime": 1742403600000,
    "title": "Kitchen walkthrough"
  }
}
```

### Update project

Change a Builder Prime project: its status, name, team, work site, estimated value or custom fields. Only the fields given change.

**Inputs**

- Project ID (`project_id`, number, required): The project's Builder Prime id, such as one 'Create project' returned.
- Opportunity ID (`client_opportunity_id`, number, required): The id of the opportunity the project is on. Builder Prime requires it and it can't be changed.
- Status (`project_status`, text): One of your project statuses, spelled exactly as in Builder Prime, such as Estimate Request. Leave empty to keep it.
- Name (`project_name`, text): The project's name. Leave empty to keep it.
- Project type (`project_type`, text): One of your project types, spelled exactly, such as Replacement Windows. Leave empty to keep it.
- Description (`description`, text): What the job is. Leave empty to keep it.
- Project manager (`project_manager`, text): Their email address, Builder Prime id, or first and last name.
- Foreman (`foreman`, text): Their email address, Builder Prime id, or first and last name.
- Salesperson (`sales_person`, text): Their email address, Builder Prime id, or first and last name.
- Work site street (`work_site_address_line1`, text): The job's street.
- Work site line 2 (`work_site_address_line2`, text): Suite, unit or apartment.
- Work site city (`work_site_city`, text): The job's city.
- Work site state (`work_site_state`, text): The job's state, such as CA.
- Work site ZIP code (`work_site_zip`, text): The job's ZIP code.
- Class (`class_name`, text): One of your classes, spelled exactly. Leave empty to keep it.
- Estimated value (`estimated_value`, number): What the job is expected to be worth, in dollars. At least 0.
- Allow card payments (`allow_credit_card_payments`, true/false): Let the client pay by card, in place of your default.
- Allow bank payments (`allow_ach_payments`, true/false): Let the client pay by bank transfer (ACH), in place of your default.
- Custom fields (`custom_fields`, object): Each custom field's name with its value, for example {"Budget": "5000"}. Names must match your custom fields.

**Outputs**

- `id` (text): The new or changed record's Builder Prime id, empty if none was given
- `project` (object): The project, as changed

**Example output**

```json
{
  "id": "123456789",
  "project": {
    "clientOpportunityId": 1234,
    "estimatedValue": 15000,
    "id": 123456789,
    "projectName": "Replace windows for customer",
    "projectStatus": "Sold",
    "projectType": "Replacement Windows"
  }
}
```
