Read the conversation summary
curl --request GET \
--url https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary \
--header 'Authorization: <api-key>'import requests
url = "https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stale": true,
"summary": {
"anchorCreatedAt": "<string>",
"anchorMessageID": "<string>",
"generatedAt": "<string>",
"source": "manual",
"text": "<string>"
}
}{
"errors": [
{
"error": "UnauthorizedError",
"error_code": 1003,
"message": "You are not authorized to perform this request.",
"statusCode": 401
}
]
}{
"errors": [
{
"error": "ForbiddenError",
"error_code": 1004,
"message": "You do not have access to this resource.",
"statusCode": 403
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}AI
Read the conversation summary
The cached summary of the conversation, if any. stale when messages
arrived after it was generated. The session read in the services-api
carries the same value (__sessionEvals.summary); this route serves
clients that do not read the session from there.
GET
/
v1
/
tenants
/
{tenantID}
/
ai
/
sessions
/
{sessionID}
/
summary
Read the conversation summary
curl --request GET \
--url https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary \
--header 'Authorization: <api-key>'import requests
url = "https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary"
headers = {"Authorization": "<api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: '<api-key>'}};
fetch('https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: <api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "<api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary")
.header("Authorization", "<api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://services-ai.talqui.chat/v1/tenants/{tenantID}/ai/sessions/{sessionID}/summary")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = '<api-key>'
response = http.request(request)
puts response.read_body{
"stale": true,
"summary": {
"anchorCreatedAt": "<string>",
"anchorMessageID": "<string>",
"generatedAt": "<string>",
"source": "manual",
"text": "<string>"
}
}{
"errors": [
{
"error": "UnauthorizedError",
"error_code": 1003,
"message": "You are not authorized to perform this request.",
"statusCode": 401
}
]
}{
"errors": [
{
"error": "ForbiddenError",
"error_code": 1004,
"message": "You do not have access to this resource.",
"statusCode": 403
}
]
}{
"errors": [
{
"error": "UnknownError",
"error_code": 5999,
"message": "For some unknown reason your request has not succeeded.",
"statusCode": 500
}
]
}Authorizations
Behalf of an Operator (default). A JWT issued by Talqui Core when an operator signs in, scoped to every tenant that operator belongs to. Send as "Authorization: Bearer ".
Path Parameters
The tenant that owns the conversation.
Minimum string length:
1The conversation (session) being addressed.
Minimum string length:
1⌘I