You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After going to the settings, choose the Export and Import tab. Choose `Restore from zip` to clone the project from the zip file.
29
-
Read [the dialogflow docs](https://dialogflow.com/docs/agents/export-import-restore) for more information.
30
-
29
+
Read [the dialogflow docs](https://dialogflow.com/docs/agents/export-import-restore) for more information.
31
30
32
31
### Webhook
33
32
In order to deploy your webhook, you can use Heroku as a free and easy hosting service. This repository already contains
@@ -46,6 +45,23 @@ Ensure that you update your DialogFlow project with the correct fulfillment URL.
46
45
its requests. You can change this by going to [the DialogFlow console](https://console.dialogflow.com), and going to the fulfillment page for your agent. The domain
47
46
there should correspond with your own domain, or the one generated for your Heroku project.
48
47
48
+
## Usage
49
+
Send requests from DialogFlow to the `/dialogflow/intent/handle` endpoint.
50
+
Supported intents:
51
+
-`next-departure` to get the next departures from a stop, with parameters:
Copy file name to clipboardexpand all lines: app/Http/Controllers/RoutePlanningController.php
+1-2
Original file line number
Diff line number
Diff line change
@@ -61,8 +61,7 @@ public function getRoutePlanning()
61
61
62
62
// In case no result was found, we tell this to user.
63
63
if (count($response->getTrips()) == 0) {
64
-
return$this->createTextToSpeechResponse("I could not find any route " . strtolower($this->getDialogFlowPayload()->getParameter("transportation-method")) .
65
-
" from " . $origin->getName() . " to " . $destination->getName());
64
+
return$this->createTextToSpeechResponse("I could not find any route from " . $origin->getName() . " to " . $destination->getName());
66
65
}
67
66
68
67
// We will tell the user about the first found result
0 commit comments