Crm

From wyre-technology/msp-claude-plugins · View interactive version

Crm is an AI agent skill from the GitHub repository wyre-technology/msp-claude-plugins. Autotask CRM entities - companies (accounts), contacts, and sites/locations - including field references, company type classifications, and how these records underpin tickets, contracts, and projects for MSP account management.

How to use this skill

Skill file

Autotask CRM Management

Overview

Autotask CRM manages the core entities that define your client relationships: companies (accounts), contacts, and sites. Proper CRM data is foundational - tickets, contracts, projects, and billing all depend on accurate company and contact information.

Anti-triggers

itglue-organizations, and itglue-contacts for the people.

calls it a site (datto-rmm-sites), RocketCyber calls it an account

(rocketcyber-accounts). Neither shares IDs with an Autotask company.

client records; use kaseya-bms-api-patterns.

Key Concepts

Company (Account)

The primary entity representing a client organization.

| Field | Description | Required |

|-------|-------------|----------|

| id | Unique identifier | System |

| companyName | Official company name | Yes |

| companyType | Customer, Lead, Prospect, etc. | Yes |

| phone | Main phone number | No |

| address1 | Street address | No |

| city | City | No |

| state | State/Province | No |

| postalCode | ZIP/Postal code | No |

| country | Country | No |

| webAddress | Website URL | No |

| parentCompanyID | Parent company for hierarchies | No |

| ownerResourceID | Account manager | No |

| classification | Classification category | No |

Company Types

| ID | Type | Use Case |

|----|------|----------|

| 1 | Customer | Active paying clients |

| 2 | Lead | Potential new business |

| 3 | Prospect | Qualified leads |

| 4 | Dead | Churned/lost clients |

| 5 | Vendor | Suppliers and partners |

| 6 | Partner | Strategic partners |

Contact

Individual people at a company.

| Field | Description | Required |

|-------|-------------|----------|

| id | Unique identifier | System |

| companyID | Associated company | Yes |

| firstName | First name | Yes |

| lastName | Last name | Yes |

| emailAddress | Primary email | No |

| phone | Direct phone | No |

| mobilePhone | Mobile number | No |

| title | Job title | No |

| isActive | Active status | Yes |

| isPrimaryContact | Primary contact flag | No |

Site/Location

Physical locations for a company (for on-site service).

| Field | Description | Required |

|-------|-------------|----------|

| id | Unique identifier | System |

| companyID | Parent company | Yes |

| name | Site name | Yes |

| address1 | Street address | No |

| city | City | No |

| isActive | Active status | Yes |

| isPrimaryLocation | Primary site flag | No |

API Patterns

Creating a Company

POST /v1.0/Companies
Content-Type: application/json
{
  "companyName": "Acme Corporation",
  "companyType": 1,
  "phone": "555-123-4567",
  "address1": "123 Main Street",
  "city": "Springfield",
  "state": "IL",
  "postalCode": "62701",
  "country": "United States",
  "webAddress": "https://acme.example.com",
  "ownerResourceID": 29744150
}

Searching Companies

GET /v1.0/Companies/query?search={"filter":[{"field":"companyName","op":"contains","value":"acme"}]}
Common Search Patterns

Search by name:

{
  "filter": [
    {"field": "companyName", "op": "contains", "value": "acme"}
  ]
}

Active customers only:

{
  "filter": [
    {"field": "companyType", "op": "eq", "value": 1},
    {"field": "isActive", "op": "eq", "value": true}
  ]
}

Companies by account manager:

{
  "filter": [
    {"field": "ownerResourceID", "op": "eq", "value": 29744150}
  ]
}

Updating a Company

PATCH /v1.0/Companies
Content-Type: application/json
{
  "id": 12345,
  "phone": "555-987-6543",
  "webAddress": "https://newsite.acme.com"
}

Creating a Contact

POST /v1.0/Contacts
Content-Type: application/json
{
  "companyID": 12345,
  "firstName": "John",
  "lastName": "Smith",
  "emailAddress": "john.smith@acme.example.com",
  "phone": "555-123-4567",
  "mobilePhone": "555-987-6543",
  "title": "IT Director",
  "isActive": 1,
  "isPrimaryContact": true
}

Searching Contacts

Contacts for a company:

{
  "filter": [
    {"field": "companyID", "op": "eq", "value": 12345},
    {"field": "isActive", "op": "eq", "value": 1}
  ]
}

Search by email:

{
  "filter": [
    {"field": "emailAddress", "op": "eq", "value": "john.smith@acme.example.com"}
  ]
}

Creating a Site

POST /v1.0/CompanyLocations
Content-Type: application/json
{
  "companyID": 12345,
  "name": "Main Office",
  "address1": "123 Main Street",
  "city": "Springfield",
  "state": "IL",
  "postalCode": "62701",
  "country": "United States",
  "isPrimaryLocation": true,
  "isActive": 1
}

Update an Opportunity

autotask_update_opportunity (write tier; opportunityId plus only the fields to change) moves stage, status, probability, owner and close date, and records win/loss reasons.

Common Workflows

Client Onboarding

  1. Create company record
  1. Create primary contact
  1. Create site(s)
  1. Set up contract
  1. Configure billing

Contact Management

  1. Verify before creating
  1. Maintain accuracy
  1. Track relationships

Company Hierarchy

For MSPs managing parent/child company relationships:

  1. Create parent company first
  2. Create child companies with parentCompanyID
  3. Contracts can roll up to parent
  4. Reporting aggregates by hierarchy

Error Handling

Common API Errors

| Code | Message | Resolution |

|------|---------|------------|

| 400 | Duplicate company name | Check for existing company, use unique name |

| 400 | Invalid email format | Verify email address syntax |

| 404 | Company not found | Verify company ID exists |

| 409 | Contact already exists | Search for existing contact first |

Validation Errors

"CompanyName is required" - Company name cannot be empty or null

"Invalid companyType" - Must use valid company type ID from picklist

"Email already exists" - Contact with this email already exists

Best Practices

  1. Standardize naming - Use consistent company name formats
  2. Maintain data quality - Regular audits of contact information
  3. Use classifications - Categorize companies for reporting
  4. Track account managers - Assign ownerResourceID for accountability
  5. Document relationships - Use notes for key account information

Related Skills

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.