To use this procedure, make sure your agent has learned the Slack Book (BDK).
read {the item}'s messages [whose condition]
Read messages from a channel. It can optionally filter based on a given condition.
Base Syntax
read {the item}'s messages
What does it do? This is the base syntax for the procedure.
Where does it go? This phrase should be written on a new line.
Is it required? ✅ Yes — This part of the phrase is required.
Does it require input data? ✅ Yes — A reference to either slack channel or slack user must be specified in place of {the item}
.
Filter Condition Syntax
whose [condition]
What does it do? This is an optional clause used to specify a condition for filtering.
Where does it go? If used, this clause immediately follows the read {the item}'s messages
phrase on the same line.
Is it required? 🌟 No — This phrase is optional in the syntax.
Does it require input data? ✅ Yes — This clause requires a condition (a filter expression) to be specified.
retrieve a channel from slack
the channel name is "general"
read the channel's messages whose timestamp is lower than "2023-01-01"