Get Started
Quickstart
Get the DuggAI widget live on your site in under 5 minutes.
What you'll have at the end
- A chat bubble in the bottom right of your site.
- An AI agent trained on your docs that auto-resolves common questions.
- A dashboard where every conversation lands for triage.
Steps
- Create your accountSign up at /support/signup. The post-signup onboarding tour walks you through everything below end-to-end and provisions your project automatically.
- Get your widget keyOpen Dashboard → Integrations and click Generate API key. You get back a value like
duggai_pk_a1b2c3…. This is the public key your install snippet uses; safe to commit. Anyone hitting your site sees it. Keep the webhook secret shown next to it private — that one stays on your server. - Drop the snippetThe minimum viable install is one script tag. Paste your real key in for
data-key:html<script src="https://duggai.com/embed.js" data-key="duggai_pk_XXXXXXXXXXXX" defer ></script>For Next.js / React / Vue / Svelte, see framework snippets. For an AI editor to wire it for you, see install via Cursor / Windsurf.
- Train it on your docsFrom the dashboard, paste your docs URL. The crawler ingests pages and indexes them for retrieval. Most docs sites finish in a few minutes. See Knowledge sources.
- Send the first test messageOpen your site, click the bubble, ask "How do I install your SDK?" — the bot should answer using your docs and cite the page it pulled from.
Where keys live in your app
Most teams put the public key in an env var so it's easy to rotate per environment:Then reference
bash
# .env / Vercel / Netlify / Railway env
NEXT_PUBLIC_DUGGAI_KEY=duggai_pk_XXXXXXXXXXXX
DUGGAI_WEBHOOK_SECRET=whsec_XXXXXXXXXXXX # server-only, used by identifyprocess.env.NEXT_PUBLIC_DUGGAI_KEY in your snippet.Don't enable Discord yet
Get the widget feeling right first. Discord is a separate install we recommend doing on day two, once you're happy with how the agent answers. See Discord install.
What's next
- Read Stack-aware agent — what makes the agent better than a generic RAG bot.
- Read How the agent decides — the four actions (reply, ask, escalate, spawn_cursor) and the reasoning behind each.
- Read Resolutions & escalations — what lands in your review queue and what auto-resolves.
- Skim customization to match the bubble to your brand.