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

> ## Agent Instructions
> Fletch makes insurance products discoverable to and purchasable by AI agents, while the carrier keeps control of product rules, disclosures, consent, and payments. Fletch provides agentic commerce and agentic distribution for insurance, including APIs, an MCP server, a Web SDK, and journeys in assistants such as ChatGPT. Company overview: https://fletch.co/llms.txt. Agentic commerce: https://fletch.co/ai/. Contact: info@fletch.co.

# Overview

> Embed a Fletch widget on your site with the Web SDK.

The Fletch Web SDK lets you embed a Fletch widget on any website with a single script tag and a `<fletch-app>` element. The SDK handles loading, automatic resizing, and forwarding your page's URL parameters to the widget.

## Quick start

Add the SDK script once. Place a `<fletch-app>` element where you want the widget to appear.

```html theme={"dark"}
<script src="https://app-sdk.fletch.co/v1.0.0.js"></script>

<fletch-app
  widget-url="https://partner.fletch.co/ver=1/"
  app-origin="https://partner.fletch.co"
  height="700px"
  width="100%"
  title="Pet insurance quote"
  loading="lazy"
  style="max-width: 600px; margin: 0 auto;"
  iframe-style="border-radius: 12px;"
></fletch-app>
```

## Example with resizing

This example turns on automatic resizing and forwards query parameters to the widget.

```html theme={"dark"}
<script src="https://app-sdk.fletch.co/v1.0.0.js"></script>

<fletch-app
  widget-url="https://partner.fletch.co/ver=1/"
  app-origin="https://partner.fletch.co"
  sync-query-params="true"
  resize="true"
  height="800px"
  scrolling="no"
  style="margin: 0;"
  iframe-style="border: 0; display: block !important; transition: height 100ms ease, width 100ms ease; width: 100%; box-shadow: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1); border-radius: 1rem;"
></fletch-app>
```

Every supported attribute is documented in [Web SDK Parameters](https://docs.fletch.co/guides/sdk/parameters.md).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.