Show HN: Rust Slack chat bot interacting with LLMs
4 points by random_ 1 year ago | 1 commentHi there, I've built this Slack chat bot with Rust, with a step by step on how to create, configure and deploy the bot.
Not super feature complete, but I imagine that a reasonable starting point template for anyone interested in creating Slack apps/bots in Rust:
Features and notes:
* Allows the user to interact with a large language model, in this case HF inference API, but should not be hard to adapt to other LLM APIs or local LLMs (I'm planning on doing that with Candle and Mistral).
* Also allows to receive a simple plot from the bot, should be easy to adapt to send more complex plots or other files.
* Authenticating the Slack event payloads was kind of tricky, in particular, as it's handled using HMAC validation of the body and a timestamp header.
- random_ 1 year agoRelated, I also made a Slack app that converts HTML to PDF using Chromium (Dockerfile provided) and send to user https://github.com/randommm/rust-slackbot-html-to-pdf/