Skip to main content
The UponAI website widget is a production-ready, customizable widget for any website, powered by the UponAI API. Embed it with a single <script> tag — no backend proxy required. The widget supports two modes:
  • Chat Widget — Text-based conversations using a chat agent
  • Callback Widget — Phone-based conversations using a voice agent

Prerequisites

  • For chat widget — A chat agent (Create Chat Agent guide)
  • For callback widget — A voice agent and a UponAI phone number
  • Your UponAI Public Key and Agent ID

Chat Widget

Provides text-based conversations through a floating chat interface.

Setup

Add this script tag inside your HTML <head>:

Chat Widget Attributes

Required: Optional:

Full Example

Callback Widget

Collects the user’s phone number and initiates an outbound call from your agent instead of a chat session.

Setup

Callback Widget Attributes

Required: Optional:

How It Works

  1. User clicks the floating phone icon (bottom right)
  2. A form appears collecting first name, last name, phone number, and privacy agreement
  3. On submit, the widget creates an outbound call via the UponAI API
  4. The user receives a call from your specified number
  5. The conversation is handled by your configured voice agent

Full Example

reCAPTCHA Protection

Both widgets support Google reCAPTCHA v3 for bot protection.
Only reCAPTCHA v3 is supported. v2 is not compatible.
1

Add the reCAPTCHA script

Include this in your HTML <head>:
2

Add the attribute

Add data-recaptcha-key="YOUR_RECAPTCHA_SITE_KEY" to your widget script tag.
3

Enable in dashboard

Enable reCAPTCHA protection for your public key in the UponAI Public Keys settings.