We strongly recommend that highly technical users (examples: IT professionals, software developers, or system administrators) perform the steps outlined in this process.
Third-party products, such as OpenAI’s API, come with their own terms and conditions.
Only HTTPS endpoints are supported.
Agent Configuration Parameters
When creating your Custom Agent, you can configure various parameters through the agent creation form. The form supports different input types based on your configuration schema:- Text fields: For simple string values like API keys or model names
- Number fields: For numeric values like thresholds or confidence scores
- Dropdown menus: For selecting from predefined options
- Checkboxes: For boolean true/false settings
- Tag inputs: For array-type parameters where you can enter comma-separated values (e.g., language codes, feature flags)
- Sliders: For numeric ranges with minimum and maximum values
- Text areas: For longer text inputs like prompts or descriptions
1. Create Encord Project
Create a Project in Encord containing the following Workflow with an agent stage.
The purple node in the Workflow is an agent node named pre-label. It has a single pathway called annotate that moves tasks to the next stage in the Workflow.
Copy the Project ID in the top left of the Project page.
2. Define the Agent
In the directory you created for your agents, create a Python file. In this example we useagent.py.
Copy paste the following template in to the Python file:
agent.py
my_agent_logic function takes a LabelRowV2 instance belonging to a task currently in the "pre-label" agent stage. The agent then returns the name of the pathway the task should follow once completed.
We must define how this data is handled. In this example, we keep it simple by assigning priority based on the file name. If the file name contains "london", it gets assigned a high priority; otherwise, it gets assigned low priority.

