Skip to content

YouTube Quickstart: Set Up Your Chatbot

YouTube

Part 5 of 5 · All steps

Add StreamElements as a moderator, then create a command, schedule a timer, and choose your spam filters.

Chatbot overview with commands, timers, counters, and spam filters

  1. Open YouTube Studio and go to Settings → Community.
  2. Add StreamElements as a moderator using either channel URL:
    • https://youtube.com/c/streamelements
    • https://www.youtube.com/channel/UCjerlCIbLPQwSnYlClkjDXg
  3. When you’re live, select Live chat. Top chat can hide the bot’s messages.

If the bot doesn’t join, check that your stream is public, the StreamElements dashboard shows you as live, and the moderator URL matches one of the URLs above.

This example creates a !hello command that replies with the viewer’s name.

Chat commands page showing Default commands

  1. From the bot command dashboard, open the Custom commands tab and click Add new command.

  2. Choose Start from scratch and enter hello in Command name. Viewers will type !hello to use it.

  3. In Reply, enter:

    Hello $(sender)!
  4. Click Activate command, then type !hello in your live chat to check the reply.

The $(sender) variable inserts the name of the person who used the command. Use it for names on YouTube; $(user) doesn’t work there.

Add a chat command dialog with Start from scratch and command templates

Timers post messages at set intervals while you’re live. Use them for social links or schedule reminders.

  1. From the bot timers dashboard, click Add new timer.
  2. Name it, add a message, and set the Online interval in minutes.
  3. Click Activate Timer.

Empty Timers page with the Add new timer button

Add a timer dialog with Socials, Discord, and Hydration break templates

Open Chatbot → Spam filters and choose Minimum, Medium, or Maximum protection. Expand a filter to change its settings. Use Banned Words to block specific words or phrases.

Spam filters and protection level settings

Banned words page with phrase groups

New banned-phrase group with timeout and exclusion settings