Discord (NEW)
To integrate Discord with your Voiceflow project, you will need to follow the same steps as shown in the quick start section. In short, in the admin panel, you will need to:
Create a Client Company
Create a Voiceflow Project and associate the Voiceflow project to the Client Company
Create a Client Integration and associate the Client Company & Voiceflow Project to the integration
Discord Bridge Server
To use Discord as an integration channel, we created a dedicated Bridge Application. This is because Discord does not operate through HTTP requests, but WebSockets. To enable communications between Discord and FlowBridge we need to have a server listening to all the changes on the discord server and forward them to your FlowBridge environment.
You can read more on the repository: https://github.com/FlowBridge/flowbridge-discord-bridge
Or directly download the flowbridge-discord-bridge PHAR file on the releases page: https://github.com/FlowBridge/flowbridge-discord-bridge/releases
The entire project is open source so you can tweak and adjust it to your personal needs!
Discord Bot Setup
Go to Discord Developer Portal
Create a new application or select an existing one
Go to Bot section and create a bot
Copy the bot token to your `.env` file
Enable Privileged Gateway Intents:
MESSAGE CONTENT INTENT
SERVER MEMBERS INTENT
Go to OAuth2 > URL Generator:
Select scopes: `bot`, `applications.commands`
Select permissions: `Send Messages`, `Read Message History`, `View Channels`
Use the generated URL to invite the bot to your server
FlowBridge Setup
Login to your FlowBridge environment
Create a new integration and associate it with a Voiceflow Project and Client Company
Select "Discord" from the integration channels
Paste the Discord Bot Token from the previous step during the Discord Integration creation process
Click create
On the view integration page (which you automatically go to after creation), you see a button on the top right named "Integration Info"
Within the popup, you can find the tenant URL and integration ID required inside the
.envfile
Running the Discord Bridge
Docker Deployment through Docker Compose (Easiest)
You can use the Docker Hub hosted version of the bridge to easily host it somewhere. Below is docker hub repository, and an example docker-compose.yml file
Save this as docker-compose.yml
Remember to fill in the environment variables as needed.
You can now use the docker compose command to run the server: docker compose up
Running through PHP directly
For information on the specifics of running the Discord Bridge, check out the README file located inside the /builds directory of the repository: https://github.com/FlowBridge/flowbridge-discord-bridge/tree/main/builds
In short, you need to:
Download the
flowbridge-discord-bridgefile from the./buildsdirectory OR from the Releases pageYou also need to download the
.env.examplefile, rename it to.envand keep it within the same directory as theflowbridge-discord-bridgefile.Edit the values in
.envto contain the discord bot token as well as the integration information of your flowbridge environmentNow, open a terminal, and run
php flowbridge-discord-bridge(PHP must be installed on the device)Your bot is now running as long as the flowbridge-discord-bridge server remains alive!
Customizing the Discord Bridge
The discord Bridge application is fully open source. This means you can customize it completely to your needs. It is built on top of Laracord a PHP based framework built on top of Laravel Zero built specifically for Discord Bot usage.
If you want more information on the specifics on how to customize and build upon the bridge application, check out the Laracord Documentation at https://laracord.com/
Last updated