N8N webhook with Discord and WhatsApp

Hi,

I done a lot of research but infortunately no success:

My project : I have got a WhatsApp business for customers. All my team use our Discord server.
My customer when they need help use WhatsApp. But we forgot sometimes to connect to our WhatsApp business. I succeeded to connect WA to N8N, we receive the message and we can reply.
Now I would like to be able to reply through Discord, easier for us.

I followed this video : https://www.youtube.com/watch?v=QNn2VkonKag&t=3s
But I have the message followed in my Discord application configuration :

After I tried to follow this : Help with setting up discord outgoing webhook - #4 by MeesJ
But I dont understand how to use “tweetnacl” inside N8N

Thank you for your help

  • n8n version: 1.16
  • Database : SQLite
  • n8n EXECUTIONS_PROCESS setting : Default
  • Running n8n: Docker
  • Operating system: Debian

It looks like your topic is missing some important information. Could you provide the following if applicable.

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

Hey @tzana,

To include tweetnacl you would need to make a custom image which could be a bit of a pain, What I use for Discord webhooks is the n8n-nodes-tweetnacl community node which makes life a bit easier and all you need is something like this…

Hi @Jon
Thank you a lot for your quick help.
I made research about this n8n-nodes-tweetnacl, I installed in N8N/settings/Community Nodes


But I didn’t see it in my nodes.

Maybe I have to do this : https://www.npmjs.com/package/n8n-nodes-tweetnacl?activeTab=readme

Thx

EDIT : I updated my n8n container and now I have got the new node

Hi,

Since severals hours I try to figure out the Discord authentification, but always false.
This is my Tweetnacl configuration :

My workflow is simple :
image

My webhook :

Thx for your help

Hey @tzana,

I use {{ $json.headers['x-signature-timestamp'] }}{{ JSON.stringify($json.body) }} for Message and {{ $json.headers["x-signature-ed25519"] }} for Signature so I guess ti could be your Message that needs updating.

I done like you

But no result
I specify, it’s when I connect my discord application for the first time:

Hey @tzana,

I don’t know what the error says but are you returning the value as expected?

I’ve been through the same pain of using n8n as Discord interactions endpoint. Set the NODE_FUNCTION_ALLOW_EXTERNAL environmental variable to include tweetnacl and then follow the instructions that I wrote in my earlier post to verify the integrity of the request. I haven’t been able to successfully use the tweetnacl community node for this specific purpose.

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