Hi,
I’m new to Kore.ai. I’m just trying to evaluate it and I want to use the google cloud platform api as a backend. I’m trying to create an information task that will return information about places. I need to construct an API query as follows:
If I hard code this as the API request it works, but I’m struggling to do it using the parameters.
I’ve tried configuring as follows:
I don’t think it’s adding the parameters to the URL though. The response I get is:
{
“request”: {
“input”: “saint peters missouri hair dressers”,
“inputtype”: “textquery”
},
“labels”: {
“textquery”: “Text Query”,
“inputtype”: “Text Query”
},
“tenant”: “”,
“response”: {
“candidates”: [],
“error_message”: “You must use an API key to authenticate each request to Google Maps Platform APIs. For additional information, please refer to http://g.co/dev/maps-no-account”,
“status”: “REQUEST_DENIED”
},
“metainfo”: {
“Google Places”: {
“responseData”: {},
“fields”: [
{
“pathFields”: {
“input”: “saint peters missouri hair dressers”,
“inputtype”: “textquery”
},
“payloadFields”: {},
“headerFields”: {},
“idpFields”: [
“key”
]
}
],
“linkDefinition”: {
“endPoint”: {
“host”: “maps.googleapis.com”,
“port”: “”,
“path”: “/maps/api/place/findplacefromtext/json”,
“protocol”: “https”,
“content-type”: “application/json”,
“method”: “GET”,
“connectorEnabled”: false
},
“reqFields”: [
{
“name”: “Place Search String”,
“key”: “input”,
“type”: “queryfield”,
“subType”: “task”
},
{
“name”: “Input Type”,
“key”: “inputtype”,
“type”: “queryfield”,
“subType”: “task”
},
{
“name”: “AIzaSyDQPz7uaoL2eRJf-czWseJgUplIxcapqpM”,
“key”: “key”,
“type”: “querystring”,
“subType”: “auth”
}
],
“headerFields”: [],
“botVariables”: {},
“contentVariables”: {}
},
“name”: “Google Places”
}
}
}
Any help greatly appreciated.