The Slack connector is a chat connector that pulls live messages from Slack channels
via a Bot Token. It uses db.ingest_chat() to extract claims from message threads.
heuristic, smart, or llm| Mode | Description |
|---|---|
heuristic | Fast rule-based extraction. No LLM required. Default mode. |
smart | Enhanced heuristic with pattern matching and entity recognition. |
llm | Full LLM-powered extraction. Requires a configured curator. |
Go to api.slack.com/apps and create a new app for your workspace.
Under OAuth & Permissions, add the following Bot Token Scopes:
channels:read — list public channelschannels:history — read message history from public channels
Click Install to Workspace and authorize the app. Copy the
Bot User OAuth Token (starts with xoxb-).
$ pip install requests
conn = db.connect("slack", token="xoxb-...") result = conn.run(db)
| Parameter | Required | Default | Description |
|---|---|---|---|
token |
Yes | — | Slack Bot Token (xoxb-...) |
channels |
No | All | List of channel names to fetch |
extraction |
No | heuristic |
heuristic, smart, or llm |
oldest |
No | 0 |
Unix timestamp for oldest messages |
save |
No | False |
Encrypt and persist token |
conn = db.connect("slack", token="xoxb-...") result = conn.run(db) print(f"Ingested {result.claims_ingested} claims")
conn = db.connect("slack", token="xoxb-...", channels=["general", "engineering"], extraction="heuristic", save=True, ) result = conn.run(db)
conn = db.connect("slack", token=os.environ["SLACK_BOT_TOKEN"], extraction="llm", oldest=1700000000, ) result = conn.run(db)