⚡ Don't miss the limited time deal !

00:00:00
Documentation/Widget Installation
Embed & Deployment Guide

Widget Installation Guide

Deploy your website-trained AI agent with a single asynchronous JavaScript snippet. Installs on any website in under 2 minutes.

Universal CDN Script Tag

Paste this snippet right before closing </body> on any page.

// 1. Replace YOUR_AGENT_UUID with your Agent ID from Dashboard → Scripts
// 2. Paste before </body> in your HTML / theme file
<script
src="https://talk2site.com/widget.js"
data-agent-id="YOUR_AGENT_UUID"
async
></script>
Loads asynchronously under 15KB with zero render blocking.
Works on all desktop, tablet, and mobile smartphone viewports.
Instant real-time sync with dashboard color and prompt changes.

Platform-Specific Guides

Select your platform below for tailored step-by-step instructions.

Universal

HTML / Vanilla JS / PHP

For custom HTML sites, static websites, PHP, Laravel, Ruby on Rails, Django, and custom web apps.

Step-by-Step Instructions:

1

Open your website template or main HTML layout file.

2

Locate the closing </body> tag at the bottom of the page.

3

Paste the script tag directly above the </body> tag.

4

Save and publish. The chat bubble appears in the bottom-right corner automatically.

Embed Code Snippet:

<!-- Talk2Site AI Chatbot Embed Script -->
<script
  src="https://talk2site.com/widget.js"
  data-agent-id="YOUR_AGENT_UUID"
  async
></script>

Script Tag Configuration Options

Customize widget placement, theme, and automatic popup behavior via HTML data attributes.

AttributeRequiredDefaultDescription
data-agent-idRequiredNone (Required)Your unique agent UUID found in your Talk2Site Dashboard -> Scripts tab.
data-positionOptionalbottom-rightWidget screen placement. Options: bottom-right or bottom-left.
data-auto-openOptionalfalseSet to 'true' to automatically pop open the chat window on initial page load.
data-themeOptionalautoColor theme for the chat interface. Options: light, dark, or auto.

Ready To Train Your Agent?

Once the script tag is placed on your site, teach your AI assistant your company services, pricing, and FAQs using our automated crawler and document uploader.

We use essential cookies and performance analytics to ensure secure login and improve your AI chatbot experience. By using Talk2Site, you agree to our Cookie Policy.