Deploying and Running Workflows on Discord¶
Salt AI offers a unique feature that allows you to deploy and run your workflows through the Salt AI
Discord bot. This guide will walk you through the process of deploying your workflows to Discord and using them within the Discord platform.
Deploying to Discord¶
When you're ready to deploy your workflow to Discord:
- Click the
Deploy
button in the top right corner of the workflow editor. - You'll be prompted to give your workflow a name. Choose a unique, descriptive slug – this will be how users discover your workflow through the Salt AI bot.
- Click
Deploy
to finalize the process.
After successful deployment, you'll see a confirmation screen. You can copy the workflow command to your clipboard from this screen.
You can manage and deactivate your deployments at any time in the Deployments tab of your dashboard.
Installing the Salt AI Discord Bot¶
To use Salt AI workflows in Discord:
- Go to the Salt AI bot authorization page.
- Click the
Add to Server
button. - Select the server where you want to add the bot, or choose to add it to your direct messages.
Running Workflows in Discord¶
Once your workflow is deployed and the Salt AI bot is added to your server:
- Use the
/workflows
command in any channel where the bot is present. -
You can directly enter your workflow's name or use the command format
/workflow your-workflow-name
. -
Click
Run workflow
to execute it. - Fill in the required input values (one for each
SaltInput
node in your workflow). - For image or file attachments, you'll be prompted to upload them in your direct messages.
- After submitting all inputs, your workflow will execute, and the outputs will appear in the original thread or channel.
Showcasing Your Workflows¶
To share your workflows with the Salt AI community:
- Join the Salt Discord and complete onboarding.
- Go to the #flow-catalog channel.
- Follow the example template to share your workflow.
- Run your workflow using the Salt AI bot in a comment and pin the comment for easy access.
Troubleshooting¶
- If executions fail due to workflow errors (e.g., invalid API keys), you may need to adjust your workflow or contact our support team.
- For connection errors, you can retry the execution by right-clicking (or tap-holding on mobile) >
Apps
>Retry
.
Need Help?¶
If you encounter any issues or have questions about the Discord deployment feature, please reach out to our team via the #support channel in our Discord.
Salt's Discord integration allows you to easily share your workflows with real users as lightweight applications, without the need for front-end development. This feature bridges the gap between AI development and user interaction, making your AI applications more accessible and interactive.