# Valuation Widget

### Overview

The widget can capture leads by auto-filling vehicle information, asking key questions and making a conditional offer informed by your preset valuation strategy.

It is highly customisable to your dealership brand or corporate imagery requirements, feeling at home on your existing website.&#x20;

The resulting leads are deployed over email or select LMS providers depending on your region. &#x20;

### Example Implementations

You can find an example of the valuation widget operating on the[ AutoGrab corporate homepage here](https://autograb.com.au/). For a more brand / corporate imagery-compliant implementation refer to [Berwick Motor Group.](https://www.berwickmotorgroup.com.au/sell-your-car/)

### Implementation

Speak to your sales rep about your desired implementation pattern. We will supply you with staging and production iFrame url code as part of your deployment process.&#x20;

### Position On Page

You have two options to embed the iframe inside your website. In both these options, it is critical that you set the iframe width to 650px and centred.

**Popup** - holding the iframe in a popup container and ensuring you conform to the `AUTOGRAB_VALUATION_HIDE` to event listening to close the popup container and `AUTOGRAB_VALUATION_DIMENSIONS` resize the height dynamically.

**On Page** - holding the iframe on a page ensuring you let us know so we can remove the close button. Since the page can still extend vertically you need to respond to the `AUTOGRAB_VALUATION_DIMENSIONS` alert.

### Event Listeners

{% hint style="info" %}
Please ensure your implementation meets the minimum event listener requirements.&#x20;
{% endhint %}

The valuation widget will send messages you need to pay attention to via the iframe postMessage function. The messages are as follows.

`AUTOGRAB_VALUATION_SUCCESS`

The widget loaded successfully, no intervention is needed.

`AUTOGRAB_VALUATION_ERROR`

There was an exception or error delivering the iframe contents.

`AUTOGRAB_VALUATION_HIDE`

The close button at the end of the workflow or close X in the interface has been pressed.

`AUTOGRAB_VALUATION_DIMENSIONS`

The iframe has resized due to changed in the contents. Please respond by resizing the iframe container to hold the new contents without cropping.&#x20;
