Skip to content

AgentX tutorial

How to deploy an AI Agent to your website

How to deploy your AgentX AI agent as a chatbot widget on your website by embedding a simple JavaScript snippet. After enabling the "Website Embedding" option in the "Deploy" tab, customize the style, add authorized domains for security, and paste the JavaScript code into your site's HTML to make the agent appear on your website.

2 min read

In this tutorial, you will learn how to deploy your AI agent to any of your websites by copy and paste Javascript snippet. The agent deploy to the website will show up like website chatbot widget.

AI agent website Embedding

AgentX allows creators to deploy AI agent to multiple channels such as websites. If you have not yet create an AI agent on AgentX, check out here - how to create an AI agent.

We constantly update our user interface and add more features to the platform in order to provide the best experience in agent building. You may notice that the user interface differs from what is shown in the video and images here.

Enable Website Embedding

  1. Go to your agent dashboard
  2. Open the Deploy tab
  3. Select Edit to open Website Embedding Settings

Customize Website Chatbot Appearance

Inside Website Chatbot Settings, you can fully customize the chat widget.

Customize Chat Bubble

  • Floating Icon Size Choose between Small, Medium, or Large floating button size.

  • Background Opacity Control how transparent or solid the chat background appears.

  • Style Set Choose the overall look of the chat window: rounded, square, classic.

  • Color Theme Pick a predefined color or enable Custom to define your own brand color.

Chat Type & Layout

Chat Type

  • Floating – floating chatbot widgetFloating Alignment (Floating only)Position the widget on the Left, Center, or Right.
  • Inline – embedded directly in the pageCustom Size(Inline only) Enable Custom size and define the chatbot width and height (in pixels).

Customize Branding

If you are on the Pro tier, you can enable Customize Branding to:

  • Change the status text (e.g. Online with AI)
  • Replace or remove “Powered by AgentX”
  • Add your own website or brand link

Authorized Domains (Optional)

You can restrict where your chatbot is allowed to run.

  • Add one or more domains (e.g. https://www.nike.com)
  • The agent will only work on the listed domains
  • Helps protect against unauthorized usage

👉 Always click Save to apply your changes.

Always remember to save changes.

Deploy to your website

When you are ready, it's time to deploy the agent to your website.

Head back to website embedding setting. In Embed section find the Javascript code snippet. It looks like:

<script defer>
document.body.appendChild(document.createElement('div')).setAttribute('id','chatBubbleRoot');
window.agx = 'random-unique-code-here';</script>
<script defer src="https://storage.googleapis.com/agentx-cdn-01/agentx-chat.js"></script>
<script defer>
document.body.appendChild(document.createElement('div')).setAttribute('id','chatBubbleRoot');
window.agx = 'random-unique-code-here';</script>
<script defer src="https://storage.googleapis.com/agentx-cdn-01/agentx-chat.js"></script>
<script defer>
document.body.appendChild(document.createElement('div')).setAttribute('id','chatBubbleRoot');
window.agx = 'random-unique-code-here';</script>
<script defer src="https://storage.googleapis.com/agentx-cdn-01/agentx-chat.js"></script>

Copy and paste the this Javascript code snippet at the end of your HTML file within the section, and save.

That's it! Check your website, if you see your agent at lower right corner, that means your AI agent is fully deployed to your website.

More

Check out more tutorials to find how to deploy to website builders, such as:

More tutorials

All tutorials

Creating a Custom Tool in AgentX

Learn how to quickly create custom API-powered tools in AgentX using natural language and automatic code generation.

Read

Custom Branding for Agent Emails

You can now choose between AgentX branding, completely custom branding with your own logo and identity, or a clean unstyled option — all available for both Lead Generation emails and regular agent-sent messages. Configuration is now unified and easier to access, making it simple to keep every outgoing email consistent with your brand.

Read

How to add a MCP to your AI Agent

MCP (Model Context Protocol) allows you to connect your AI application to any desired third-party app as long as it supports it. Here is a step-by-step tutorial on how to set it up and connect with your AI agent. We will give an example on YouTube MCP.

Read

How to Automate Agent Tasks with AgentX

Discover how to automate your AgentX agents - from daily AI news briefings to fully autonomous SDR outreach - so your business runs on autopilot.

Read

How to Build AI Agent Workforce in AgentX

With AI Agent Workforces, you’re not limited to a single AI agent - you can build a whole team of specialists

Read

How to build an AI Agent - beginner's guide

Creating your first AI agent in AgentX, tuning prompts, instructions, and building knowledge bases. AgentX offers a no-code platform to create powerful AI agents for various use cases. Customize your agent’s bio, greeting, and response style, add knowledge bases, and enable optional features like lead generation or image generation. Once built, deploy your agent across multiple platforms, including websites, Slack, and Discord.

Read

Start your AI automation journey today

Sign up for AgentX and let AI handle your routine tasks. No credit card needed.