OpenDialog Docs
opendialog.aiStart BuildingTalk to an expert
  • GETTING STARTED
    • Introduction
    • Getting ready
    • Billing and plans
    • Quick Start AI Agents
      • Quick Start AI Agent
      • The "Start from Scratch" AI Agent
        • Chat Management Conversation
        • Welcome Conversation
        • Topic Conversation
        • Global No Match Conversation
        • Supporting LLM Actions
        • Semantic Classifier: Query Classifier
      • A Process Handling AI Agent
  • STEP BY STEP GUIDES
    • AI Agent Creation Overview
    • Add a new topic of discussion
    • Use knowledge sources via RAG
    • Adding a structured conversation
    • Add a 3rd party integration
    • Test and tweak your AI Agent
    • Publish your AI Agent
  • CORE CONCEPTS
    • OpenDialog Approach
      • Designing Conversational AI Agents
    • OpenDialog Platform
      • Scenarios
        • Conversations
        • Scenes
        • Turns and intents
      • Language Services
      • OpenDialog Account Management
        • Creating and managing users
        • Deleting OpenDialog account
        • Account Security
    • OpenDialog Conversation Engine
    • Contexts and attributes
      • Contexts
      • Attributes
      • Attribute Management
      • Conditions and operators
      • Composite Attributes
  • CREATE AI APPLICATIONS
    • Designing your application
      • Conversation Design
        • Conversational Patterns
          • Introduction to conversational patterns
          • Building robust assistants
            • Contextual help
            • Restart
            • End chat
            • Contextual and Global No Match
            • Contextual FAQ
          • Openings
            • Anatomy of an opening
            • Transactional openings
            • Additional information
          • Authentication
            • Components
            • Example dialog
            • Using in OpenDialog
          • Information collection
            • Components
            • Example dialog
            • Using in OpenDialog
            • Additional information
          • Recommendations
            • Components
            • Example dialog
            • Additional information
          • Extended telling
            • Components
            • Example dialog
            • Additional information
          • Repair
            • Types of repair
            • User request not understood
            • Example dialog
            • Additional information
          • Transfer
            • Components
            • Example dialog
            • Additional information
          • Closing
            • Components
            • Example dialog
            • Using in OpenDialog
            • Additional information
        • Best practices
          • Use Case
          • Subject Matter Expertise
          • Business Goals
          • User needs
            • Primary research
            • Secondary research
            • Outcome: user profile
          • Assistant personality
          • Sample dialogs
          • Conversation structure
          • API Integration Capabilities
          • NLU modeling
          • Testing strategy
          • The team
            • What does a conversation designer do
          • Select resources
      • Message Design
        • Message editor
        • Constructing Messages
        • Message Conditions
        • Messages best practices
        • Subsequent Messages - Virtual Intents
        • Using Attributes in Messages
        • Using Markdown in messages
        • Message Types
          • Text Message
          • Image Message
          • Button Message
          • Date Picker Message
          • Audio Message
          • Form Message
          • Full Page Message
          • Conversation Handover message
          • Autocomplete Message
          • Address Autocomplete Message
          • List Message
          • Rich Message
          • Location Message
          • E-Sign Message
          • File Upload Message
          • Meta Messages
            • Progress Bar Message
          • Attribute Message
      • Webchat Interface design
        • Webchat Interface Settings
        • Webchat Controls
      • Accessibility
      • Inclusive design
    • Leveraging Generative AI
      • Language Services
        • Semantic Intent Classifier
          • OpenAI
          • Azure
          • Google Gemini
          • Output attributes
        • Retrieval Augmented Generation
        • Example-based intent classification [Deprecated]
      • Interpreters
        • Available interpreters
          • OpenDialog interpreter
          • Amazon Lex interpreter
          • Google Dialogflow
            • Google Dialogflow interpreter
            • Google Dialogflow Knowledge Base
          • OpenAI interpreter
        • Using a language service interpreter
        • Interpreter Orchestration
        • Troubleshooting interpreters
      • LLM Actions
        • OpenAI
        • Azure OpenAI
        • Output attributes
        • Using conversation history (memory) in LLM actions
        • LLM Action Analytics
    • 3rd party Integrations in your application
      • Webhook actions
      • Actions from library
        • Freshdesk Action
        • Send to Email Action
        • Set Attributes Action
      • Conversation Hand-off
        • Chatwoot
    • Previewing your application
    • Launching your application
    • Monitoring your application
    • Debugging your application
    • Translating your application
    • FAQ
    • Troubleshooting and Common Problems
  • Developing With OpenDialog
    • Integrating with OpenDialog
    • Actions
      • Webhook actions
      • LLM actions
    • WebChat
      • Chat API
      • WebChat authentication
      • User Tracking
      • Load Webchat within page Element
      • How to enable JavaScript in your browser
      • SDK
        • Methods
        • Events
        • Custom Components
    • External APIs
  • Release Notes
    • Version 3 Upgrade Guide
    • Release Notes
Powered by GitBook
On this page
  • Available operations on individual conditions
  • Operators to combine multiple conditions
  1. CORE CONCEPTS
  2. Contexts and attributes

Conditions and operators

PreviousAttribute ManagementNextComposite Attributes

Last updated 5 months ago

Conditions are a way that attributes can be used to shape the flow of the conversation. These conditions are essentially asking a question. If the answer to that question is yes, then the message is eligible for use in the conversation. The various questions being asked are called Operations.

Available operations on individual conditions

Operators to combine multiple conditions

You can chain or group multiple conditions (two or more) together and apply them to any Conversation Object or Message Template, enabling validation through an operator. Currently, the supported operators for chaining conditions are And and Or.

By default, the operator for multiple conditions is set to And.

Example

Let’s consider an example with two conditions for a Conversation Object: user_name and user_email.

  • And Operator: If the operator is set to And, the chained conditions will be true only when both conditions are met. For instance, the object will be considered valid only if both user_name and user_email are set.

  • Or Operator: When the operator is set to Or, the chained condition will be true if either of the conditions is met. In this case, the object will be valid if either user_name or user_email is set.

The above also applies to Message Templates.

When adding more than two conditions, you will be asked to select an operator. This operator will apply to all set conditions. So, if you create 3 conditions, the AND or OR operator will apply to all 3.

Is True

Can be used with Boolean Attributes

Checks if Attribute value is equal to "True"

Is False

Can be used with Boolean Attributes

Checks if Attribute value is equal to "False"

Equals

Can be used with Integer, Float, and String Attributes

Checks if Attribute value is equal to a set value in the condition

Not Equals

Can be used with Integer, Float, and String Attributes

Checks if Attribute value is not equal to a set value in the condition

Greater Than

Can be used with any Attribute with a numerical value

Checks if Attribute value is greater than the set value in the condition

Greater Than or Equal To

Can be used with any Attribute with a numerical value.

Checks if Attribute value is greater than or equal to the set value in the condition

Less Than

Can be used with any Attribute with a numerical value

Checks if Attribute value is less than the set value in the condition

Less Than or Equal To

Can be used with any Attribute with a numerical value.

Checks if Attribute value is less than or equal to the set value in the condition

Time Passed Equals

Can be used with last_seen Attribute

Checks if last_seen Attribute is equal to the set value in the condition

Time Passed Greater Than

Can be used with last_seen Attribute

Checks if last_seen Attribute is greater than the set value in the condition

Time Passed Less Than

Can be used with last_seen Attribute

Checks if last_seen Attribute is less than the set value in the condition

Is Not Set

Can be used with any Attribute

Checks if the Attribute does not have a value set

Is Set

Can be used with any Attribute

Checks if the Attribute does have a value set

Is Empty

Can be used with any Attribute

Checks if the Attribute does not have a value

Is Not Empty

Can be used with any Attribute

Checks if the Attribute value does have a value

In Set

Can be used with String Attributes

Checks if the Attribute value includes the text value set in the condition

Not In Set

Can be used with String Attributes

Checks if the Attribute value does not include the text value set in the condition

Conditions And operator
Conditions Or operator
Message Template conditions OR operator