POST
/
api
/
v1
/
agents
/
test
/
messages
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": {},
  "response_text": "<string>"
}

Authorizations

Syllable-API-Key
string
header
required

Body

application/json

Message sent in a test chat with an agent.

Response

200
application/json

Successful Response

Response from an agent in a test chat.