I keep getting an error when testing my app on the simulator.
It gives: "APP NAME, isn't responding right now, try again soon"
What am I doing wrong here?
ACTION.JSON
{
"accountLinking": {
"clientId": "", // SENSITIVE INFORMATION BLANK
"clientSecret": "", // SENSITIVE INFORMATION BLANK
"grantType": "AUTH_CODE",
"authenticationUrl": "", // SENSITIVE INFORMATION BLANK
"accessTokenUrl": "" // SENSITIVE INFORMATION BLANK
},
"actions": [{
"description": "",
"name": "MAIN",
"fulfillment": {
"conversationName": "PASS TEXT"
},
"intent": {
"name": "actions.intent.MAIN",
"trigger": {
"queryPatterns": [
"talk to APP NAME"
]
}
}
}],
"conversations": {
"PASS TEXT": {
"name": "PASS TEXT",
"url": "" // MY FULFILLMENT END POINT
"fulfillmentApiVersion": 2
}
}
}
This is just a sample to return "Sure, thing" to the user.
Fulfillment End Point PHP FILE
header('Content-Type: application/json');
$a = array (
'conversationToken' => '{"state":null,"data":{}}',
'expectUserResponse' => true,
'expectedInputs' =>
array (
0 =>
array (
'inputPrompt' =>
array (
'richInitialPrompt' =>
array (
'items' =>
array (
0 =>
array (
'simpleResponse' =>
array (
'textToSpeech' => 'Okay sure',
'displayText' => 'Okay, Sure!',
),
),
),
'suggestions' =>
array (
),
),
),
'possibleIntents' =>
array (
0 =>
array (
'intent' => 'actions.intent.TEXT',
),
),
),
),
);
echo json_encode($a);
PS: There aren't any PHP errors either. The page runs without any errors when visiting the URL.
I also tested it with OAuth PLAYGROUND and the returned result was this
OAUTH PLAYGROUND RESULT
{
"finalResponse": {
"richResponse": {
"items": [
{
"simpleResponse": {
"displayText": "Sure, thing!",
"textToSpeech": "Sure thing"
}
}
]
}
},
"expectUserResponse": 0,
"isInSandbox": 1
}