Select agent type:

Getting Started

Integrate AgentUriel into your website in just a few minutes. Our widget is lightweight, customizable, and works on any website.

Quick Start

  1. 1Sign up for an account and get your API key from the dashboard
  2. 2Copy the widget code and paste it into your website
  3. 3Replace YOUR_API_KEY with your actual API key
  4. 4That's it! The agent will appear on your website

Installation

Add the following script tag to your website, preferably just before the closing </body> tag:

HTML
<script
  src="https://agenturiel.com/api/widget/script.js"
  data-api-key="YOUR_API_KEY"
  data-position="bottom-right"
></script>

Important: API Key

Your API key will be provided after you purchase a plan. Each API key is unique to your account and should be kept secure. You can find your API key in the dashboard under Settings β†’ API Keys.

Configuration

Customize the agent behavior using data attributes:

AttributeDescriptionDefault
data-api-keyYour unique API key (required)-
data-positionWidget position: bottom-right, bottom-leftbottom-right

Example with all configuration options:

HTML
<script
  src="https://agenturiel.com/api/widget/script.js"
  data-api-key="YOUR_API_KEY"
  data-position="bottom-right"
></script>

Advanced Customization

For more advanced use cases, you can use the JavaScript API to have full control over the agent:

JavaScript
<script>
  window.SaleAgentAI = {
    apiKey: "YOUR_API_KEY",
    position: "bottom-right",

    // Callback functions
    onOpen: function() {
      console.log("Chat opened");
    },
    onClose: function() {
      console.log("Chat closed");
    },
    onMessage: function(message) {
      console.log("New message:", message);
    }
  };
</script>
<script src="https://agenturiel.com/api/widget/script.js"></script>

JavaScript Methods

  • SaleAgentAI.open() - Open the chat widget
  • SaleAgentAI.close() - Close the chat widget
  • SaleAgentAI.toggle() - Toggle the widget state
  • SaleAgentAI.sendMessage(text) - Send a message programmatically

Event Callbacks

  • onOpen - Called when the widget opens
  • onClose - Called when the widget closes
  • onMessage - Called on each new message
  • onReady - Called when the widget is loaded

Ready to get started?

Sign up now and get your API key to start using AgentUriel on your website.