ZBrain
The ZBrain piece in ZBrain Flow provides direct access to advanced AI capabilities and knowledge management features of ZBrain. This powerful component allows you to leverage AI models, search through knowledge bases, query applications, and run automated agents within your workflows. With ZBrain integration, you can enhance your automations with intelligent decision-making, natural language processing, information retrieval, and autonomous task execution - bringing AI-powered capabilities to every part of your workflow process.
How to Use ZBrain Piece in ZBrain Flow?
Step 1: Select ZBrain as Your Connection
Click on the '+' button in the Flow and search for ZBrain.
Select ZBrain.
Decide on the action you need, then select it. ZBrain Flow provides several options:
Knowledge Base Search – Search and retrieve information from your knowledge bases.
Query App – Send queries to your ZBrain applications.
Ask AI Model – Directly interact with AI models.
Run Agent – Execute autonomous agents to perform complex tasks.
How to Search a Knowledge Base?
Step 1: Configure API Connection
If you haven't connected ZBrain yet, click on the ‘API Key’ field, then select ‘Create connection.’
In the popup window that appears:
Enter a ‘Connection Name’ to identify this connection.
Paste your ‘API Key’ from your ZBrain account (found in Settings > My Account).
Click ‘Save’ to create the connection.
If already connected, you'll see your ZBrain account name with a ‘Reconnect’ option if needed.
Step 2: Select Knowledge Base
From the ‘Knowledge Bases’ dropdown, select which knowledge base you want to search. You can choose from all knowledge bases available in your ZBrain account.
Step 3: Enter Search Query
In the ‘Query’ field, enter the search terms or questions to look for in your knowledge base. This can be a direct question, keywords, or a specific phrase.
Step 4: Set Maximum Size
Use the ‘Max Size (tokens)’ field to limit the amount of content returned. The default is 2000 tokens.
How to Query ZBrain Apps?
Step 1: Configure API Connection
For connecting your ZBrain account, refer to Step 1 in the "How to Search Knowledge Base?" section.
Step 2: Select App
From the ‘Apps’ dropdown, select which ZBrain application you want to query. This displays all apps available in your ZBrain account.
Step 3: Enter Query
In the ‘Query’ field, enter the question or prompt you want to send to the selected app. Frame your query according to what the app is designed to answer.
Step 4: Specify Conversation ID (Optional)
If you want to maintain context from previous interactions, enter a ‘Conversation ID’. Leave this blank for a new conversation without prior context.
How to Ask an AI Model?
Step 1: Configure API Connection
For connecting your ZBrain account, refer to Step 1 in the "How to Search Knowledge Base?" section.
Step 2: Select AI Model
From the ‘Model’ dropdown, choose which AI model you want to interact with. Different models may have different capabilities and specialties.
Step 3: Set System Instructions
In the ‘System Instructions’ field, define the AI's behavior and context. Default is "You are a helpful assistant" but you can customize this for specific roles.
Step 4: Enter Your Prompt
In the ‘Prompt’ field, enter the question, instruction, or content for the AI to respond to.
Step 5: Add Images (Optional)
If your model supports image analysis, you can add ‘Image URLs’ by clicking "Add Item".
Step 6: Adjust Model Parameters
Temperature: Control randomness (0-2). Lower values for more deterministic responses.
Maximum Tokens: Set the length limit for the generated response.
Response format: Choose between "Text" or other available formats.
Top P: Adjust nucleus sampling parameter (alternative to temperature).
Frequency penalty: Control repetition of phrases (-2 to 2).
Presence penalty: Control topic diversity (-2 to 2).
Messages: Set the number of message exchanges to include.
How to Run an Agent?
Step 1: Configure API Connection
For connecting your ZBrain account, refer to Step 1 in the "How to Search Knowledge Base?" section.
Step 2: Select Agent
From the ‘Agents’ dropdown, select which ZBrain agent you want to execute. This displays all agents available in your ZBrain account.
Step 3: Specify URL (Optional)
If your agent needs to interact with a specific web resource, enter the URL. Leave blank if not required for your agent's operation.
Step 4: Provide Input
In the ‘Input’ field, enter any data or parameters the agent needs to perform its task. The format will depend on what your specific agent expects.
Last updated