TiBot — The Date and Time Bot
The Date and Time Bot
A simple bot app which enables users to ask about the current date and time, calculate between dates, determine how many days until another date, etc.
The app is built using Angular on the front end, Express on the back end, and API.AI’s API Dialogflow to process and understand natural language.
You will need:
You will also need Google Maps API key, as we’ll use some of their APIs to get data related to locations and timezones, specifically:
Once you’ve created your API.AI account Google Cloud account go ahead and create your Agent. Then, in your created Agent, import the intents and entities used in this example.
You can start by cloning this repo:
git clone [email protected]:van100j/tibot.git
Create your .env
file which contains your development environment, including the APIs keys, simply copy the .env.example
file to .env
cp .env.example .env
and update it accordingly with your API.AI and Google Maps API keys.
Install server dependencies at the root of the directory, and start the Express app:
npm install # or yarn install
npm start # or yarn start
Install front end dependencies in the ./client
directory, and start the Angular app:
cd client
npm install # or yarn install
npm start # or yarn start, or ng serve
Open http://localhost:4200/ in your browser, you should be able to see the app running.
Live demo is available at https://ti-bot.herokuapp.com/
You can start “talking” to the bot by typing your date and time related questions.
For example, some like the following date related ones:
Or, these time related:
The bot also replies to small talk (using Dialogflow built-in small talk module):