https://discord.gg/botpress logo
URGENT! so I want to connect Botpress with n8n in ...
# 🤝help
n
I want to build a connection between Botpress and n8n using webhook, but the problem is one side communication is going good, means I am send data from n8n to botpress using https request node and webhook integration in botpress but the problem is in sending response back to n8n. I am unable to figure out how to do it. AND I NEED URGET HELP.
w
Use a code card to send data via a webhook to n8n
b
bro, do a payload with the variables you have in your workflow in an execute card. You can copy and adapt my code:
Copy code
workflow.Success = false

const data = {
  "Info name from your WF": the variable,
  "Info name from your WF2": the variable  
};

try {
  const hookResponse = await axios.post('yourWebhook', data);
  workflow.makeSuccess = true;
  console.log("Sent to n8n:", hookResponse.data);
} catch (error) {
  console.error("Error sending to n8n", error);
}
n
I have figured it out, I used n8n Activate Workflow Card and it's working fine but Thank you so much guys.
I tired this but it save error on axios.
b
weird, but cool you found a solution 🙂