Giter VIP home page Giter VIP logo

discord-voiceflow-bot's Introduction

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

discord-voiceflow-bot's People

Contributors

jgoping avatar

Watchers

Tyler Han avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.