curl --request POST \
--url https://general-runtime.voiceflow.com/v2/project/{projectID}/user/{userID}/interact/stream \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"action": {
"type": "action",
"payload": {
"actions": [
{
"type": "<string>",
"payload": "<unknown>"
}
],
"label": "<string>"
},
"diagramID": "<string>",
"time": 123
},
"variables": {},
"sessionID": "<string>"
}
'{
"event": "trace",
"data": {
"type": "audio",
"payload": {
"state": "start",
"messageID": "<string>",
"delay": 123
},
"paths": [
{
"label": "<string>",
"event": {
"type": "<string>",
"payload": "<unknown>",
"diagramID": "<string>",
"time": 123
}
}
],
"defaultPath": 123,
"time": 123
},
"id": "<string>",
"type": "event"
}Returns a stream of trace events followed by an end event using SSE.
curl --request POST \
--url https://general-runtime.voiceflow.com/v2/project/{projectID}/user/{userID}/interact/stream \
--header 'Content-Type: application/json' \
--header 'authorization: <api-key>' \
--data '
{
"action": {
"type": "action",
"payload": {
"actions": [
{
"type": "<string>",
"payload": "<unknown>"
}
],
"label": "<string>"
},
"diagramID": "<string>",
"time": 123
},
"variables": {},
"sessionID": "<string>"
}
'{
"event": "trace",
"data": {
"type": "audio",
"payload": {
"state": "start",
"messageID": "<string>",
"delay": 123
},
"paths": [
{
"label": "<string>",
"event": {
"type": "<string>",
"payload": "<unknown>",
"diagramID": "<string>",
"time": 123
}
}
],
"defaultPath": 123,
"time": 123
},
"id": "<string>",
"type": "event"
}Voiceflow Dialog Manager API key (VF.DM)
The ID of the Voiceflow project to interact with.
An ID which uniquely identifies the user having the conversation.
Certain features are only available depending on your modality.
voice, chat, api Which environment to target within the project.
If enabled, the configured speech-to-text provider will be invoked to convert system response text to audio. Audio traces will be returned from the server.
When audio_events are enabled, selects the encoding of audio traces returned by the server.
audio/mp3, audio/x-mulaw, audio/pcm When enabled, LLM traces will be broken up into streamed-in chunks - documentation
The timezone experienced by the user in this conversation.
When enabled, conversation state is returned in response to each interaction.
Start a new conversation with a launch action or reply to a message with the text action.
Hide child attributes
action Unique ID of the conversation session.
Traces contain responses, media and metadata generated by the conversation runtime.
trace Hide child attributes
audio event Was this page helpful?