Viewers Control Your TikTok Stream With Webhooks
- Harry
- Dec 8, 2022
- 2 min read
Want to notify Discord when you go live or get a big gift? How about letting viewers send gifts to change songs on Spotify, activate your Alexa, control your smart devices, post on your Twitter or do something crazy like turn off your PC?
The possibilities with TikFinity and IFTTT webhooks are endless and pretty easy to set up once you know how. If you're unfamiliar with TikFinity, I would suggest checking out my guide first.
So IFTTT stands for If This, Then That. In our case, "this" is a call from TikFinity and "that" is typically IFTTT controlling something.
Step 1: IFTTT Maker Webhooks
Regardless of what you use Webhooks for, these first 3 steps are always required.
Head to the IFTTT website, click explore then type in webhooks and click on it. Next, click documentation and copy the top URL on the page.
TikFinity will "call" this URL to enable your desired action.
Do not share this key with others. I'm only sharing mine because I can reset it before posting this.
Save this link somewhere like notepad or Google Docs. You will need this for everything we do.
Step 2: TikFinity Webhooks
Next up, head to TikFinity. Now on the Actions & Events page make yourself a new action or edit an existing one.
Tick the webhooks box and paste in your IFTTT webhook URL. Now we want to replace the "{event}" part of our webhook URL with a basic description of what happens.
While we're learning, we'll just type in "test", and then we can change it later.

Go ahead and save the action and now assign it to an event. I'll assign it to a command for now. We can easily edit this later.

Step 3: IFTTT Services
This step is gonna show us what services the viewers can control. It's also gonna be how TikFinity connects to IFTTT.
Click on Create in the top right of IFTTT. Click "If This" and type in webhooks and once clicked, choose "Receive a web request". Now type in the name of your request, you can just type "test" and change it later. This is how TikFinity connects to IFTTT.
Next, click "Then That" and now you have a gigantic list of everything your viewers can control. So just type in what you're looking for. Things like Discord, Spotify and Twitter are all there, along with many of the most popular smart devices too.
So these 3 steps are required for any TikFinity webhook. Now let's set up some specific examples and you can use the chapters to find what you want.
Step 4: Choose What The Viewers Will Do
Make sure you've done steps 1-3 first!
Notify Discord When Going LIVE
Let's make a webhook that notifies Discord when we have gone live.
Firstly, edit your TikFinity action or make a new one and change the webhook event name to something like "live_now". Rename the action to something like "Discord Live Noti".
Now edit or make a new event. The person able to trigger the event should either be moderators or yourself. The event trigger is "Commenting a command".
Next up, name the command something like "!livenoti" and choose the correct action from the list then save.
Now move over to IFTTT and either edit an existing applet by clicking settings in the top right or click on create which is also there.
Change the webhook event to "live_now" or whatever you chose.
For "Then That", choose Discord and connect your account if not done already. This should also add the IFTTT bot to your server. Make sure this bot can type in the channel you want to use.
Now just choose "Post a message to a channel" then find your chosen server and channel. Delete everything from the message box then replace it with your message. For example, mine will say "@everyone Mojo is now live on TikTok: https://www.tiktok.com/@wg_mojo/live ". You can then choose the allowable mentions and hit create and save the applet.
All done. Now when you type "!livenoti" into your TikTok chat you can notify Discord that you're live.
Notify Socials When A Large Gift Is Received
When somebody sends a massive gift, you can post on Discord, Twitter or a Facebook page. This can get more viewers into your LIVE to create some hype and encourage more gifters. I'll choose Discord as my example.
Firstly, edit or create an action named "Discord - Large Gift". Change the "{event}" part of your IFTTT webhook to something like "large_gift". Save the action.
Now edit or make a new event. Everyone can trigger this event. I will trigger it with "Sending a gift with min coin value". You could also choose the specific gift option. I want to create hype for any gift worth over $50 to me so I'll set the minimum coin value to 10,000 (1 coin = 0.5 cents). Finally, choose the correct action.
Now head over to IFTTT and edit or create a new applet. The webhook event name is "large_gift".
"Then That" is either Discord, Facebook or Twitter. Now choose the option to post a message to your chosen platform and type in your message. Mine will be for Discord so it will say "@everyone we just received a MASSIVE gift. Get in the LIVE right now!". Save the applet.
All done. Now when you get a major gift a message will appear on your chosen social account!
Viewers Control Spotify
Viewers can pause your Spotify, skip a track or add a pre-selected track to your queue using IFTTT. The most sensible way to trigger this is by sending a specific gift. This requires Spotify Premium.
Start on TikFinity by creating a new action or editing an existing one and name it "Spotify X". e.g. "Spotify Skip Song".
In the webhook section add your URL and change {event} to something relevant like "skip_song". Save the action.
Now edit or create a new event and choose how the viewers interact with Spotify. For example, you can choose "sending a specific gift" and pick the Sunglasses gift. This means whenever sunglasses is sent, the song is skipped. Another example could be that sending 1k likes skips the song.
Once you've decided, choose the action from the drop-down and save the event.
Now head over to IFTTT and create a new applet. "If This" is Webhook: receiving a web request. Your event name is the same as in your URL. In our case, it's "skip_song".
"Then That" is Spotify. Link your Spotify Premium account then choose what happens. I'll choose to skip the song. As discussed, you could also choose the pause option or the option to play a specific track. If you need a song's URL then click the three dots on Spotify next to a track. Save the applet.
All done, now the viewers can control your Spotify!
Viewers Control Smart Speaker
Unfortunately, I don't have a smart speaker to test this with but IFTTT supports Alexa Voice Monkey which allows you to trigger Alexa routines. So you can let your viewers trigger routines such as playing music when you get a sub.
Start by making or editing a TikFinity action. Title it "Alexa Webhook" or similar. Then change the {event} part of your webhook URL to something relevant. e.g. "sub_routine". Save the action.
Now decide how your viewers activate the speaker routine by making or editing an event. For example, when a viewer subscribes it could activate an Alexa routine that plays music and turns on a smart light. Make sure you choose the correct action from the list then save the event.
Now head over to IFTTT and create or edit an applet. "If This" is Webhook: receiving a web request. Your event name is the same as in your URL. In our case, it's "sub_routine".
For "Then That", choose Alexa Voice Monkey or any other smart device option you can find. You will need a Voice Monkey account which is incredibly cheap. Choose "Trigger Monkey" as your trigger then find the correct routine. Save the applet.
All done! Now when you get a sub, it triggers an Alexa routine!
P.S. Sub alerts broken? Check this article.
Viewers Control Smart Lights And Other Smart Devices
IFTTT is compatible with most brands of smart home device such as lights, LED strips etc. This means your viewers can control basically any smart device that you own. In our example, viewers will send a Money Gun to turn off a TP-Link smart bulb.
Start by making or editing an action on TikFinity. Title it "Light Off" or similar. Replace the {event} part of your webhook URL with something like "light_off". Save the action.
Now make or edit an event. The trigger is "sending a specific gift" and for us the gift is Money Gun. Select the "Light Off" action from the list and save the event.
Head over to IFTTT and create or edit an applet. "If This" is Webhook: receiving a web request. Your event name is the same as in your URL. In our case, it's "light_off".
For "Then That" we choose the brand name of our smart device. For me this is TP-Link. Connect your smart device account if not done already. I will choose the "turn off" option and select my device from the list. Save the applet.
All done! Now when I get a Money Gun it will turn off my smart bulb.
Viewers Turn On/Off ANYTHING
How about going one step further and letting viewers turn any device off? Even devices which aren't "smart". You can do this with a smart plug. All you do is plug your chosen device into the smart plug. Which then goes into the wall.
In our example, the viewers will turn my monitor off by sending the expensive Private Jet gift.
Start by making or editing a TikFinity action. I will name mine "Monitor Off". Now replace the {event} part of your webhook URL. I will replace it with "monitor_off". Save the action.
Now make or edit a new event and choose "sending a specific gift". Choose your gift from the list, in my case, I am choosing Jet Plane. Then choose your "Monitor Off" action and save the event.
Head over to IFTTT and create or edit an applet. "If This" is Webhook: receiving a web request. Your event name is the same as in your URL. In our case, it's "monitor_off".
For "Then That" choose the brand name of your smart plug. Mine is TP-Link. Now choose whether to turn on or off your smart plug. Save the applet.
All done! Now when a viewer sends a Private Jet it turns my monitor off.
It might be a good idea to make another webhook that turns it back on. 😂
Viewers Post On Your Social Media
IFTTT can be used to post a chosen message directly to both a Twitter account and a Facebook page. For example, you could post when going live (see further up) or you could allow the viewers to send an embarrassing message for a large gift.
Let's post a cringe tweet on my Twitter account if somebody sends a Lion.
Start by making or editing a TikFinity action. I'll call mine "Cringe Tweet". Change the {event} part of your webhook URL to something relevant like "cringe_tweet". Save the action.
Now make or edit an event. Choose "sending a specific gift" and for me, I'll choose the Lion gift. Then choose your "Cringe Tweet" action and save the event.
Head over to IFTTT and create or edit an applet. "If This" is Webhook: receiving a web request. Your event name is the same as in your URL. In our case, it's "cringe_tweet".
For "Then That" choose either Twitter or Facebook Pages. I'll choose Twitter and then choose the option to post a Tweet with an image. Upload your image and any text then save the applet.
All done. Now when a viewer sends a Lion gift it will post a cringe tweet!
Custom
There are literally hundreds of things you can do with IFTTT and I can't cover them all. Check the Explore tab on IFTTT to see what you can use then just follow steps 1 to 3 above.
Test Your Webhooks
It's really easy to test your webhooks. Just go to the Actions and Events page on TikFinity and press the play button to the left of your desired action.
If you need further help don't forget you can check out my Fiverr or come to my Discord.
Thanks for reading!
Harry