AI
Rate customer-facing AI preview message
POST
/
v1
/
ai
/
agents
/
{agentID}
/
preview
/
messages
/
{messageID}
/
feedback
Rate customer-facing AI preview message
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/preview/messages/{messageID}/feedback \
--header 'Content-Type: application/json' \
--data '
{
"feedback": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>'})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/preview/messages/{messageID}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/preview/messages/{messageID}/feedback"
payload = { "feedback": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_response": "<string>",
"confidence_score": 123,
"created_at": "<string>",
"expected_response": "<string>",
"id": "<string>",
"origin": "<string>",
"run_id": "<string>",
"session_id": "<string>",
"status": "<string>",
"title": "<string>",
"turns": [
{
"created_at": "<string>",
"id": "<string>",
"role": "<string>",
"text": "<string>",
"feedback": "<string>"
}
],
"updated_at": "<string>",
"user_message": "<string>",
"feedback": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}Body
application/json
Response
OK
Show child attributes
Show child attributes
⌘I
Rate customer-facing AI preview message
curl --request POST \
--url https://api.wazapin.com/v1/ai/agents/{agentID}/preview/messages/{messageID}/feedback \
--header 'Content-Type: application/json' \
--data '
{
"feedback": "<string>"
}
'const options = {
method: 'POST',
headers: {'Content-Type': 'application/json'},
body: JSON.stringify({feedback: '<string>'})
};
fetch('https://api.wazapin.com/v1/ai/agents/{agentID}/preview/messages/{messageID}/feedback', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));import requests
url = "https://api.wazapin.com/v1/ai/agents/{agentID}/preview/messages/{messageID}/feedback"
payload = { "feedback": "<string>" }
headers = {"Content-Type": "application/json"}
response = requests.post(url, json=payload, headers=headers)
print(response.text){
"agent_response": "<string>",
"confidence_score": 123,
"created_at": "<string>",
"expected_response": "<string>",
"id": "<string>",
"origin": "<string>",
"run_id": "<string>",
"session_id": "<string>",
"status": "<string>",
"title": "<string>",
"turns": [
{
"created_at": "<string>",
"id": "<string>",
"role": "<string>",
"text": "<string>",
"feedback": "<string>"
}
],
"updated_at": "<string>",
"user_message": "<string>",
"feedback": "<string>"
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}{
"error": {
"code": "<string>",
"message": "<string>",
"details": [
{
"message": "<string>",
"code": "<string>",
"field": "<string>",
"location": "<string>"
}
],
"request_id": "<string>"
}
}