innFactory / react-native-dialogflow

A React-Native Bridge for the Google Dialogflow (API.AI) SDK
https://innfactory.de/softwareentwicklung/ui-ux/sprachsteuerung-mit-api-ai-in-einer-react-native-app/
MIT License
200 stars 64 forks source link

ApiAi.requestQuery additional parameters and settings? #3

Closed eggybot closed 7 years ago

eggybot commented 7 years ago

Hi, the module is great and its works best in my app project, I'm just wondering if there are any additional function to this plugin where I can add queries to submit GET/POST base on this documentation. https://api.ai/docs/reference/agent/query#get_query

I can create it in fetch but I hope this function can be included so I don't need to recreate another function (which will save time and optimize the code)

thanks,

spoeck commented 7 years ago

Thank you for the issue! I think you only want to set context and may entities, am I right? Parameters like location, langor timezone should be set automatically via react-native-api-ai.

Unfortunately the api-ai-javascript client which I use for iOS doesn't support context and entities out of the box. But it shouldn't be that hard to integrate it in the origin lib on my own. May I made a pull request or a fork, let's see. Android is supporting context and entities so this should be easy to implement.

I will work on this the next days and publish the new functionality within this week.

spoeck commented 7 years ago

@eggybot I just released v1.1.0 which is supporting contexts. I will close this issue. If you need additional functionality please let me know and don't hesitate to reopen the issue or create a new one as well.