Please refer to the attached screenshot for more context.
Welcome to the community
At the moment it is not possible to add node packages to n8n cloud that is an option that is only available when self hosting.
Looking at your code though our Slack node supports blockkit so you may be able to do whatever you are trying with just the standard slack node and a webhook workflow to manage the response.
Thanks for quick reply and clarified my doubts @Jon
Instead of writing the JS/python code for listening the Slack message, can we do it through the nodes (http/webhook) ? Could you please explain regarding that?
It all depends on what it is you are actually to do but looking at your screenshot you appear to be sending a block with a button. In the Slack node you can set the Message Type to
Blocks and that will take the same json syntax that you are trying to use although
event.user would need to be tweaked.
If you were trying to do something with the Slack interactive endpoint or events api you can add a webhook node to your workflow which will give you a URL you can give your Slack app and from there it should get sent any messages for events you are interested in.
This is something we don’t have a guide for but the Slack docs are pretty good when it comes to sending events.
Thank you so much for your guidance @Jon , Using the Webhook node, I have completed the listing the Slack message part. Reference Link