(Edit: Realized this is not a Node-RED issue so I’m using cURL to reproduce the issue.)
Hi all! I decided to start playing around with the built-in intents, using the conversation.process
service. The Developer Tools – Service UI doesn’t show responses, so I’m using cURL:
curl -X POST ^
-H "Authorization: Bearer myOwnLongLivedAccessToken" ^
-H "Content-Type: application/json" ^
-d "{\"text\": \"turn off upstairs nook light\"}" ^
http://homeassistant.local:8123/api/conversation/process
The conversation API docs describe a response_type
value and data
object which contains a bunch of useful information about the results of intent matching, e.g. for action_done
:
{
"response": {
"response_type": "action_done",
"data": {
"targets": [
(area or domain)
],
"success": [
(entities/devices that succeeded)
],
"failed": [
(entities/devices that failed)
]
}
}
}
But the response I get is incomplete:
{
"speech": {
"plain": {
"speech": "Turned Upstairs Nook Light off",
"extra_data":null
}
},
"card": {}
}
Am I missing something obvious here? How can I get the complete response per the documentation?