What a Streamelements command does and how to set one up

A Streamelements command is a text trigger that runs an action when you or your chat types it into your Twitch channel. Type !hello and Streamelements can reply with a message, play a sound, show an overlay, or run a custom script — all without you touching your keyboard. You set these up in the Streamelements dashboard, connect it to your Twitch account, and the commands work instantly in your chat.

The process takes about five minutes if you already have a Streamelements account. If you don't, you'll add that first. Either way, you'll authorize Streamelements to post in your chat, create the command in the dashboard, and test it live.

Key Takeaways

  • You need a Streamelements account connected to your Twitch channel before you can create any commands.
  • Commands are created in the Streamelements dashboard under the Commands section, not in Twitch itself.
  • Each command needs a trigger (the text people type), an action (what happens when they type it), and permission settings (who can use it).
  • Test every command in your own chat before going live to catch typos and timing issues.

Connect Streamelements to your Twitch channel

Open streamelements.com in your browser and click the login button in the top right. Choose "Login with Twitch" and enter your Twitch username and password. Twitch will ask you to authorize Streamelements to access your channel — click "Authorize" to proceed.

After authorization, you'll land on the Streamelements dashboard. Look for your channel name in the top left corner to confirm you're connected to the right account. If you see a different channel name, click it and select your actual channel from the dropdown.

Navigate to the Commands section

In the left sidebar of the Streamelements dashboard, find and click Commands. This opens a list of any commands you've already created. At the top right, you'll see a button labeled Create Command or a plus icon — click it to start a new command.

A form will appear with fields for the command name, response, and settings. This is where you define what the command does.

Set the command trigger and response

In the Command field, type the trigger text without the exclamation mark. If you want people to type !hello, enter hello. Keep triggers short and memorable — one or two words work best.

In the Response field, type what you want the command to output. This can be plain text like "Thanks for watching!" or a message with variables like "Thanks for watching, $(user)!" — that last one inserts the username of whoever triggered the command. Streamelements provides a list of available variables below the response field if you click on them.

If you want the command to do something beyond sending a message — like play a sound or show an overlay — you'll need to set that in the Action dropdown instead of using the Response field. Select the action type from the list, then configure its settings below.

Choose who can use the command

Scroll down to the Permissions section. By default, commands are set to "Everyone," meaning any viewer in chat can trigger them. If you want only moderators or the channel owner to use a command, click the dropdown and select a different permission level.

Common permission levels are Everyone, Moderators, and Streamer Only. Some commands (like a tip alert or donation command) should stay on Everyone. Others (like a command that changes your scene or plays a loud sound) should be Moderators or Streamer Only to prevent spam.

Save and test the command

Click the Save button at the bottom of the form. Streamelements will confirm the command was created. Now open your Twitch channel in another browser tab and go to your own chat.

Type the command trigger (with the exclamation mark) into chat — for example, !hello. If the command works, Streamelements will post the response immediately. If nothing happens, go back to the dashboard, click the command to edit it, and check for typos in the trigger or response fields. Save again and test once more.

Troubleshoot commands that don't work

If a command doesn't fire when you type it, the most common cause is that Streamelements lost permission to post in your chat. Go back to streamelements.com, click your profile icon in the top right, and select Settings. Find the Connections tab and look for Twitch. If it shows a red X or "Disconnected," click it and re-authorize. Then test the command again.

If the command fires but the response is wrong, edit the command and check the Response field for extra spaces, missing punctuation, or misspelled variable names. Variable names are case-sensitive — $(user) works but $(User) does not. Save the changes and test again.

If the command works for you but not for other viewers, check the Permissions setting. If it's set to "Streamer Only" or "Moderators," regular viewers won't be able to trigger it. Change it to "Everyone" if you want all chat members to use it.

Frequently Asked Questions

Can I make a command that responds with a random message each time?

Yes. In the Response field, use the format $(eval `["message one", "message two", "message three"][Math.floor(Math.random()*3)]`). Replace the text in quotes with your messages. Each time someone triggers the command, it picks one at random. You can add as many messages as you want — just make sure the number at the end matches how many messages you have.

What's the difference between a command and a timer?

A command runs only when someone types the trigger. A timer runs automatically at set intervals (every 10 minutes, for example) whether anyone types anything or not. Timers are useful for reminding viewers about your schedule or social media. Commands are for things viewers ask for on demand.

Can I delete a command after I create it?

Yes. Go to the Commands section in the dashboard, find the command in the list, and click the trash icon next to it. Confirm the deletion. The command will stop working immediately in your chat.

Do I need to be live for commands to work?

No. Commands work whether your channel is live or offline. Anyone in your chat can trigger them at any time, as long as Streamelements is connected to your account.

Can I use the same command trigger in Streamelements and another bot?

Both bots will respond to the same trigger, so you'll get two messages in chat. To avoid confusion, use different triggers for different bots, or disable the command in one of them.