drachtio/drachtio-freeswitch-modules

mod_dialogflow Feature Request: Support sending Query Params in StreamingDetectIntent request

ruipfmendes opened this issue · 0 comments

Hello!

I am currently using mod_dialogflow in my infrastructure of FreeSWITCH + Drachtio Server + a Drachtio App, and something that I'm currently feeling the lack of in my integrations is the ability to send query parameters when I use the dialogflow_start command

StreamingDetectIntent request ( https://cloud.google.com/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.StreamingDetectIntentRequest ) allows sending query params:

The first message must contain session, query_input plus optionally query_params.

The query parameters (see here: https://cloud.google.com/dialogflow/es/docs/reference/rpc/google.cloud.dialogflow.v2beta1#google.cloud.dialogflow.v2beta1.QueryParameters ) can allow to set fields such as sentiment_analysis_request_config (enables sentiment analysis) and time_zone, geo_location, contexts etc.

I dug around a bit in google_glue.cpp and realized it's not supported, but since it's a very powerful feature that Dialogflow provides I'm wondering if there's any intention of mod_dialogflow supporting it in the future