[API] Calling conversation/process does not return the speech text

Not sure in which category/tags it falls back.

When I trigger the conversation api ( /api/conversation/process ) I always receive an empty array, even when an intent is triggered and that intent replies some text.

conversation configuration:

conversation:
  intents:
    ShoppingList:
      - On a quoi comme courses
      - Liste de courses
      - courses

intent_script configuration:

intent_script:
  ShoppingList:
    speech:
      text: "{{ states('sensor.shopping_list') }}"

I can see in the logs when I trigger the API that the intent is called:
2020-03-25 09:01:46 INFO (MainThread) [homeassistant.helpers.intent] Triggering intent handler <ScriptIntentHandler - ShoppingList>

But I still receive []

Is there a way for me to get the intent’s response?

1 Like

It seems I can retrieve the result using websocket instead of rest.

For those having the same issue, I used the websocket. You can look how I did here: https://github.com/agileek/hassio-addons/blob/beb6e55df0a2cbd898d9c52ea120507406a9e1aa/signal/root/app/ws.py

2 Likes