ZBrain Documentation
  • ZBrain Documentation
    • Components of ZBrain
    • Getting started with ZBrain
    • 📚Knowledge base
      • How to create a knowledge base?
      • Knowledge source
      • Information schema
      • File summary
      • Automated reasoning
      • Retrieval testing
      • Knowledge base settings
    • 📱APP
      • How to create a new app?
      • How to set up and customize your app?
      • How to access the app reporting dashboard?
    • 🤖ZBrain AI agents
      • Get started with agents on ZBrain
      • Deploying pre-built agents
      • Creating custom AI agents
        • Agent setup
        • Define input sources
        • Define Flow
          • Key elements of a Flow
          • Flow Components
            • Activepieces Platform
            • AITable
            • Airtable
            • Amazon S3
            • Amazon SNS
            • Amazon SQS
            • Amazon Textract
            • Apify
            • Apollo
            • Approval
            • Asana
            • Azure Communication Services
            • Azure Cosmos DB
            • Azure Document Intelligence
            • Azure OpenAI
            • Azure Translation
            • Bannerbear
            • Baserow
            • Beamer
            • Bedrock Claude
            • Bettermode
            • Binance
            • Bing Search
            • Blackbaud
            • Bonjoro
            • Box
            • Brevo
            • Brilliant Directories
            • Bubble
            • CSV
            • Calendly
            • Certopus
            • Clearout
            • Clockodo
            • Code
            • Confluence
            • Connections
            • Constant Contact
            • Contiguity
            • Contentful
            • Customer.io
            • Crypto
            • Databricks
            • Data Mapper
            • Date Helper
            • DeepL
            • Delay
            • Discord
            • Discourse
            • Drip
            • Dropbox
            • Dust
            • Facebook Pages
            • Figma
            • Files Helper
            • Flowise
            • Flowlu
            • Formbricks
            • Frame
            • Freshdesk
            • Freshsales
            • GCloud Pub/Sub
            • GenerateBanners
            • GhostCMS
            • GitHub
            • GitLab
            • Gmail
            • Google Calendar
            • Google Contacts
            • Google Docs
            • Google Drive
            • Google Forms
            • Google Gemini
            • Google My Business
            • Google Search
            • Google Search Console
            • Google Sheets
            • Google Tasks
            • Groq
            • Hacker News
            • Heartbeat
            • HubSpot
            • HTTP
            • Image Helper
            • Inputs
            • Instagram for Business
            • Intercom
            • Invoice Ninja
            • Jira Cloud
            • Jotform
            • Kimai
            • Kizeo Forms
            • LeadConnector
            • Line Bot
            • Linear
            • LinkedIn
            • LinkedIn Actions
            • LLMRails
            • Lusha
            • MailerLite
            • Mailchimp
            • Mautic
            • Microsoft Dynamics 365 Business Central
            • Microsoft Dynamics CRM
            • Microsoft Excel 365
            • Microsoft OneDrive
            • Microsoft Outlook Calendar
            • Microsoft Teams
            • Mixpanel
            • MongoDB
            • Notion
            • Odoo
            • OpenAI
            • OpenRouter
            • Pastebin
            • PDF
            • Postgres
            • PostHog
            • Pushover
            • Qdrant
            • Queue
            • Razorpay
            • Router
            • Salesforce
            • SendGrid
            • ServiceNow
            • SFTP
            • SharePoint
            • Slack
            • SMTP
            • Snowflake
            • SOAP
            • Spotify
            • Stability AI
            • Stable Diffusion Web UI
            • Storage
            • Stripe
            • SurrealDB
            • SurveyMonkey
            • Taskade
            • Telegram Bot
            • Text Helper
            • Trello
            • Twilio
            • Twitter
            • Utilities
            • WhatsApp Business
            • WordPress
            • XML
            • YouTube
            • ZBrain
            • Zendesk
            • ZeroBounce
            • Zoho Books
            • Zoho CRM
            • Zoho Invoice
            • Zoom
          • How to Define a Flow?
          • How to Test Each Step in the Flow?
        • Configure Additional Settings
        • Test and Deploy Agents
        • How to access, monitor, and manage agent performance and tasks?
    • Settings
    • 📖API Tutorials
      • 📚Knowledge base
        • Automated Reasoning
      • 📱APP
      • 🤖Agents
Powered by GitBook
On this page
  1. ZBrain Documentation
  2. ZBrain AI agents
  3. Creating custom AI agents
  4. Define Flow

How to Define a Flow?

PreviousZoomNextHow to Test Each Step in the Flow?

Last updated 4 months ago

Defining a flow involves setting up a series of interconnected steps that guide the agent’s actions. This guide outlines the process of creating and configuring a flow, from initial setup to finalization.

Steps to Define a Flow

1. Navigate to the Define Flow Page

Upon navigating to the Define Flow page, you will see two default components:

  • Input: Defines how data enters the flow. This data is automatically carried over from the Create Queue step. No user action is needed to modify or remove this component.

  • HTTP: Manages output or communication via APIs. To configure the dashboard, you can create a markdown in the body and define what you want to display as the final output on the agent dashboard.

Note: These pre-configured static components should remain unchanged. You can build your logic around them by adding additional elements.

2. Adding Components to the Flow

To create the logic:

  1. Click the '+' icon between the default elements to add new components to your workflow.

  2. Choose components from two categories:

    • Core Components: Includes programming logic and helper methods.

    • App Actions: Integrates third-party tools like Amazon S3, Slack, JIRA, and Google Sheets.

  3. Use the search bar to locate your desired component quickly.

The following section demonstrates the process for integrating existing core components and app actions into your workflow.

Adding a Core Component

Adding Files Helper

  1. Search for Files Helper in the search bar or locate it at the bottom of the list.

  2. Click on it to add it to the flow.

  3. Choose an action for the Files Helper:

  • Read File: Reads a file from the file system. Input the file or insert data from previous steps and define the output format (e.g., text or Base64).

  • Create File: Creates a file from content. Provide the file name or insert data from previous steps and select an encoding method.

  • Change File Encoding: Changes a file's encoding. Provide the source file or data from previous steps, specify the source encoding, and input the output file name and encoding method.

Connecting a Third-party Tool

Adding Asana

  1. Click Asana to connect it.

  2. Select an action:

    • Create a Task: Create a new connection or use an existing one. Fill in required fields like Workspace, Project, Task Name, Description, Due Date, Tags, and Assignee.

    • Custom API Call: Create a new connection or use an existing one. Add the URL, Request Method, Headers, Query Parameters, and Timeout.

Adding ZBrain to the Flow

  1. Search for ZBrain in the search bar and select it.

  2. Choose an action:

    • Knowledge Bases: Search within uploaded knowledge bases and retrieve data.

      • Select one or multiple knowledge bases.

      • Add a query or use data from previous steps.

      • Configure additional settings like Maximum Tokens, Response Format (JSON/String), Document Summarization, or Meta-information.

    • Apps: Query connected applications.

      • Select the app you want to query.

      • Add a query or data from previous steps.

      • Input the conversion ID for efficient retrieval.

  • Models: Interact with LLMs for various tasks.

    • Select a model from the list (including multimodal models).

    • Input parameters like temperature and maximum tokens.

    • Models: Interact with LLMs for various tasks.

Agent: Trigger a specific agent to perform tasks.

  • Select an agent and input the required URL.

ZBrain Connection Setup:

  1. Use an existing connection or click ‘+ New Connection.'

    • Provide a name and enter your API key.

    • Retrieve the API key by navigating to Settings > My Account in ZBrain.

Note: Please follow the on-screen prompts and instructions to connect the components and configure them efficiently and accurately.

2. Toggle Options for Robust Workflows

Each component includes additional options:

  • Continue on Failure: Enable to skip the step and proceed with the flow even if it fails.

  • Auto Retry on Failure: Automatically retry the step up to four times if it fails.

3. Finalizing and Saving the Flow

Once all steps are configured:

  1. Review your flow to ensure all steps are correctly configured.

  2. Click ‘Save’ to publish the flow.

Explore Advanced Workflows

For more complex use cases, combine core components with app actions to integrate advanced logic and third-party tools seamlessly. This allows you to design highly customized workflows tailored to your business needs.

🤖