331 Active Channels•277,633 Community Users•140,034 Tokes Logged•9,439 Strains Cataloged•Free Forever Core Bot•Twitch + Kick + Discord•
331 Active Channels•277,633 Community Users•140,034 Tokes Logged•9,439 Strains Cataloged•Free Forever Core Bot•Twitch + Kick + Discord•

Automations, Triggers & Desktop Companion

Connect Twitch, Kick, Ko-fi, Streamlabs, Fourthwall, Throne, and Pulsoid events to automated Twitch actions, Discord alerts, and local OBS / VTube Studio controls.

Step 1: Create a Cloud Automation Rule

  1. Go to Dashboard → Automations.
  2. Give your rule a clear name (e.g., Raid → Marker + Discord Alert).
  3. Pick a Trigger (e.g., Twitch: Incoming Raid) and an Action (e.g., Twitch: Create Stream Marker).
  4. Enter the Action Value. You can use template variables: {user}, {amount}, {message}, {title}, {game}.
  5. Click Save Automation Rule, then click Test to verify it fires immediately.
Example: Trigger = twitch_raid | Action = twitch_announcement | Value = Welcome {user} and their {amount} raiders! Check out !so {user}

Step 2: Connect External Webhooks (Ko-fi, Streamlabs, Fourthwall, etc.)

  1. In Dashboard → Automations, select your platform from the Incoming Webhook URL dropdown.
  2. Click Copy URL. It includes your unique channel token automatically:
    https://www.canna-friend.com/api/webhooks/automation/<your_channel>/<source>?token=<your_token>
  3. Paste that URL into your provider's webhook settings (Ko-fi API/Webhooks, Fourthwall Webhooks, Streamlabs, etc.).
  4. Create an automation rule using the matching webhook_* trigger (for example, webhook_kofi → twitch_announcement).

Step 3: Phase 2 Desktop Companion (OBS Studio & VTube Studio)

Because OBS Studio and VTube Studio run locally on your PC, CannaFriend uses a lightweight Desktop Companion script that connects securely over WebSocket (wss://www.canna-friend.com:5001) and executes local actions in real time.

  1. In Dashboard → Automations, click Download Windows App (.exe) to download CannaFriend-Companion-Setup.exe (no Node.js required; Mac/Linux users can click Mac/Linux (.js)).
  2. Double-click CannaFriend-Companion-Setup.exe. It automatically opens a local setup wizard in your browser (http://127.0.0.1:44551) and auto-detects OBS Studio.
  3. Review the transparent checkboxes (each explains what it does & why): enable OBS WebSocket (port 4455), restart OBS if running, optional VTube Studio bridge, and optional Windows Startup.
  4. Enter your Twitch channel name and click Apply Selected & Connect (use Test OBS Connection to verify).
  5. Create a rule with Action = Companion WS: Trigger OBS / Local App, select OBS Studio → Switch Scene, and enter your exact OBS scene name (e.g., BRB or Gameplay).
Supports OBS (SwitchScene, SaveReplayBuffer, StartRecording, StopRecording), VTube Studio (ws://127.0.0.1:8001 hotkeys), and local HTTP forwarding (LOCAL_HTTP_URL=http://127.0.0.1:7474 for Streamer.bot / Mix It Up).

Supported Triggers (15)

Trigger IDPlatformWhen It Fires
twitch_followTwitchFires when someone follows your Twitch channel.
twitch_subTwitchFires on new subscriptions or resubs.
twitch_giftsubTwitchFires when a viewer gifts subs.
twitch_raidTwitchFires on incoming Twitch raids ({user}, {amount} viewers).
twitch_cheerTwitchFires on Bits cheers ({user}, {amount} bits, {message}).
twitch_redemptionTwitchFires on Channel Point redemptions ({user}, {title}).
kick_followKickFires when someone follows your Kick channel.
kick_subKickFires on Kick subscriptions.
kick_kicksKickFires when someone sends Kicks.
webhook_kofiWebhookKo-fi donations, memberships, and shop orders.
webhook_streamlabsWebhookStreamlabs tips and merch alerts.
webhook_streamelementsWebhookStreamElements tips.
webhook_fourthwallWebhookFourthwall orders, donations, and giveaways.
webhook_throneWebhookThrone wishlist gifts.
webhook_pulsoidWebhookPulsoid / HypeRate heart-rate BPM events.

Supported Actions (11)

Action IDWhat It Does
twitch_announcementSends a colored Twitch chat announcement using Helix API.
twitch_slow_modeTurns on chat slow mode (configurable seconds).
twitch_sub_modeToggles Subscriber-Only chat mode.
twitch_emote_modeToggles Emote-Only chat mode.
twitch_follower_modeToggles Follower-Only chat mode (configurable minutes).
twitch_commercialRuns an ad break (30s–180s).
twitch_markerDrops a Twitch VOD stream marker with custom label.
twitch_shield_lockActivates Twitch Shield Mode automatically.
discord_webhookPosts a formatted message to any Discord channel webhook.
http_webhookSends a JSON POST payload to any external HTTP endpoint.
ws_companion_actionSends a real-time command to your PC via the Desktop Companion (OBS, VTube Studio, Streamer.bot).