Send a message in real time with the Flow Socket API.
The easiest way to send a simple text message in real time.
{
"type": "message.send",
"payload": {
"threadId": "EXAMPLETHREADIDbd1439e7b",
"traceId": 1111111111111,
"speech": "Hi there!"
}
}
Parameter | Description | Required |
---|---|---|
threadId | Unique key identifying a user or channel | Required |
traceId | Optional number used to track message delivery | Optional |
nonce | The secret is used for more security | Optional |
speech | Text of message | Required |