What’s an AI Agent?
They are programs that are capable of creating intelligent outputs for any given task. Traditional software is designed for one specific thing and follows a sequential flow. Agents, however, dynamically prepare themselves to perform tasks and determine their own needs and actions. They are like general Machine Learning (ML) models, meaning you can use them for a variety of tasks. What do they do?- Understand requests
- Classify and extract any kind of data (text, image, audio, and video)
- Make decisions and generate intelligent outputs (as text, image, audio, or other output)
- Connect to other tools and data to complete or assist operations (e.g., making requests to APIs, retrieving data, performing operations)
- Characterization: This is the most important part. Agents are like 1000 different experts, but for any given task, we only need a few of them. For this reason, we characterize them specifically for our tasks.
- Reasoning: When agents engage in more extensive thinking, it leads to more accurate answers. Reasoning tools analyze operations, create plans, analyze tool and agent outputs, make revisions, and replan. We offer pre-built reasoning and thinking tools that you can enable in the required agents.
- Memory: Just like humans, agents have the ability to store and retrieve information from previous operations. This allows them to customize and specify themselves according to user preferences, providing personalized answers.
- Knowledge Base: In many cases, we have a lot of data to improve their answers. Sometimes we want to provide extensive information and then ask for specific parts of it. In such cases, we perform RAG (Retrieval Augmented Generation), and we have special search agents that we call Agentic Search for this feature.
- Storage: We provide integrations to local and cloud storage options for storing memories and knowledge bases.
Core Principles For Agents
When you creating an an AI Agent, ensure that you define these elements as well:- Role: You need to give an role defination to your agent that match with the task of the agent as well.
- Goal: Agents needs some goals to focus on the thing that they are doing right now.
- Instructions: You need to give some explainations for your agents to keep them that making the right think in right time.
Defining Roles
The role will explain agent like you are the expert for that. But there is some points to defining a good role:- Be Specific: Dont write Operation Specialist, write: Onboarding Specialist
- Add Domain information: Add the domain information for make your agent more aware (e.g., “Onboarding Specialist in fintech industry”)
- Roles should be real worlds professions: Your agents knows the real worlds professions. So please try to choose them.
Defining Goals
Agents are trying to complete their goals while making their tasks. So they are important for the overall requests.- Write the most important points for you: Like, care about the EU standards
- Write the things which is the important for this role at your company
- Design a Perfect Employee actually.
Defining Instructions
Instructions guide your agent to act correctly and efficiently during its tasks. When writing instructions:- Include specific details relevant to the agent’s responsibilities.
- Highlight the important points the agent should always consider while performing tasks.
- Use clear, actionable language to avoid ambiguity.
If you want to learn everything about Agent Concepts use here.
Let’s create an Agent that analyzes Merchant Websites
At Upsonic, we strive for simplicity and safety. With this in mind, we offer anAgent
class that allows us to configure our Agent for specific purposes. In this example, we will create an agent that identifies merchant websites and analyzes their product offerings.