# Web-call widget

Source: https://www.nabrah.ai/en/docs/web-call-widget

The Web-call widget adds a click-to-call button to any website so visitors can talk to your agent live, right in their browser. No phone number, no downloads: visitors click the button, allow microphone access, and start a voice conversation.

![A call panel during a call](https://jg7fuogekuhtmhth.public.blob.vercel-storage.com/media/docs/import/cmr3c0ok3000dfze1po0mgczv.png)

## Your widgets

Open **Agents → Integrations → Plugins** and choose **Web-Call Widget**. Each widget is a card with a small preview of its call panel, its name and the agent that answers. Cards also show **Direct link** when the widget has one, and **Disabled** when it's turned off.

![Web-call widget list](https://nuonmwcmc4avrmft.public.blob.vercel-storage.com/cms/ae8f13b78f05d24a0f7432f4f908c9be.webp)

The **⋮** menu on a card has:

| Action                   | What it does                                                                               |
| ------------------------ | ------------------------------------------------------------------------------------------ |
| **Edit**                 | Opens the widget's settings                                                                |
| **Code**                 | Opens the embed snippet and direct link                                                    |
| **Disable** / **Enable** | Turns the widget off or back on without deleting it                                        |
| **Delete**               | Deletes the widget. Its embed stops working on every site right away. This can't be undone |

## Creating a widget

Click **New widget**. Setup has two steps, **Widget** and **Call panel**, with a preview beside each step.

### Step 1: Widget

![Basics: name and agent](https://jg7fuogekuhtmhth.public.blob.vercel-storage.com/media/docs/import/cmr3c1t4r000efze1zv9zoy7z.png)

| Field      | Description                                                                                                  |
| ---------- | ------------------------------------------------------------------------------------------------------------ |
| **Name**   | Required. A label to recognize this widget later, for example *Support line*. Visitors don't see it          |
| **Agent**  | Required. The agent that answers calls from this widget. Type in **Search agents** to find it in a long list |

> **Changing the agent takes effect right away.** Every site that uses this widget is pointed at the new agent as soon as you save. The snippet stays the same.

#### Appearance

Sets how the call button looks on the page.

![Appearance settings](https://jg7fuogekuhtmhth.public.blob.vercel-storage.com/media/docs/import/cmr3c3qv7000ffze1o4on0ckw.png)

| Setting      | Options                                                              |
| ------------ | -------------------------------------------------------------------- |
| **Icon**     | Phone, chat, headset, mic, sparkles, or an image URL. Default: phone |
| **Color**    | Eight preset colors or any custom color. Default: `#4f46e5`          |
| **Position** | Any corner of the page. Default: bottom right                        |
| **Size**     | **Small**, **Medium**, **Large**. Default: **Medium**                |
| **Theme**    | **Auto**, **Light**, **Dark**. Default: **Auto**                     |

**Tip:** **Auto** matches the visitor's site, or their system, automatically. It's the safer choice for sites with both light and dark modes.

#### Allowed origins

**Allowed origins (optional)** restricts which websites can load the widget. Enter a comma-separated list of URLs. If you leave it empty, the widget runs on any site it's embedded in.

> **Set allowed origins before going live.** The embed snippet is public on your page. Anyone can copy it and run your widget on their own site, at your expense.

![Allowed origins and direct link](https://jg7fuogekuhtmhth.public.blob.vercel-storage.com/media/docs/import/cmr3c5pai000hfze15m6tzko8.png)

Click **Next** to design the call panel.

### Step 2: Call panel

The **Call panel designer** sets the window visitors see during a call. It has two tabs, **Templates** and **Advanced**, and a live preview that shows exactly what visitors see. **Reset** returns the panel to the default design, and the expand icon opens the designer full screen.

![Call panel templates](https://nuonmwcmc4avrmft.public.blob.vercel-storage.com/cms/759f42216913aeb7708ebfe6342ffabc.webp)

#### Templates

Twelve ready-made styles cover most cases without further tuning. Selecting one updates the preview immediately.

| Templates                                                             | Look                                                                             |
| --------------------------------------------------------------------- | -------------------------------------------------------------------------------- |
| **Standard**, **Glossy**, **Wave**, **Bold**, **Soft**, **Spotlight** | Classic panels with a voice orb, status line and call buttons                    |
| **Space**, **Orbit**, **Radial**                                      | An animated centerpiece on a dark panel that stays dark on any site              |
| **Galaxy**, **Ripple**, **Aura**                                      | An animated centerpiece on a panel that follows the widget's light or dark theme |

#### Advanced

For finer control, the **Advanced** tab exposes every element.

![Advanced tab](https://jg7fuogekuhtmhth.public.blob.vercel-storage.com/media/docs/import/cmr3ceykn000kfze11ll2gf7e.png)

| Group                | Controls                                                                                                                                      |
| -------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
| **Layout**           | **Classic**, **Centered** or **Compact**                                                                                                      |
| **Brand color**      | Preset palette or a custom color                                                                                                              |
| **Avatar**           | **Icon** (voice orb, phone, chat, headset, mic, sparkles) or **Image**, with a **Circle** or **Rounded** shape                                |
| **Text**             | Title, up to 60 characters. **Subtitle**, optional, up to 120 characters. Font: **System**, **Rounded**, **Serif** or **Mono**                |
| **Status indicator** | **Dot**, **Orb** or **Bars**, or turn off **Show indicator**                                                                                  |
| **Buttons**          | **Show mute button**, mute and end-call labels up to 24 characters each, **Solid** or **Soft** style, **End button color**, **Button radius** |
| **Panel**            | **Width**, **Corner radius**, **Shadow** and **Background**                                                                                   |

The six animated templates add three more controls:

| Control              | Options                                                                |
| -------------------- | ---------------------------------------------------------------------- |
| **Center animation** | **Particles**, **Orbits**, **Ripple**, **Aura** or **Radial bars**     |
| **Look**             | **Always dark**, or **Follow theme** to match the widget's theme       |
| **Badge**            | A short label next to the title, up to 12 characters, for example *AI* |

![Center animation, Look and Badge](https://nuonmwcmc4avrmft.public.blob.vercel-storage.com/cms/5f8dbad32cb3a709409db2c72686da1e.webp)

Below the designer, **Powered by Nabrah.Ai** shows a locked switch marked **Enterprise only**. Hiding the line is available on Enterprise plans.

Click **Create widget** to finish. When editing, click **Save settings**.

## Adding the widget to your site

After you create the widget, its page shows the embed snippet. Copy it and paste it just before the closing `</body>` tag on your page.

```text
<script
  src="https://app.nabrah.ai/widget/v1.js"
  data-widget-id="wgt_xxxxxxxxxxxxxxxxxxxxxx"
  data-api-base="https://api.nabrah.ai"
  data-color="#4f46e5"
  data-icon="phone"
  data-position="bottom-right"
  data-size="md"
  data-theme="auto"
  async
></script>
```

The call button appears on your site automatically, with no further setup.

> **Button changes need a new snippet.** The button's color, icon, position, size and theme are written into the snippet. If you change them, copy the updated snippet and embed it again. The call panel design is saved with the widget, so panel changes reach your site without a new snippet. (The [Chat widget](https://www.nabrah.ai/en/docs/chat-widget) serves its whole design from Nabrah, so its snippet never changes.)

**Test on this page** loads the live widget on the widget's page so you can click it and try a real call. Click **Stop test** when you're done.

## Direct link

Direct link turns the widget into a public page anyone can open to talk to your agent, with no website or embed needed. It's useful for sharing a call option before a site exists, or as a link in emails, social bios or WhatsApp messages.

It's a feature of the Web-call widget only. The Chat widget doesn't have one.

### Enabling it

Turn on **Enable direct link** in the **Widget** step, below **Allowed origins**.

![Enable direct link](https://jg7fuogekuhtmhth.public.blob.vercel-storage.com/media/docs/import/cmr7n4iq10001acdvwa1kogtg.png)

> **Save the widget first.** The link is created when you save. Until then, a placeholder appears where the link will be.

### Where the link appears

Once the widget is saved, the link sits on the widget's page under **Direct link**, next to the embed snippet, with buttons to copy it or open it in a new tab. It looks like this:

```text
https://app.nabrah.ai/call/wgt_xxxxxxxxxxxxxxxxxxxxxx
```

![Direct link on the widget page](https://jg7fuogekuhtmhth.public.blob.vercel-storage.com/media/docs/import/cmr7nh6ma0003acdvl0u90mlu.png)

### What visitors see

The direct link opens the same call experience as the embedded widget: same panel, same branding, same behavior. There's no separate design step. Whatever the call panel designer is set to is what visitors get.

### Managing the link

| Action                                  | Supported                                                                                                   |
| --------------------------------------- | ----------------------------------------------------------------------------------------------------------- |
| Copy the link                           | Yes, with the **Copy** button next to the URL                                                               |
| Open the link                           | Yes, it opens the call page in a new tab                                                                    |
| Customize the URL                       | No, the link uses a fixed, generated ID                                                                     |
| Regenerate the link                     | No, the URL doesn't change once created                                                                     |
| Turn it off without deleting the widget | Yes. Turning off **Enable direct link** removes the public page while the widget and its embed keep running |

> **The direct link and the embed run independently.** Turning off the direct link removes only the shareable page. The call button on your website keeps working.

## During a call

When a visitor starts a call, they see live status, a mute button and an end-call button. The conversation runs on the selected agent, so everything it knows, including answers, variables and follow-ups, works the same as on any other channel.

Calls started from the widget appear in **Agents → Telephony → Call logs**, and they use your workspace's call minutes.

## Troubleshooting

| Symptom                                              | Cause                                                            | Fix                                                                                        |
| ---------------------------------------------------- | ---------------------------------------------------------------- | ------------------------------------------------------------------------------------------ |
| The button doesn't appear                            | The snippet is missing, or the site isn't in **Allowed origins** | Check the snippet sits before `</body>`, and add the exact origin                          |
| The button appears but the call never connects       | The browser blocked microphone access                            | The site must be served over HTTPS, and the visitor must allow the mic prompt              |
| The button looks different from the preview          | An older snippet is still on the page                            | Copy the current snippet and embed it again                                                |
| The agent doesn't answer                             | No agent is selected on the widget                               | Set one in the **Widget** step                                                             |
| The direct link shows a placeholder instead of a URL | The widget hasn't been saved since the switch was turned on      | Save the widget, then reopen its page                                                      |
| The call button stopped working on your site         | The widget is disabled or was deleted                            | Open the **⋮** menu on its card and click **Enable**. A deleted widget needs a new snippet |
| **Call widgets are turned off for this workspace**   | Call widgets aren't enabled for your workspace                   | Contact us to turn them back on                                                            |

## Frequently asked questions

**Can I change the call panel after the widget is live?** Yes. Panel changes reach your site without a new snippet. Only changes to the button need a new snippet.

**Can the same agent answer phone calls and the widget?** Yes. Any agent in the workspace can answer the widget, and it keeps answering its phone numbers too.

**Who can create and change widgets?** Members with edit access to **API keys** in their workspace permissions.
