Logic documents are the core of the Logic platform. They are used to describe the tasks you want the Logic API to perform. Each document consists of a description, a title, and a set of instructions that guide the Logic API in completing the task.Logic documents 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 document 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 other data types. 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:
Copy
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 documents, it’s important to understand the structure and components of a document. You can learn more about what makes a good document in the What Makes a Good Document? section. This section provides tips on how to write clear and concise documents that are easy to understand and result in better performance from the Logic API.To make your first document, follow the steps in the Making a Document section.