AI HelpCenter | YourGPT

Find answers to your questions

How to Set Up Conditions in AI Studio
Set Conditions to Understand What Information Users Are Looking For

Conditions in YourGPT AI Studio allow your AI agent to make real-time decisions during a conversation. These conditions determine which path the AI should take based on factors like user input, stored variables, or AI understanding.

  • If a condition is met, the AI will follow the designated path.

  • If no condition is met, the AI will follow the No Match path.

Types of Conditions

There are two main types of conditions in YourGPT AI Studio:

  • AI Condition: Intent-Based Routing

  • Manual Condition: Logic-Based Matching

Let's take a closer look at both.


1. AI Condition: Intent-Based Routing

AI Condition uses AI to route the conversation based on user intent. It’s flexible, allowing the AI to handle different ways a user might express the same request.

AI routing allows the AI to understand the meaning behind the user's message and select the most appropriate path, even if the phrasing changes.

Use Case for AI Condition

AI Conditions are ideal for situations where you need the AI to understand and respond to different variations of user inputs. For example, users might ask for support in various ways, such as:

  • "I need help with my account."

  • "I’m having an issue with my account."

Instead of setting specific rules for each phrasing, AI Condition understand the meaning behind the request and route the conversation accordingly.

How to Set Up AI Condition

Follow these 5 simple steps:

condition-studio
  1. Add a Condition Step: Click on “Logic” and drag the “Condition node” into your flow.

ai-condition
  1. Choose Context: Select how the AI should analyze the conversation:

  2. Choose between Context Type as needed:

    • Input: Use when you want to apply custom logic with variables (e.g., {{FLOW.message}}).

    • Previous Messages: Consider the last few messages in the conversation (e.g., the last 5 messages).

  3. Define Conditions: Add conditions that represent possible user intents.

  4. Set a No Match Fallback: Define a fallback message or path when none of the conditions match.


2. Manual Condition: Logic-Based Matching

Manual Condition is a rule-based system used to check specific inputs values based on logical conditions. Unlike AI Conditions, Manual Conditions require exact matches and do not involve AI interpretation.

Use Case for Manual Condition

Manual Conditions are best for cases where you need to validate or check specific values. For example:

  • Checking if a user has provided a valid email address.

  • Comparing a number input to a threshold value.

  • Matching responses from dropdown lists.

How to Set Up Manual Condition

Follow these 6 simple steps:

condition-studio
  1. Add a Condition Step: Click Add Step → Condition in your flow.

  2. Name the Condition: Give the condition a clear name (e.g., "Check Email" or "Validate Support Type").

  3. Add Expressions: Click Add Expression to choose from different types of checks:

    • Variable Type: Check against a stored variable (e.g., `{{CONTACT.email}}` ).

    • Value Type: Compare input with a fixed value.

    • Logic Group: Combine expressions using AND / OR.

  4. Choose an Operator: Select from operators like Equals to, Contains, Greater than, or Less than.

  5. Add Value/Variable: Add the value or variable to compare against.

  6. Fallback (No Match): Set a fallback message or path if nothing matches.


Was this article helpful?
©2025
Powered by YourGPT