Skip to content

Latest commit

 

History

History
44 lines (32 loc) · 1.4 KB

README.md

File metadata and controls

44 lines (32 loc) · 1.4 KB

Voiceflow API Rust Example

Set up your Voiceflow project with Rust in a matter of minutes. Rust is a general-purpose programming language empowering everyone to build reliable and efficient software. 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. If you do not have Rust, install Rust from https://www.rust-lang.org/learn/get-started, or follow an equivalent guide.

  2. Replace 'YOUR_API_KEY_HERE' in main.rs with your API Key Dialog Manager API Key. You can find it under the integrations tab:

  3. run cargo run to start your chat!

Example

What it might look like in action:

$ cargo run

> 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!