Sample bot to ask about weather using World Weather Online API.
Language: french
- 
Create a new app on Botfuel Trainer (https://app.botfuel.io). See the Getting Started tutorial for how to create a new app. 
- 
Add an intent with lable greetingswith the following training phrases for examples:- Hi
- Hello
- Salut!
- Bonjour
 
- 
Add an intent with lable weatherwith the following training phrases for examples:- Il fait beau?
- Je veux la météo
- Météo
- Comment est la météo?
- Quel temps fait-t-il à Paris?
 
- 
Add an intent with lable resetwith the following training phrases for examples:- Je veux recommencer
- Recommencer
- Nouvelle discussion
 
You can get examples of intents here : https://github.com/Botfuel/botfuel-sample-tripplanner/blob/master/intents.xlsx
Create an account on worldweatheronline.com
Copy the API key and paste it in file src/dialogs/wether.dialog.js in const WEATHER_API_KEY = '';
Clone the repository:
git clone https://github.com/Botfuel/botfuel-sample-weather.gitInstall dependencies:
cd botfuel-sample-weather
npm installCreate the greetings, reset and weather intents together with their training sets.
Start the bot:
BOTFUEL_APP_TOKEN=<YOUR_BOT_ID> BOTFUEL_APP_ID=<YOUR_BOTFUEL_APP_ID> BOTFUEL_APP_KEY=<YOUR_BOTFUEL_APP_KEY> npm start shell-configIf you set your app credentials right, you should see:
2017-12-07T16:12:09.131Z - info: [Config] You didn't specify any config file, using default config.
2017-12-07T16:12:09.131Z - info: [Environment] BOTFUEL_APP_TOKEN=<YOUR_BOT_ID>
2017-12-07T16:12:09.133Z - info: [Environment] BOTFUEL_APP_ID=<YOUR_BOTFUEL_APP_ID>
2017-12-07T16:12:09.133Z - info: [Environment] BOTFUEL_APP_KEY=<YOUR_BOTFUEL_APP_KEY>Try typing Quel temps fait-il?
- See Getting Started to learn how to run a bot in minutes.
- See Concepts for explanations about the internals of the SDK.
See the License file.