# DeskQ embed install task (for coding agents)
You are installing the DeskQ support widget into this repository on behalf of a human builder.
## Inputs (human fills)
- BOT_PUBLIC_KEY: pk________________
- EMBED_SCRIPT_URL: https://deskq.app/embed.js
- (optional) FORM_SCRIPT_URL: https://deskq.app/form.js — only if they also want Form studio on the page
- (optional) ALLOWED_ORIGINS to remind human to set in DeskQ dashboard: ________________
- (optional) POSITION: right | left (default right)
- (optional) THEME: auto | deskq (default auto — matches host brand)
## Goal
Add a single drop-in embed so user-facing pages show DeskQ chat (bottom-right by default).
Do not rebuild chat UI. Do not add an npm dependency for DeskQ unless the host stack forces it.
## Exact chat snippet
Optional attributes:
- data-position="left" (only if POSITION=left)
- data-theme="deskq" (only if THEME=deskq)
- data-api-base only if the human explicitly asks (default: script origin)
## Optional form snippet
## Placement rules
1. Prefer the ROOT layout so ALL routes get the widget:
- Next.js App Router: app/layout.tsx or src/app/layout.tsx — next/script strategy="afterInteractive" before