ListenSlack

Description:

Retrieves real-time messages or Slack commands from one or more Slack conversations. The messages are written out in JSON format. Note that this Processor should be used to obtain real-time messages and commands from Slack and does not provide a mechanism for obtaining historical messages. The ConsumeSlack Processor should be used for an initial load of messages from a channel. See Usage / Additional Details for more information about how to configure this Processor and enable it to retrieve messages and commands from Slack.

Additional Details...

Tags:

slack, real-time, event, message, command, listen, receive, social media, team, text, unstructured

Properties:

In the list below, the names of required properties appear in bold. Any other properties (not in bold) are considered optional. The table also indicates any default values.

Display NameAPI NameDefault ValueAllowable ValuesDescription
App TokenApp TokenThe Application Token that is registered to your Slack application
Sensitive Property: true
Bot TokenBot TokenThe Bot Token that is registered to your Slack application
Sensitive Property: true
Event Type to ReceiveEvent Type to ReceiveReceive Message Events
  • Receive Message Events The Processor is to receive Slack Message Events
  • Receive Commands The Processor is to receive Commands from Slack that are specific to your application. The Processor will not receive Message Events.
Specifies whether the Processor should receive Slack Message Events or commands issued by users (e.g., /nifi do something)

Relationships:

NameDescription
successAll FlowFiles that are created will be sent to this Relationship.

Reads Attributes:

None specified.

Writes Attributes:

NameDescription
mime.typeSet to application/json, as the output will always be in JSON format

State management:

This component does not store state.

Restricted:

This component is not restricted.

Input requirement:

This component does not allow an incoming relationship.

System Resource Considerations:

None specified.

See Also:

ConsumeSlack, PostSlack, PutSlack