Documentation

Docs

Everything you need to embed and configure your AI agent.

Getting started

  1. Create your workspace and choose your industry — this sets your AI agent's persona automatically.
  2. Add your knowledge base under Knowledge Base (upload documents, add FAQs, or crawl your website).
  3. Grab your embed snippet from Widget Builder in the dashboard — it includes your unique widget key.
  4. Paste the snippet before </body> on any page of your site.

Embed snippet

The widget is a single self-contained script — it reads its own data-widget-key attribute, so the same snippet works unmodified on any page:

<script
  src="https://revgeniq-ai-backend.vercel.app/widget/v1/loader.js"
  data-widget-key="YOUR-WIDGET-KEY"
  async
></script>

API Reference

The widget's public API (no login required — identified by your widget_key) is what the embed snippet calls. Full authenticated REST API access to your dashboard data is available on the Business plan — email sales@revgeniq.ai for API credentials.

GET/widget/v1/config/{widget_key}

Fetch your widget's theme, welcome message, and suggested questions.

POST/widget/v1/chat

Send a visitor message and get back the AI agent's structured response (message, cards, actions, suggestions).

POST/widget/v1/lead

Submit a Quote/Demo/Contact form — creates a lead visible in your dashboard's Leads tab.

Need more help?

Check the Tutorials for step-by-step guides, or email support.