Sending messages (Flow Socket)

Learn how to send a message using Flow Socket API.

The following example represents the easiest way to send a simple text message in real time and its response information.

{
  "type": "message.send",
  "payload": {
    "threadId": "EXAMPLETHREADIDbd1439e7b",
    "traceId": 1111111111111,
    "speech": "Hi there!"
  }
}

You can send the following objects as messages with Flow Socket API.