Rasa x in Kubernetes can't use trigger_intent

Hy all, I new in Rasa, i use Rasa X in Kuberetes(GKE), for the installation i follow this link Helm Chart Installation, but in values.yml i used custom action docker image from GCR and used this config values.yml rasa-x-helm/values.yaml at master · RasaHQ/rasa-x-helm · GitHub, my main problem is after the Rasa X are deployed in Kubernetes and i got the LoadBalancer IP(http:RASA_X_IP:8000), i want to send a **trigger_intent** from my local terminal using CLI like this,

curl -H "Content-Type: application/json" \
-X POST -d '{"name": "EXTERNAL_inv_number", "entities": {"num": "INV/JAN/2020/21", "amount": "30000000"}}' \
"http:RASA_X_IP:8000/conversations/{Conversation_ID}/trigger_intent?output_channel=latest"

I try in Rasa X local computer are successful, but when I try in Kubernetes Rasa X IP, it failed.

if you’ve ever experienced it and can be solved the problem please give me advice

Thanks,

Hi @yogi110514, if you want to hit any rasa open source API endpoints like the /trigger_intent one, you need to add /core to the prefix (similar to how you add /api to hit rasa x endpoints). This tells nginx where to send your request. You also need to add the RASA_TOKEN to your request to authenticate. Therefore your request should look like:

curl -H "Content-Type: application/json" \
-X POST -d '{"name": "EXTERNAL_inv_number", "entities": {"num": "INV/JAN/2020/21", "amount": "30000000"}}' \
"http:RASA_X_IP:8000/core/conversations/{Conversation_ID}/trigger_intent?output_channel=latest&token=<RASA_TOKEN>"

the rasa token should be in your values.yml. Hope that helps!

1 Like

Thankyou very much :pray:, i’ll try it