> ## Documentation Index
> Fetch the complete documentation index at: https://docs.stepsai.co/llms.txt
> Use this file to discover all available pages before exploring further.

# Widget Deployment

> Complete guide to deploying your widget and integrating it into your website

## Overview

Deploying your widget makes it live and accessible to your website visitors. This guide covers the deployment process, script tag integration, domain configuration, and monitoring your widget's performance once it's live.

## Key Deployment Features

> **Script Integration**
>
> Get the embed code to integrate your widget into any website

> **Domain Control**
>
> Configure which domains can display your widget for security

> **Quick Deployment**
>
> Deploy your widget instantly with one-click activation

## Getting Started

**1. Review Configuration**

Ensure all settings, colors, and data sources are properly configured

**2. Deploy Widget**

Click the "Deploy" button to make your widget live

**3. Get Embed Code**

Copy the provided script tag for website integration

**4. Integrate Script**

Add the script tag to your website's HTML code

## Video Tutorial

![Steps AI Logo](https://mintcdn.com/stepsai/bk8ntUWjoqlJB9Px/logo/light.svg?fit=max\&auto=format\&n=bk8ntUWjoqlJB9Px\&q=85\&s=a3b792588a8a597e6307250f257a3ef0)

## Script Tag Integration

### Getting Your Embed Code

Once deployed, you'll receive a script tag that looks like this:

```html theme={null}
<script src="https://widget.aide.com/embed.js" 
        data-widget-id="your-widget-id"
        data-domain="your-domain.com">
</script>
```

## Advanced Deployment

> **A/B Testing**
>
> Deploy multiple widget versions to test different configurations

> **Geographic Targeting**
>
> Deploy different widgets for different geographic regions

> **Time-Based Deployment**
>
> Schedule widget deployment for specific times or events

> **Conditional Deployment**
>
> Deploy widgets based on specific conditions or user segments

## FAQ

> **How long does deployment take?**
>
> Deployment is instant! Once you click deploy, your widget is immediately live and accessible.

> **Can I deploy the same widget on multiple websites?**
>
> Yes! You can deploy the same widget on multiple domains by adding them to your allowed domains list.

> **What if I need to update my widget after deployment?**
>
> You can update your widget configuration at any time. Changes will be reflected immediately without needing to redeploy.

> **How do I know if my widget is working correctly?**
>
> Use the analytics dashboard to monitor performance, and test the widget directly on your website to ensure it's functioning properly.

> **Can I temporarily disable my widget?**
>
> Yes! You can pause or disable your widget at any time without losing your configuration.

> **What happens if my domain settings are incorrect?**
>
> If domain settings are incorrect, the widget won't load on unauthorized domains. You can update domain settings at any time.

## Troubleshooting

| Issue | Solution | Prevention |
| - | - | - |
| **Widget Not Loading** | Check domain settings and script tag placement | Verify domain configuration before deployment |
| **Script Tag Errors** | Ensure script tag is properly formatted and placed | Test integration on a development environment first |
| **Domain Access Denied** | Verify domain is in allowed domains list | Double-check domain configuration |

## Success Tips

> [!NOTE]
>
> **Start Small**: Deploy to a limited audience first to test and gather feedback

## Next Steps

> **[Monitor Messages](https://docs.stepsai.co/widgets/messages.md)**
>
> Learn how to view and manage conversations happening in your deployed widget


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.