Twitch Moderator Bot
Bot de Twitch basado en reglas que maneja comandos simples de chat y reenvía todos los demás mensajes a un workflow de moderación vinculado que detecta venta de espectadores, venta de suscriptores y spam similar.
agent bot twitch moderation spam commands
Qué está incluido
| Campo | Valor |
|---|---|
| Nombre | Twitch Moderator Bot |
| Tipo | Agent |
| Tipo de Assistant | bot |
| Reglas | 5 |
Dependencias Incluidas
info
El ZIP descargable incluye todas las dependencias listadas a continuación. Todas las referencias cruzadas se vinculan automáticamente durante la importación.
Workflows: Clasificar Mensaje Publicitario de Twitch
Sustituya workflowId por el ID de este workflow vinculado al configurar el bot.
JSON Completo
Clic 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
- Descargue el archivo ZIP usando el botón de arriba
- Navegue a Configuración de la Empresa → Transferencia de Datos en su panel de AutoTalk
- Haga clic en Importar y seleccione el archivo ZIP descargado
- Revise el resumen de importación y confirme
- Todos los IDs de documentos se remapean automáticamente — no se necesita edición manual de IDs
tip
Este paquete incluye tanto el agente como sus dependencias. Todas las referencias cruzadas (IDs de workflow en acciones de herramientas) se vinculan automáticamente durante la importación.