Skip to main content

Get Replies

AutomatR.Slack.Activities.GetReplies

The "Get Replies" activity in AutomatR is part of the Slack Messages activities package, utilizing the Slack API to retrieve replies associated with a specific message. This activity facilitates the integration of Slack messaging functionality into automation workflows.

Properties

NameDescription
Input
Channel NameThe name of the channel from which to retrieve replies. String variables containing the desired channel name.
Time StampThe time stamp around which replies are fetched. String variables containing the timestamp for fetching replies.
LimitThe limit of the maximum number of replies to retrieve. Integer variables indicating the maximum number of replies to fetch.
Misc
Display NameProvides a customizable name for the activity displayed in the workflow. The display name enhances clarity and organization within the automation project. String variable or argument containing the desired display name.
Optional
DelaySpecifies the amount of time (in seconds) to wait before executing the "Get Replies" activity. Integer variables containing the delay duration. Example: If the amount of time is 1000 milliseconds or 1 sec, i.e., 1.
Output
Replies ResponseOutputs a list of replies associated with the specified message. Variables of type List<RepliesResponse> to store the reply responses.

How to use:

  1. Drag and drop the "Get Replies" activity onto the workflow.
  2. Configure the properties by specifying the channel name, timestamp, and optional limit for reply retrieval.
  3. Optionally, configure the delay.
  4. Execute the workflow to retrieve replies associated with the specified message in the Slack channel.

Example: Consider an example where the "Get Replies" activity is used to retrieve the most recent 5 replies from a message in the "General" channel:

Get Replies:
Delay: 2
Channel Name: "General"
Time Stamp: "1645623498.123456"
Limit: 5
Replies Response: repliesList

In this example, the activity fetches the most recent 5 replies associated with the message at the specified timestamp in the "General" channel. The response is stored in a variable named "repliesList" for further handling in the workflow.