import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.agents.test.send_test_message(request={
"service_name": "<value>",
"source": "user@email.com",
"text": "Hello",
"test_id": "<id>",
"agent_id": "<id>",
})
# Handle response
print(res)
{
"test_id": "<string>",
"agent_id": "<string>",
"text": "<string>",
"response": "<any>",
"response_text": "<string>"
}
Send a new message
import os
from syllable_sdk import SyllableSDK
with SyllableSDK(
api_key_header=os.getenv("SYLLABLESDK_API_KEY_HEADER", ""),
) as ss_client:
res = ss_client.agents.test.send_test_message(request={
"service_name": "<value>",
"source": "user@email.com",
"text": "Hello",
"test_id": "<id>",
"agent_id": "<id>",
})
# Handle response
print(res)
{
"test_id": "<string>",
"agent_id": "<string>",
"text": "<string>",
"response": "<any>",
"response_text": "<string>"
}
Message sent in a test chat with an agent.
Successful Response
Response from an agent in a test chat.