OBS can keep a web page open as part of a scene using a Browser source. NomNomzBot uses that source to display alerts and captions or play sounds, music and videos. You copy an overlay’s address from the dashboard once, then OBS loads it whenever that source is active.
For example, a command can successfully request speech while the stream stays silent if the speech source is missing. Setting up the source connects the bot’s output to the stream; it is separate from giving the bot remote control of OBS.
The overlay link
The overlay link is the address OBS loads for one overlay. It has this shape, with your own values in place of the two placeholders:
https://your-bot-address/overlay?widgetId=YOUR-OVERLAY-ID&token=YOUR-OVERLAY-TOKEN
The token in the link is a secret of your channel. Anyone who has the link can open the overlay. Do not share it or show it on stream. The dashboard never prints the link: it copies it only when you choose a copy button.
The link starts with the address you used to open the dashboard, unless the bot’s operator set a separate overlay address. This address must be reachable from the computer that runs OBS. A link copied from a dashboard you opened as localhost on another computer will not load in OBS.
Add an overlay to OBS
- In the dashboard, open the OBS page and choose Overlays in OBS. Required overlays holds the supplied overlays, and Browser sources holds your own. Each row has Connect, or Configure when a browser source already has it open.
- Choose Connect on the overlay you want, or Configure if a browser source already has it open.
The dialog Set up
{name}in OBS opens, with the name of the overlay. - Read the setup lines in the dialog, if it shows them. The table below explains them.
- Choose Copy address. The button reads Copied for two seconds.
- In the OBS app, add a source of the type Browser and paste the address into its URL field.
Paste with Ctrl+V.
Paste with Command+V.
- In the OBS source settings, enter the width and height from the dialog. For an overlay you made yourself, the dialog shows no setup lines: enter 1920 x 1080.
- Set Control audio via OBS and Shutdown source when not visible as the dialog shows. For an overlay you made yourself, use the second table below.
- Save the source in OBS.
The dialog shows Loaded in OBS once a browser source has the overlay open. Until then it shows Not loaded in OBS. The button on the row then reads Configure.
Now trigger the feature you added the source for. For a custom overlay, open it in the dashboard: its Reacts to section, titled for example “Reacts to 3 events”, lists the events it listens for, and each event has a Test button. For speech, use a command with Read it aloud enabled. Check the OBS preview and audio mixer as well as the Loaded in OBS badge: an open page alone does not prove that viewers can see or hear the intended result.
| Line in the dialog | What to do in OBS |
|---|---|
| Width and height | Enter these two numbers. “full screen” marks 1920 x 1080. “1 x 1, it draws nothing” means the source draws nothing and needs no space. |
| Control audio via OBS | Tick it, or Leave it off, as the dialog says. |
| Shutdown source when not visible | The dialog says Leave it off, or the overlay misses events while hidden. |
The setup lines come with the overlays that are built in. An overlay you made yourself shows no setup lines. The bot keeps no size for it, so set it up the way the built-in overlays are set up:
| OBS setting | Value for your own overlay |
|---|---|
| Width and height | 1920 x 1080, full screen. |
| Control audio via OBS | Tick it when the overlay plays sound. Leave it off when it does not. |
| Shutdown source when not visible | Leave it off. |
Required overlays ends with OBS control, the browser source the bot uses to control OBS when OBS runs on another computer. Its dialog says 1 x 1, it draws nothing, and both boxes are off. You need permission to change the OBS link to copy the OBS control address; without it that row reads Needs permission to change the OBS link. See OBS.
Copy the link from the overlay
You can also copy the link from an open overlay. Choose Copy browser source address at the top of the overlay. The button then reads Address copied.
When an overlay has no link yet, the button is not available, and the overlay shows “This overlay has no address yet.”
Check that it shows
The Health part of an open overlay shows A browser source is open when OBS has it open. It shows Nothing attached when no browser source has it open. How to read the rest of Health is on Set up overlays.
To check the whole path, choose Test beside an event under Reacts to. The row shows “Sent to this overlay” when a browser source has it open. It shows “Sent, but no browser source has it open” when none has.
The connection that lets the bot control OBS is a separate thing, explained on OBS.
Troubleshooting
When something is not right
The browser source shows “This overlay URL is missing its token.” The link lost its end when you pasted it. Copy the address again and paste the full address.
When something is not right
The browser source shows “This overlay token is not valid.” The link is old or wrong, or its overlay was deleted. Copy the address again from the dashboard and paste it into the source.
When something is not right
The browser source shows “That widget is not live on this channel (unknown, disabled, or not built).” The overlay is switched off or has no working code. Switch it on, or open Edit code and choose Save & Compile, as Set up overlays explains.
When something is not right
The overlay’s Health shows Nothing attached in red, or the dialog shows Not loaded in OBS. The overlay is switched on, but no live browser source has it open, so nothing shows on stream. Add or refresh the browser source in OBS. When the OBS connection is on, and in bridge mode when a bridge page is open, the bot refreshes the source for you.
When something is not right
The browser source shows “Add ?widgetId= to load a widget.” The link lost its overlay ID. Copy the address again and paste the full address.
When something is not right
The browser source shows “This widget has not been built yet.” The overlay has no built code. Open Edit code and choose Save & Compile, as Set up overlays explains.