Slack as Source for handling request in Jira JSM

Context :
I there, I am actually learning n(n and AI agent and on use case I try to cover is to be abel to assist a user for creating request in JIRA JSM from Slack.

Describe the problem/error/question

The main question I have so far is that for handling slack message, you can specify the type of trigger you want to use for slack and I face to 2 main choice .
1 New message in Channel
2 Bot mentionned

Actually the workflow I build is able to receive trigger from new message in channel, teh way I have set it up so far in test mode. But when I publish my workflow the trigger is looping because when the chat reply to the user for more information, the replay is detected as a new channel message.
So the behavior is quite normal I would say.
So from that point I have 2 options :
1- Filter the both message from input trigger
2 -Change the Triger type to bot mention

Question :
What is the best approach in terms of user experience from slack to post his message :

1 - Does use will be suitable enough to mention the bot before each message inside a dedicated channel ?
2 - Is it better to send a Direct Message to bo user ?

Thanks for sharing your thought

Information on your n8n setup

  • n8n version: -
  • Database (default: SQLite): -
  • n8n EXECUTIONS_PROCESS setting (default: own, main): -
  • Running n8n via (Docker, npm, n8n cloud, desktop app): Docker container
  • Operating system: Windows 11

Hi @scal you can try using the New message posted on channel with like ignore usernames & IDs so that your BOT user does not end up in a loop, so with that you can have 2 options either mention the bot or just add a specific reaction like ticket emoji kind of on their message so that bot will know when to create that JSM ticket. Like just my idea this can be a lot complex depending on the situation.

@Anshul_Namdev thnaks for your reply,

What do you mean by ignoring and where, how ?

What is teh best practice in terms of users when starting such conversation, global channel message or bot mention ?

regards

@scal I mean the bot would only see the messages we give that permission to in the Bot Token, also bot mention would be better so that wherever in the conversation bot is mentioned it will know that then to start that JSM creation. And just give the BOT enough permission in the OAuth so that it will already be restricted.

1 Like

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