Skip to content

jgoping/discord-voiceflow-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

discord-voiceflow-bot

This project showcases how the Voiceflow runtime client SDK can be integrated with Discord bots powered by node.js.

Getting Started

Code set-up

  • Ensure you have nodejs and npm/yarn installed
  • Fork/Clone this repository
  • run yarn or npm install to install the @voiceflow/runtime-client-js and discord.js dependencies

Voiceflow Setup

See here for instructions on how to set-up a Voiceflow project, get an API key, and locate the version ID of the project.

Open config.json and put the API key and version ID there. This will give authorization to the Voiceflow SDK and tell it which project to make calls to.

Discord Setup

To make a bot in discord, you will need to go to the Discord Developer Portal. Click on "New Application" in the top-right corner, give the application a name, and create the application.

Discord Developer Portal

Click the bot tab on the left-side, then click Add Bot to create a bot.

Bot Page

Get the token for the bot and paste it into the project's config.json.

Getting the Bot Token

Go to the OAuth2 tab now, select the bot scope, and give it the permissions Send Messages and Read Message History. Copy the generated URL into your browser and add the bot to a server.

Running the bot

  • Start the bot with node index.js. You will see the bot go online in your server. Type !start to it to begin the conversation.

Bot in Action

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published