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
  • How to use SurrealDB in ZBrain Flow
  • How to connect SurrealDB to ZBrain Flow
  • How to run a query in SurrealDB via ZBrain Flow
  1. ZBrain Documentation
  2. ZBrain AI agents
  3. Creating custom AI agents
  4. Define Flow
  5. Flow Components

SurrealDB

SurrealDB is a cloud-native, real-time, multi-model database designed to combine the best features of traditional relational databases, document stores, and graph databases, all in a single system. It aims to simplify backend development by allowing developers to build applications faster with fewer layers and tools.

How to use SurrealDB in ZBrain Flow

To leverage SurrealDB within ZBrain Flow, follow the steps outlined below:

  1. Click the β€˜+’ button

    • In your ZBrain Flow, click the β€˜+’ button to add a new action.

  2. Search for SurrealDB

    • In the search bar, type SurrealDB to locate the integration option.

  3. Select SurrealDB

    • Once found, select SurrealDB from the list of available options.

  4. Choose the action

    • The primary action for SurrealDB integration is to run a query. This allows you to run database queries directly from within your ZBrain workflows.

How to connect SurrealDB to ZBrain Flow

To set up the connection to SurrealDB, you need to provide specific connection details. Follow these steps for a seamless connection:

  1. Enter the connection name

    • Give your connection a meaningful name to easily identify it later.

  2. Connection URL

    • Enter the connection URL for your SurrealDB instance. This URL points to the database server, for example, http://1.2.3.5:8000.

  3. Specify the database

    • Provide the database name you want to connect to. This should be the exact name of the SurrealDB database you wish to work with.

  4. Enter the namespace

    • Enter the namespace associated with your SurrealDB instance. This helps to further organize and manage your database connections, especially when dealing with multiple namespaces.

  5. Enter the username

    • Input the username for authenticating the connection to the database.

  6. Enter the password

    • Provide the password corresponding to the username for secure access.

  7. Click save

    • After entering the necessary details, click β€˜Save’ to finalize your connection setup. Your connection will now be available for use in subsequent steps.

How to run a query in SurrealDB via ZBrain Flow

Once connected, you can execute queries against SurrealDB from within ZBrain Flow. Here’s how to run a query:

  1. Select an existing connection or create a new one

    • Choose an already saved connection from the dropdown or create a new one by providing the connection details as outlined in the previous section.

  2. Enter the query

    • Provide the SurrealDB query string you want to execute.

    • This can be any valid SurrealDB SQL or NoSQL query depending on your needs, such as selecting data, inserting new records, or updating existing entries.

  3. Add arguments

    • If your query requires additional parameters, click the β€˜+ Add Item’ button to add query arguments dynamically.

    • These could include placeholders or dynamic values pulled from earlier steps in the flow.

  4. Set query timeout

    • Define a query timeout. This specifies the maximum time (in seconds) to wait for the query to complete before timing out. Set an appropriate value based on your query's expected execution time to avoid long delays.

  5. Enter application name

    • Provide an application name, which serves as an identifier for the client application that is executing the query. This is helpful for tracking and identifying the source of queries.

  • Insert dynamic values: Use the 'f' icon to inject dynamic inputs from other steps in your ZBrain Flow.

PreviousStripeNextSurveyMonkey

Last updated 22 days ago

πŸ€–