Quickstart
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

  1. Create your account
    Sign up at /support/signup. The post-signup onboarding tour walks you through everything below end-to-end and provisions your project automatically.
  2. Get your widget key
    Open 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.
  3. Drop the snippet
    The 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.

  4. Train it on your docs
    From 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.
  5. Send the first test message
    Open 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:
bash
# .env / Vercel / Netlify / Railway env
NEXT_PUBLIC_DUGGAI_KEY=duggai_pk_XXXXXXXXXXXX
DUGGAI_WEBHOOK_SECRET=whsec_XXXXXXXXXXXX   # server-only, used by identify
Then reference process.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