> ## Documentation Index
> Fetch the complete documentation index at: https://docs.beyondwords.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Widget overview

Use the BeyondWords widget to embed audio and chat experiences into your website. Once installed, it automatically appears on your content pages.

Customize the widget's appearance and behavior to suit your publication, and use access tiers to tailor the experience for different membership levels.

> [!NOTE]
>
> **Widget or player?** The widget used to be called the player. You'll still see `player` in API endpoints, SDK methods, and embed code. These refer to the widget, and existing integrations keep working without changes.

> [accordion] Use your AI assistant
>
> [Connect the BeyondWords MCP](https://dash.beyondwords.io/account/connections), then copy a prompt.
>
> Get embed code with your AI assistant
>
> Give me the widget embed code for a BeyondWords content item. Ask me which project and item, and which version to embed.
>
> If you can't access BeyondWords tools, don't guess or make anything up. Tell me to connect the BeyondWords MCP at [https://dash.beyondwords.io/account/connections](https://dash.beyondwords.io/account/connections), then stop.
>
> Get playlist embed code with your AI assistant
>
> Give me the widget embed code for a BeyondWords playlist. Ask me which project and playlist, and which content type to include.
>
> If you can't access BeyondWords tools, don't guess or make anything up. Tell me to connect the BeyondWords MCP at [https://dash.beyondwords.io/account/connections](https://dash.beyondwords.io/account/connections), then stop.

> [accordion] Use the API
>
> Configure the widget with the [BeyondWords API](https://docs.beyondwords.io/api-reference/overview.md):
>
> * [Get player settings](https://docs.beyondwords.io/api-reference/player-settings/show.md): `GET /projects/{project_id}/player_settings`
> * [Update player settings](https://docs.beyondwords.io/api-reference/player-settings/update.md): `PUT /projects/{project_id}/player_settings`
> * [Get player data by content ID](https://docs.beyondwords.io/api-reference/player/by-content-id.md)
> * [Get player data by source ID](https://docs.beyondwords.io/api-reference/player/by-source-id.md)
> * [Get player data by source URL](https://docs.beyondwords.io/api-reference/player/by-source-url.md)
> * [Get player data by playlist ID](https://docs.beyondwords.io/api-reference/player/by-playlist-id.md)

## Features

> [accordion] Audio
>
> * **Audio/video player**: Let readers listen to the audio article and summary, or watch the video article and summary.
> * **Read-along highlighting**: Highlight words and paragraphs as the audio article plays.
> * **Playback from paragraphs**: Let readers click or tap a paragraph to start listening from that point.
> * **Continuous playback**: Play your most recent audio or video content after the current item ends.
> * **Intro and outro**: Play custom messages before and after your content.
> * **Skipping**: Let readers skip forward or backward by time or paragraph.
> * **Downloads**: Let readers download audio or video to enjoy offline.

> [accordion] Agent
>
> * **Text and voice chat**: Let users explore your content by typing or speaking to your agent.
> * **Conversation starters**: Suggest prompts to help users get started.

> [accordion] Appearance
>
> * **Colors and themes**: Match your branding, with support for light and dark modes.
> * **Display image**: Show a custom image or each article's featured image in legacy widget versions.
> * **Components**: Build your own widget interface using BeyondWords components.

> [accordion] Usability and performance
>
> * **Sticky widget**: Keep the widget visible when the main widget scrolls out of view.
> * **Keyboard support**: Let readers navigate and control playback using a keyboard.
> * **Fast loading and streaming**: Use dynamic loading to reduce the impact on page performance and HLS streaming for fast playback.
> * **Responsive design**: Adapt the widget to different screen sizes and devices.

> [accordion] Transparency
>
> * **Disclosure**: Display a disclosure below the widget, with an optional link.
> * **Info button**: Provide additional context through an info button.

> [accordion] Access and monetization
>
> * **Audio ads**: Run custom or programmatic ads before, during, or after your content.
> * **Access tiers**: Control how much audio, agent, and connector access each membership level gets.

> [accordion] Analytics
>
> * **Engagement tracking**: Measure how readers listen to your audio and interact with your agent.
> * **Unique users**: Turn on unique-user tracking to understand how many people engage.
> * **Analytics integrations**: Connect engagement data to your existing analytics tools.

## Configure the widget

There are three ways to configure the widget:

* **In your project dashboard**: Go to **Widget** to view and change settings.
* **In your code**: Use widget properties to override settings for individual widgets.
* **Through an AI assistant**: Use the [BeyondWords MCP](https://docs.beyondwords.io/docs-and-guides/support/beyondwords-mcp.md) to view and change selected settings.

Due to caching, it may take up to 5 minutes for widget setting changes to take effect.

### Widget settings

The **Widget** page in your project dashboard has five sections: **General**, **Audio**, **Agent**, **Appearance**, and **Tracking**. Click **Save** on a card to save its changes, or click **Save all** at the bottom of the page to save every card except **Access**, which has its own **Save** button.

Settings marked *(Default version)* only work with the **Default** widget version.

> [accordion] General
>
> In the **Widget** card:
>
> * **Widget**: Show the widget once your enabled experiences are ready.
> * **Version**: Select **Default (Recommended)** or a legacy version: **Standard**, **Small**, or **Large**.
>
> In the **Access** card:
>
> * **Widget access**: Select **Public** or **Private**. See [Widget access](#widget-access).
>
> In the **Sticky widget** card:
>
> * **Sticky widget**: Show the sticky widget when the main widget is out of view.
> * **Position**: Select **Left**, **Center**, or **Right** for where the sticky widget docks at the bottom of the screen. Shown when **Sticky widget** is on.
>
> In the **Disclosure** card:
>
> * **Disclosure**: Show a permanent disclosure line below the widget. *(Default version)*
> * **Disclosure text**: The line shown below the widget. Shown when **Disclosure** is on.
> * **Disclosure link**: Optional. Add a link to your disclosure text. Shown when **Disclosure** is on.

> [accordion] Audio
>
> In the **Experiences** card:
>
> * **Article**: Let readers listen to the full article, if available. *(Default version)*
> * **Summary**: Let readers listen to the article summary, if available. *(Default version)*
> * **Allow downloads**: Let readers download audio from the widget.
>
> In the **Immersion reading** card, all settings need **Article** turned on:
>
> * **Playback from paragraphs**: Let readers click any paragraph to start playback there.
> * **Word highlighting**: Highlight each word as it's read aloud.
> * **Word highlight color**: Choose a light mode and a dark mode color. Shown when **Word highlighting** is on.
> * **Paragraph highlighting**: Highlight each paragraph as it's read aloud.
> * **Paragraph highlight colors**: Choose a light mode and a dark mode color. Shown when **Paragraph highlighting** is on.
>
> In the **Playlists** card:
>
> * **Items shown**: Enter a number from 1 to 20 for how many playlist items are visible in the preview at once.
> * **Playlist toggle**: Let readers toggle the playlist preview instead of keeping it always visible.
> * **Outros in playlists**: Select **After last item only** or **After each item** for when outros play in playlists.
>
> In the **Widget text (audio)** card:
>
> * **Call to action**: The text prompt that shows before audio plays.
> * **Show title during playback**: Show the project or playlist title in the widget during playback. *(Default version)*
> * **Info icon**: Show an info icon in the widget that reveals your own text. *(Default version)*
> * **Info text**: The text shown when readers tap the info icon. Shown when **Info icon** is on.
>
> In the **Playback behavior** card:
>
> * **Intro**: Upload a WAV or MP3 file, up to 100MB, to play at the start of playback.
> * **Outro**: Upload a WAV or MP3 file, up to 100MB, to play at the end of playback.
> * **Skip behavior**: Choose what the skip buttons do when playing a single audio: **Skip by paragraph**, **Skip by seconds**, or **Skip by item**.
> * **Skip by seconds**: Choose how far the back and forward buttons move: 5, 10, or 15 seconds each way. Shown when **Skip behavior** is **Skip by seconds**.
> * **Continuous playback**: Queue your most recent audio items after the original audio.

> [accordion] Agent
>
> In the **Experiences** card:
>
> * **Agent**: Let users chat with your agent in the widget. *(Default version)*
> * **Conversation mode**: Select **Text and voice** or **Text only**. Shown when **Agent** is on.
>
> You cannot turn on **Agent** until the agent is turned on in **Agent → Preferences** in the project dashboard. If **Agent** is already on in the widget, you can still turn it off.
>
> In the **Widget text (agent)** card:
>
> * **Placeholder text**: The text shown in the input box before the user starts typing.
>
> In the **Conversation starters** card:
>
> * **Conversation starters**: Optional. Add prompts users can tap to start a conversation with your agent. Press Enter or click **Add** to save each prompt.

> [accordion] Appearance
>
> In the **General** card:
>
> * **Corner rounding**: Enter a number from 0 to 16 for how rounded the corners of the widget are. *(Default version)*
> * **Display image**: Show each item's featured image in the widget, or the custom image if you add one. Needs a legacy version.
> * **Custom image**: Optional. Upload a PNG, JPG, or WebP file, up to 10MB. Shown when **Display image** is on.
> * **Color theme**: Select **Light mode**, **Dark mode**, or **Adapt to device**.
>
> In the **General colors** card, each setting has a light mode and a dark mode color:
>
> * **Background color**: The background color of the widget.
> * **Icon color**: The color of icons, such as the play and submit buttons.
> * **Primary text color**: The color of important text, such as the audio call to action.
> * **Secondary text color**: The color of secondary text, such as audio duration times. *(Default version)*
> * **Link color**: The color of links, such as linked disclosure text. *(Default version)*
> * **Subtle color**: The color of subtle elements, such as divider lines. *(Default version)*
>
> In the **Video widget colors** card, each setting has one color for all modes. All settings need the Default version:
>
> * **Background color**: The video surface behind the controls.
> * **Text color**: The color of text in the video widget.
> * **Icon color**: The color of the video controls.
> * **Subtle color**: The color of quiet elements, such as progress tracks and dividers.
>
> In the **Agent colors** card:
>
> * **Agent icon**: Select **Color orb** or **Custom avatar**. *(Default version)*
> * **Agent color**: Choose a light mode and a dark mode color for the orb. Shown when **Agent icon** is **Color orb**.
> * **Avatar image**: Upload a PNG, JPG, or WebP file, up to 10MB. It shows in both light and dark mode. Shown when **Agent icon** is **Custom avatar**.
> * **Bubble color**: Choose a light mode and a dark mode color for the background of user chat bubbles. *(Default version)*
> * **Bubble text color**: Choose a light mode and a dark mode color for text in user chat bubbles. *(Default version)*

> [accordion] Tracking
>
> In the **Analytics** card:
>
> * **Track analytics**: Measure how readers engage with the widget.
> * **Track unique users**: Count unique listeners per session with a temporary, anonymous ID. Shown when **Track analytics** is on.
>
> In the **Integrations** card, see [Analytics integrations](https://docs.beyondwords.io/docs-and-guides/audio/analytics/integrations.md):
>
> * **Google Analytics**: Send widget events to Google Analytics or Google Tag Manager.
> * **Identifier**: Your Google Analytics tracking ID or Google Tag Manager container ID. Shown when **Google Analytics** is on.
> * **Custom endpoint**: Send widget events to a URL you control.
> * **Endpoint URL**: The full URL, including https\://, where the widget sends its events. Shown when **Custom endpoint** is on.

## Widget access

Use the **Access** card on the **Widget** page to choose how readers get an [access tier](https://docs.beyondwords.io/docs-and-guides/access-tiers.md):

* **Public**: Anyone can listen. Your embed code can pass an access tier slug. Everyone else gets the **Default** tier.
* **Private**: Readers sign in with Ghost or Piano to get their access tier. Everyone else gets the **Default** tier.

The widget is **Public** by default.

To make the widget private:

1. Set up [authentication](https://docs.beyondwords.io/docs-and-guides/access-tiers.md#set-up-access-tiers) with Ghost or Piano.
2. Go to **Widget**.
3. In the **Access** card, select **Private**.
4. Click **Save**, then click **Make private** to confirm.
5. Add `authProvider: 'ghost'` or `authProvider: 'piano'` to your widget embed code, if necessary. The embed code you copy from the project dashboard includes it.

For Ghost, the widget must run on your Ghost site. For Piano, your pages must load Piano's script and sign readers in with Piano ID or Piano ID Lite.

> [!NOTE]
>
> A private widget ignores any access tier slug in your embed code. Readers who sign in or out see their new tier after they reload the page. Tier changes can take up to an hour to reach readers who are already signed in.

Private access must be turned on for your organization. If the **Access** card says it isn't available, [contact support](mailto:support@beyondwords.io).

## Installation

If you use Magic Embed or the WordPress plugin, the widget is installed automatically. For Ghost, add the widget script to your site footer (see [Ghost](https://docs.beyondwords.io/docs-and-guides/integrations/publishing-platforms/ghost.md)). For custom integrations, use one of the following methods:

* [**JavaScript SDK**](https://docs.beyondwords.io/docs-and-guides/widget/installation/javascript-sdk.md): Embed the widget directly into your website using JavaScript or NPM.
* [**Widget API**](https://docs.beyondwords.io/docs-and-guides/widget/developer-guides/widget-api.md): Programmatically control playback, metadata, events, and widget behavior.
* [**iOS SDK**](https://docs.beyondwords.io/docs-and-guides/widget/installation/ios-sdk.md): Integrate the BeyondWords widget into iOS apps (audio only).
* [**Android SDK**](https://docs.beyondwords.io/docs-and-guides/widget/installation/android-sdk.md): Integrate the BeyondWords widget into Android apps (audio only).

For more control over the interface, [build your own UI](https://docs.beyondwords.io/docs-and-guides/widget/developer-guides/build-your-own-ui.md) by using BeyondWords components or working directly with the SDKs. The SDKs handle playback, streaming, playlists, analytics events, and content delivery, while you control the design, controls, and layout.

## Manually embed the widget

You can use the widget to manually embed specific audios, videos, or playlists.

> [tab] Individual items
>
> 1. Go to **Content → Items**.
> 2. Click **Show media** next to the item.
> 3. Click the copy embed code icon next to the file you want, then paste the code wherever you like.

> [tab] Playlists
>
> 1. Go to **Audio → Playlists**.
> 2. Click **••• → Get embed code** next to your chosen playlist.
> 3. Paste the embed code wherever you like.

## FAQs

> [accordion] What's the difference between the main widget and the sticky widget?
>
> The main widget is embedded at the `target` element in your page. The **sticky widget** is a floating mini-player that appears when readers scroll past the main widget, keeping playback accessible.

> [accordion] Why aren't my changes appearing in the widget?
>
> It may take up to 5 minutes for saved changes to take effect, due to caching.
>
> If you don't see your updates right away, wait 5 minutes then hard refresh the page before [troubleshooting](https://docs.beyondwords.io/docs-and-guides/support/troubleshooting.md) further.

> [accordion] Does the intro play when the user uses playback from paragraphs?
>
> Yes, the intro will play if the reader starts playback from a paragraph.

> [accordion] What order does audio play in?
>
> Main content always plays. Optional segments (intro, ads, and outro) are inserted in this order when configured:
>
> 1. Intro (optional)
> 2. Pre-roll ad (optional)
> 3. Main content (first half)
> 4. Mid-roll ad (optional)
> 5. Main content (second half)
> 6. Post-roll ad (optional)
> 7. Outro (optional)
>
> Any segment that isn't configured is skipped. For example, if you have no intro, ads, or outro, playback goes straight to the main content.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.