
Generator
Explore the Generator component in FlowHunt—powerful AI-driven text generation using your chosen LLM model. Effortlessly create dynamic chatbot responses by com...
Custom Guardrail uses an AI model and prompt to validate user inputs, allowing only relevant topics to pass through your workflow.
Component description
The Custom Guardrail component functions as an intelligent filter within an AI workflow, ensuring that user input aligns with specific criteria set by the workflow designer. This component leverages a language model (LLM) in combination with a customizable prompt to validate and control the flow of conversation or data.
At its core, the Custom Guardrail serves as a gatekeeper for user inputs. It uses a prompt (the “Guardrail Prompt”) to instruct the LLM on what is considered acceptable content. For example, the default prompt restricts conversations strictly to sports topics and blocks any unrelated or nonsensical (gibberish) inputs. This mechanism ensures that the AI workflow remains focused and does not deviate from its intended purpose.
Name | Type | Description |
---|---|---|
LLM | HandleInput | The language model used to evaluate and enforce the guardrail. |
Guardrail Prompt | PromptInput | The instruction provided to the LLM on what content is allowed. |
Input Text | Message | The user’s message or content to be validated. |
Name | Type | Description |
---|---|---|
True Route | Message | Output if the input text passes the guardrail check (i.e., meets the criteria). |
False Route | Message | Output if the input text does not meet the criteria and is filtered out/rejected. |
By integrating the Custom Guardrail component into your AI workflow, you gain fine-grained control over what content is accepted, helping ensure your AI system behaves as intended and delivers reliable, relevant results.
Custom Guardrail checks user input against a set prompt using an LLM, allowing only inputs that match your criteria (such as topic restrictions) to proceed in the workflow.
It uses a guardrail prompt and an AI model to analyze user messages, automatically routing valid inputs forward and blocking or redirecting anything outside your specified topics or rules.
Yes, you can define any prompt to set your desired validation logic, such as restricting topics, blocking gibberish, or ensuring compliance with conversation guidelines.
Inputs that fail the guardrail check are routed through an alternate path, allowing you to handle rejected messages appropriately in your flow.
No coding is required. You simply set the criteria in plain language and connect the component within your flow.
Safeguard your AI workflows and shape user interactions using the Custom Guardrail component—designed for precise input filtering and topic control.
Explore the Generator component in FlowHunt—powerful AI-driven text generation using your chosen LLM model. Effortlessly create dynamic chatbot responses by com...
The Chat Input component in FlowHunt initiates user interactions by capturing messages from the Playground. It serves as the starting point for flows, enabling ...
The Escalation Gateway component intelligently routes incoming messages based on escalation logic, allowing workflows to switch between automated AI responses a...