Diaflow's Documentation
HomePricingIntegrations
Documentation
Documentation
  • 😎WELCOME TO DIAFLOW
    • Introduction to Generative AI
    • What can you build with Diaflow?
  • 💻USER ACCOUNT
    • Create your user account
    • Delete your user account
    • Log out and log in
    • Change "Personal" & "Workspace" settings
    • Reset user account password
  • 🚀Getting Started
    • Let's start with the basics
      • How a component works?
      • How a flow works?
      • Creating your first flow
    • Dashboard
      • Services
      • Create a flow from scratch
      • Create a flow from templates
      • View your flows
    • Terminology
  • 🌊Flows
    • Overview
    • Create a flow
    • Delete a flow
    • Manage a flow
    • Publish a flow
    • Unpublish a flow
    • Deployment
    • Component Reference
      • Trigger
        • When inputs are submitted (Apps)
        • Cronjob (Automation)
        • Webhook (Automation)
        • Microsoft Outlook (Automation)
      • Outputs (Apps)
        • Text Output
        • Chart Output
        • Video Output
        • Audio Output
        • Image Output
      • Built in tools
        • Branch
        • Merge (Multiple data source to JSON)
        • Split Data (JSON Formatter)
        • Video to audio
        • Get current date and time
        • Web scraper
        • Document to plain text
        • Retrieve data from spreadsheet (Spreadsheet analyzer)
        • Spreadsheet creator
        • Convert JSON to chart data
        • PDF to image
        • Get weather information
        • HTTP Request
        • Get GEO Location
        • SMTP
        • Loop
      • Built in resources
        • Diaflow Vision
        • Diaflow Vectors
        • Diaflow Drive
        • Diaflow Table
      • Apps
        • Hunter.io
        • Outlook Email
        • Telegram
        • Slack
        • Python
        • YouTube
        • SerpAPI
        • Google Sheet
          • Document-level Operations
          • Sheet-level Operations
          • Data-level Operations
      • Database
        • MySQL
        • Microsoft SQL
        • PostgreSQL
        • Snowflake
      • Private AI/LLM Models
        • OpenAI
          • GPT Variants
          • GPT Vision
          • DALL-E Variants
          • TTS Variants
          • Whisper
        • Anthropic
        • Llama
        • Google Gemini
        • Cohere
        • MistralAI
      • Public AI/LLM Models
        • OpenAI Cloud
        • Perplexity Cloud
        • Deepseek Cloud
        • Anthropic Cloud
        • Replicate
        • Straico
        • OpenRouter
        • Cohere Cloud
        • Google Gemini Cloud
        • MistralAI Cloud
        • ElevenLabs Cloud
      • AI Tools
  • ✒️PRODUCTIVITY TOOLS
    • Tables
    • Drive
    • Vectors
      • Document
      • Article
      • URLs
  • 🏠Workspace
    • History
    • Teams
    • Billing & Subscription
      • Upgrade/Downgrade a subscription
      • Buy credits
      • Credit Usage
      • Cancel a subscription
    • Settings
      • Personnal
      • Workspace
        • Change workspace
        • Workspace settings
        • Custom Domain
        • Delete workspace
      • Change Language
    • Documentation
    • Integrations
    • API keys
  • 📑Other
    • FAQs
    • Contact Information
Powered by GitBook
On this page
  • Description
  • Component settings
  • Advanced configurations
  • Use case

Was this helpful?

  1. Flows
  2. Component Reference
  3. Built in tools

Branch

This component enables you to divide the flow into multiple segments, producing several distinct outputs.

Last updated 1 month ago

Was this helpful?

Description

What it does: The Branch node allows you to create decision points in your workflow, making it adaptable and efficient. It's like saying, "If this condition is true, do this; otherwise, do that.

When to use it? Imagine you are processing customer orders. You can use a Branch node to check if the order total exceeds a certain amount. If it does, you might send the order for manager approval; if not, you can automatically process the order.

Component settings

Parameter Name
Description

Only continue if

The condition to continue on this branch. On the first dropdown list you have to enter your input data. The second is all the 21 different conditions. The third is to complete the condition with a text or a date

Condition

Refers to all the 21 different conditions:

  • (Text) Contains

  • (Text) Does not contain

  • (Text) Exactly matches

  • (Text) Does not exactly match

  • (Text) Is in

  • (Text) Is not in

  • (Text) Starts with

  • (Text) Does not start with

  • (Text) Ends with

  • (Text) Does not end with

  • (File format) Are

  • (Number) Equals

  • (Number) Greater than

  • (Number) Less than

  • (Date/time) Equal

  • (Date/time) After

  • (Date/time) Before

  • (Boolean) Is true

  • (Boolean) Is false

  • Exists

  • Does not exists

  • Is Null

  • Is Not Null

Form

Only available for Text, File format, Number and Date/time.

This allows you to enter a text, a number or a date/time.

Advanced configurations

This Branch component has no advanced configurations.

Use case

Here is a simple use case of the Branch component, where the Branch component is being used with the condition "Text Starts with".

🌊