Docs · Getting started

Quick start guide

Get your first Dara AI chatbot live in under 5 minutes. This guide covers embedding the widget and basic configuration.

lightbulb

Prerequisites

You need an API key and a bot ID from your Dara AI dashboard. Create a tenant and a bot, then copy the credentials from the integration section.

1. Add the script to your site

Insert the snippet below before the closing </body> tag so the widget loads after the page content.

index.html
<!-- Dara AI Chatbot: use your dashboard widget ID and API base URL -->
<script
  src="https://your-app-domain.com/widget/v1.js"
  id="dara-ai-embed"
  data-widget-id="YOUR_WIDGET_ID"
  data-api-base="https://your-api-domain.com"
  async
></script>

2. Embed options

Replace YOUR_API_KEY and YOUR_BOT_ID with the values from your dashboard. The widget will render a chat bubble in the corner of your page.

3. Configuration (optional)

Use the global DaraAI array to pass options before the script runs:

theme

`'light'` or `'dark'`. Default: `'dark'`.

primaryColor

Hex color for the chat bubble and buttons.

welcomeMessage

Custom greeting shown when the chat opens.

userId

Optional user ID to associate the session with your backend.

Next steps

  • Train your bot by adding URLs or documents in the dashboard.
  • Use the REST API for server-side conversations or analytics.
  • Check the API reference for authentication and rate limits.