Example of chatbot using Tock and open data APIs.
Two options available:
The setup is explained in the Tock docker project
-
Start the docker-compose file for the NLP stack (explained here)
-
You will need a (free) SNCF Open Data key and to set the environment var (see OpenDataConfiguration).
-
To setup messenger (optional), you need a Messenger application with "messages" and "messaging_postbacks" webhook events activated - look at the Facebook documentation and Tock Messenger Configuration instructions.
-
To setup Google Assistant (optional), you need a Google account and a Google Actions project with Actions sdk setup - see Google Actions configuration and Tock Google Assistant configuration.
-
In the end you have to start the OpenDataBot launcher in IntelliJ. The bot is up! :)