Endpoint
POST/loopos_ai_protocol_generator
Generates a collection of questions and information elements (protocol) to collect all relevant information about a used item in a specific category.
Request
Type of node (e.g., “category”, “product”, “subcategory”)
Context dict containing:
name(string): Category/product namedescription(string): Description of the category/productparent_categories(array, optional): List of parent categories
Language code for the protocol (e.g., “en”, “pt”)
Response
Array of protocol elements. Each element contains:
class(string): Protocol element class (e.g., “Protocol::Element::Input::Text”, “Protocol::Element::Input::Select”)attributes(object): Element attributes (label, required, hint, etc.)options(array, optional): Options for select elements
Example Request
Example Response
Protocol Element Types
Input Elements
- Text: Free-text input
- Select: Dropdown with options
- Number: Numeric input
- Date: Date input
- Boolean: Yes/No input
Info Elements
- Info: Informational content
- Warning: Warning messages
Related Documentation
- Protocol Generator Service - Service overview
- Integration Guide - Integration patterns