top of page

Streamer.bot Integration with ai_licia for Twitch Channel Points redeems

Writer's picture: Nicolas JellabNicolas Jellab

 

If you are streaming on Twitch and has looked into bringing chatbots in your channel, you are probably familiar with the name Streamer.bot.


For those who aren’t, let me give you an overview of what Streamer.bot is. Streamer.bot is a powerful, free, and customisable tool designed for streamers to automate and enhance their live streams. It integrates with platforms like Twitch and YouTube, enabling users to create complex actions, manage chat commands, control devices, and trigger events in real time.


If you are looking to bring evolved automation into your stream, Streamer.bot is a great tool!


Today, we’ll be looking at how we can integrate ai_licia with Streamer.bot to make your Channel Points redeem more fun and interactive.


If you prefer a video format, TheatriChris made an awesome video driving you through the different steps to set up the integration.


TheatriChris tutorial video for Streamer.bot integration

ai_licia Public API

This kind of integration is made possible thanks to ai_licia’s Public API, which enables you to feed data to ai_licia and trigger messages from ai_licia, with the instructions of what you’d like to happen.


The full documentation of how to use it is available here, and you have examples ready in the Github repository.


Our goal is to add a Channel Point redeem, named Cue Horoscope, which will make ai_licia tell the viewer that requested it their horoscope, based on their sign.


You will need to have Python installed on your computer. If what I just said makes no sense to you, we have this guide ready for you.


Getting the Script ready

First, you will have to prepare the script you want to use in your Streamer.bot config ready. You can use this Python script with a few modifications: 

Save that script, with your updates, as a local file on your computer that you will pass to Streamer.bot later on.


Adding an action

Now, time to start tying everything together!


Create a new action with the name of your choice. If you have groups of actions, put that action in the relevant group.


Add an Action
Add an Action

Adding a Trigger

Since we want this action to be performed when someone redeems Channel Points, we must create a Trigger.


What I would recommend is Twitch -> Channel Reward -> Reward Redemption.


If the Reward you want to use as the Reward Redemption, you can create a new one. It is the same kind of setup you would do on Twitch side to create a Channel Point redeem, though with a slightly different UI.


Add a Trigger
Add a Trigger

Now, you should see “Cue horoscope” in the list of Reward Redemption options, select it.


Creating a Sub-Action

Now, let’s add a Sub-Action to that Trigger.


Create a Sub-Action and select Core -> System -> Run a Program.


You will be asked for a few information regarding where the program is, and how it is supposed to be ran.

  • Target: the Python runner we will use. We will use pythonw.exe which is often found in Windows(C:)\Users\[YourName]\AppData\Local\Programs\Python\Python313

  • Working Directory: The folder containing the script you saved at the start.

  • Arguments: The name of the script followed by Streamer.bot variables, formatted as: "%variableName%" "%variableName2%". In our example, our script is called Horoscope.py, so the whole text in that field would be Horoscope.py "%user%" "%rawInput%" which will get you the username of the person who redeemed and what they typed (their sign).


Now, head to Twitch, and try claiming your Channel Point redeem. You should see ai_licia writing (and if you are using TTS, saying) your horoscope in chat!Note that you need ai_licia to be in your chat when making the test, which you can do outside of your stream from the Go Live page.


And that’s it, you have one Channel Point redeem integrated with ai_licia! You can create different redeems following the same process, with different scripts for each of the Channel Point.


 

We have more Streamer.bot integration example coming soon, so stay tuned! If you have any question, join our Discord. Try ai_licia now for free!

 
 
 

Comments


bottom of page