Enrutador Condicional

Enruta mensajes basándote en comparaciones de texto flexibles, permitiendo ramificaciones inteligentes en tus flujos de trabajo.

Enrutador Condicional

Descripción del componente

Cómo funciona el componente Enrutador Condicional

The Conditional Router is a flow component designed to direct the flow of messages based on customizable text comparison logic. This makes it a powerful tool for branching processes, enabling dynamic decision-making within your AI workflows.

What the Component Does

At its core, the Conditional Router examines a piece of input text and compares it against a specified match value. Based on the result of this comparison (using a chosen operator, such as “equals,” “contains,” or “is empty”), the message is routed down one of two possible paths: the True Route or the False Route. This allows your workflow to automatically handle different scenarios based on message content or structure.

Inputs

The Conditional Router accepts several parameters to configure its behavior:

Input NameTypeDescriptionRequiredAdvanced
Input TextStringThe primary text input for the operation.NoNo
Match TextStringThe text input to compare against.NoNo
OperatorStringThe operator for comparing the texts (see below).NoYes
Case SensitiveBooleanWhether the comparison should be case sensitive.NoYes
MessageStringThe message object to pass through on either route.NoNo

Available Operators:

  • equals
  • not equals
  • contains
  • starts with
  • ends with
  • is empty
  • is not empty
  • is_url
  • is_email
  • is_number

This wide choice of operators enables sophisticated routing logic, such as matching by substring, checking for empty inputs, or validating the format of a URL/email/number.

Outputs

The component provides two output paths:

  • True Route: Activated when the comparison evaluates to true. The original message is passed through this output.
  • False Route: Activated when the comparison evaluates to false. The original message is passed through this output.

Both outputs are of type “Message,” ensuring compatibility with downstream components in your workflow.

Use Cases and Benefits

The Conditional Router is especially useful for:

  • Branching Logic: Directing messages to different components or actions based on their content.
  • Validation: Filtering messages that meet specific text criteria (e.g., emails, URLs, non-empty fields).
  • Personalization: Customizing the flow of user interactions depending on user input.
  • Automation: Automating responses or actions for certain keyword triggers or message patterns.

By integrating this component into your workflow, you can build highly responsive and adaptable AI processes that react intelligently to a wide range of input scenarios.

Preguntas frecuentes

¿Qué hace el componente Enrutador Condicional?

Evalúa el texto de entrada frente a un valor definido utilizando operadores como igual, contiene o está vacío, y envía el mensaje por diferentes rutas según el resultado.

¿Qué operadores de comparación se soportan?

Los operadores incluyen igual, no igual, contiene, empieza con, termina con, está vacío, no está vacío, es_url, es_email y es_número.

¿Puedo hacer que la comparación distinga entre mayúsculas y minúsculas?

Sí, puedes habilitar o deshabilitar la sensibilidad a mayúsculas y minúsculas para tus comparaciones.

¿Cómo puedo usar el Enrutador Condicional en mi flujo de trabajo?

Utilízalo para crear ramificaciones lógicas—por ejemplo, enviando a los usuarios a diferentes respuestas o acciones según su entrada, haciendo que tu automatización sea más interactiva y receptiva.

¿El Enrutador Condicional es adecuado para personas sin conocimientos de programación?

¡Por supuesto! Está diseñado para ser fácil de usar, permitiéndote configurar lógica avanzada de enrutamiento sin necesidad de programar.

Prueba el Enrutamiento Condicional en FlowHunt

Diseña flujos de trabajo más inteligentes y adaptativos con el Enrutador Condicional. Comienza hoy a crear flujos basados en decisiones.

Saber más

Puerta de Escalamiento
Puerta de Escalamiento

Puerta de Escalamiento

El componente Puerta de Escalamiento enruta inteligentemente los mensajes entrantes según la lógica de escalamiento, permitiendo que los flujos cambien entre re...

2 min de lectura
AI Human Escalation +4
Ejecutar Flujo
Ejecutar Flujo

Ejecutar Flujo

El componente Ejecutar Flujo en FlowHunt te permite activar y ejecutar otro flujo dentro de tu flujo actual. Pasa entradas, variables y controla cómo interactúa...

3 min de lectura
Automation Workflow +3
Clasificación de Texto
Clasificación de Texto

Clasificación de Texto

Desbloquea la categorización automatizada de texto en tus flujos de trabajo con el componente de Clasificación de Texto para FlowHunt. Clasifica fácilmente el t...

3 min de lectura
AI Classification +3