Gordon is a bot able to tell you about the hygiene level of a restaurant in France
We recommend to use at least node v4.3.0
using npm
npm install
or yarn
yarn
Create a config.js
file in the src
directory of your project, copy/paste these lines:
module.exports = {
GOOGLE_API_KEY: '',
REQUEST_TOKEN: '',
};
Create your GOOGLE_API_KEY : https://developers.google.com/maps/documentation/embed/get-api-key
Complete the Recast.AI REQUEST_TOKEN
: go to your bot page, click on the settings icon (on the right side of your screen), and copy the request_token
.
Tips: This config.js file will never be pushed onto your repository. If you would like to deploy your code with Bot Hosting, you just have to create env. variables in Bot Hosting section in RUN page. More info in About your config. file
using npm npm start
using yarn yarn start
Note: Next steps, only if you have connected your bot to channels, using the Bot Connector tool
- download ngrok
- launch it:
./ngrok http 5000
- copy the url ngrok gave and paste it in the Recast.AI interface: Go to your bot page, click on the RUN tab and edit your
current bot webhook
- Chat with your bot on the channels you've configured ;)
Code | Documentation |
---|---|
Receiving messages | The Recast.AI SDK - connect |
Sending messages | The Recast.AI SDK - connect |
Rich messaging | See the different payload message |
Manage the conversation | The Recast.AI SDK - converse |
You can view the whole API reference at man.recast.ai. You can follow us on Twitter at @recastai for updates and releases.