This is an example of how we can build a Slack bot in a few easy steps.
Before you can start, you need to do a few things:
– Create a copy of this workflow.
– Create a Slack bot.
– Create a slash command on Slack and paste the webhook URL to the Slack command.
Note: Make sure to configure this webhook using a HTTPS wrapper and don’t use the default http://localhost:5678 as that will not be recognized by your Slack webhook.
Once the data has been sent to your webhook, the next step will be passing it via an AI Agent to process data based on the queries we pass to our agent.
To have some sort of a memory, be sure to set the Slack token to the memory node. This way you can refer to other chats from the history.
The final message is relayed back to Slack as a new message. Since we cannot wait longer than 3000 ms for Slack’s response, we will create a new message with reference to the input we passed.
We can advance this using the tools or data sources for it to be more custom-tailored for your company.
Usage:
To use the Slack bot, go to Slack and click on your set slash command (e.g., /Bob) and send your desired message. This will send the message to your endpoint and return the processed results as the message.
If you would like help setting this up, feel free to reach out to zacharia@effibotics.com.