# Install snippets (copy-paste)

Replace `pk_live_YOUR_KEY_HERE` with the key from admin.

Default host: `https://www.synderesis.eu`
Local test: use `http://127.0.0.1:8080` as both script host and `data-api-base`.

---

## Universal (any site)

```html
<script
  src="https://www.synderesis.eu/embed/agent.js"
  data-site-key="pk_live_YOUR_KEY_HERE"
  data-api-base="https://www.synderesis.eu"
  async></script>
```

Put it just before `</body>` on pages where the chat should appear (or sitewide footer).

---

## Open automatically

```html
<script
  src="https://www.synderesis.eu/embed/agent.js"
  data-site-key="pk_live_YOUR_KEY_HERE"
  data-api-base="https://www.synderesis.eu"
  data-open="1"
  async></script>
```

---

## Custom suggestion chips

Separate chip labels with `|`:

```html
<script
  src="https://www.synderesis.eu/embed/agent.js"
  data-site-key="pk_live_YOUR_KEY_HERE"
  data-api-base="https://www.synderesis.eu"
  data-chips="Opening hours?|Shipping to EU?|Book a visit"
  async></script>
```

---

## WordPress (without plugin)

**Appearance → Theme File Editor → footer.php**
or a “Header/Footer scripts” plugin:

paste the universal snippet.

Prefer the official plugin in `integrations/wordpress/` when you can.

---

## Shopify

1. Online Store → Themes → Edit code
2. Open `theme.liquid`
3. Paste the universal snippet **before** `</body>`
4. Save

(App Store app comes later; this theme snippet is enough for v1.)

---

## Squarespace

Settings → Advanced → Code Injection → Footer → paste universal snippet.

---

## Wix

Settings → Custom Code → Add Code → Body end → paste universal snippet → Load on all pages (or selected).

---

## Local development

```html
<script
  src="http://127.0.0.1:8080/embed/agent.js"
  data-site-key="pk_live_YOUR_KEY_HERE"
  data-api-base="http://127.0.0.1:8080"
  data-open="1"
  async></script>
```

Set agent **Allowed origins** to `*` or `http://127.0.0.1:8080`.
