Logic agents are the core of the Logic platform. They are used to describe the tasks you want the Logic API to perform. Each agent consists of a description, a title, and a set of instructions that guide the Logic API in completing the task.Logic agents are detailed instructions that the Logic API follows to perform a specific task. They can be used for a wide range of purposes, such as analyzing images, processing text, or performing complex calculations.
Using Logic’s agent editor, you can describe the task you want the Logic API to perform using natural language. Describe the inputs you’ll be giving the Logic API, such as text, images, or files like PDFs, Word, Excel, and PowerPoint documents. Be specific about the result you want the Logic API to produce. For example, if you want the Logic API to analyze an image, you might say:
Accept an image as a URL or base64-encoded data and tell me what it is. Include items like:- How many people are in it?- What is the dominant color of the image?- What's the general mood it invokes?
Be clear about what you want the Logic API to do. The more specific you are, the better the Logic API will perform. For example, if you want the Logic API to analyze an image, specify whether the image will be provided as a URL or base64-encoded data.
To create effective agents, it’s important to understand the structure and components of an agent. You can learn more about what makes a good agent in the What Makes a Good Agent? section. This section provides tips on how to write clear and concise agents that are easy to understand and result in better performance from the Logic API.To make your first agent, follow the steps in the Making an Agent section.