> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fieldpal.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Connections

> Link external data sources so the AI assistant can look up values and fill in report fields automatically.

Connections are external data sources the FieldPal assistant can draw on to fill report fields automatically. There is one built-in connection (a UK DVLA vehicle lookup) plus any CSV spreadsheet you upload yourself, for example a parts catalogue, a customer list, or an asset register. Once a connection is set up, the assistant can look up a value (like a part number) and pull back the rest of that row (description, price, and so on) to fill in a report without the field worker typing it.

## Adding a connection

### Step 1: Open the Connections page

In the left-hand sidebar, click **Connections**, in the Knowledge group below Report templates. You will see a table of all connections currently set up for your organisation, with columns for the connection name, its type, the search column, and how many rows of data it holds.

<Frame>
  <img src="https://mintcdn.com/fieldpal/ZlQav5iw4FVZ32ta/images/connections/02-connections-landing.png?fit=max&auto=format&n=ZlQav5iw4FVZ32ta&q=85&s=a352e6c989273cebf22ea7ea93adcd25" alt="Connections landing page showing a table of existing connections" width="1440" height="900" data-path="images/connections/02-connections-landing.png" />
</Frame>

### Step 2: Start a new connection

Click **+ New connection** in the top right. A dialog appears asking where the data should come from.

<Frame>
  <img src="https://mintcdn.com/fieldpal/ZlQav5iw4FVZ32ta/images/connections/03-new-connection-picker.png?fit=max&auto=format&n=ZlQav5iw4FVZ32ta&q=85&s=18d0b63aceb4bbb296b772d21c65cc95" alt="New connection dialog with source options" width="1440" height="900" data-path="images/connections/03-new-connection-picker.png" />
</Frame>

Only **CSV upload** is available today. The other three options, API endpoint, Google Sheet, and Database, are marked "Coming soon".

### Step 3: Choose CSV upload

Click **CSV upload**. The dialog changes to a file picker.

<Frame>
  <img src="https://mintcdn.com/fieldpal/ZlQav5iw4FVZ32ta/images/connections/04-csv-upload-empty.png?fit=max&auto=format&n=ZlQav5iw4FVZ32ta&q=85&s=523fb5ef37090186bb99b712fa0eb198" alt="CSV upload dialog, empty and ready for a file" width="1440" height="900" data-path="images/connections/04-csv-upload-empty.png" />
</Frame>

Drag a `.csv` file onto the drop area, or click **Choose file…** to open your operating system's file picker.

### Step 4: Review the detected columns

Once a file is chosen, the dialog expands to show:

* The file name, row count, and column count, for example "parts\_catalog\_10k.csv · 10,000 rows · 6 columns"
* A **Name** field, pre-filled with the file name (minus the extension). This is what appears in the connections list
* A **Description** field (optional)
* A **Search column** dropdown. FieldPal auto-detects a likely column (in this case `part_number`), but you can change it to any column in the file
* The **Returned columns**: every other column in the file, returned when a match is found
* A preview table showing the first 5 rows

<Frame>
  <img src="https://mintcdn.com/fieldpal/ZlQav5iw4FVZ32ta/images/connections/05-csv-loaded-defaults.png?fit=max&auto=format&n=ZlQav5iw4FVZ32ta&q=85&s=b666b1d6b163f4d6f55eb28b5afe7890" alt="CSV loaded with auto-detected search column and preview table" width="1440" height="900" data-path="images/connections/05-csv-loaded-defaults.png" />
</Frame>

The search column is the one the assistant matches on. For a parts catalogue that's the part number; for a customer list it might be an account number or postcode.

### Step 5: Add a description (optional)

Add a short description so other admins can tell what the data is at a glance, without opening the file.

<Frame>
  <img src="https://mintcdn.com/fieldpal/ZlQav5iw4FVZ32ta/images/connections/06-csv-description-filled.png?fit=max&auto=format&n=ZlQav5iw4FVZ32ta&q=85&s=4c6aff3ed3d56cbe7421cb0973c9a712" alt="CSV upload dialog with a description filled in" width="1440" height="900" data-path="images/connections/06-csv-description-filled.png" />
</Frame>

### Step 6: Create the connection

Click **Create connection**. You are taken to a detail page for the new connection, showing:

* **Details**: description, search column, returned columns, and row count
* **Test lookup**: type a value (for example a part number) and click **Look up** to see exactly what the assistant would get back
* **Rows**: a table of the uploaded data, with a **Replace data** button to re-upload a newer version of the same file

<Frame>
  <img src="https://mintcdn.com/fieldpal/ZlQav5iw4FVZ32ta/images/connections/07b-detail-page.png?fit=max&auto=format&n=ZlQav5iw4FVZ32ta&q=85&s=e076d2f5e32253132decb4df17edf347" alt="Connection detail page with test lookup and data rows" width="1440" height="900" data-path="images/connections/07b-detail-page.png" />
</Frame>

<Tip>
  Use **Test lookup** to sanity-check the connection before relying on it in a report. It is the fastest way to confirm the right column was picked as the search column.
</Tip>

Go back to **Connections** in the left nav and the new connection now appears in the list alongside the others, showing its type (**CSV**), search column, and row count.

<Frame>
  <img src="https://mintcdn.com/fieldpal/ZlQav5iw4FVZ32ta/images/connections/07-connection-created.png?fit=max&auto=format&n=ZlQav5iw4FVZ32ta&q=85&s=f920db682b219d99e7ca88529e649b92" alt="Connections list showing the newly created connection" width="1440" height="900" data-path="images/connections/07-connection-created.png" />
</Frame>

The assistant can use this data immediately: no separate "publish" or "activate" step is required.

***

## Tips

* **The search column can be changed later only by re-uploading.** There is no in-place edit for column mapping. If you picked the wrong search column, upload the CSV again as a new connection and delete the old one, or use **Replace data** on the existing connection's detail page if the column layout hasn't changed.
* **Deleting is immediate.** The delete icon at the end of a CSV row removes the connection straight away. There is no undo, only a "Deleted '\[name]'" confirmation toast.
* **Only CSV files are supported today.** API endpoint, Google Sheet, and Database connections are shown in the picker as "Coming soon", worth checking back periodically if you need live data rather than a static upload.
* **Name your file sensibly before uploading.** The Name field defaults to the filename, so `parts_catalog_10k.csv` becomes "parts\_catalog\_10k" in the list. Rename the file first, or edit the Name field, if you want something more descriptive for other admins.
* **Built-in connections can't be edited or deleted.** The DVLA vehicle lookup is fixed and shows `—` for search column and row count, since it queries an external service rather than a static file.
