Set up your Voiceflow project with Node.js in a matter of minutes. Node.js is a JavaScript runtime built on Chrome's V8 JavaScript engine. This example can be adapted to run as an HTTP server.
This example lets you chat with your project via the terminal.
For additional information about the Voiceflow API, visit the documentation.
-
If you do not have node, install Node.js and npm from nodejs.org, or follow an equivalent guide.
-
In this folder, run
npm install
. -
Replace
'YOUR_API_KEY_HERE'
inindex.js
with your Dialog Manager API Key. You can find it under the integrations tab: -
run
npm start
to start your chat!
What it might look like in action:
$ npm start
> What is your name?: tyler
what can I do for you?
...
> Say something: send email
who is the recipient?
...
> Say something: tyler@voiceflow.com
what is the title of your email?
...
> Say something: How was your day?
sending the email for tyler@voiceflow.com called "How was your day?". Is that correct?
...
> Say something: yes
successfully sent the email for tyler@voiceflow.com called "How was your day?"
The end! Start me again with `npm start`