Router Condizionale

Router Condizionale

Instrada i messaggi in base a confronti flessibili di testo, abilitando ramificazioni intelligenti nei tuoi workflow.

Descrizione del componente

Come funziona il componente Router Condizionale

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.

Domande frequenti

Cosa fa il componente Router Condizionale?

Valuta il testo di input rispetto a un valore definito utilizzando operatori come uguale, contiene o è vuoto, e invia il messaggio su percorsi diversi a seconda del risultato.

Quali operatori di confronto sono supportati?

Gli operatori includono uguale, diverso, contiene, inizia con, termina con, è vuoto, non è vuoto, is_url, is_email e is_number.

Posso rendere il confronto case sensitive?

Sì, puoi abilitare o disabilitare la distinzione tra maiuscole e minuscole per i tuoi confronti.

Come posso usare il Router Condizionale nel mio workflow?

Usalo per creare ramificazioni logiche—come indirizzare gli utenti verso risposte o azioni diverse in base al loro input, rendendo la tua automazione più interattiva e reattiva.

Il Router Condizionale è adatto anche ai non sviluppatori?

Assolutamente! È progettato per essere facile da usare, permettendoti di impostare una logica di instradamento avanzata senza programmare.

Prova l’Instradamento Condizionale in FlowHunt

Progetta workflow più intelligenti e adattivi con il Router Condizionale. Inizia oggi a creare flussi basati su decisioni.

Scopri di più

Gateway di Escalation
Gateway di Escalation

Gateway di Escalation

Il componente Gateway di Escalation instrada in modo intelligente i messaggi in arrivo in base alla logica di escalation, permettendo ai workflow di passare da ...

2 min di lettura
AI Human Escalation +4
Esegui Flow
Esegui Flow

Esegui Flow

Il componente Esegui Flow in FlowHunt ti consente di attivare ed eseguire un altro workflow all'interno del flusso corrente. Passa input, variabili e controlla ...

3 min di lettura
Automation Workflow +3
Classificazione del Testo
Classificazione del Testo

Classificazione del Testo

Sblocca la categorizzazione automatica dei testi nei tuoi flussi di lavoro con il componente di Classificazione del Testo per FlowHunt. Classifica facilmente i ...

3 min di lettura
AI Classification +3