Define Input Sources
Last updated
Last updated
Defining input sources is a crucial step in configuring your custom agent, as these sources provide the data or tasks that the agent will process. Properly configuring input sources ensures the agent seamlessly retrieves and processes the necessary information, ensuring efficient task execution. Below are the steps for defining and configuring input sources for your agent, including connecting external systems and setting up task queues.
Start by accessing the Create Queue page, where you specify the input sources that the agent will monitor. These input sources act as triggers, determining when the agent will begin processing by setting the conditions or events that activate its actions.
Queues function as task pipelines, ensuring the agent picks up and processes data or documents in the correct sequence for optimal execution. Each task within the queue represents an action, defining the specific operations the agent will perform after the trigger occurs. This structured approach ensures the agent efficiently carries out the necessary steps and delivers the desired outcomes.
Click the ‘+’ icon to add input sources.
Use the search bar to locate the specific input sources required for the agent's operation.
You can add multiple input sources as needed to meet the agent’s requirements.
For each input source, if a connection already exists, select it. If not, create a new one by clicking ‘+ New Connection.’
Here are a few examples of how to connect input sources:
Webhook (Send Data to ZBrain):
Click on Webhook, and a cURL command will appear.
Copy the cURL command and paste it into your terminal, IDE, or API testing tool like Postman to trigger the agent by sending data.
In the command, replace api_key
with your API key (accessible from Settings > My Account) and input the correct WorkerID (found at the end of the URL).
Google Drive:
Click on Google Drive and select Connection. If no connection exists, create one.
Toggle the switch to include Team Drives if you want them to be part of the monitoring process.
Enter your Folder ID -the unique identifier for the folder you want the agent to monitor for new uploads. You can find the folder ID in the URL following "folders/."
These examples illustrate how to define input sources for your agents. Follow similar steps to connect other sources and use the on-screen prompts to guide you through each configuration.
Once all the input sources have been added and configured, click ‘Next’ to proceed to the flow creation step, where you will design the sequence of actions your agent will follow.
By correctly defining your input sources, you ensure the agent retrieves and processes data effectively, creating a seamless workflow for automated task execution.