I am using dialogflow as tool for chatbot. When user write anything to chatbot that mesasage is passed as data to dialogflow api and as a response it gives fulfillmentText. And that response is passed to actionprovider.botMessage method.
I have defined a widget in config.js file and actionprovider uses that widget to create bot message. The props of widgets can be defined in config.js file.
I need to pass props from messageParser.js file (dialogflow api response) to config.js(where props can be defined). I cannot find solution for that. Can anyone help me?
This is post request from messageParser file where dialogflow generate response for user data.
In weatherCard widget I am passing static value as props. But I need value that dialogflow api generate in messageParser file. How to pass data from messageParser to config ?
I am using dialogflow as tool for chatbot. When user write anything to chatbot that mesasage is passed as data to dialogflow api and as a response it gives fulfillmentText. And that response is passed to actionprovider.botMessage method.
I have defined a widget in config.js file and actionprovider uses that widget to create bot message. The props of widgets can be defined in config.js file.
I need to pass props from messageParser.js file (dialogflow api response) to config.js(where props can be defined). I cannot find solution for that. Can anyone help me?
This is post request from messageParser file where dialogflow generate response for user data.
This is config.js file where widgets are defined.
In weatherCard widget I am passing static value as props. But I need value that dialogflow api generate in messageParser file. How to pass data from messageParser to config ?