Setting up Narratory
Follow these instructions to get started building your first conversational app with Narratory.
#
Dependencies- Node/npm with node version 10+ recommended (download here).
- A code editor - we recommend Virtual Studio Code (download here).
#
Creating your Narratory agentAs shown in the (1 min) video below, create your Narratory agent with these three steps:
- In your terminal, run
npm install -g narratory
to install Narratory globally - Sign up to Narratory here and take note of your Narratory key.
- Create your agent with
narratory create
in your terminal.
#
Connecting a Dialogflow agentThen, create and connect a Dialogflow agent at Dialogflow.com as shown in this (1 min) video:
#
Build and start chatting with your agentDone! Now you can build and start an interactive chat in the command-line with your bot with narratory start
as shown here:
Try to do some changes in
narrative.ts
and runnarratory start
again to notice the difference! Also, we recommend to head over to Testing to find other ways of interacting with your new chatbot at this point, or head over to Basic building blocks to start learning about how to build Narratory bots.
#
All commandsnarratory start
to build the bot and, once created, launch an interactive chat in the terminal.narratory build
to build the bot with new content.narratory chat
to start the interactive chat in the command-line window. (see Testing)narratory validate
validates your language model, allowing you to see if some of your Intents and Entities are overlapping or have other issues.narratory deploy
deploys your agent for production use (see Deploying)