Skip to content

Set stream info is a pipeline step that changes the title, the category and the tags of your stream. Put it in a pipeline and anything that starts the pipeline can change the stream: a chat command, a timer or an event response. You add it in the pipeline editor, from the Stream group in Steps to add.

The step has three fields: Title, Category and Tags. Each field is optional. A field you leave empty keeps its current value on the stream. A step with all three fields empty fails, so fill in at least one.

Before you start

The step works on the channel that owns the pipeline, with that channel’s own connection to Twitch. If the connection lacks the permission to change the stream, the run fails and says so; see Troubleshooting.

The Who can use it setting of the command that starts the pipeline decides who can run the step. Set that command to moderators or to the broadcaster, so a viewer cannot rename your stream. Cooldowns and permissions shows how.

Change the title with a !title command

This example makes a !title command that sets the title to whatever follows the command in chat. It leaves the category and the tags alone.

  1. Open Pipelines, choose New pipeline, type a name in Name and choose Make pipeline.
  2. Choose Add a step at the end, then choose Set stream info under Stream. Its settings open in Step details.
  3. Write {args} in Title. {args} fills in with the words after the command, so !title Chill games and chat sets the title to “Chill games and chat”. Variables and templates lists the other values you can use.
  4. Leave Category and Tags empty.
  5. Choose Save above the steps.
  6. Open Commands, make a new command named title, set What it does to Runs a pipeline, pick your pipeline in Pipeline, and choose Create command. Pipelines covers this part in full.
  7. In the editor of the new command, set Who can use it to moderators or the broadcaster.

Type !title followed by a new title in chat. The stream title changes on the platform.

Set up the start of a stream

This pipeline sets all three values in one go, for a command such as !start. It uses three Set stream info steps, each with one field filled in.

  1. Add a Set stream info step and write the title in Title.
  2. Add a second Set stream info step and write your tags in Tags.
  3. Add a third Set stream info step, then search for the game by name in Category and pick it.
  4. Choose Save.

The steps run in order, top to bottom. In a live run from the editor, the run log lists each step with the result “ok: stream info updated”.

A single step with all three fields filled in works the same way. Separate steps let you reuse one of them in another pipeline, and a failure then names the one step that failed.

Test it with Run live in How to run. A dry run only records the steps and changes nothing on the stream; Pipelines explains the difference.

What each field takes

FieldWhat you enterEmpty means
TitleThe new stream title. It supports values in braces such as {args}.The title stays as it is.
CategoryThe category by name. Search for it and pick it from the list.The category stays as it is.
TagsThe tags to set, up to 10, each up to 25 characters, with no spaces or special characters.The tags stay as they are.

The tags you set replace the current tags. To keep a tag, include it in the list.

Change the stream from a script

A script reaches the same step through the actions of the SDK.

JavaScript
await nnz.api.actions.invoke('set_stream_info', {
title: 'Chill games and chat',
category: 'Just Chatting',
tags: ['English', 'Chill'],
});

All three values are optional here too. Widgets, actions and templates lists the other actions a script can run.

Troubleshooting

When something is not right

The run fails with “set_stream_info needs at least one of a title, a category or tags”. All three fields were empty when the step ran. Fill in at least one field. If Title holds {args}, check that the command was typed with a title after it.

The run fails and the message names a missing permission. The channel’s connection to Twitch does not have the permission this step needs. The message ends with the way out: grant the permission again from the connection status in the dashboard.

The run fails with a reason from Twitch. Twitch refused the change, and the run log shows the reason Twitch gave. Fix what the reason names, for example a tag that is too long, and run the step again.