Basic Messenger
Built for PoCs with other Speech Services, this provides a simple text from a prompt interface for IVA Studio
Prerequisits
- Install and configure the Core Messenger Webhook Package from the Resource Center -> Hub.
Source Code
basic_messenger Proxy Script
Example usage
curl --location 'https://router.ivastudio.verint.live/ProxyScript/run/67bca862210071627d32ef12/current/basic_messenger' \
--header 'Content-Type: application/json' \
--data '{
"input" : "What is the weather",
"model" : "main"
}'
{
"id": "resp_c8191807-c478-41d0-a73c-68d361eae5a3",
"object": "response",
"created_at": 1745609535,
"status": "completed",
"model": "main",
"output": [
{
"type": "message",
"id": "msg_56594e02-ae08-47ce-8c7f-d5165b1fa9de",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "Could you please provide a city or a zip code to get the weather information?",
"annotations": []
}
]
}
]
}
Note the use of "previous_response_id" to manage conversation state.
curl --location 'https://router.ivastudio.verint.live/ProxyScript/run/67bca862210071627d32ef12/current/basic_messenger' \
--header 'Content-Type: application/json' \
--data '{
"input" : "Chicago",
"model" : "main",
"previous_response_id" : "resp_c8191807-c478-41d0-a73c-68d361eae5a3"
}'
{
"id": "resp_c8191807-c478-41d0-a73c-68d361eae5a3",
"object": "response",
"created_at": 1745609627,
"status": "completed",
"model": "main",
"output": [
{
"type": "message",
"id": "msg_ef591b4c-b08b-49fe-85a5-306c94269bf6",
"role": "assistant",
"content": [
{
"type": "output_text",
"text": "Can you provide the zip code for Chicago?",
"annotations": []
}
]
}
]
}
CLI client for basic_messenger
You can find an example CLI client (using Node.js) here