Set up your Voiceflow project with Nim in a matter of minutes. Nim is a statically typed compiled systems programming language.
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 yet have Nim installed, install it from here.
-
Replace
'YOUR_API_KEY_HERE'
insrc/voiceflow.nim
with your Dialog Manager API Key. You can find it under the integrations tab: -
Run
nimble run
to compile and run the app.
What it might look like in action:
$ nimble 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!