Skip to content

Latest commit

 

History

History
41 lines (31 loc) · 1.22 KB

README.md

File metadata and controls

41 lines (31 loc) · 1.22 KB

Voiceflow API Deno Example

Set up your Voiceflow project with Deno in a matter of minutes. This example can be adapted to run as an HTTP server.

This example lets you chat with your project via the terminal.

Documentation

For additional information about the Voiceflow API, visit the documentation.

Setup

  1. Download and install Deno
  2. Replace 'YOUR_API_KEY_HERE' in main.ts with your Dialog Manager API Key. You can find it under the integrations tab:
  3. Run deno run --allow-net main.ts to start your chat

Example

What it might look like in action:

$ deno run --allow-net main.ts

> What is your name?: tyler
what can I do for you?
...
> Say something: send email
who is the recipient?
...
> Say something: [email protected]
what is the title of your email?
...
> Say something: How was your day?
sending the email for [email protected] called "How was your day?". Is that correct?
...
> Say something: yes
successfully sent the email for [email protected] called "How was your day?"
The end!