Web Chat Assistant (Widget) Setup
The web assistant is an AI-powered chat widget you can add to your website to interact with visitors in 15 different languages.
Step 1: Defining the Web Assistant
Go to the Web Assistants tab in your company panel and click "Create New Web Assistant." Set the assistant's name, the AI model it will use, default language, and its personality (Persona).
Step 2: Widget Design and Customization
Make visual customizations matching your website's brand identity:
- Color Theme: Choose the primary colors of your site.
- Welcome Message: Write the welcome text visitors see when they first open the widget.
- Redirection Option: Define a WhatsApp Live Support number for cases where the AI model cannot reply or the customer directly requests human support.
Step 3: Security Settings (CORS and Domain Restriction)
Very Important: To prevent others from using your widget JavaScript code on their own sites, add the full protocols and domains of your website (e.g., https://www.yourcompany.com) to the Allowed Domains field. Thanks to CORS security rules, our assistant API will automatically block requests outside these domains.
Step 4: Integrating with Your Website
Copy the provided asynchronous JavaScript code to embed the widget on your site, and add it just before the closing </head> tag in your website's HTML template:
<script src="https://asistan.globalpozitif.com.tr/assets/js/widget.js?v=time()"
data-company-key="COMPANY_UNIQUE_KEY"
data-assistant-id="ASSISTANT_ID"
async></script>
Because the code is loaded asynchronously (async), it will never negatively affect your website's loading performance or SEO scores.