You can read event tags to get information about an active Slack conversation:

Slack conversation ID

To get the Slack conversation ID: event.tags.conversation["slack:id"]

Slack thread ID

To get the Slack conversation thread ID (if it’s a thread): event.tags.conversation["slack:thread"]

Slack user ID

To get the Slack user ID: event.tags.user["slack:id"]

Slack message ID

To get the Slack message ID: event.tags.message["slack:id"]