Project

ask-slack

0.0
The project is in a healthy, maintained state
Provides authenticated Slack client helper, context metadata, and error guide for AI agents.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 5.25
~> 3.1
~> 13.0
~> 0.22
~> 6.3
~> 3.23

Runtime

 Project Readme

ask-slack

Slack service context for the ask-rb ecosystem.

Provides:

  • Ask::Slack.client — authenticated Slack Web API client
  • Ask::Slack::DESCRIPTION — context metadata for the system prompt
  • Ask::Slack::Errors — structured error knowledge for agents

Installation

gem "ask-slack"

Usage

require "ask-slack"

client = Ask::Slack.client
client.chat_postMessage(channel: "#general", text: "Hello from ask-rb!")
client.conversations_list
client.users_list

Authentication

Set your Slack Bot User OAuth Token:

export SLACK_TOKEN=xoxb-your-bot-token-here

Or add it to ~/.ask/credentials.yml:

slack_token: xoxb-your-bot-token-here

Development

bundle install
bundle exec rake test

License

MIT