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 agent#
As shown in the (1 min) video below, create your Narratory agent with these three steps:
- In your terminal, run
npm install -g narratoryto install Narratory globally - Sign up to Narratory here and take note of your Narratory key.
- Create your agent with
narratory createin your terminal.
Connecting a Dialogflow agent#
Then, create and connect a Dialogflow agent at Dialogflow.com as shown in this (1 min) video:
Build and start chatting with your agent#
Done! 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.tsand runnarratory startagain 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 commands#
narratory startto build the bot and, once created, launch an interactive chat in the terminal.narratory buildto build the bot with new content.narratory chatto start the interactive chat in the command-line window. (see Testing)narratory validatevalidates your language model, allowing you to see if some of your Intents and Entities are overlapping or have other issues.narratory deploydeploys your agent for production use (see Deploying)