Build an Image Extraction Agent

Each VolansDB Agent uses an Engine that defines which tasks this agent will tackle. Our built-in Engines are optimized for their respective functions. In this example, we will use our Image Extraction Engine to extract data from images.

1

Create an Agent

Click on the “Add Agent” button in the top right corner of the Agents page.

2

Choose an Engine

Select the Image Extraction Engine.

3

Configurations

Configure the Agent Inputs and Engine Configurations.

  • Agent Input Definition: Defines the inputs that your Agent must accept when running a job. You can define the input key and its type as well as add or remove inputs. All defined inputs must be passed in a value when running the Agent. Learn more about Input Definitions.

Agent Inputs

  • Engine Configuration: Configurations specific to your selected Engine. This sets things like which AI model or prompt instructions the Agent will use when running jobs. You can also dyanmically define the Engine configurations at runtime by using template strings of the Agent input keys. Learn more about configuring Engines.

Example of dynamic Engine configurations

4

Create the Agent

Hit the Create button. Woohoo, you just built your first Agent! Now, let’s run it.

Run Your Image Extraction Agent

There are three ways to run your Agent:

We will run the agent through the UI:

1

Go to the Agent's details page

2

Create a new Agent job

3

Fill in the Agent inputs

Paste in the following text for the instruction input field:

Describe the image in one sentence.
Output in the following structure:
```
{
  "description": "<description of the image>"
}
```

Then pick an image to upload to the image input field. You can use the one below.

san-francisco.jpg

Here is the filled-in Agent inputs:

4

Run the job

Hit the Create button at the bottom. Hell yeah, your first Agent job has been kicked off!

View Results

You can view the status of your Agent job in its details page.

Click view to check the job result.

Improve Your VolansDB Agents’ Results