Skip to main content
POST
/
api
/
actions
Classify voice/text action
curl --request POST \
  --url https://app.demandiq.com/api/actions \
  --header 'Content-Type: application/json' \
  --data '
{
  "input": "Go to slide 3",
  "presentationId": "<string>",
  "context": {
    "currentSlide": 2,
    "totalSlides": 2,
    "isPlaying": true,
    "volume": 50,
    "awaitingResume": true,
    "didNavigateToNewSlide": true
  }
}
'
{
  "type": "<string>",
  "action": {
    "category": "navigation",
    "action": "<string>"
  },
  "confidence": 123
}

Body

application/json
input
string
required
Maximum string length: 500
Example:

"Go to slide 3"

presentationId
string
context
object

Response

200 - application/json

Classification result

type
string
Allowed value: "action"
action
object
confidence
number