Obtener respuesta del bot
Esta API te permite recuperar una respuesta del bot de ConvoKraft enviando una consulta de transcripción. El bot entenderá la pregunta y responderá con una respuesta basada en su entrenamiento.
Puedes integrar esta funcionalidad en tu aplicación de Catalyst usando la API proporcionada a continuación.
Detalles de la solicitud
URL de solicitud
{api-domain}/convokraft/api/v1/bots/{production_botid}/answer
Nota: Puedes obtener el production_botid directamente desde la URL en el servicio ConvoKraft cuando el entorno está configurado en Production en la consola.
Por ejemplo : https://console.catalyst.zoho.com/baas/v1/project/183272829220/Production#/convokraft/bots/3828281991118
Aquí, 3828281991118 es el production_botid.
Scope
ZIAPlatform.Convokraft.RAG.CREATE
Encabezados de solicitud
Authorization: Zoho-oauthtoken {oauth_token}
Content-Type: application/json
CATALYST-ORG: {org_id}
X-CATALYST-projectid: {project id}
X-CATALYST-Environment: Development
Detalles de la respuesta
La API devuelve la respuesta proporcionada por ConvoKraft basándose en el material de entrenamiento, junto con el estado del proceso de recuperación de la respuesta.
curl -X POST
https://api.catalyst.zoho.com/convokraft/api/v1/bots/92738220219110/answer
-H ‘Authorization: Zoho-oauthtoken 1000.910*************************16.2f*************************57’
-H ‘Content-Type: application/json’
-H ‘CATALYST-ORG: 372822922’
-H ‘X-CATALYST-projectid: 2728172727718’
-H ‘X-CATALYST-Environment: “Production”’
--data ‘{
“transcript”: {
“message”: “Explain Iphone 11 Specifications”
}
}’
{
“transcript”: {
“message”: “The iPhone 11 is a sleek and powerful smartphone from Apple, featuring a 6.1-inch Liquid Retina HD display that offers vibrant colors and sharp detail. It’s powered by the A13 Bionic chip, which ensures fast performance and smooth multitasking. Whether you’re gaming, editing photos, or using apps, the iPhone 11 can handle it with ease.
One of the standout features of the iPhone 11 is its camera system. It has a dual-camera setup, with a 12MP wide and ultra-wide lens, making it great for capturing detailed photos and videos. The Night Mode feature helps take clearer pictures in low-light environments, and it also supports 4K video recording at 60fps, allowing you to shoot high-quality videos.”,
“status”: “action_completion”
}
}
Yes
No
Send your feedback to us