Apparently, my code only worked with simple intents and entities. This is fixed and can now handle more complex stuff. I was parsing the json dictionary wrong