Pular para o conteúdo principal

Twitch Moderator Bot

Bot Twitch baseado em regras que lida com comandos simples de chat e encaminha todas as outras mensagens para um workflow de moderação vinculado que detecta venda de espectadores, venda de inscritos e spam similar.

agent bot twitch moderation spam commands

Baixar ZIP

O que está incluído

CampoValor
NomeTwitch Moderator Bot
TipoAgent
Tipo de Assistantbot
Regras5

Dependências Incluídas

informação

O ZIP para download inclui todas as dependências listadas abaixo. Todas as referências cruzadas são vinculadas automaticamente durante a importação.

Workflows: Classificar Mensagem Publicitária do Twitch

Substitua workflowId pelo ID deste workflow vinculado ao inserir o bot.

JSON Completo

Clique para expandir
{
"description": "Rule-based Twitch bot that handles simple chat commands and forwards all other messages to a linked moderation workflow that detects viewer-selling, subscriber-selling, and similar spam.",
"tags": [
"agent",
"bot",
"twitch",
"moderation",
"spam",
"commands"
],
"linkedExamples": [
{
"type": "workflows",
"variant": "twitch-bot-assistant-moderator",
"relationship": "Replace `workflowId` with the ID of this linked workflow when seeding the bot."
}
],
"document": {
"name": "Twitch Moderator Bot",
"assistantType": "bot",
"platformType": null,
"options": {
"log_level": "info"
},
"platform": {
"bot": {
"stopOnFirstMatch": true,
"fallbackMessage": {
"expr": "\"\"",
"onFailure": "throw"
},
"rules": [
{
"condition": {
"expr": "contactMessage.body.text.startsWith('!hello')",
"onFailure": "throw"
},
"action": {
"actionType": "actions/messaging/conversation/response/compose",
"actions/messaging/conversation/response/compose": {
"messages": [
{
"type": "text",
"payload": {
"text": {
"expr": "\"Hello! Welcome to the stream!\"",
"onFailure": "throw",
"useSimpleCel": true
}
}
}
]
}
}
},
{
"condition": {
"expr": "contactMessage.body.text.startsWith('!help')",
"onFailure": "throw"
},
"action": {
"actionType": "actions/messaging/conversation/response/compose",
"actions/messaging/conversation/response/compose": {
"messages": [
{
"type": "text",
"payload": {
"text": {
"expr": "\"Available commands: !hello, !help, !socials\"",
"onFailure": "throw",
"useSimpleCel": true
}
}
}
]
}
}
},
{
"condition": {
"expr": "contactMessage.body.text.startsWith('!socials')",
"onFailure": "throw"
},
"action": {
"actionType": "actions/messaging/conversation/response/compose",
"actions/messaging/conversation/response/compose": {
"messages": [
{
"type": "text",
"payload": {
"text": {
"expr": "\"Follow us on Twitter @example and Instagram @example_ig\"",
"onFailure": "throw",
"useSimpleCel": true
}
}
}
]
}
}
},
{
"condition": {
"expr": "contactMessage.body.text.startsWith('!')",
"onFailure": "throw"
},
"action": {
"actionType": "actions/messaging/conversation/response/compose",
"actions/messaging/conversation/response/compose": {
"messages": [
{
"type": "text",
"payload": {
"text": {
"expr": "\"Unknown command. Try !hello, !help, or !socials\"",
"onFailure": "throw"
}
}
}
]
}
}
},
{
"condition": {
"expr": "true",
"onFailure": "throw"
},
"action": {
"actionType": "actions/data/company/automation/execute_workflow_manual",
"actions/data/company/automation/execute_workflow_manual": {
"workflowId": "<linked-workflow-id>",
"args": {
"expr": "{\n \"twitch_username\": client.name,\n \"twitch_message\": contactMessage.body.message,\n}",
"onFailure": "throw"
}
}
}
}
],
"onNewSessionActions": []
}
}
}
}

Como Importar

  1. Baixe o arquivo ZIP usando o botão acima
  2. Navegue até Configurações da Empresa → Transferência de Dados no seu painel AutoTalk
  3. Clique em Importar e selecione o arquivo ZIP baixado
  4. Revise o resumo da importação e confirme
  5. Todos os IDs de documentos são remapeados automaticamente — nenhuma edição manual de IDs é necessária
dica

Este pacote inclui tanto o agente quanto suas dependências. Todas as referências cruzadas (IDs de workflow nas ações de ferramentas) são vinculadas automaticamente durante a importação.