> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.leadtruffle.co/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to connect FieldRoutes to LeadTruffle

📝 *Connect your FieldRoutes office to sync qualified leads, book one-time appointments, and track invoice revenue in LeadTruffle.*

---

## Table of contents

* [Overview](#2-overview)
* [Connect your FieldRoutes office](#2-connect-your-fieldroutes-office)
* [Send qualified leads to FieldRoutes](#2-send-qualified-leads-to-fieldroutes)
* [Set up availability and AI booking](#2-set-up-availability-and-ai-booking)
* [Track invoice revenue](#2-track-invoice-revenue)
* [Troubleshooting](#2-troubleshooting)

---

## Overview

LeadTruffle connects to one FieldRoutes office. You can send qualified leads to that office as Customers, let your AI agent book one-time appointments on its routes, and match invoice revenue to leads in LeadTruffle.

|| All three features start turned off. After connecting the office, enable and save each feature you want to use.

---

## Connect your FieldRoutes office

You’ll need a LeadTruffle **Admin** or **Manager** account. Ask your FieldRoutes administrator for your office’s account hostname, numeric office ID, API key, and API token. Have them confirm the office has API access for the features you plan to use.

1. Open [Integrations in LeadTruffle](https://app.leadtruffle.com/external-integrations?search=field). Find **FieldRoutes** and choose **Connect FieldRoutes**.
2. Enter the **Account hostname**, such as `company.fieldroutes.com` or `company.pestroutes.com`. Leave out `https://`, slashes, and page paths.
3. Enter the **Office ID**, **API key**, and **API token**. Select **Connect FieldRoutes**.
4. Check the office, timezone, services, and active technicians. If the timezone is wrong, correct it in FieldRoutes and reconnect.

![FieldRoutes settings: 1. Account hostname, 2. Office ID, 3. API key, 4. API token, 5. Connect FieldRoutes.](https://storage.crisp.chat/users/helpdesk/website/-/d/c/4/1/dc41d3f6726e4000/fieldroutes-office-setup_16c77qw.png)

||| Changing the hostname or office resets its settings and sync progress. Reconnecting the same account and office preserves both.

---

## Send qualified leads to FieldRoutes

1. Open **Settings → Contact sync**. Choose a **Default customer source** if you want new Customers to have a marketing source.
2. Use **Map lead sources** to assign a different source to a channel such as Yelp or Google LSA. Unmapped channels use the default.
3. Review **Wait for real contact details instead of syncing temporary marketplace details**. This starts turned on.
4. Enable **Send qualified lead inquiries to FieldRoutes** and choose **Save settings**.

A qualified inquiry needs a saved contact with a usable phone number or email. LeadTruffle looks for an active Customer for that contact and service property. If several records match or their details conflict, you can review the inquiry under **Preview and sync → Contacts**. A second service address can need its own Customer record.

On a match, LeadTruffle fills blank name, primary phone, email, street, city, state, and ZIP fields. Existing values take priority. New Customers start with reminders and autopay off. Conversations and qualification answers stay in LeadTruffle.

---

## Set up availability and AI booking

1. Open **Settings → Availability and AI booking**. Turn on **Show available FieldRoutes appointment times** and choose the **Appointment service**.
2. Set the service duration, how many upcoming days to offer, and the minimum notice. The defaults are a 60-minute service, seven upcoming days, and 60 minutes of notice.
3. Select eligible technicians and an assignment method. You can use one specific technician, round robin, or AI assignment rules. If you use rules, choose what should happen when none match.
4. Choose which contact details your agent must collect. Select **Preview availability** and compare the arrival windows with the office’s routes. Each booking needs one eligible technician and one schedulable spot long enough for the service. Times use the office timezone.
5. Verify a real booking with your office. Then select **Booking has been checked with this FieldRoutes office**, enable **Allow AI to book FieldRoutes appointments**, and save.
6. Select **FieldRoutes** as the scheduling system for the text agent, voice agent, or Smart Call Router assistant that will book appointments.

||| **Book selected appointment** creates a real appointment after confirmation. Viewing availability leaves the spot open. A text-agent preview labeled **Simulated — not booked** also leaves it open.

During a live booking, LeadTruffle finds or creates the Customer, even when automatic contact sync is off. It rechecks the spot, reserves it, and verifies the Appointment in FieldRoutes. If the selected window fills up, the customer must accept an alternative before the agent books it. FieldRoutes appointment notes contain a booking reference. The full conversation stays in LeadTruffle.

---

## Track invoice revenue

1. Open **Settings → Invoice and revenue sync** and confirm the currency, such as USD or CAD.
2. Compare a known FieldRoutes invoice with its API amount. For a $123.45 invoice, choose **Decimal amounts** if the API shows `123.45` or **Whole cents** if it shows `12345`.
3. Select **I checked the currency and amount against a FieldRoutes invoice** after the amounts agree.
4. Review the proposed matches under **Preview and sync → Invoices**. Enable **Sync invoice revenue automatically** and save to run the sync nightly. To start a manual run, select **Sync invoices**, then check **Logs** for the result.

|| Revenue reflects eligible invoice totals, including unpaid balances. An invoice can count toward a lead’s revenue before the customer pays.

LeadTruffle matches active, one-time invoices through known Appointments or Customers, or through a unique contact with an eligible inquiry created before the invoice. It skips recurring invoices and withholds unclear matches.

---

## Troubleshooting

* **Connected, but no leads appear?** Check the contact sync setting and preview the inquiry under **Contacts**. Confirm it is qualified and has usable contact details.
* **No arrival windows?** Check the service, technicians, office timezone, duration, and minimum notice. In FieldRoutes, look for a route spot that permits API scheduling and has room for the service.
* **Availability shows up, but the agent won’t book?** Check the AI booking setting, office verification, required details, and the agent’s scheduling system.
* **A booking needs manual confirmation?** Check FieldRoutes and the LeadTruffle booking history before retrying. The first attempt may have created the Appointment.
* **Revenue is off by a factor of 100?** Compare the units setting with a known invoice. Ask support to review any revenue already recorded.

For help with a specific record, open **Logs** on the FieldRoutes card. Include the office ID, relevant inquiry, appointment or invoice ID, and the error time and timezone. Keep your API key and token out of screenshots and messages.

---

Need help? Contact us at support@leadtruffle.com or message the team via the chat on this article or in-app.