Get Slack history

Describe the problem/error/question

I would like to build a chatbot where the response is found in the history of messages in a channel in Slack. So if I ask a quesions and the answer is in Slack, then that answer should be included in the output. However, when I try to set it up like below then there is no answers returned from Slack. I have tried other variations where I only get the latest message in Slack as response, no matter what I ask the chatbot.
Does anyone know how to get an output that uses the history of a Slack channel?
Any help is much appreciated.

Please share your workflow

(Select the nodes on your canvas and use the keyboard shortcuts CMD+C/CTRL+C and CMD+V/CTRL+V to copy and paste the workflow.)

Share the output returned by the last node

Information on your n8n setup

  • n8n version: 1.59.4
  • Database (default: SQLite):
  • n8n EXECUTIONS_PROCESS setting (default: own, main):
  • Running n8n via (Docker, npm, n8n cloud, desktop app): n8n cloud
  • Operating system: MacOS

Hey @Clausladefoged,

It isn’t perfect but I have had some luck with the below, Let me know how you get on with it.

Hi @Jon. That was just what I needed, I get the history of the channel out now. Thanks!

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.