slack.getConversationHistory reads a public channel, private channel, DM, or group DM. Use Get thread replies for all replies to a parent message.
Example
automations/read-slack-history.automation.ts
Inputs
Output
Returnsmessages: SlackMessage[], hasMore: boolean, and responseMetadata.nextCursor. Each message contains text, timestamp, and type, plus available author, thread, block, attachment, file, reaction, reply, app, bot, and subtype fields.
hasMore describes Slack’s time-window results. Use nextCursor for cursor pagination when present.