The Authorization header is required to authenticate API requests.
It should contain a bearer token obtained through the IrisAgent portal.
This optional header allows you to specify the desired language. If not provided, automatic language detection will be used.
The Chat-Identifier is an optional header used to track the conversation session.
If not provided, a new chat session will automatically be created.
While not required for single request/response interactions, it is necessary for maintaining continuity in ongoing conversations.
The requestBody contains the information sent to IrisGPT for processing.
The main component is the query, representing the user's input or question.
This body must be sent in JSON format.
The user's query or question to be processed by IrisGPT. It is the core input for generating a response.
If you have multiple products and knowledge base segmented by products, you can provide the product ID here.
The author of the query, which can be used for personalization or tracking purposes.
agent, customer The AskResponse represents the structure of the response returned by IrisGPT.
It is formatted in JSON and contains the AI-generated answer to the user's query.
The AskResponseItem schema defines the structure of IrisGPT's response, including both the formatted and plain text versions of the answer, along with relevant links and URLs.
The Markdown-formatted response from IrisGPT, including links and titles sourced from relevant articles.
The HTML-formatted response from IrisGPT, including links and titles sourced from relevant articles.
The source of the response content, indicating where the information was obtained from.
A plain text version of IrisGPT's response, excluding any links.
Unique identifier for the response, which can be used for tracking or reference.
Indicates the type of response and how it was generated.
ai-answer-from-tickets, ai-answer-with-kb-links, generic, intent-flow, intent-tags, no-answer The intent tag associated with the response, if applicable.
The title of the source articles, which can vary based on the request language.
A list of objects containing URLs and their corresponding titles, representing articles referenced in the response.
A list of URLs corresponding to the source articles from which the response is derived.