Skip to content

Using Slack

Practical guide for working with Slack channels, messages, and users through Fp Switchboard.

  • User IDs (U0G9QF9C6) are NOT usernames — must call slack_list_users to resolve
  • Channel IDs: C=public, G=private, D=DM — extract from URLs or list channels
  • Thread timestamps (thread_ts) must be STRINGS, not floats — floats silently fail
  • Always check both channels AND groups when searching for a channel
  • DMs require opening a conversation first with conversations.open

User ID vs Username Critical

Section titled “User ID vs Username ”

Slack API requires User IDs (U0G9QF9C6), not @usernames. Must lookup first.

Example
Wrongslack_send_message(channel: "general", user: "@john")
Correctslack_list_users() → find John → slack_send_message(channel: "C1234567")

Thread Timestamp Format Critical

Section titled “Thread Timestamp Format ”

thread_ts must be a STRING like "1234567890.123456". Passing as float silently fails — no error, just doesn’t thread.

Example
Wrongthread_ts: 1234567890.123456
Correctthread_ts: "1234567890.123456"

Channel ID Prefixes Important

Section titled “Channel ID Prefixes ”

Channel IDs indicate type: C=public, G=private, D=DM. Use the correct type for operations.

User Mentions in Messages Important

Section titled “User Mentions in Messages ”

To mention users in messages, use <@USER_ID> format, not @username.

Example
WrongHey @john, please review
CorrectHey <@U0G9QF9C6>, please review
  1. Call slack_list_users to find user ID from display name
  2. Call conversations.open with user ID to get DM channel ID
  3. Call slack_send_message with the DM channel ID
  1. Get the parent message ts (as STRING)
  2. Call chat.postMessage with thread_ts set to parent ts
  3. Use reply_broadcast: true if should also appear in channel
ID TypeFormatExample
User IDU + 8-11 alphanumericU0G9QF9C6
Channel ID (public)C + 8-11 alphanumericC1234567890
Channel ID (private)G + 8-11 alphanumericG1234567890
DM Channel IDD + 8-11 alphanumericD1234567890
TimestampUnix.microseconds string"1234567890.123456"
  • “Send a message to #general about the team standup”
  • “DM Sarah about the client meeting tomorrow”
  • “List channels I’m a member of”
  • “Reply to the thread about the deployment issue”
  • “Search Slack for messages about the budget”
TierLimitExamples
Tier 11 request/minuteadmin.* methods
Tier 220 requests/minuteconversations.list
Tier 350 requests/minutechat.postMessage
Tier 4100 requests/minuteMost read operations