Split redis Keys into multiple items

Describe the problem/error/question

Using Redis’ Keys operation to get all keys that match a pattern. The output is always 1 item, even when I have more than 1 result, and I need them to be separated.

I tried using split but it doesn’t really work.

Overall, what I want to achieve is to send a message to all users who previously used the bot.

At the start I register every new user in the redis DB, and the redis Keys node returns them all.

If it returned them in separate items the Telegram send message node would iterate and send each one a message.

What is the error message (if any)?

There’s no error message.

Please share your workflow

Share the output returned by the last node

[
{
“chatid”: “["1234567","2345617"]”
}
]

Information on your n8n setup

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

Hey @itsJustAUsername hope all is well, welcome to the community.

Please see if the following workflow helps:

The main difference is in the Set node you need to choose the data type to be an array instead of a string.

I feel so stupid, this unsurprisingly works.

Thanks a lot for your help and patience!