Endpoint
POST/chat
Conversational interface for the LoopOS AI Submission service. This endpoint follows the DeepChat standard for conversational interfaces.
Request
Language code for the request (e.g., “PT-PT”, “en-US”)
List of conversation messages. Each message should have:
role: “user” or “assistant”text: Message texthtml(optional): HTML content
List of image URLs or base64 data URLs
Whether this is part of a conversation thread
Optional session identifier for conversation tracking
Business context or additional information for the AI agent
LoopOS Core base URL (e.g., “https://core.decs.stg.loopos.app/”)
LoopOS Submission base URL (e.g., “https://submission.decs.stg.loopos.app/“)
Response
Array of message objects with:
text: Message textrole: “assistant” or “user”html(optional): HTML content with buttons or structured elements
Example Request
Example Response
Workflow
The chat endpoint uses a multi-agent workflow:- Product Identification: Identifies product from user description
- Options Selection: Collects product options/variants
- Item Creation: Creates item in LoopOS Core
- Protocol Questions: Asks and validates protocol questions
Related Documentation
- Submission Service - Service overview
- Integration Guide - Integration patterns