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

# AutoPlay Integration

> Sync your vehicle inventory from AutoPlay to power your AI assistant

## Overview

The AutoPlay integration automatically syncs your vehicle inventory to Vaile, enabling your AI assistant to provide accurate, real-time information about available vehicles.

## Setup

Navigate to **Integrations** → **Inventory** in your dashboard to configure AutoPlay.

### 1. Enable Integration

Toggle the AutoPlay Integration switch to enable inventory syncing.

### 2. Configure Credentials

Click **Configure** and enter your AutoPlay credentials:

* **API URL**: Your AutoPlay API endpoint
* **API Key**: Your AutoPlay API authentication key

<Note>
  Your API key is stored securely and encrypted. It will never be displayed after saving.
</Note>

### 3. Run Initial Sync

After saving credentials, click **Full Re-sync** to perform the initial inventory import.

## Sync Types

### Incremental Sync (Delta)

Syncs only changes since the last update:

* New vehicles added
* Updated vehicle information
* Vehicles marked as sold/removed

**Use when:** Running regular updates to keep inventory current.

### Full Sync

Re-imports your entire inventory from scratch:

* Refreshes all vehicle data
* Ensures complete accuracy
* Rebuilds the entire inventory database

**Use when:**

* Initial setup
* Resolving data inconsistencies
* After major inventory changes

## Automatic Syncing

Once enabled, Vaile automatically syncs your inventory:

* **2:00 AM** - Early morning sync
* **2:00 PM** - Afternoon sync

Incremental syncs run automatically to minimize processing time.

## Manual Sync

You can trigger a sync manually at any time:

* **Sync Now** - Run an incremental sync
* **Full Re-sync** - Re-import entire inventory

<Warning>
  Wait for the current sync to complete before starting a new one. Running multiple syncs simultaneously is not supported.
</Warning>

## Sync Status

Monitor your sync progress in real-time:

* **Running** - Sync in progress with live vehicle count
* **Completed** - Shows new, updated, and deleted vehicles
* **Failed** - Displays error message

## How It Powers Your Chat

Once inventory is synced, your AI assistant can:

* Answer questions about available vehicles
* Provide accurate pricing and specifications
* Suggest vehicles based on customer preferences
* Check real-time availability

The assistant automatically uses your latest inventory data to respond to customer inquiries.

## Troubleshooting

<AccordionGroup>
  <Accordion title="Sync failing to start" icon="circle-xmark">
    * Verify API URL is correct
    * Check API key is valid
    * Ensure AutoPlay service is accessible
  </Accordion>

  <Accordion title="Inventory not appearing in chat" icon="message-slash">
    * Confirm sync completed successfully
    * Check that vehicles were processed (see sync stats)
    * Wait a few minutes for data to propagate
  </Accordion>

  <Accordion title="Outdated vehicle information" icon="clock">
    * Run a manual incremental sync
    * If issue persists, run a full re-sync
    * Check AutoPlay for recent updates
  </Accordion>
</AccordionGroup>

## Best Practices

* Run a **full re-sync** weekly to ensure data accuracy
* Enable automatic syncing for hands-free operation
* Monitor sync status after major inventory updates
* Contact support if syncs consistently fail

<Tip>
  Your AI assistant will only recommend vehicles that are currently in your synced inventory, ensuring customers get accurate availability information.
</Tip>
