Okay, so ive been scouring the internet, forums, videos, workflows, chatGPT, the discord website for walking through webhook events and pings and e-signatures and i can safely say, this has been a labyrinth of nonsense and outdated information.
I installed and am trying to learn n8n for this very purpose of setting up a discord bot that checks for messages in a certain channel(s), which that is the trigger, then will reply with an AI response (or) will determine if a reply is necessary. BUT… i cannot even get that far. the trigger. the current discord triggers DO NOT work, some bugs or something with them i dont know.
to be honest, i dont even know if its the discord trigger that i need, i think it is, it “should” be that. but its not working no matter what i try and ive been at this for at least a week now. I ask… very nearly beg someone to either fix the discord trigger or to help me through how to set this seemingly simple event trigger up. THANK YOU… in advance. n8n seems great. but good lord why does this simple thing need to be so complicated?
Ive discovered a way, posted by JON on a different thread on how to get things working a bit.
HOWEVER… what i need to do now is to make discord post an interaction event when i message a certain channel within discord to trigger the webhook here so that i can then generate a response via AI
NOTE:
The info in the TweetNaCL is below, because i had to do some digging to figure out what to put in those fields
Message
{{ $json.toSign }}
Signature
{{ $json.signature }}
Ensure to copy your n8n workflow and paste it in the code block, that is in between the pairs of triple backticks, which also could be achieved by clicking </> (preformatted text) in the editor and pasting in your workflow.
```
<your workflow>
```
That implies to any JSON output you would like to share with us.
Make sure that you have removed any sensitive information from your workflow and include dummy or pinned data with it!
HOWEVER… what i need to do now is to make discord post an interaction event when i message a certain channel within discord to trigger the webhook here so that i can then generate a response via AI
I wonder if have come across this video which seems to address what you are after, https://www.youtube.com/watch?v=NIpr3uwXnrA. Though, it uses community trigger node to react to the messages in the channel (and then process it with AI and sends a response back).
No. for discord integration, Node-Red seems to be the only way to go until n8n fixes and FULLY supports it. otherwise its a major and horrible waste of time.