Skip to content

Work Requests

Capture customer enquiries from your website directly into YardPilot.

What Are Work Requests?

Work requests are customer enquiries that come from external sources - typically your website's contact form. Instead of receiving emails that you manually enter into YardPilot, the integration sends them directly to your dashboard.

Before You Start

You'll need:

  1. An API key from YardPilot
  2. Access to your website's code (or a web developer)
  3. A contact form on your website

How It Works

When a customer submits your contact form:

  1. Form data is sent to https://app.yardpilot.io/api/v1/integration/work-requests
  2. YardPilot creates a new service request
  3. If it's a new customer, a contact is created automatically
  4. The request appears in Work Requests
  5. You can convert it to a quote or job

What Information Is Captured

Required Fields

FieldDescription
NameCustomer's full name
EmailCustomer's email address
PhoneCustomer's phone number
MessageDescription of what they need (10+ characters)

Optional Fields

FieldDescription
Service TypeType of service requested
Preferred ContactEmail, phone, or SMS
AddressProperty street address
CitySuburb/city
StateQLD, NSW, VIC, etc.
Postcode4-digit Australian postcode

Setting Up Your Contact Form

For Web Developers

Share these details with your developer:

Endpoint: POST https://app.yardpilot.io/api/v1/integration/work-requests

Headers:

Content-Type: application/json
X-Company-Key: your_api_key_here

Example Request Body:

json
{
  "customer_name": "Sarah Johnson",
  "customer_email": "sarah@example.com",
  "customer_phone": "0412 345 678",
  "message": "I need lawn mowing for my property. Looking for fortnightly service.",
  "street_line_1": "42 Oxford Street",
  "city": "Bulimba",
  "state": "QLD",
  "postcode": "4171"
}

Success Response (201):

json
{
  "message": "Request received successfully",
  "work_request_id": "01JCQR8X9PQZW3Y5K7N4M6B2T8"
}

Developer Documentation

For complete technical details including code examples in JavaScript, PHP, and Python, see our Integration API Developer Guide.

Common Form Builders

If you use a form builder like Gravity Forms, JotForm, or Typeform, you can often configure it to send data to a webhook URL. Your developer can set up a small backend script that receives the form data and forwards it to YardPilot.

Receiving Requests in YardPilot

Viewing New Requests

  1. Go to Work Requests
  2. New requests appear with status New
  3. Click a request to view details

Converting to a Quote

  1. Open the request
  2. Click Create Quote
  3. Add line items and pricing
  4. Send to the customer

Converting to a Job

  1. Open the request
  2. Click Create Job
  3. Schedule visits
  4. Assign to crew

Image Attachments

Customers can attach photos to their requests (up to 10 images). This is useful for:

  • Showing the current state of their lawn/property
  • Highlighting problem areas
  • Providing access photos (gates, parking)

Your developer can implement image uploads using the upload token provided in the work request response. See our developer documentation for details.

Automatic Features

Contact Creation

When a request comes in from a new email address, YardPilot automatically:

  • Creates a new contact in your CRM
  • Sets their status to "Lead"
  • Stores their name, email, and phone

If the email already exists, the request is linked to the existing contact.

Property Creation

If an address is included, YardPilot:

  • Creates a property record
  • Links it to the contact
  • Makes it available for future quotes and jobs

Spam Filtering

YardPilot automatically filters spam submissions so your dashboard stays clean. Spam is detected using:

  • Known spam email domains
  • Suspicious content patterns
  • Excessive links in messages

Duplicate Detection

If someone accidentally submits the same form twice within 5 minutes, YardPilot recognises it as a duplicate and doesn't create a second request.

Troubleshooting

Requests Not Appearing

  1. Check API key - Ensure you're using a live key (not test)
  2. Check for errors - Your developer can check the API response
  3. Blocked by spam filter - Request may have been rejected as spam; contact support if legitimate requests aren't appearing

Wrong Data Coming Through

  1. Field mapping - Ensure form fields map to the correct API fields
  2. Required fields - Name, email, and message are required
  3. Field formats - State must be 3 letters, postcode must be 4 digits

Duplicate Requests Being Created

This shouldn't happen with the built-in duplicate detection. If it is:

  1. Check if submissions are more than 5 minutes apart
  2. Check if the message content is slightly different
  3. Ensure the same email address is used

Testing Your Integration

Use test keys to verify your integration before going live.

How Test Keys Work

When you submit requests using a test key (ypk_test_...):

  1. Requests are validated exactly like live requests
  2. Work requests, contacts, and properties are created with a TEST badge
  3. Test data is hidden by default from all lists
  4. No notifications are sent to your team
  5. All test records are automatically deleted after 24 hours

Viewing Test Requests

To see test submissions in YardPilot:

  1. Go to Work Requests
  2. Enable the Show test requests filter
  3. Test requests appear with a TEST badge

This lets you verify the data came through correctly without polluting your real work requests.

Testing Workflow

  1. Generate a test API key in Settings → API Keys
  2. Configure your form to use the test key
  3. Submit test enquiries through your form
  4. Check Work Requests (with test filter enabled) to verify data
  5. Switch to your live API key when ready to go live

Don't Forget to Switch Keys

If you accidentally leave a test key in production, customer requests will be marked as test data and automatically deleted after 24 hours. Your team won't see them or receive notifications. Always verify you're using a live key (ypk_live_...) before launching.

Next Steps

Field Service Management for Australian Businesses