DashForDevsDocs
DocsNewsAPI v1
dashfordevs.comSign in

© 2026 DashForDevs

DocsNewsdashfordevs.comLegalStatus
DocsAI BotsEmbedding
Introduction
Getting Started
Authentication
Products
Categories
Cart
Checkout
Blog
Reviews
Webhooks
Customers
Orders
Inventory
Shipping
Discounts
Affiliates
Email
Media & Files
Analytics & Tracking
Locations
Tax
Global Data
SEO
Error Handling
Geography
Finance
Automations
Page Types
Surveys
Billing & Subscriptions
Storefront Payments
SDK Reference
REST API
Storefront Architecture
Notifications
Security
Team & Permissions
Migrations & Import
Calendar & Appointments
Contact Forms
AI Bots
Bot OverviewTraining DataBot ConfigurationEmbedding
Dashboard API
Deployment
Changelog
Troubleshooting
Recipes
CLI & Deployment
Image Pipeline
White-label Platforms
Records Engine
Platform Modules
Platform Security
Site Keys & Client Sites
Use Cases
Operations

Embedding

Add the chat widget to your storefront.

Updated March 29, 2026

On this page
  • Embedding the Bot Widget
  • Customization
  • Next Steps

Embedding the Bot Widget

Add the bot to your storefront by including the embed script in your layout:

<script src="https://cdn.dashfordevs.com/bot/widget.js"
        data-api-key="pk_live_your_key"
        async></script>

Or embed in Next.js:

typescript
// app/layout.tsx
import Script from "next/script"

export default function RootLayout({ children }) {
  return (
    <html>
      <body>
        {children}
        <Script src="https://cdn.dashfordevs.com/bot/widget.js"
                data-api-key={process.env.NEXT_PUBLIC_DASH4DEVS_API_KEY}
                strategy="lazyOnload" />
      </body>
    </html>
  )
}

Customization

The widget inherits colors and branding from your bot configuration in the dashboard.

Next Steps

  • Bot Configuration
  • Bot Overview
PreviousBot ConfigurationNextOrganization Management

On this page

  • Embedding the Bot Widget
  • Customization
  • Next Steps